/[gentoo-x86]/sci-libs/minuit/minuit-5.20.00.ebuild
Gentoo

Contents of /sci-libs/minuit/minuit-5.20.00.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Dec 4 22:41:48 2009 UTC (10 years, 7 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Removed as needed patch, seems to be bugyy and not needed (included in recent autoconf?)
(Portage version: 2.2_rc55/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/minuit-5.20.00.ebuild,v 1.1 2008/07/03 10:16:31 bicatali Exp $
4
5 inherit eutils
6
7 MY_PN=Minuit2
8
9 DESCRIPTION="A C++ physics analysis tool for function minimization"
10 HOMEPAGE="http://seal.web.cern.ch/seal/MathLibs/Minuit2/html/index.html"
11
12 SRC_URI="http://seal.web.cern.ch/seal/MathLibs/${MY_PN}/${MY_PN}-${PV}.tar.gz
13 doc? ( http://seal.cern.ch/documents/minuit/mnusersguide.pdf
14 http://seal.cern.ch/documents/minuit/mntutorial.pdf )"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~x86 ~amd64"
19 IUSE="doc"
20 DEPEND="doc? ( app-doc/doxygen )"
21 RDEPEND=""
22
23 S="${WORKDIR}/${MY_PN}-${PV}"
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28 epatch "${FILESDIR}"/${P}-gcc43.patch
29 }
30
31 src_compile() {
32 econf || die "econf failed"
33 emake || die "emake failed"
34 if use doc; then
35 emake docs || die "emake docs failed"
36 fi
37 }
38
39 src_test() {
40 emake check || die "emake check failed"
41 # make check only compiles the tests. run them
42 for d in test/Mn*; do
43 cd "${S}"/${d}
44 for t in test_*; do
45 ./${t} || die "${t} failed"
46 done
47 done
48 }
49
50 src_install() {
51 emake DESTDIR="${D}" install || die "emake install failed"
52 insinto /usr/share/doc/${PF}/MnTutorial
53 doins test/MnTutorial/*.{h,cxx}
54 if use doc; then
55 insinto /usr/share/doc/${PF}
56 doins "${DISTDIR}"/mn*.pdf || die "doins failed"
57 dohtml -r doc/html/* || die "dohtml failed"
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20