aboutsummaryrefslogtreecommitdiff
blob: 1b54b5b3f17a87da4a9198d1881bad2f43b1ee97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit eutils

DESCRIPTION="gfan 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/gfan${PV}plus.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
DEPEND="dev-libs/gmp[-nocxx]
		sci-libs/cddlib"

IUSE=""

RDEPEND="${DEPEND}"

S="${WORKDIR}/gfan${PV}plus/"

src_prepare () {
	sed -i "s/-O2/${CXXFLAGS}/" Makefile
}

src_install() {
	dobin gfan || die "emake install failed"
}