Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/bootchart2/files/, app-benchmarks/bootchart2/
Date: Tue, 30 Jan 2018 08:23:33
Message-Id: 1517300597.470f9c05bfa49199f15b8f7756ad67be26fd4617.vapier@gentoo
1 commit: 470f9c05bfa49199f15b8f7756ad67be26fd4617
2 Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
3 AuthorDate: Tue Jan 30 08:22:32 2018 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 30 08:23:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=470f9c05
7
8 app-benchmarks/bootchart2: version bump to 0.14.8
9
10 app-benchmarks/bootchart2/Manifest | 1 +
11 app-benchmarks/bootchart2/bootchart2-0.14.8.ebuild | 78 ++++++++++++++++++++++
12 .../files/bootchart2-0.14.7-sysmacros.patch | 1 +
13 3 files changed, 80 insertions(+)
14
15 diff --git a/app-benchmarks/bootchart2/Manifest b/app-benchmarks/bootchart2/Manifest
16 index 152810057b9..c1474b95b81 100644
17 --- a/app-benchmarks/bootchart2/Manifest
18 +++ b/app-benchmarks/bootchart2/Manifest
19 @@ -1 +1,2 @@
20 DIST bootchart2-0.14.7.tar.gz 1175145 BLAKE2B dfe56572eb2f85b68e0ad871c939ef16c48b0ee11ca881f03914d6773b86050091b232d80706f0df1d094c2e069c252609a0266d1cfa5159a6a0916321ea1dcf SHA512 82074a6ca6725a1b9ffe2a5d7f7bc6fd7918ab837573c23f75e7ebf209f30284ac7e59d2e84768ed313e4cee80da8e67dde167881d907fe71eff376ae9d16541
21 +DIST bootchart2-0.14.8.tar.gz 1175527 BLAKE2B 623ca2269420eda79b09d955ab9d4a37af004e9e97ad0e0c6014e53b4b0c63239661cb5359345306504980b060ccd11488970cb0aa3d832bfb55392724e715dd SHA512 58303db91d22ccc44c0dc765e7a6672fb277840555fd87ce64b8987cba85250cfe3db17f3ec7e0e1e726ad59166a5d3d01a7a262c07b5690c595877b46c66bd0
22
23 diff --git a/app-benchmarks/bootchart2/bootchart2-0.14.8.ebuild b/app-benchmarks/bootchart2/bootchart2-0.14.8.ebuild
24 new file mode 100644
25 index 00000000000..d31698dcc3b
26 --- /dev/null
27 +++ b/app-benchmarks/bootchart2/bootchart2-0.14.8.ebuild
28 @@ -0,0 +1,78 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI="5"
33 +
34 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
35 +
36 +inherit linux-info python-r1 systemd toolchain-funcs
37 +
38 +DESCRIPTION="Performance analysis and visualization of the system boot process"
39 +HOMEPAGE="https://github.com/mmeeks/bootchart/"
40 +SRC_URI="https://github.com/mmeeks/bootchart/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
45 +IUSE="svg test X"
46 +
47 +REQUIRED_USE="
48 + X? ( ${PYTHON_REQUIRED_USE} )
49 + test? ( X )"
50 +
51 +RDEPEND="
52 + !app-benchmarks/bootchart
53 + X? (
54 + dev-python/pycairo[svg(+)?,${PYTHON_USEDEP}]
55 + dev-python/pygtk[$(python_gen_usedep 'python2*')]
56 + ${PYTHON_DEPS}
57 + )
58 + sys-apps/lsb-release"
59 +DEPEND="${PYTHON_DEPS}"
60 +
61 +S="${WORKDIR}"/${PN%2}-${PV}
62 +
63 +CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
64 +
65 +src_prepare() {
66 + epatch "${FILESDIR}"/${PN}-0.14.7-sysmacros.patch #579922
67 + tc-export CC
68 + sed -i \
69 + -e "/^install/s:py-install-compile::g" \
70 + -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_unitdir):g" \
71 + Makefile || die
72 + sed -i \
73 + -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty:g' \
74 + bootchartd.conf bootchartd.in || die
75 +}
76 +
77 +src_test() {
78 + python_foreach_impl emake test
79 +}
80 +
81 +src_install() {
82 + export DOCDIR=/usr/share/doc/${PF}
83 + default
84 +
85 + # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
86 + # just change it. Since no libraries are installed, /lib is fine.
87 + keepdir /lib/bootchart/tmpfs
88 +
89 + installation() {
90 + python_domodule pybootchartgui
91 +
92 + python_newscript pybootchartgui.py pybootchartgui
93 + }
94 + use X && python_foreach_impl installation
95 +
96 + newinitd "${FILESDIR}"/${PN}.init ${PN}
97 +
98 +}
99 +
100 +pkg_postinst() {
101 + elog "If you are using an initrd during boot"
102 + echo
103 + elog "please add the init script to your default runlevel"
104 + elog "rc-update add bootchart2 default"
105 + echo
106 +}
107
108 diff --git a/app-benchmarks/bootchart2/files/bootchart2-0.14.7-sysmacros.patch b/app-benchmarks/bootchart2/files/bootchart2-0.14.7-sysmacros.patch
109 index de6e4112b68..48cf685c0ca 100644
110 --- a/app-benchmarks/bootchart2/files/bootchart2-0.14.7-sysmacros.patch
111 +++ b/app-benchmarks/bootchart2/files/bootchart2-0.14.7-sysmacros.patch
112 @@ -1,4 +1,5 @@
113 https://bugs.gentoo.org/579922
114 +https://github.com/xrmx/bootchart/commit/add58c3b57064afd6f7d2fd5f09006d28a3e770e
115
116 From add58c3b57064afd6f7d2fd5f09006d28a3e770e Mon Sep 17 00:00:00 2001
117 From: Mike Frysinger <vapier@g.o>