Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/minuit: ChangeLog minuit-5.22.00.ebuild
Date: Fri, 23 Jan 2009 14:11:24
Message-Id: E1LQMkk-0000ce-4E@stork.gentoo.org
1 bicatali 09/01/23 14:11:22
2
3 Modified: ChangeLog
4 Added: minuit-5.22.00.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.8 sci-libs/minuit/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/minuit/ChangeLog?rev=1.8&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/minuit/ChangeLog?rev=1.8&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/minuit/ChangeLog?r1=1.7&r2=1.8
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-libs/minuit/ChangeLog,v
19 retrieving revision 1.7
20 retrieving revision 1.8
21 diff -u -r1.7 -r1.8
22 --- ChangeLog 3 Jul 2008 10:16:31 -0000 1.7
23 +++ ChangeLog 23 Jan 2009 14:11:22 -0000 1.8
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sci-libs/minuit
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/ChangeLog,v 1.7 2008/07/03 10:16:31 bicatali Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/ChangeLog,v 1.8 2009/01/23 14:11:22 bicatali Exp $
30 +
31 +*minuit-5.22.00 (23 Jan 2009)
32 +
33 + 23 Jan 2009; Sébastien Fabbro <bicatali@g.o>
34 + +files/minuit-5.22.00-as-needed.patch, +minuit-5.22.00.ebuild:
35 + Version bump
36
37 *minuit-5.20.00 (03 Jul 2008)
38
39
40
41
42 1.1 sci-libs/minuit/minuit-5.22.00.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/minuit/minuit-5.22.00.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/minuit/minuit-5.22.00.ebuild?rev=1.1&content-type=text/plain
46
47 Index: minuit-5.22.00.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/minuit-5.22.00.ebuild,v 1.1 2009/01/23 14:11:22 bicatali Exp $
52
53 EAPI=2
54 inherit eutils toolchain-funcs flag-o-matic autotools
55
56 MY_PN=Minuit2
57
58 DESCRIPTION="A C++ physics analysis tool for function minimization"
59 HOMEPAGE="http://seal.web.cern.ch/seal/MathLibs/Minuit2/html/index.html"
60
61 SRC_URI="http://seal.web.cern.ch/seal/MathLibs/${MY_PN}/${MY_PN}-${PV}.tar.gz
62 doc? ( http://seal.cern.ch/documents/minuit/mnusersguide.pdf
63 http://seal.cern.ch/documents/minuit/mntutorial.pdf )"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~x86 ~amd64"
68 IUSE="doc openmp"
69 DEPEND="doc? ( app-doc/doxygen )"
70 RDEPEND=""
71
72 S="${WORKDIR}/${MY_PN}-${PV}"
73
74 pkg_setup() {
75 if use openmp && [[ $(tc-getCXX)$ == *g++* ]]; then
76 if built_with_use sys-devel/gcc openmp; then
77 append-ldflags -lgomp
78 else
79 ewarn "You are using gcc built without openmp"
80 ewarn "Switch CXX to an OpenMP capable compiler"
81 die "Need openmp"
82 fi
83 fi
84 }
85
86 src_prepare() {
87 epatch "${FILESDIR}"/${P}-as-needed.patch
88 AT_M4DIR="config/m4" eautoreconf
89 }
90
91 src_compile() {
92 emake || die "emake failed"
93 if use doc; then
94 emake docs || die "emake docs failed"
95 fi
96 }
97
98 src_test() {
99 emake check || die "emake check failed"
100 # make check only compiles the tests. run them
101 for d in test/Mn*; do
102 cd "${S}"/${d}
103 for t in test_*; do
104 ./${t} || die "${t} failed"
105 done
106 done
107 }
108
109 src_install() {
110 emake DESTDIR="${D}" install || die "emake install failed"
111 insinto /usr/share/doc/${PF}/MnTutorial
112 doins test/MnTutorial/*.{h,cxx}
113 if use doc; then
114 insinto /usr/share/doc/${PF}
115 doins "${DISTDIR}"/mn*.pdf || die "doins failed"
116 dohtml -r doc/html/* || die "dohtml failed"
117 fi
118 }