sys-libs/binutils-libs: add multilib support #558902
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Sep 2015 13:26:19 +0000 (09:26 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 29 Sep 2015 13:26:19 +0000 (09:26 -0400)
sys-libs/binutils-libs/binutils-libs-2.25.1-r1.ebuild [moved from sys-libs/binutils-libs/binutils-libs-2.25.1.ebuild with 93% similarity]

similarity index 93%
rename from sys-libs/binutils-libs/binutils-libs-2.25.1.ebuild
rename to sys-libs/binutils-libs/binutils-libs-2.25.1-r1.ebuild
index 9faa28dd251d60a08e718575a8eeacf1c55a05da..b6b22066e8d7dc2708235f736aaaf9feefddb720 100644 (file)
@@ -6,7 +6,7 @@ EAPI="5"
 
 PATCHVER="1.1"
 
-inherit eutils
+inherit eutils multilib-minimal
 
 MY_PN="binutils"
 MY_P="${MY_PN}-${PV}"
@@ -41,7 +41,7 @@ pkgversion() {
        [[ -n ${PATCHVER} ]] && printf " p${PATCHVER}"
 }
 
-src_configure() {
+multilib_src_configure() {
        local myconf=(
                $(use_with zlib)
                --enable-obsolete
@@ -66,12 +66,16 @@ src_configure() {
                && myconf+=( --without-included-gettext ) \
                || myconf+=( --disable-nls )
 
+       ECONF_SOURCE=${S} \
        econf "${myconf[@]}"
 }
 
-src_install() {
+multilib_src_install() {
        default
-       use static-libs || find "${ED}"/usr -name '*.la' -delete
        # Provide libiberty.h directly.
        dosym libiberty/libiberty.h /usr/include/libiberty.h
 }
+
+multilib_src_install_all() {
+       use static-libs || find "${ED}"/usr -name '*.la' -delete
+}