dev-libs/gmp: add multilib logic to older SLOT #563886
authorMike Frysinger <vapier@gentoo.org>
Sat, 24 Oct 2015 16:18:21 +0000 (12:18 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 24 Oct 2015 16:18:36 +0000 (12:18 -0400)
dev-libs/gmp/gmp-4.3.2-r1.ebuild

index 94a25632690ce6ea4bbab51af5c06e1dd9598f42..49e2f0c1534eb1c581ff42581c5747de5457fe86 100644 (file)
@@ -4,9 +4,9 @@
 
 # this ebuild is only for the libgmp.so.3 ABI SONAME
 
-EAPI="3"
+EAPI="5"
 
-inherit eutils libtool toolchain-funcs
+inherit eutils libtool toolchain-funcs multilib-minimal
 
 DESCRIPTION="Library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers"
 HOMEPAGE="http://gmplib.org/"
@@ -37,7 +37,7 @@ src_prepare() {
        chmod a+rx configure
 }
 
-src_configure() {
+multilib_src_configure() {
        # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
        # http://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
        if [[ ${CHOST} == hppa2.0-* ]] ; then
@@ -53,7 +53,7 @@ src_configure() {
        export GMPABI
 
        tc-export CC
-       econf \
+       ECONF_SOURCE="${S}" econf \
                --localstatedir=/var/state/gmp \
                --disable-mpfr \
                --disable-mpbsd \
@@ -61,7 +61,7 @@ src_configure() {
                --disable-cxx
 }
 
-src_install() {
-       emake install-libLTLIBRARIES DESTDIR="${D}" || die
+multilib_src_install() {
+       emake DESTDIR="${D}" install-libLTLIBRARIES
        rm "${D}"/usr/*/libgmp.{la,so} || die
 }