diff options
Diffstat (limited to 'sci-mathematics/gfan/gfan-0.5.ebuild')
-rw-r--r-- | sci-mathematics/gfan/gfan-0.5.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sci-mathematics/gfan/gfan-0.5.ebuild b/sci-mathematics/gfan/gfan-0.5.ebuild new file mode 100644 index 000000000000..e08db31f7ee7 --- /dev/null +++ b/sci-mathematics/gfan/gfan-0.5.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils toolchain-funcs + +DESCRIPTION="computes Groebner fans and tropical varities" +HOMEPAGE="http://www.math.tu-berlin.de/~jensen/software/gfan/gfan.html" +SRC_URI="http://www.math.tu-berlin.de/~jensen/software/gfan/${PN}${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="" + +DEPEND="dev-libs/gmp[cxx] + sci-libs/cddlib" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}${PV}/" + +src_prepare () { + epatch "${FILESDIR}/${P}-double-declare-fix.patch" + sed -i -e "s/-O2/${CXXFLAGS}/" \ + -e "/GPROFFLAG =/d" \ + -e "s/g++/$(tc-getCXX)/" \ + -e "s/\$(CCLINKER)/& \$(LDFLAGS)/" Makefile || die +} + +src_install() { + emake PREFIX="${ED}/usr" install || die "emake install failed" +} |