From 9655b03f4eff8f85851235a1b768861b75a62d10 Mon Sep 17 00:00:00 2001 From: Christoph Mende Date: Mon, 9 Feb 2009 16:58:10 +0000 Subject: Respect LDFLAGS (Portage version: 2.2_rc23/cvs/Linux x86_64) --- net-irc/eiwic/ChangeLog | 8 ++++++-- net-irc/eiwic/eiwic-1.1.3.ebuild | 19 +++++++------------ net-irc/eiwic/files/eiwic-1.1.3-ldflags.patch | 13 +++++++++++++ 3 files changed, 26 insertions(+), 14 deletions(-) create mode 100644 net-irc/eiwic/files/eiwic-1.1.3-ldflags.patch (limited to 'net-irc') diff --git a/net-irc/eiwic/ChangeLog b/net-irc/eiwic/ChangeLog index 35ef59ee6923..6bb7e5c4e5aa 100644 --- a/net-irc/eiwic/ChangeLog +++ b/net-irc/eiwic/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-irc/eiwic -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/eiwic/ChangeLog,v 1.4 2007/07/01 12:42:23 angelos Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/eiwic/ChangeLog,v 1.5 2009/02/09 16:58:10 angelos Exp $ + + 09 Feb 2009; Christoph Mende + +files/eiwic-1.1.3-ldflags.patch, eiwic-1.1.3.ebuild: + Respect LDFLAGS 01 Jul 2007; Christoph Mende eiwic-1.1.3.ebuild: Stable on amd64 diff --git a/net-irc/eiwic/eiwic-1.1.3.ebuild b/net-irc/eiwic/eiwic-1.1.3.ebuild index 1b7aec57f9bb..ac13fecddc4f 100644 --- a/net-irc/eiwic/eiwic-1.1.3.ebuild +++ b/net-irc/eiwic/eiwic-1.1.3.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/eiwic/eiwic-1.1.3.ebuild,v 1.4 2007/07/01 12:42:23 angelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/eiwic/eiwic-1.1.3.ebuild,v 1.5 2009/02/09 16:58:10 angelos Exp $ -inherit multilib flag-o-matic +inherit autotools eutils multilib flag-o-matic DESCRIPTION="A modular IRC bot written in C" HOMEPAGE="http://lordi.styleliga.org/eiwic/" @@ -19,21 +19,16 @@ RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" - - if use debug; then - strip-flags - append-flags -ggdb - fi - sed -i "/^set MODULE_PATH/s:modules:/usr/$(get_libdir)/eiwic:" sample.conf sed -i "/^load MODULE/s:$:.so:" sample.conf + epatch "${FILESDIR}"/${P}-ldflags.patch + eautoreconf } src_compile() { econf \ - $(use_enable debug vv-debug) \ - $(use_enable ipv6) \ - || die "econf failed" + $(use_enable debug vv-debug) \ + $(use_enable ipv6) emake || die "emake failed" } diff --git a/net-irc/eiwic/files/eiwic-1.1.3-ldflags.patch b/net-irc/eiwic/files/eiwic-1.1.3-ldflags.patch new file mode 100644 index 000000000000..a15ef017fede --- /dev/null +++ b/net-irc/eiwic/files/eiwic-1.1.3-ldflags.patch @@ -0,0 +1,13 @@ +--- modules/Makefile.am.orig 2009-02-09 17:47:30.237896861 +0100 ++++ modules/Makefile.am 2009-02-09 17:47:48.382983848 +0100 +@@ -15,8 +15,8 @@ + echo "$@ skipped."; \ + else :;\ + if test $(patsubst %.so,%.c, $@) -nt $@ -o ! -e $@; then \ +- echo "@CC@ @CFLAGS@ $(DEFS) $(INCLUDES) `$(ADD_BUILD_FLAGS)` -shared -fPIC $(patsubst %.so,%.c, $@) -o $@"; \ +- @CC@ @CFLAGS@ $(DEFS) $(INCLUDES) `$(ADD_BUILD_FLAGS)` -shared -fPIC $(patsubst %.so,%.c, $@) -o $@; \ ++ echo "@CC@ @CFLAGS@ $(LDFLAGS) $(DEFS) $(INCLUDES) `$(ADD_BUILD_FLAGS)` -shared -fPIC $(patsubst %.so,%.c, $@) -o $@"; \ ++ @CC@ @CFLAGS@ $(LDFLAGS) $(DEFS) $(INCLUDES) `$(ADD_BUILD_FLAGS)` -shared -fPIC $(patsubst %.so,%.c, $@) -o $@; \ + else :; fi; \ + fi + -- cgit v1.2.3-65-gdbad