summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-01-25 23:01:25 +0000
committerMike Frysinger <vapier@gentoo.org>2004-01-25 23:01:25 +0000
commit2074329f7854123def575c41d4d2b8b84e497143 (patch)
treec4cfd80c23ab5bb35950c80f77928d9d11bd4519 /app-arch
parentSourceforge mirrors are a good thing[tm]. (diff)
downloadhistorical-2074329f7854123def575c41d4d2b8b84e497143.tar.gz
historical-2074329f7854123def575c41d4d2b8b84e497143.tar.bz2
historical-2074329f7854123def575c41d4d2b8b84e497143.zip
remove fomit-frame-pointer when debug is in USE #39377
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/bzip2/ChangeLog5
-rw-r--r--app-arch/bzip2/bzip2-1.0.2-r3.ebuild26
2 files changed, 17 insertions, 14 deletions
diff --git a/app-arch/bzip2/ChangeLog b/app-arch/bzip2/ChangeLog
index 2ee340983111..7cfdfad7a167 100644
--- a/app-arch/bzip2/ChangeLog
+++ b/app-arch/bzip2/ChangeLog
@@ -1,9 +1,12 @@
# ChangeLog for app-arch/bzip2
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/ChangeLog,v 1.3 2004/01/03 04:48:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/ChangeLog,v 1.4 2004/01/25 23:01:25 vapier Exp $
*bzip2-1.0.2-r3 (28 Dec 2003)
+ 25 Jan 2003; Mike Frysinger <vapier@gentoo.org> :
+ Remove -fomit-frame-pointer if debug is in USE #39377 Ciaran McCreesh.
+
02 Jan 2003; Mike Frysinger <vapier@gentoo.org> :
Change ${CC} ${CXX} to $(gcc-getCC) $(gcc-getCXX) from gcc.eclass #36987.
diff --git a/app-arch/bzip2/bzip2-1.0.2-r3.ebuild b/app-arch/bzip2/bzip2-1.0.2-r3.ebuild
index d2a6fa129810..9e95dd8ce752 100644
--- a/app-arch/bzip2/bzip2-1.0.2-r3.ebuild
+++ b/app-arch/bzip2/bzip2-1.0.2-r3.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# 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.2 2004/01/03 04:48:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/bzip2/bzip2-1.0.2-r3.ebuild,v 1.3 2004/01/25 23:01:25 vapier Exp $
-inherit gcc
+inherit gcc flag-o-matic
DESCRIPTION="A high-quality data compressor used extensively by Gentoo Linux"
HOMEPAGE="http://sources.redhat.com/bzip2/"
@@ -11,29 +11,29 @@ SRC_URI="ftp://sources.redhat.com/pub/bzip2/v102/${P}.tar.gz"
LICENSE="BZIP2"
SLOT="0"
KEYWORDS="x86 amd64 ppc sparc alpha mips hppa arm ia64 ppc64"
-IUSE="build static"
+IUSE="build static debug"
DEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
-
cd ${S}
- cp Makefile Makefile.orig
# for optimizations, we keep -fomit-frame-pointer and -fno-strength-reduce
# for speed. -fstrength-reduce seems to slow down the code slightly on x86.
# (drobbins)
- use static && CFLAGS="${CFLAGS} -static"
- sed -e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \
+ use static && append-flags -static
+ use debug && sed -i 's:-fomit-frame-pointer::g' Makefile
+ sed -i \
+ -e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \
+ -e "s:-O2:${CFLAGS}:g" \
+ Makefile || die
+ sed -i \
-e "s:-O2:${CFLAGS}:g" \
- Makefile.orig > Makefile || die
- cp Makefile-libbz2_so Makefile-libbz2_so.orig
- sed -e "s:-O2:${CFLAGS}:g" \
- Makefile-libbz2_so.orig > Makefile-libbz2_so || die
+ Makefile-libbz2_so || die
}
src_compile() {
- if [ -z "`use build`" ]
+ if [ ! `use build` ]
then
emake CC="$(gcc-getCC)" CXX="$(gcc-getCXX)" -f Makefile-libbz2_so all || die "Make failed"
fi
@@ -41,7 +41,7 @@ src_compile() {
}
src_install() {
- if [ -z "`use build`" ]
+ if [ ! `use build` ]
then
make PREFIX=${D}/usr install || die
mv ${D}/usr/bin ${D}