blob: 8ded61352495156daa1db7abb5a8be390438f9b2 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/topcom/topcom-0.17.4.ebuild,v 1.1 2012/07/12 06:19:23 jlec Exp $
EAPI=4
AUTOTOOLS_AUTORECONF=yes
inherit autotools-utils flag-o-matic
DESCRIPTION="Computing Triangulations Of Point Configurations and Oriented Matroids"
HOMEPAGE="http://www.rambau.wm.uni-bayreuth.de/TOPCOM/"
SRC_URI="
http://www.uni-bayreuth.de/departments/wirtschaftsmathematik/rambau/Software/TOPCOM-${PV}.tar.gz
doc? ( http://www.rambau.wm.uni-bayreuth.de/TOPCOM/TOPCOM-manual.html )"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="doc examples static-libs"
DEPEND="
>=dev-libs/gmp-5.0.5
>=sci-libs/cddlib-094f"
RDEPEND="${DEPEND}"
S="${WORKDIR}"/TOPCOM-${PV}
PATCHES=(
"${FILESDIR}"/${P}-no-internal-libs.patch
"${FILESDIR}"/${P}-buildsystem.patch
)
src_prepare () {
# ... and link in tree versions:
append-libs -lgmp -lgmpxx -lcddgmp
find external -delete || die
mv configure.{in,ac} || die
autotools-utils_src_prepare
}
src_install () {
autotools-utils_src_install
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*a
use doc && dohtml "${DISTDIR}"/TOPCOM-manual.html
use examples && dodoc -r "${S}"/examples
}
|