Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/bootchart2/
Date: Fri, 28 Jan 2022 10:45:58
Message-Id: 1643366745.8e37caa8b775fb233fdfb540f605bec6dc7b7534.flow@gentoo
1 commit: 8e37caa8b775fb233fdfb540f605bec6dc7b7534
2 Author: capezotte <carana2099 <AT> gmail <DOT> com>
3 AuthorDate: Wed Jan 26 14:13:46 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 10:45:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e37caa8
7
8 app-benchmarks/bootchart2: bump to 0.14.9
9
10 Signed-off-by: capezotte <carana2099 <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/23966
12 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
13 Modified-by: Florian Schmaus <flow <AT> gentoo.org>
14
15 app-benchmarks/bootchart2/Manifest | 1 +
16 app-benchmarks/bootchart2/bootchart2-0.14.9.ebuild | 72 ++++++++++++++++++++++
17 2 files changed, 73 insertions(+)
18
19 diff --git a/app-benchmarks/bootchart2/Manifest b/app-benchmarks/bootchart2/Manifest
20 index 34f275c76d38..01604a6ee14f 100644
21 --- a/app-benchmarks/bootchart2/Manifest
22 +++ b/app-benchmarks/bootchart2/Manifest
23 @@ -1 +1,2 @@
24 DIST bootchart2-0.14.8.tar.gz 1175527 BLAKE2B 623ca2269420eda79b09d955ab9d4a37af004e9e97ad0e0c6014e53b4b0c63239661cb5359345306504980b060ccd11488970cb0aa3d832bfb55392724e715dd SHA512 58303db91d22ccc44c0dc765e7a6672fb277840555fd87ce64b8987cba85250cfe3db17f3ec7e0e1e726ad59166a5d3d01a7a262c07b5690c595877b46c66bd0
25 +DIST bootchart2-0.14.9.tar.gz 1175710 BLAKE2B af472193c7de313e770da1a88baf00e9ee38e36c0d3c900bab2657bfa5d2398dd9edc616ec770f49a6c5fa8e29f738ddf2c0951ea039a48a2a89b0ffd94759fb SHA512 7ee1220b0add027fc39f710cc01119d7aaa22fe11736497b089c26955216cef10552216ed29ca55bf08aa848f92bb11d74deeb3aa69769dfecf3a55aa988e58b
26
27 diff --git a/app-benchmarks/bootchart2/bootchart2-0.14.9.ebuild b/app-benchmarks/bootchart2/bootchart2-0.14.9.ebuild
28 new file mode 100644
29 index 000000000000..95f488b32786
30 --- /dev/null
31 +++ b/app-benchmarks/bootchart2/bootchart2-0.14.9.ebuild
32 @@ -0,0 +1,72 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit linux-info systemd toolchain-funcs
39 +
40 +DESCRIPTION="Performance analysis and visualization of the system boot process"
41 +HOMEPAGE="https://github.com/xrmx/bootchart"
42 +SRC_URI="https://github.com/xrmx/bootchart/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="+cairo"
48 +
49 +RESTRICT="!cairo? ( test )"
50 +
51 +RDEPEND="
52 + !app-benchmarks/bootchart
53 + cairo? ( dev-python/pycairo )
54 + sys-apps/lsb-release"
55 +
56 +S="${WORKDIR}"/${PN%2}-${PV}
57 +
58 +CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
59 +
60 +PATCHES=(
61 + "${FILESDIR}"/${PN}-0.14.8-no-compressed-man.patch
62 +)
63 +
64 +src_prepare() {
65 + default
66 + tc-export CC
67 + sed -i \
68 + -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_systemunitdir):g" \
69 + Makefile || die
70 +
71 + if ! use cairo; then
72 + sed -i \
73 + -e "/^install/s:py-install-compile::g" \
74 + -e "/pybootchartgui.1/d" \
75 + Makefile || die
76 + fi
77 +
78 + sed -i \
79 + -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty:g' \
80 + bootchartd.conf bootchartd.in || die
81 +}
82 +
83 +src_test() {
84 + emake test
85 +}
86 +
87 +src_install() {
88 + export DOCDIR=/usr/share/doc/${PF}
89 + default
90 +
91 + # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
92 + # just change it. Since no libraries are installed, /lib is fine.
93 + keepdir /lib/bootchart/tmpfs
94 +
95 + newinitd "${FILESDIR}"/${PN}.init ${PN}
96 +}
97 +
98 +pkg_postinst() {
99 + elog "If you are using an initrd during boot"
100 + elog "please add the init script to your default runlevel"
101 + if has_version sys-apps/openrc; then
102 + elog "rc-update add bootchart2 default"
103 + fi
104 +}