/[gentoo-x86]/app-benchmarks/bootchart2/bootchart2-0.14.4.ebuild
Gentoo

Contents of /app-benchmarks/bootchart2/bootchart2-0.14.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 30 11:25:18 2013 UTC (6 years, 8 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
app-benchmarks/bootchart2: drop old; add USE=X for track-only installations, #454340; move to new python eclasses

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/bootchart2-0.14.4.ebuild,v 1.1 2012/06/14 06:31:21 jlec Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.* *-pypy-*"
10
11 inherit linux-info python systemd toolchain-funcs
12
13 DESCRIPTION="Performance analysis and visualization of the system boot process"
14 HOMEPAGE="https://github.com/mmeeks/bootchart/"
15 SRC_URI="mirror://github/mmeeks/bootchart/${P}.tar.bz2"
16
17 SLOT="0"
18 LICENSE="GPL-2"
19 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
20 IUSE="svg"
21
22 RDEPEND="
23 !app-benchmarks/bootchart
24 dev-python/pycairo[svg?]
25 dev-python/pygtk
26 sys-apps/lsb-release"
27 DEPEND="${RDEPEND}"
28
29 CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
30
31 src_prepare() {
32 tc-export CC
33 sed \
34 -e "/^install/s:py-install-compile::g" \
35 -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_unitdir):g" \
36 -i Makefile || die
37 sed \
38 -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty":g' \
39 -i bootchartd.conf bootchartd.in || die
40 }
41
42 src_test() {
43 testing() {
44 emake test
45 }
46 python_execute_function testing
47 }
48
49 src_install() {
50 export NO_PYTHON_COMPILE=0
51 export DOCDIR=/usr/share/doc/${PF}
52 default
53
54 # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
55 # just change it. Since no libraries are installed, /lib is fine.
56 keepdir /lib/bootchart/tmpfs
57
58 installation() {
59 emake \
60 DESTDIR="${D}" \
61 PY_SITEDIR=$(python_get_sitedir) \
62 py-install-compile
63 }
64 python_execute_function installation
65
66 # does not like python3 as active interpreter
67 python_convert_shebangs 2 "${ED}"/usr/bin/pybootchartgui
68
69 newinitd "${FILESDIR}"/${PN}.init ${PN}
70 }
71
72 pkg_postinst() {
73 elog "If you are using an initrd during boot"
74 echo
75 elog "please add the init script to your default runlevel"
76 elog "rc-update add bootchart2 default"
77 echo
78 python_mod_optimize pybootchartgui
79 }
80
81 pkg_postrm() {
82 python_mod_cleanup pybootchartgui
83 }

  ViewVC Help
Powered by ViewVC 1.1.20