diff options
Diffstat (limited to 'dev-libs/ppl')
-rw-r--r-- | dev-libs/ppl/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/ppl/ppl-1.2-r5.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-libs/ppl/Manifest b/dev-libs/ppl/Manifest index 35634ea41fcf..1db03f3aff44 100644 --- a/dev-libs/ppl/Manifest +++ b/dev-libs/ppl/Manifest @@ -4,4 +4,5 @@ AUX fix-clang-build.patch 1546 BLAKE2B ba0557f5cb36defa21cc5afdfa8d65bda9fe2a3b8 DIST ppl-1.2-r3-disable-boeing-tests.patch 21485 BLAKE2B e68bab59710c63726f04a139e84d72b277e85625bc405c594a22c005186a2c3aae3850e17b81d38fa0231dcfd08454d488bbad2474ed810be78ef646d9c92559 SHA512 fc8dc020e493e5726167741d1548c661bac07991a982bf09ff61f593adfd2faf723886cbcb16d741db61e46530c4dddf49b6b61b67fef7d5ac15ca577c7fc46d DIST ppl-1.2.tar.xz 14136236 BLAKE2B 060b73384dac558dc8b2b0f1027ed0aa270b0adf0992c2ca1a281fa7bcdf959cba3a9e8ee29e978d12c3eee606b819075c5bcab59f4aed24fbf1c5512b5e2c36 SHA512 b509ed85fa6aedd40119bd4c980b17f33072c56c2acd923da3445b6bc80d48051cfa4c04cce96f6974711f5279c24b31cb3869f87b2eb6a2a1b30a058c809350 EBUILD ppl-1.2-r4.ebuild 1807 BLAKE2B 366052cd9d0fe920886556a93f525df1cb700cca0954ed591a447337f9d25b3f355bfb838536547c1b29f7fbf71c5afafa32d3588bfd70e66db483dd28d75146 SHA512 e2fa2d70907fc818de1b2299529f3ccf36901d760cf73f85f3430cbd1ce9d4aa611acb373b162da4001a263661b851a24badf253dfd973ea59a4eaace10bd936 +EBUILD ppl-1.2-r5.ebuild 1804 BLAKE2B a9aa62b5839fd4aec6a2a58b41612a41e1c151bd91063b0afb2920fc233031782791951b703da5466a31ed46a320588468094a9313c53ceeac46ed8601f4c085 SHA512 8ccb8c605c135d2999060292d376e0f2225686ddd0df3648f12c645388f2c2189501db2d6b60b67ad34f8fb4c24ed761dd529eb9a12425348f809f478898c838 MISC metadata.xml 890 BLAKE2B ff950fbc0699a9817b2b364e5e4d21aa8d60d40608c8e6ef322e25474c4e528573063e8f62a733e8df3312afbbd8648f5d5bd8de6aa09b1a3cae7cd46fe81a05 SHA512 32ac8e0aca7d550a2a485f6c354e0a71409a3a8c80202609b864e7ceda023d86560787e9c6d38d67276816fadb1126dbf57ff67a0acc247b2833cee85af8c79d diff --git a/dev-libs/ppl/ppl-1.2-r5.ebuild b/dev-libs/ppl/ppl-1.2-r5.ebuild new file mode 100644 index 000000000000..bb3fe88def7b --- /dev/null +++ b/dev-libs/ppl/ppl-1.2-r5.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="The Parma Polyhedra Library for numerical analysis of complex systems" +HOMEPAGE="http://bugseng.com/products/ppl" +SRC_URI="http://bugseng.com/products/ppl/download/ftp/releases/${PV}/${P}.tar.xz + https://dev.gentoo.org/~juippis/distfiles/tmp/ppl-1.2-r3-disable-boeing-tests.patch" + +LICENSE="GPL-3" +SLOT="0/4.14" # SONAMEs +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~sparc-solaris" +IUSE="cdd +cxx doc lpsol pch test" + +RDEPEND=">=dev-libs/gmp-6[cxx(+)] + lpsol? ( sci-mathematics/glpk )" +DEPEND="${RDEPEND} + app-arch/xz-utils + sys-devel/m4" + +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/disable-mipproblem2.patch" + "${FILESDIR}/disable-containsintegerpoint1.patch" + "${DISTDIR}/ppl-1.2-r3-disable-boeing-tests.patch" + "${FILESDIR}/fix-clang-build.patch" +) + +src_prepare() { + default + + # The patch should do this, but then the diff makes it run + # afoul of the Gentoo patch size limit. + rm demos/ppl_lpsol/examples/boeing[12].mps || die + + eautoreconf +} + +src_configure() { + local interfaces=( c ) + use cxx && interfaces+=( cxx ) + econf \ + --disable-debugging \ + --disable-optimization \ + $(use_enable doc documentation) \ + $(use_enable cdd ppl_lcdd) \ + $(use_enable lpsol ppl_lpsol) \ + $(use_enable pch) \ + --enable-interfaces="${interfaces[*]}" \ + $(use test && echo --enable-check=quick) +} + +src_install() { + default + find "${ED}" -type f -name '*.la' -delete || die + + pushd "${ED}/usr/share/doc/${PF}" >/dev/null || die + rm gpl* fdl* || die # Redundant license texts + rm *.ps.gz || die # Each ps.gz has a pdf counterpart + + if ! use doc ; then + rm -r *-html/ *.pdf || die + fi +} |