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.
66 lines
1.4 KiB
66 lines
1.4 KiB
2 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
3 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
2 years ago
|
EAPI=8
|
||
3 years ago
|
|
||
|
inherit autotools flag-o-matic
|
||
|
|
||
2 years ago
|
MY_PV=$(ver_rs 0-2 _)
|
||
|
MY_P="${PN^^}-${MY_PV}"
|
||
|
|
||
3 years ago
|
DESCRIPTION="Computing Triangulations Of Point Configurations and Oriented Matroids"
|
||
2 years ago
|
HOMEPAGE="https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM/index.html"
|
||
3 years ago
|
SRC_URI="
|
||
2 years ago
|
https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM-Downloads/${MY_P}.tgz
|
||
|
https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM-Manual/index.html -> TOPCOM-manual.html
|
||
3 years ago
|
"
|
||
2 years ago
|
KEYWORDS="~amd64 ~riscv ~x86"
|
||
3 years ago
|
SLOT="0"
|
||
|
LICENSE="GPL-2"
|
||
3 years ago
|
IUSE="examples"
|
||
3 years ago
|
|
||
2 years ago
|
# need gmp[cxx] since we append -lgmpxx to LIBS
|
||
3 years ago
|
DEPEND="
|
||
2 years ago
|
dev-libs/gmp:0[cxx]
|
||
3 years ago
|
>=sci-libs/cddlib-094f
|
||
|
"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
PATCHES=( "${FILESDIR}/${P}-buildsystem.patch" )
|
||
3 years ago
|
|
||
3 years ago
|
HTML_DOCS=( "${DISTDIR}/TOPCOM-manual.html" )
|
||
|
|
||
|
src_prepare () {
|
||
|
default
|
||
|
|
||
|
# ... and link in tree versions:
|
||
|
append-libs -lgmp -lgmpxx -lcddgmp
|
||
|
append-cxxflags -I/usr/include/cddlib
|
||
|
|
||
|
eautoreconf
|
||
|
|
||
|
find external -delete || die
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf --disable-static
|
||
|
}
|
||
|
|
||
|
src_install () {
|
||
|
default
|
||
|
|
||
|
if use examples; then
|
||
|
docompress -x "/usr/share/doc/${PF}/examples"
|
||
|
dodoc -r examples
|
||
|
fi
|
||
|
|
||
|
mv "${ED}/usr/bin/cube" "${ED}/usr/bin/topcom_cube" || die
|
||
|
|
||
|
find "${D}" -name '*.la' -delete || 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)."
|
||
|
}
|