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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Nov 30 15:33:05 2014 UTC (4 years, 10 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
app-benchmarks/bootchart2: Fix sed, #530740

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

1 # Copyright 1999-2014 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.7.ebuild,v 1.1 2014/11/24 12:53:34 jlec Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 python3_{3,4} )
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="https://github.com/mmeeks/bootchart/archive/${PV}.tar.gz -> ${P}.tar.gz"
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[$(python_gen_usedep 'python2*')]
29 ${PYTHON_DEPS}
30 )
31 sys-apps/lsb-release"
32 DEPEND="${PYTHON_DEPS}"
33
34 S="${WORKDIR}"/${PN%2}-${PV}
35
36 CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
37
38 src_prepare() {
39 tc-export CC
40 sed \
41 -e "/^install/s:py-install-compile::g" \
42 -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_unitdir):g" \
43 -i Makefile || die
44 sed \
45 -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty":g' \
46 -i bootchartd.conf bootchartd.in || die
47 }
48
49 src_test() {
50 python_foreach_impl emake test
51 }
52
53 src_install() {
54 export DOCDIR=/usr/share/doc/${PF}
55 default
56
57 # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
58 # just change it. Since no libraries are installed, /lib is fine.
59 keepdir /lib/bootchart/tmpfs
60
61 installation() {
62 python_domodule pybootchartgui
63
64 python_newscript pybootchartgui.py pybootchartgui
65 }
66 use X && python_foreach_impl installation
67
68 newinitd "${FILESDIR}"/${PN}.init ${PN}
69
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