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.2-r1.ebuild bootchart2-0.14.2.ebuild
Date: Mon, 02 Apr 2012 13:06:43
Message-Id: 20120402130633.402592004B@flycatcher.gentoo.org
1 jlec 12/04/02 13:06:33
2
3 Modified: ChangeLog
4 Added: bootchart2-0.14.2-r1.ebuild
5 Removed: bootchart2-0.14.2.ebuild
6 Log:
7 add init script for termination
8
9 (Portage version: 2.2.0_alpha96/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.2 app-benchmarks/bootchart2/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/ChangeLog?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/ChangeLog?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/ChangeLog?r1=1.1&r2=1.2
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/ChangeLog,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- ChangeLog 2 Apr 2012 07:19:16 -0000 1.1
25 +++ ChangeLog 2 Apr 2012 13:06:32 -0000 1.2
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-benchmarks/bootchart2
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/ChangeLog,v 1.1 2012/04/02 07:19:16 jlec Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/ChangeLog,v 1.2 2012/04/02 13:06:32 jlec Exp $
31 +
32 +*bootchart2-0.14.2-r1 (02 Apr 2012)
33 +
34 + 02 Apr 2012; Justin Lecher <jlec@g.o> +files/bootchart2.init,
35 + -bootchart2-0.14.2.ebuild, +bootchart2-0.14.2-r1.ebuild:
36 + add init script for termination
37
38 *bootchart2-0.14.2 (02 Apr 2012)
39
40
41
42
43 1.1 app-benchmarks/bootchart2/bootchart2-0.14.2-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/bootchart2-0.14.2-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/bootchart2-0.14.2-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: bootchart2-0.14.2-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/bootchart2-0.14.2-r1.ebuild,v 1.1 2012/04/02 13:06:32 jlec Exp $
53
54 EAPI=4
55
56 PYTHON_DEPEND="2"
57 SUPPORT_PYTHON_ABIS="1"
58
59 inherit linux-info python systemd toolchain-funcs
60
61 DESCRIPTION="Performance analysis and visualization of the system boot process"
62 HOMEPAGE="https://github.com/mmeeks/bootchart/"
63 SRC_URI="mirror://github/mmeeks/bootchart/${P}.tar.bz2"
64
65 SLOT="0"
66 LICENSE="GPL-2"
67 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
68 IUSE="svg"
69
70 RDEPEND="
71 !app-benchmarks/bootchart
72 dev-python/pycairo[svg=]
73 dev-python/pygtk"
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 "/^VER/s:0.14.1:0.14.2:g" \
83 -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_unitdir):g" \
84 -i Makefile || die
85 }
86
87 src_test() {
88 testing() {
89 emake test
90 }
91 python_execute_function testing
92 }
93
94 src_install() {
95 export NO_PYTHON_COMPILE=0
96 export DOCDIR=/usr/share/doc/${PF}
97 default
98
99 # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
100 # just change it. Since no libraries are installed, /lib is fine.
101 keepdir /lib/bootchart/tmpfs
102
103 installation() {
104 emake \
105 DESTDIR="${D}" \
106 PY_SITEDIR=$(python_get_sitedir) \
107 py-install-compile
108 }
109 python_execute_function installation
110
111 newinitd "${FILESDIR}"/${PN}.init ${PN}
112 }
113
114 pkg_postinst() {
115 elog "Please add the init script to your default runlevel"
116 elog "rc-update add bootchart2 default"
117 echo ""
118 elog "Please review /usr/share/doc/${PF}/README"
119 elog "for further usage informations."
120 echo
121 python_mod_optimize pybootchartgui
122 }
123
124 pkg_postrm() {
125 python_mod_cleanup pybootchartgui
126 }