1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils toolchain-funcs
10 DESCRIPTION="A C++ physics analysis tool for function minimization"
11 HOMEPAGE="http://seal.web.cern.ch/seal/MathLibs/Minuit2/html/index.html"
13 SRC_URI="http://seal.web.cern.ch/seal/MathLibs/${MY_PN}/${MY_PN}-${PV}.tar.gz
14 doc? ( http://seal.cern.ch/documents/minuit/mnusersguide.pdf
15 http://seal.cern.ch/documents/minuit/mntutorial.pdf )"
19 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
20 IUSE="doc openmp static-libs"
21 DEPEND="doc? ( app-doc/doxygen )"
24 S="${WORKDIR}/${MY_PN}-${PV}"
27 epatch "${FILESDIR}"/${PN}-5.27.02-asneeded.patch
28 rm config/m4/ac_openmp.m4
29 AT_M4DIR="config/m4" eautoreconf
34 $(use_enable static-libs static) \
48 ./${t} || die "${t} failed"
53 emake DESTDIR="${D}" install
54 insinto /usr/share/doc/${PF}/MnTutorial
55 doins test/MnTutorial/*.{h,cxx}
57 dodoc "${DISTDIR}"/mn*.pdf