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