diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-01-30 17:13:29 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-01-30 17:17:04 +0100 |
commit | df7e76bc57a1389c1fb23211157973e26aa24627 (patch) | |
tree | 14b9dddd9e19a17dc50cdeba0e74633c72e5006f /app-benchmarks | |
parent | sys-kernel/git-sources: Linux version bump (diff) | |
download | gentoo-df7e76bc57a1389c1fb23211157973e26aa24627.tar.gz gentoo-df7e76bc57a1389c1fb23211157973e26aa24627.tar.bz2 gentoo-df7e76bc57a1389c1fb23211157973e26aa24627.zip |
app-benchmarks/bootchart2: add 0.14.9-r1
Bump to EAPI 8 and do not call python3 directly. Based on a patch by
Carlos "capozotte" [1].
1: https://bugs.gentoo.org/832220#c3
Closes: https://bugs.gentoo.org/832220
Closes: https://bugs.gentoo.org/832219
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'app-benchmarks')
-rw-r--r-- | app-benchmarks/bootchart2/bootchart2-0.14.9-r1.ebuild (renamed from app-benchmarks/bootchart2/bootchart2-0.14.9.ebuild) | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/app-benchmarks/bootchart2/bootchart2-0.14.9.ebuild b/app-benchmarks/bootchart2/bootchart2-0.14.9-r1.ebuild index 95f488b32786..6cd79686f3af 100644 --- a/app-benchmarks/bootchart2/bootchart2-0.14.9.ebuild +++ b/app-benchmarks/bootchart2/bootchart2-0.14.9-r1.ebuild @@ -1,9 +1,11 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit linux-info systemd toolchain-funcs +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit linux-info python-single-r1 systemd toolchain-funcs DESCRIPTION="Performance analysis and visualization of the system boot process" HOMEPAGE="https://github.com/xrmx/bootchart" @@ -14,12 +16,14 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" IUSE="+cairo" +REQUIRED_USE="cairo? ( ${PYTHON_REQUIRED_USE} )" RESTRICT="!cairo? ( test )" RDEPEND=" - !app-benchmarks/bootchart - cairo? ( dev-python/pycairo ) - sys-apps/lsb-release" + cairo? ( ${PYTHON_DEPS} $(python_gen_cond_dep 'dev-python/pycairo[${PYTHON_USEDEP}]') ) + sys-apps/lsb-release +" +BDEPEND="cairo? ( ${PYTHON_DEPS} )" S="${WORKDIR}"/${PN%2}-${PV} @@ -31,18 +35,17 @@ PATCHES=( src_prepare() { default + python_setup tc-export CC + + # Redirects systemd unit directory, + # as well as disable the built-in python setup. sed -i \ -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_systemunitdir):g" \ + -e "/^install/s:py-install-compile::g" \ + -e "/pybootchartgui.1/d" \ Makefile || die - if ! use cairo; then - sed -i \ - -e "/^install/s:py-install-compile::g" \ - -e "/pybootchartgui.1/d" \ - Makefile || die - fi - sed -i \ -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty:g' \ bootchartd.conf bootchartd.in || die @@ -56,6 +59,16 @@ src_install() { export DOCDIR=/usr/share/doc/${PF} default + if use cairo; then + doman pybootchartgui.1 + + python_scriptinto /usr/bin + python_newscript pybootchartgui{.py,} + + python_domodule pybootchartgui + python_optimize + fi + # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't # just change it. Since no libraries are installed, /lib is fine. keepdir /lib/bootchart/tmpfs |