Build against gettext system libraries and headers instead of included ones, #171540.
authorRoy Marples <uberlord@gentoo.org>
Tue, 20 Mar 2007 13:42:55 +0000 (13:42 +0000)
committerRoy Marples <uberlord@gentoo.org>
Tue, 20 Mar 2007 13:42:55 +0000 (13:42 +0000)
Package-Manager: portage-2.1.2.2

app-text/recode/ChangeLog
app-text/recode/recode-3.6-r2.ebuild

index cdcdda5fb49255f81e566d6e29197062ba5e7004..20cc1e21c3a996c385ce02fda7894fa52998fc80 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-text/recode
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/recode/ChangeLog,v 1.45 2007/01/22 08:30:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/recode/ChangeLog,v 1.46 2007/03/20 13:42:55 uberlord Exp $
+
+  20 Mar 2007; Roy Marples <uberlord@gentoo.org> recode-3.6-r2.ebuild:
+  Build against gettext system libraries and headers instead of included ones,
+  #171540.
 
   22 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> recode-3.6-r1.ebuild,
   recode-3.6-r2.ebuild:
index 4b11edf1e221435b9a04aecae7b2389219e471f1..83261845812a715d633e61bea9dd24d5e8411fb4 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/recode/recode-3.6-r2.ebuild,v 1.19 2007/01/22 08:30:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/recode/recode-3.6-r2.ebuild,v 1.20 2007/03/20 13:42:55 uberlord Exp $
 
 inherit flag-o-matic eutils libtool toolchain-funcs
 
@@ -25,15 +25,15 @@ src_unpack() {
        epatch "${FILESDIR}"/${P}-ppc-macos.diff
        cp lib/error.c lib/xstrdup.c src/ || die "file copy failed"
 
-       if use ppc-macos; then
-               append-ldflags -lgettextlib -lintl
-       fi
+       use ppc-macos && append-ldflags -lgettextlib
        elibtoolize
 }
 
 src_compile() {
        tc-export CC LD
-       econf $(use_enable nls) || die "econf failed"
+       # --without-included-gettext means we always use system headers
+       # and library
+       econf --without-included-gettext $(use_enable nls) || die "econf failed"
        emake || die "emake failed"
 }