diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2022-05-07 21:17:44 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2022-05-07 21:18:09 -0400 |
commit | e9826e895bcf12b4de14809e301d1989a12903cb (patch) | |
tree | ec0471dc923a7ec170d1d265499baed32a4a8bf9 /sci-mathematics/topcom/topcom-0.17.8-r3.ebuild | |
parent | app-xemacs/eudc: Stabilize 1.44 ALLARCHES, #843200 (diff) | |
download | gentoo-e9826e895bcf12b4de14809e301d1989a12903cb.tar.gz gentoo-e9826e895bcf12b4de14809e301d1989a12903cb.tar.bz2 gentoo-e9826e895bcf12b4de14809e301d1989a12903cb.zip |
sci-mathematics/topcom: new revision to fix gmp dependency.
We need gmp[cxx] to link with -lgmpxx.
Closes: https://bugs.gentoo.org/776883
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-mathematics/topcom/topcom-0.17.8-r3.ebuild')
-rw-r--r-- | sci-mathematics/topcom/topcom-0.17.8-r3.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/sci-mathematics/topcom/topcom-0.17.8-r3.ebuild b/sci-mathematics/topcom/topcom-0.17.8-r3.ebuild new file mode 100644 index 000000000000..a2d33b020ee2 --- /dev/null +++ b/sci-mathematics/topcom/topcom-0.17.8-r3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +MY_PV=$(ver_rs 0-2 _) +MY_P="${PN^^}-${MY_PV}" + +DESCRIPTION="Computing Triangulations Of Point Configurations and Oriented Matroids" +HOMEPAGE="https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM/index.html" +SRC_URI=" + 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 +" +KEYWORDS="~amd64 ~riscv ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="examples" + +# need gmp[cxx] since we append -lgmpxx to LIBS +DEPEND=" + dev-libs/gmp:0[cxx] + >=sci-libs/cddlib-094f +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-buildsystem.patch" ) + +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)." +} |