1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="The Parma Polyhedra Library for numerical analysis of complex systems"
9 HOMEPAGE="http://bugseng.com/products/ppl"
10 SRC_URI="http://bugseng.com/products/ppl/download/ftp/releases/${PV}/${P}.tar.xz"
13 SLOT="0/4.14" # SONAMEs
14 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~s390 sparc ~x86 ~amd64-linux ~sparc-solaris"
15 IUSE="cdd +cxx doc lpsol pch static-libs test"
17 RDEPEND=">=dev-libs/gmp-6[cxx]
18 lpsol? ( sci-mathematics/glpk )"
23 RESTRICT="!test? ( test )"
26 "${FILESDIR}/disable-mipproblem2.patch"
27 "${FILESDIR}/disable-containsintegerpoint1.patch"
28 "${FILESDIR}/disable-boeing-tests.patch"
34 # The patch should do this, but then the diff makes it run
35 # afoul of the Gentoo patch size limit.
36 rm demos/ppl_lpsol/examples/boeing[12].mps || die
42 local interfaces=( c )
43 use cxx && interfaces+=( cxx )
46 --disable-optimization \
47 $(use_enable doc documentation) \
48 $(use_enable cdd ppl_lcdd) \
49 $(use_enable lpsol ppl_lpsol) \
51 $(use_enable static-libs static) \
52 --enable-interfaces="${interfaces[*]}" \
53 $(use test && echo --enable-check=quick)
58 if ! use static-libs; then
59 find "${ED}"/usr -name 'libppl*.la' -delete || die
62 pushd "${ED}/usr/share/doc/${PF}" >/dev/null || die
65 rm -r *-html/ *.ps.gz *.pdf || die