You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
12 years ago
|
|
||
8 years ago
|
inherit flag-o-matic
|
||
12 years ago
|
|
||
|
DESCRIPTION="Computing Triangulations Of Point Configurations and Oriented Matroids"
|
||
|
HOMEPAGE="http://www.rambau.wm.uni-bayreuth.de/TOPCOM/"
|
||
|
SRC_URI="
|
||
8 years ago
|
http://www.rambau.wm.uni-bayreuth.de/Software/TOPCOM-${PV}.tar.gz
|
||
12 years ago
|
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="
|
||
8 years ago
|
dev-libs/gmp:0
|
||
12 years ago
|
>=sci-libs/cddlib-094f"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-buildsystem.patch
|
||
8 years ago
|
)
|
||
12 years ago
|
|
||
5 years ago
|
src_prepare() {
|
||
12 years ago
|
# ... and link in tree versions:
|
||
|
append-libs -lgmp -lgmpxx -lcddgmp
|
||
|
|
||
|
find external -delete || die
|
||
|
|
||
8 years ago
|
default
|
||
12 years ago
|
}
|
||
|
|
||
5 years ago
|
src_install() {
|
||
8 years ago
|
default
|
||
12 years ago
|
|
||
|
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*a
|
||
|
|
||
|
use examples && dodoc -r "${S}"/examples
|
||
10 years ago
|
|
||
3 years ago
|
docinto html
|
||
8 years ago
|
use doc && dodoc "${DISTDIR}"/TOPCOM-manual.html
|
||
|
|
||
10 years ago
|
mv "${ED}"/usr/bin/cube "${ED}"/usr/bin/topcom_cube || die
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "Due to a file collision with media-libs/lib3ds the helper"
|
||
|
elog "'cube' has been installed as topcom_cube (see bug #547030)."
|
||
12 years ago
|
}
|