1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A C++ physics analysis tool for function minimization"
9 HOMEPAGE="https://seal.web.cern.ch/seal/snapshot/work-packages/mathlibs/minuit/"
11 http://www.cern.ch/mathlibs/sw/${PV//./_}/${PN^}2/${PN^}2-5.34.14.tar.gz -> ${P}.tar.gz
13 http://seal.cern.ch/documents/minuit/mnusersguide.pdf
14 http://seal.cern.ch/documents/minuit/mntutorial.pdf
19 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
20 IUSE="doc openmp static-libs"
22 DEPEND="doc? ( app-doc/doxygen )"
25 S="${WORKDIR}/${PN^}2-${PV}"
27 PATCHES=( "${FILESDIR}"/${PN}-5.27.02-asneeded.patch )
31 rm config/m4/ac_openmp.m4 || die
32 mv configure.{in,ac} || die
34 AT_M4DIR="config/m4" eautoreconf
39 $(use_enable static-libs static) \
51 cd test/MnTutorial || die
54 ./${t} || die "${t} failed"
61 find doc/html \( -iname '*.map' -o -iname '*.md5' \) -delete || die
62 HTML_DOCS=( doc/html/. )
63 dodoc "${DISTDIR}"/mn{usersguide,tutorial}.pdf
68 dodoc test/MnTutorial/*.{h,cxx}
69 docompress -x /usr/share/doc/${PF}/examples
71 if ! use static-libs; then
72 find "${D}" -name '*.la' -delete || die