diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-08 00:42:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-08 00:42:51 +0000 |
commit | 99aaa802f969ee83eafb290efd97e19aa52672bd (patch) | |
tree | 42d8f91685f5941fa082c90dfb04fb6498edf06e /app-arch/bzip2 | |
parent | New package. Initial ebuild partially from bug #61571 by Chris Verges <squirr... (diff) | |
download | historical-99aaa802f969ee83eafb290efd97e19aa52672bd.tar.gz historical-99aaa802f969ee83eafb290efd97e19aa52672bd.tar.bz2 historical-99aaa802f969ee83eafb290efd97e19aa52672bd.zip |
cross-compile fixes
Diffstat (limited to 'app-arch/bzip2')
-rw-r--r-- | app-arch/bzip2/Manifest | 12 | ||||
-rw-r--r-- | app-arch/bzip2/bzip2-1.0.2-r3.ebuild | 23 |
2 files changed, 24 insertions, 11 deletions
diff --git a/app-arch/bzip2/Manifest b/app-arch/bzip2/Manifest index b05fd9935afe..051b792a7267 100644 --- a/app-arch/bzip2/Manifest +++ b/app-arch/bzip2/Manifest @@ -1,4 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + MD5 9e751367e338078a681cd6f7c722d93b ChangeLog 4441 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 0f4c88fd416d294b64d16f0d931b7822 bzip2-1.0.2-r3.ebuild 2333 +MD5 6f271e15b873b0ebc1056c2cdbe5a161 bzip2-1.0.2-r3.ebuild 2386 MD5 382f154f0ba01de10aff6207652d6799 files/digest-bzip2-1.0.2-r3 63 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.9.10 (GNU/Linux) + +iD8DBQFBtk4YroRuSHgZdywRAtkfAJ9iGIC1l8PJjciTGaOL6gghrPuyHQCfY4t1 +fTFx5V60oVcjVTIcSd/86eQ= +=jLUr +-----END PGP SIGNATURE----- diff --git a/app-arch/bzip2/bzip2-1.0.2-r3.ebuild b/app-arch/bzip2/bzip2-1.0.2-r3.ebuild index 047764b08260..3f0e6760c38e 100644 --- a/app-arch/bzip2/bzip2-1.0.2-r3.ebuild +++ b/app-arch/bzip2/bzip2-1.0.2-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/bzip2-1.0.2-r3.ebuild,v 1.17 2004/11/12 15:02:51 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/bzip2-1.0.2-r3.ebuild,v 1.18 2004/12/08 00:42:51 vapier Exp $ inherit toolchain-funcs flag-o-matic @@ -11,7 +11,7 @@ SRC_URI="ftp://sources.redhat.com/pub/bzip2/v102/${P}.tar.gz" LICENSE="BZIP2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" -IUSE="build static debug cross" +IUSE="build static debug" DEPEND="virtual/libc" @@ -26,8 +26,8 @@ src_unpack() { # bzip2 will to run itself after it has built itself which we # can't do if we are cross compiling. -solar - use cross && if [ -e /bin/bzip2 ]; then - sed -i -e s:'./bzip2 -':'bzip2 -':g Makefile || die + if [ -e /bin/bzip2 ] && [[ ${CTARGET} != ${CHOST} ]] ; then + sed -i -e 's:./bzip2 -:bzip2 -:g' Makefile || die fi sed -i \ -e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \ @@ -39,16 +39,19 @@ src_unpack() { } src_compile() { - if ! use build - then - emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f Makefile-libbz2_so all || die "Make failed" + local makeopts=" + CC=$(tc-getCC) + AR=$(tc-getAR) + RANLIB=$(tc-getRANLIB) + " + if ! use build ; then + emake ${makeopts} -f Makefile-libbz2_so all || die "Make failed libbz2" fi - emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" all || die "Make failed" + emake ${makeopts} all || die "Make failed" } src_install() { - if ! use build - then + if ! use build ; then make PREFIX=${D}/usr install || die mv ${D}/usr/bin ${D} |