summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-05-04 12:44:37 -0400
committerLars Wendler <polynomial-c@gentoo.org>2019-05-06 09:34:51 +0200
commit5625fcd35454c1af54fbb4a12bc8785894edc2ef (patch)
tree5a883d05b09e232ef5bf242f6c1c8e683b006c4a /dev-libs/libbytesize
parentsys-kernel/vanilla-sources: Automated version bump to {4.19.40,5.0.13} - remo... (diff)
downloadgentoo-5625fcd35454c1af54fbb4a12bc8785894edc2ef.tar.gz
gentoo-5625fcd35454c1af54fbb4a12bc8785894edc2ef.tar.bz2
gentoo-5625fcd35454c1af54fbb4a12bc8785894edc2ef.zip
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>
Diffstat (limited to 'dev-libs/libbytesize')
-rw-r--r--dev-libs/libbytesize/libbytesize-2.0-r2.ebuild (renamed from dev-libs/libbytesize/libbytesize-2.0-r1.ebuild)32
1 files changed, 27 insertions, 5 deletions
diff --git a/dev-libs/libbytesize/libbytesize-2.0-r1.ebuild b/dev-libs/libbytesize/libbytesize-2.0-r2.ebuild
index 6da71cd71480..bfb8a984b132 100644
--- a/dev-libs/libbytesize/libbytesize-2.0-r1.ebuild
+++ b/dev-libs/libbytesize/libbytesize-2.0-r2.ebuild
@@ -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_install() {
- default
+src_compile() {
+ python_do emake
+}
+
+src_test() {
+ python_do emake check
+}
+
+install_helper() {
+ emake DESTDIR="${D}" install
use python && python_optimize
- find "${ED}" -name "*.la*" -delete || die
+}
+
+src_install() {
+ python_do install_helper
+ einstalldocs
+ find "${ED}" -name "*.la" -type f -delete || die
}