1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="The Parma Polyhedra Library for numerical analysis of complex systems"
7 HOMEPAGE="http://bugseng.com/products/ppl"
8 SRC_URI="http://bugseng.com/products/ppl/download/ftp/releases/${PV}/${P}.tar.xz"
11 SLOT="0/4.14" # SONAMEs
12 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~sparc-solaris"
13 IUSE="+cxx doc lpsol pch static-libs test"
15 RDEPEND=">=dev-libs/gmp-6[cxx]
16 lpsol? ( sci-mathematics/glpk )
24 ewarn "The PPL testsuite will be run."
25 ewarn "Note that this can take several hours to complete on a fast machine."
30 local interfaces=( c )
31 use cxx && interfaces+=( cxx )
33 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
35 --disable-optimization \
36 $(use_enable doc documentation) \
37 $(use_enable lpsol ppl_lpsol) \
39 $(use_enable static-libs static) \
40 --enable-interfaces="${interfaces[*]}" \
41 $(use test && echo --enable-check=quick)
45 # default src_test runs with -j1, overriding it here saves about
46 # 30 minutes and is recommended by upstream
52 use static-libs || find "${ED}"/usr -name 'libppl*.la' -delete
54 pushd "${ED}/usr/share/doc/${PF}" >/dev/null || die
57 rm -r *-html/ *.ps.gz *.pdf || die