mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-libs/libbytesize: use python-r1
Package-Manager: Portage-2.3.62_p4, Repoman-2.3.12_p87 Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
committed by
Lars Wendler
parent
acdf60ec74
commit
5625fcd354
@@ -5,7 +5,7 @@ EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6,7} )
|
||||
|
||||
inherit autotools python-single-r1
|
||||
inherit autotools python-r1
|
||||
|
||||
DESCRIPTION="Tiny library providing a C \"class\" for working with arbitrary big sizes in bytes"
|
||||
HOMEPAGE="https://github.com/storaged-project/libbytesize"
|
||||
@@ -44,17 +44,39 @@ src_prepare() {
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
python_do() {
|
||||
if use python; then
|
||||
python_foreach_impl run_in_build_dir "$@"
|
||||
else
|
||||
"$@"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with doc gtk-doc)
|
||||
$(use_with python python3)
|
||||
$(use_with tools)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
local ECONF_SOURCE="${S}"
|
||||
python_do econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_do emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
python_do emake check
|
||||
}
|
||||
|
||||
install_helper() {
|
||||
emake DESTDIR="${D}" install
|
||||
use python && python_optimize
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use python && python_optimize
|
||||
find "${ED}" -name "*.la*" -delete || die
|
||||
python_do install_helper
|
||||
einstalldocs
|
||||
find "${ED}" -name "*.la" -type f -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user