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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Apr 2 13:06:33 2012 UTC (7 years, 6 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
add init script for termination

(Portage version: 2.2.0_alpha96/cvs/Linux x86_64)

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.2.ebuild,v 1.1 2012/04/02 07:19:16 jlec Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABI="2.7-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 DEPEND="${RDEPEND}
26 "
27
28 CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
29
30 src_prepare() {
31 tc-export CC
32 sed \
33 -e "/^install/s:py-install-compile::g" \
34 -e "/^VER/s:0.14.1:0.14.2:g" \
35 -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_unitdir):g" \
36 -i Makefile || die
37 }
38
39 src_install() {
40 export NO_PYTHON_COMPILE=0
41 export DOCDIR=/usr/share/doc/${PF}
42 default
43
44 # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
45 # just change it. Since no libraries are installed, /lib is fine.
46 keepdir /lib/bootchart/tmpfs
47
48 installation() {
49 emake \
50 DESTDIR="${D}" \
51 PY_SITEDIR=$(python_get_sitedir) \
52 py-install-compile
53 }
54 python_execute_function installation
55 }
56
57 src_test() {
58 testing() {
59 emake test
60 }
61 python_execute_function testing
62 }
63
64 pkg_postinst() {
65 elog "Please review /usr/share/doc/${PF}/README"
66 elog "for further usage informations."
67 }

  ViewVC Help
Powered by ViewVC 1.1.20