1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools toolchain-funcs
8 DESCRIPTION="Symbolic Manipulation System"
9 HOMEPAGE="https://www.nikhef.nl/~form/"
10 SRC_URI="https://github.com/vermaseren/${PN}/releases/download/v${PV}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="devref doc doxygen gmp mpi threads zlib"
18 gmp? ( dev-libs/gmp:0= )
20 zlib? ( sys-libs/zlib )"
22 devref? ( dev-texlive/texlive-latex )
23 doc? ( dev-texlive/texlive-latex )
24 doxygen? ( app-doc/doxygen )"
27 sed -i 's/LINKFLAGS = -s/LINKFLAGS =/' sources/Makefile.am || die
36 --disable-static-link \
39 $(use_enable mpi parform ) \
40 $(use_enable threads threaded ) \
45 LDFLAGS="${LDFLAGS}" \
46 CXXFLAGS="${CXXFLAGS}"
52 pushd doc/devref > /dev/null || die "doc/devref does not exist"
57 pushd doc/manual > /dev/null || die "doc/manual does not exist"
62 pushd doc/doxygen > /dev/null || die "doc/doxygen does not exist"
71 insinto /usr/share/doc/${PF}
72 doins doc/devref/devref.pdf
75 insinto /usr/share/doc/${PF}
76 doins doc/manual/manual.pdf
79 dohtml -r doc/doxygen/html/*