From 37d3e0c47d836d688910377a31708ff28e9a5008 Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Sun, 18 Mar 2012 08:25:09 +0000 Subject: Respect LDFLAGS from environment wrt #334653 by Diego Elio Pettenò MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Portage version: 2.2.0_alpha90/cvs/Linux x86_64) --- app-i18n/skkfep/ChangeLog | 8 ++++++-- app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch | 21 +++++++++++++++++++++ app-i18n/skkfep/skkfep-0.87-r1.ebuild | 20 ++++++++++---------- 3 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch (limited to 'app-i18n/skkfep') diff --git a/app-i18n/skkfep/ChangeLog b/app-i18n/skkfep/ChangeLog index 4a8c056ceae2..19b7ccca3213 100644 --- a/app-i18n/skkfep/ChangeLog +++ b/app-i18n/skkfep/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-i18n/skkfep -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/skkfep/ChangeLog,v 1.11 2011/02/14 20:46:29 armin76 Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/skkfep/ChangeLog,v 1.12 2012/03/18 08:25:09 ssuominen Exp $ + + 18 Mar 2012; Samuli Suominen skkfep-0.87-r1.ebuild, + +files/skkfep-0.87-LDFLAGS.patch: + Respect LDFLAGS from environment wrt #334653 by Diego Elio Pettenò 14 Feb 2011; Raúl Porcel skkfep-0.86c.ebuild, skkfep-0.87.ebuild, skkfep-0.87-r1.ebuild: diff --git a/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch b/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch new file mode 100644 index 000000000000..6532d000770e --- /dev/null +++ b/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch @@ -0,0 +1,21 @@ +http://bugs.gentoo.org/334653 + +--- protoMakefile ++++ protoMakefile +@@ -13,13 +13,13 @@ + ./jc -`./jc -c romkan-org.c`P romkan-org.c > romkan.c + + jc: jc.o +- $(CC) $(CFLAGS) -o jc jc.o ++ $(CC) $(LDFLAGS) $(CFLAGS) -o jc jc.o + + $(SKKFEP): $(OBJS) $(SKKOBJS) +- $(CC) $(CFLAGS) -o $(SKKFEP) $(OBJS) $(SKKOBJS) $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o $(SKKFEP) $(OBJS) $(SKKOBJS) $(LIBS) + + simpledic: $(SDICOBJS) $(SKKOBJS) +- $(CC) $(CFLAGS) -o simpledic $(SDICOBJS) $(SKKOBJS) $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o simpledic $(SDICOBJS) $(SKKOBJS) $(LIBS) + + clean: + -rm -rf $(OBJS) $(SKKOBJS) $(SDICOBJS) romkan.c diff --git a/app-i18n/skkfep/skkfep-0.87-r1.ebuild b/app-i18n/skkfep/skkfep-0.87-r1.ebuild index 52e7cb131e67..4b5c9c44d65b 100644 --- a/app-i18n/skkfep/skkfep-0.87-r1.ebuild +++ b/app-i18n/skkfep/skkfep-0.87-r1.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/skkfep/skkfep-0.87-r1.ebuild,v 1.3 2011/02/14 20:46:29 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/skkfep/skkfep-0.87-r1.ebuild,v 1.4 2012/03/18 08:25:09 ssuominen Exp $ +EAPI=4 inherit eutils toolchain-funcs DESCRIPTION="A SKK-like Japanese input method for console" @@ -13,26 +14,25 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" -RDEPEND="sys-libs/ncurses" +RDEPEND=">=sys-libs/ncurses-5.7-r7" DEPEND="${RDEPEND} >=sys-apps/sed-4 sys-apps/gawk" RDEPEND="${RDEPEND} app-i18n/skk-jisyo" -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}/${P}-gentoo.patch" +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-LDFLAGS.patch } src_compile() { - emake CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" || die + emake CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" } src_install() { - dobin skkfep escmode || die + dobin skkfep escmode doman skkfep.1 - dodoc README HISTORY TODO } -- cgit v1.2.3-65-gdbad