diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2010-08-09 17:26:54 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2010-08-09 17:26:54 +0000 |
commit | b207a861b1b8896e77d3046fd84cdd67aee856f9 (patch) | |
tree | a29e1595a7ecb10b2f8d6116e8fc373ae48f5a9a /sci-biology | |
parent | EAPI=2; respect LDFLAGS (bug #331793) (diff) | |
download | gentoo-2-b207a861b1b8896e77d3046fd84cdd67aee856f9.tar.gz gentoo-2-b207a861b1b8896e77d3046fd84cdd67aee856f9.tar.bz2 gentoo-2-b207a861b1b8896e77d3046fd84cdd67aee856f9.zip |
Respect user FLAGS wrt bug 331799. Thanks to Diego for report. Drop perl from src_prepare.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology')
-rw-r--r-- | sci-biology/prank/ChangeLog | 6 | ||||
-rw-r--r-- | sci-biology/prank/prank-100701.ebuild | 15 |
2 files changed, 16 insertions, 5 deletions
diff --git a/sci-biology/prank/ChangeLog b/sci-biology/prank/ChangeLog index dda9967c6100..1236f6930b9e 100644 --- a/sci-biology/prank/ChangeLog +++ b/sci-biology/prank/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-biology/prank # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/prank/ChangeLog,v 1.6 2010/07/15 15:56:45 weaver Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/prank/ChangeLog,v 1.7 2010/08/09 17:26:54 xarthisius Exp $ + + 09 Aug 2010; Kacper Kowalik <xarthisius@gentoo.org> prank-100701.ebuild: + Respect user FLAGS wrt bug 331799. Thanks to Diego for report. Drop perl + from src_prepare. *prank-100701 (15 Jul 2010) diff --git a/sci-biology/prank/prank-100701.ebuild b/sci-biology/prank/prank-100701.ebuild index c59e83fd1526..f8a32ec5de8f 100644 --- a/sci-biology/prank/prank-100701.ebuild +++ b/sci-biology/prank/prank-100701.ebuild @@ -1,9 +1,11 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/prank/prank-100701.ebuild,v 1.1 2010/07/15 15:56:45 weaver Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/prank/prank-100701.ebuild,v 1.2 2010/08/09 17:26:54 xarthisius Exp $ EAPI="2" +inherit toolchain-funcs + DESCRIPTION="Probabilistic Alignment Kit" HOMEPAGE="http://www.ebi.ac.uk/goldman-srv/prank/prank/" SRC_URI="http://www.ebi.ac.uk/goldman-srv/prank/src/prank/prank.src.${PV}.tgz" @@ -13,12 +15,17 @@ SLOT="0" IUSE="" KEYWORDS="~amd64 ~x86" -S="${WORKDIR}/${PN}" +S=${WORKDIR}/${PN} src_prepare() { - perl -i -pe 's/(CC|CXX|CFLAGS|CXXFLAGS)\s*=/#/' "${S}/Makefile" || die + sed -i -e "s/\$(LINK)/& \$(LDFLAGS)/" Makefile || die +} + +src_compile() { + emake LINK="$(tc-getCXX)" CFLAGS="${CFLAGS}" \ + CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" || die } src_install() { - dobin prank || die "dobin failed" + dobin prank || die } |