dev-libs/libbytesize: Revbump to fix creation of top-level directory.
authorSven Wegener <swegener@gentoo.org>
Wed, 13 Dec 2017 13:40:06 +0000 (14:40 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 13 Dec 2017 13:40:51 +0000 (14:40 +0100)
Closes: https://bugs.gentoo.org/634840
Package-Manager: Portage-2.3.18, Repoman-2.3.6

dev-libs/libbytesize/libbytesize-1.2-r1.ebuild [moved from dev-libs/libbytesize/libbytesize-1.2.ebuild with 82% similarity]

similarity index 82%
rename from dev-libs/libbytesize/libbytesize-1.2.ebuild
rename to dev-libs/libbytesize/libbytesize-1.2-r1.ebuild
index dbb899eae3da98c025ba721697286eb6a3536261..132da45acc0f6628ead8d2aa8f99c66e0d1bd429 100644 (file)
@@ -5,7 +5,7 @@ EAPI=6
 
 PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
 
-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/rhinstaller/libbytesize"
@@ -34,7 +34,7 @@ DEPEND="
 RESTRICT="test"
 
 pkg_setup() {
-       python-single-r1_pkg_setup
+       python_setup
 }
 
 src_prepare() {
@@ -44,7 +44,13 @@ src_prepare() {
 
 src_configure() {
        local myeconfargs=(
+               --without-python3
                $(use_with doc gtk-doc)
        )
        econf "${myeconfargs[@]}"
 }
+
+src_install() {
+       emake install DESTDIR="${D}"
+       python_foreach_impl emake -C src/python install DESTDIR="${D}"
+}