diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-04-22 02:14:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-04-22 02:14:08 +0000 |
commit | 97c3cc9caba8967fa5f352d53a1d27779c877566 (patch) | |
tree | d4062d020f3773466c572a0f64053508118e8fe1 /app-misc/glimpse/glimpse-4.17.4.ebuild | |
parent | Fixed error message in apachesplitlogfiles. Closes #48499. (diff) | |
download | historical-97c3cc9caba8967fa5f352d53a1d27779c877566.tar.gz historical-97c3cc9caba8967fa5f352d53a1d27779c877566.tar.bz2 historical-97c3cc9caba8967fa5f352d53a1d27779c877566.zip |
gcc-3.x patch #42970 and clean up CFLAGS
Diffstat (limited to 'app-misc/glimpse/glimpse-4.17.4.ebuild')
-rw-r--r-- | app-misc/glimpse/glimpse-4.17.4.ebuild | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/app-misc/glimpse/glimpse-4.17.4.ebuild b/app-misc/glimpse/glimpse-4.17.4.ebuild index 55dc183b8323..d04bc2423470 100644 --- a/app-misc/glimpse/glimpse-4.17.4.ebuild +++ b/app-misc/glimpse/glimpse-4.17.4.ebuild @@ -1,27 +1,39 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/glimpse/glimpse-4.17.4.ebuild,v 1.3 2004/02/17 00:00:04 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/glimpse/glimpse-4.17.4.ebuild,v 1.4 2004/04/22 02:14:08 vapier Exp $ -inherit eutils +inherit flag-o-matic eutils DESCRIPTION="A index/query system to search a large set of files quickly" -SRC_URI="http://webglimpse.net/trial/${P}.tar.gz" HOMEPAGE="http://webglimpse.net/" +SRC_URI="http://webglimpse.net/trial/${P}.tar.gz" -SLOT="0" LICENSE="BSD" -KEYWORDS="~x86 ~ppc ~mips ~amd64 ~sparc ~alpha ~ia64" +SLOT="0" +KEYWORDS="x86 ppc sparc mips alpha amd64 ia64" IUSE="static" +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-gcc3.patch + sed -i \ + -e 's:-O3 -fomit-frame-pointer:$(OPTIMIZEFLAGS):' \ + dynfilters/Makefile.in \ + || die "removing -O3 failed" + sed -i \ + -e '/^CFLAGS/s:$: $(OPTIMIZEFLAGS):' \ + {agrep,compress,index}/Makefile.in \ + Makefile.in \ + libtemplate/{template,util}/Makefile.in \ + || die "inserting OPTIMIZEFLAGS failed" +} + src_compile() { - econf || die + use static && append-ldflags -static - if [ -z "`use static`" ] - then - emake || die - else - emake LDFLAGS=-static || die - fi + econf || die + emake -j1 OPTIMIZEFLAGS="${CFLAGS}" || die } src_install() { |