Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-benchmarks/bootchart2: ChangeLog bootchart2-0.14.5.ebuild
Date: Sat, 30 Jun 2012 12:12:22
Message-Id: 20120630121147.570742004B@flycatcher.gentoo.org
1 jlec 12/06/30 12:11:47
2
3 Modified: ChangeLog
4 Added: bootchart2-0.14.5.ebuild
5 Log:
6 app-benchmarks/bootchart2: Version bump, unrestrict for py3
7
8 (Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.10 app-benchmarks/bootchart2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 14 Jun 2012 06:31:21 -0000 1.9
24 +++ ChangeLog 30 Jun 2012 12:11:47 -0000 1.10
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-benchmarks/bootchart2
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/ChangeLog,v 1.9 2012/06/14 06:31:21 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/ChangeLog,v 1.10 2012/06/30 12:11:47 jlec Exp $
30 +
31 +*bootchart2-0.14.5 (30 Jun 2012)
32 +
33 + 30 Jun 2012; Justin Lecher <jlec@g.o> +bootchart2-0.14.5.ebuild:
34 + Version bump, unrestrict for py3
35
36 *bootchart2-0.14.4 (14 Jun 2012)
37
38
39
40
41 1.1 app-benchmarks/bootchart2/bootchart2-0.14.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/bootchart2-0.14.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/bootchart2-0.14.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: bootchart2-0.14.5.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/bootchart2-0.14.5.ebuild,v 1.1 2012/06/30 12:11:47 jlec Exp $
51
52 EAPI=4
53
54 PYTHON_DEPEND="2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="*-pypy-*"
57
58 inherit linux-info python systemd toolchain-funcs
59
60 DESCRIPTION="Performance analysis and visualization of the system boot process"
61 HOMEPAGE="https://github.com/mmeeks/bootchart/"
62 SRC_URI="mirror://github/mmeeks/bootchart/${P}.tar.bz2"
63
64 SLOT="0"
65 LICENSE="GPL-2"
66 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
67 IUSE="svg"
68
69 RDEPEND="
70 !app-benchmarks/bootchart
71 dev-python/pycairo[svg?]
72 dev-python/pygtk
73 sys-apps/lsb-release"
74 DEPEND="${RDEPEND}"
75
76 CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
77
78 src_prepare() {
79 tc-export CC
80 sed \
81 -e "/^install/s:py-install-compile::g" \
82 -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_unitdir):g" \
83 -i Makefile || die
84 sed \
85 -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty":g' \
86 -i bootchartd.conf bootchartd.in || die
87 }
88
89 src_test() {
90 testing() {
91 emake test
92 }
93 python_execute_function testing
94 }
95
96 src_install() {
97 export NO_PYTHON_COMPILE=0
98 export DOCDIR=/usr/share/doc/${PF}
99 default
100
101 # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
102 # just change it. Since no libraries are installed, /lib is fine.
103 keepdir /lib/bootchart/tmpfs
104
105 installation() {
106 emake \
107 DESTDIR="${D}" \
108 PY_SITEDIR=$(python_get_sitedir) \
109 py-install-compile
110 }
111 python_execute_function installation
112
113 # does not like python3 as active interpreter
114 python_convert_shebangs 2 "${ED}"/usr/bin/pybootchartgui
115
116 newinitd "${FILESDIR}"/${PN}.init ${PN}
117 }
118
119 pkg_postinst() {
120 elog "If you are using an initrd during boot"
121 echo
122 elog "please add the init script to your default runlevel"
123 elog "rc-update add bootchart2 default"
124 echo
125 python_mod_optimize pybootchartgui
126 }
127
128 pkg_postrm() {
129 python_mod_cleanup pybootchartgui
130 }