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
commit6415424f9ed727a786e974658d68268f6a63b3f3 (patch)
tree1040b006309b86bb0152ef722af5f91a12cf6621 /app-arch/bzip2
parentadd local use flag cross to enable cross compiler workaround for bzip2.This f... (diff)
downloadgentoo-2-6415424f9ed727a786e974658d68268f6a63b3f3.tar.gz
gentoo-2-6415424f9ed727a786e974658d68268f6a63b3f3.tar.bz2
gentoo-2-6415424f9ed727a786e974658d68268f6a63b3f3.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/Manifest2
-rw-r--r--app-arch/bzip2/bzip2-1.0.2-r3.ebuild10
3 files changed, 14 insertions, 4 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..5bea2d267055 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 54cfa58739ddf6909844c5c70ad7985a bzip2-1.0.2-r3.ebuild 2134
MD5 ff12f0cd2497ef99a675bb6ecda24a13 ChangeLog 4115
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" \