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

Contents of /app-benchmarks/bootchart2/bootchart2-0.14.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jun 5 12:03:16 2015 UTC (4 years, 4 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!)

1 # Copyright 1999-2015 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.5-r1.ebuild,v 1.4 2015/04/08 07:30:37 mgorny Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_3} )
8
9 inherit linux-info python-r1 systemd toolchain-funcs
10
11 DESCRIPTION="Performance analysis and visualization of the system boot process"
12 HOMEPAGE="https://github.com/mmeeks/bootchart/"
13 SRC_URI="mirror://github/mmeeks/bootchart/${P}.tar.bz2"
14
15 SLOT="0"
16 LICENSE="GPL-2"
17 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
18 IUSE="svg test X"
19
20 REQUIRED_USE="
21 X? ( ${PYTHON_REQUIRED_USE} )
22 test? ( X )"
23
24 RDEPEND="
25 !app-benchmarks/bootchart
26 X? (
27 dev-python/pycairo[svg?,${PYTHON_USEDEP}]
28 dev-python/pygtk
29 ${PYTHON_DEPS}
30 )
31 sys-apps/lsb-release"
32 DEPEND="${PYTHON_DEPS}"
33
34 CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
35
36 src_prepare() {
37 tc-export CC
38 sed \
39 -e "/^install/s:py-install-compile::g" \
40 -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_unitdir):g" \
41 -i Makefile || die
42 sed \
43 -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty":g' \
44 -i bootchartd.conf bootchartd.in || die
45 }
46
47 src_test() {
48 python_foreach_impl emake test
49 }
50
51 src_install() {
52 export NO_PYTHON_COMPILE=1
53 export DOCDIR=/usr/share/doc/${PF}
54 default
55
56 # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
57 # just change it. Since no libraries are installed, /lib is fine.
58 keepdir /lib/bootchart/tmpfs
59
60 installation() {
61 python_domodule pybootchartgui
62
63 python_optimize "${ED}"/$(python_get_sitedir)
64 cp pybootchartgui.py "${T}"/pybootchartgui || die
65 python_newscript pybootchartgui.py pybootchartgui
66 }
67 use X && python_foreach_impl installation
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 }

  ViewVC Help
Powered by ViewVC 1.1.20