Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 832220
Collapse All | Expand All

(-)a/app-benchmarks/bootchart2/bootchart2-0.14.9.ebuild (-10 / +26 lines)
Lines 3-9 Link Here
3
3
4
EAPI=7
4
EAPI=7
5
5
6
inherit linux-info systemd toolchain-funcs
6
PYTHON_COMPAT=( python2_7 python3_{8..10} pypy3 )
7
8
inherit python-single-r1 linux-info systemd toolchain-funcs
7
9
8
DESCRIPTION="Performance analysis and visualization of the system boot process"
10
DESCRIPTION="Performance analysis and visualization of the system boot process"
9
HOMEPAGE="https://github.com/xrmx/bootchart"
11
HOMEPAGE="https://github.com/xrmx/bootchart"
Lines 12-26 SRC_URI="https://github.com/xrmx/bootchart/archive/${PV}.tar.gz -> ${P}.tar.gz" Link Here
12
LICENSE="GPL-2"
14
LICENSE="GPL-2"
13
SLOT="0"
15
SLOT="0"
14
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
16
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
15
IUSE="+cairo"
16
17
18
IUSE="+cairo"
19
REQUIRED_USE="cairo? ( ${PYTHON_REQ_USE} )"
17
RESTRICT="!cairo? ( test )"
20
RESTRICT="!cairo? ( test )"
18
21
19
RDEPEND="
22
RDEPEND="
20
	!app-benchmarks/bootchart
23
	!app-benchmarks/bootchart
21
	cairo? ( dev-python/pycairo )
24
	cairo? ( $(python_gen_cond_dep 'dev-python/pycairo[${PYTHON_USEDEP}]') )
22
	sys-apps/lsb-release"
25
	sys-apps/lsb-release"
23
26
27
BDEPEND="cairo? ( ${PYTHON_DEPS} )"
28
24
S="${WORKDIR}"/${PN%2}-${PV}
29
S="${WORKDIR}"/${PN%2}-${PV}
25
30
26
CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
31
CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
Lines 31-48 PATCHES=( Link Here
31
36
32
src_prepare() {
37
src_prepare() {
33
	default
38
	default
39
	python_setup
34
	tc-export CC
40
	tc-export CC
41
42
	# Redirects systemd unit directory,
43
	# as well as disable the built-in python setup.
35
	sed -i \
44
	sed -i \
36
		-e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_systemunitdir):g" \
45
		-e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_systemunitdir):g" \
46
		-e "/^install/s:py-install-compile::g" \
47
		-e "/pybootchartgui.1/d" \
37
		Makefile || die
48
		Makefile || die
38
49
39
	if ! use cairo; then
40
		sed -i \
41
			-e "/^install/s:py-install-compile::g" \
42
			-e "/pybootchartgui.1/d" \
43
			Makefile || die
44
	fi
45
46
	sed -i \
50
	sed -i \
47
		-e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty:g' \
51
		-e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty:g' \
48
		bootchartd.conf bootchartd.in || die
52
		bootchartd.conf bootchartd.in || die
Lines 56-61 src_install() { Link Here
56
	export DOCDIR=/usr/share/doc/${PF}
60
	export DOCDIR=/usr/share/doc/${PF}
57
	default
61
	default
58
62
63
	# Install using python-utils.
64
	if use cairo; then
65
		insinto /usr/share/man/man1
66
		doins pybootchartgui.1
67
68
		python_scriptinto /usr/bin
69
		python_newscript pybootchartgui{.py,}
70
71
		python_domodule pybootchartgui
72
		python_optimize
73
	fi
74
59
	# Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
75
	# Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
60
	# just change it. Since no libraries are installed, /lib is fine.
76
	# just change it. Since no libraries are installed, /lib is fine.
61
	keepdir /lib/bootchart/tmpfs
77
	keepdir /lib/bootchart/tmpfs

Return to bug 832220