Gentoo Archives: gentoo-commits

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