summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2004-08-05 09:56:39 +0000
committerNed Ludd <solar@gentoo.org>2004-08-05 09:56:39 +0000
commite9b782d13e9d8cfcff2b13a257462ea2312f11d6 (patch)
treeb3fbc4b2c0113202be1243c5e7cf2933e7977214 /app-arch/bzip2
parentadd local use flag cross to enable cross compiler workaround for bzip2.This f... (diff)
downloadhistorical-e9b782d13e9d8cfcff2b13a257462ea2312f11d6.tar.gz
historical-e9b782d13e9d8cfcff2b13a257462ea2312f11d6.tar.bz2
historical-e9b782d13e9d8cfcff2b13a257462ea2312f11d6.zip
added local USE flag cross because bzip2 will to run itself after it has compiled itself which we can't do when we are cross compiling
Diffstat (limited to 'app-arch/bzip2')
-rw-r--r--app-arch/bzip2/ChangeLog6
-rw-r--r--app-arch/bzip2/Manifest4
-rw-r--r--app-arch/bzip2/bzip2-1.0.2-r3.ebuild10
3 files changed, 15 insertions, 5 deletions
diff --git a/app-arch/bzip2/ChangeLog b/app-arch/bzip2/ChangeLog
index af2b85d6c51a..84e54de6e965 100644
--- a/app-arch/bzip2/ChangeLog
+++ b/app-arch/bzip2/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-arch/bzip2
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/ChangeLog,v 1.10 2004/06/26 09:17:11 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/ChangeLog,v 1.11 2004/08/05 09:56:39 solar Exp $
+
+ 05 Aug 2004; <solar@gentoo.org> bzip2-1.0.2-r3.ebuild:
+ added local USE flag cross because bzip2 will to run itself after it has
+ compiled itself which we can't do when we are cross compiling
26 Jun 2004; Seemant Kulleen <seemant@gentoo.org> bzip2-1.0.2-r3.ebuild:
my mistake
diff --git a/app-arch/bzip2/Manifest b/app-arch/bzip2/Manifest
index 3e02e4d270a0..5c035d9ada77 100644
--- a/app-arch/bzip2/Manifest
+++ b/app-arch/bzip2/Manifest
@@ -1,4 +1,4 @@
-MD5 bee15e461ef0b62e30c5400c13f13793 bzip2-1.0.2-r3.ebuild 1919
-MD5 ff12f0cd2497ef99a675bb6ecda24a13 ChangeLog 4115
+MD5 70ba88eaff0235c58486b9087f62da3a bzip2-1.0.2-r3.ebuild 2132
+MD5 fddb16efc6a0434c7972200de1728ceb ChangeLog 4310
MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
MD5 382f154f0ba01de10aff6207652d6799 files/digest-bzip2-1.0.2-r3 63
diff --git a/app-arch/bzip2/bzip2-1.0.2-r3.ebuild b/app-arch/bzip2/bzip2-1.0.2-r3.ebuild
index d0e5a2fca5ce..fa1b57831b18 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.14 2004/06/26 09:17:11 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/bzip2-1.0.2-r3.ebuild,v 1.15 2004/08/05 09:56:39 solar Exp $
inherit gcc flag-o-matic
@@ -11,7 +11,7 @@ SRC_URI="ftp://sources.redhat.com/pub/bzip2/v102/${P}.tar.gz"
LICENSE="BZIP2"
SLOT="0"
KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390"
-IUSE="build static debug"
+IUSE="build static debug cross"
DEPEND="virtual/libc"
@@ -23,6 +23,12 @@ src_unpack() {
# (drobbins)
use static && append-flags -static
use debug && sed -i 's:-fomit-frame-pointer::g' Makefile
+
+ # 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
+ fi
sed -i \
-e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \
-e "s:-O2:${CFLAGS}:g" \