Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/bootchart2/files/, app-benchmarks/bootchart2/
Date: Thu, 30 Apr 2020 15:10:58
Message-Id: 1588259407.e626c9c6082bf415656a64c2536ae2c52e20583d.asturm@gentoo
1 commit: e626c9c6082bf415656a64c2536ae2c52e20583d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 30 11:18:19 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 15:10:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e626c9c6
7
8 app-benchmarks/bootchart2: Drop USE X, broken python deps, EAPI-7 bump
9
10 Also drop no-op USE svg.
11 Drop USE test that depend on X, restrict tests.
12 Don't compress manpages.
13
14 Closes: https://bugs.gentoo.org/708108
15 Closes: https://bugs.gentoo.org/718200
16 Package-Manager: Portage-2.3.99, Repoman-2.3.22
17 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
18
19 .../bootchart2/bootchart2-0.14.8-r1.ebuild | 58 ++++++++++++++++++++++
20 .../bootchart2-0.14.8-no-compressed-man.patch | 15 ++++++
21 2 files changed, 73 insertions(+)
22
23 diff --git a/app-benchmarks/bootchart2/bootchart2-0.14.8-r1.ebuild b/app-benchmarks/bootchart2/bootchart2-0.14.8-r1.ebuild
24 new file mode 100644
25 index 00000000000..6cb11cd3e6e
26 --- /dev/null
27 +++ b/app-benchmarks/bootchart2/bootchart2-0.14.8-r1.ebuild
28 @@ -0,0 +1,58 @@
29 +# Copyright 1999-2020 Gentoo Authors
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=7
33 +
34 +inherit linux-info systemd toolchain-funcs
35 +
36 +DESCRIPTION="Performance analysis and visualization of the system boot process"
37 +HOMEPAGE="https://github.com/mmeeks/bootchart/"
38 +SRC_URI="https://github.com/mmeeks/bootchart/archive/${PV}.tar.gz -> ${P}.tar.gz"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
43 +
44 +RESTRICT="test"
45 +
46 +RDEPEND="
47 + !app-benchmarks/bootchart
48 + sys-apps/lsb-release"
49 +
50 +S="${WORKDIR}"/${PN%2}-${PV}
51 +
52 +CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
53 +
54 +PATCHES=(
55 + "${FILESDIR}"/${PN}-0.14.7-sysmacros.patch # bug 579922
56 + "${FILESDIR}"/${P}-no-compressed-man.patch
57 +)
58 +
59 +src_prepare() {
60 + default
61 + tc-export CC
62 + sed -i \
63 + -e "/^install/s:py-install-compile::g" \
64 + -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_systemunitdir):g" \
65 + Makefile || die
66 + sed -i \
67 + -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty:g' \
68 + bootchartd.conf bootchartd.in || die
69 +}
70 +
71 +src_install() {
72 + export DOCDIR=/usr/share/doc/${PF}
73 + default
74 +
75 + # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
76 + # just change it. Since no libraries are installed, /lib is fine.
77 + keepdir /lib/bootchart/tmpfs
78 +
79 + newinitd "${FILESDIR}"/${PN}.init ${PN}
80 +}
81 +
82 +pkg_postinst() {
83 + elog "If you are using an initrd during boot"
84 + elog "please add the init script to your default runlevel"
85 + elog "rc-update add bootchart2 default"
86 +}
87
88 diff --git a/app-benchmarks/bootchart2/files/bootchart2-0.14.8-no-compressed-man.patch b/app-benchmarks/bootchart2/files/bootchart2-0.14.8-no-compressed-man.patch
89 new file mode 100644
90 index 00000000000..261e821a403
91 --- /dev/null
92 +++ b/app-benchmarks/bootchart2/files/bootchart2-0.14.8-no-compressed-man.patch
93 @@ -0,0 +1,15 @@
94 +--- a/Makefile 2015-12-17 09:12:57.000000000 +0100
95 ++++ b/Makefile 2020-04-30 13:14:08.772369141 +0200
96 +@@ -107,9 +107,9 @@
97 + install -m 644 -D README $(DESTDIR)$(DOCDIR)/README
98 + install -m 644 -D README.pybootchart $(DESTDIR)$(DOCDIR)/README.pybootchart
99 + mkdir -p $(DESTDIR)$(MANDIR)
100 +- gzip -c bootchart2.1 > $(DESTDIR)$(MANDIR)/bootchart2.1.gz
101 +- gzip -c bootchartd.1 > $(DESTDIR)$(MANDIR)/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).1.gz
102 +- gzip -c pybootchartgui.1 > $(DESTDIR)$(MANDIR)/pybootchartgui.1.gz
103 ++ install -m 644 bootchart2.1 $(DESTDIR)$(MANDIR)/bootchart2.1
104 ++ install -m 644 bootchartd.1 $(DESTDIR)$(MANDIR)/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).1
105 ++ install -m 644 pybootchartgui.1 $(DESTDIR)$(MANDIR)/pybootchartgui.1
106 +
107 + install-service:
108 + mkdir -p $(DESTDIR)$(SYSTEMD_UNIT_DIR)