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-physics/lhapdf: ChangeLog lhapdf-5.8.7.ebuild lhapdf-5.8.5.ebuild lhapdf-5.8.4-r1.ebuild
Date: Mon, 27 Feb 2012 02:35:32
Message-Id: 20120227023517.2B6472004C@flycatcher.gentoo.org
1 bicatali 12/02/27 02:35:17
2
3 Modified: ChangeLog
4 Added: lhapdf-5.8.7.ebuild
5 Removed: lhapdf-5.8.5.ebuild lhapdf-5.8.4-r1.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.1.10.44/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.19 sci-physics/lhapdf/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/ChangeLog?rev=1.19&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/ChangeLog?rev=1.19&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/ChangeLog?r1=1.18&r2=1.19
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v
21 retrieving revision 1.18
22 retrieving revision 1.19
23 diff -u -r1.18 -r1.19
24 --- ChangeLog 6 Aug 2011 20:53:59 -0000 1.18
25 +++ ChangeLog 27 Feb 2012 02:35:17 -0000 1.19
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sci-physics/lhapdf
28 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v 1.18 2011/08/06 20:53:59 bicatali Exp $
30 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v 1.19 2012/02/27 02:35:17 bicatali Exp $
32 +
33 +*lhapdf-5.8.7 (27 Feb 2012)
34 +
35 + 27 Feb 2012; Sébastien Fabbro <bicatali@g.o> -lhapdf-5.8.4-r1.ebuild,
36 + -lhapdf-5.8.5.ebuild, +lhapdf-5.8.7.ebuild:
37 + Version bump
38
39 *lhapdf-5.8.6 (06 Aug 2011)
40
41
42
43
44 1.1 sci-physics/lhapdf/lhapdf-5.8.7.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/lhapdf-5.8.7.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/lhapdf-5.8.7.ebuild?rev=1.1&content-type=text/plain
48
49 Index: lhapdf-5.8.7.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/lhapdf-5.8.7.ebuild,v 1.1 2012/02/27 02:35:17 bicatali Exp $
54
55 EAPI=4
56
57 inherit versionator eutils
58
59 MY_PV=$(get_version_component_range 1-3 ${PV})
60 MY_PF=${PN}-${MY_PV}
61
62 DESCRIPTION="Les Houches Parton Density Function unified library"
63 HOMEPAGE="http://projects.hepforge.org/lhapdf/"
64 SRC_URI="http://www.hepforge.org/archive/lhapdf/${MY_PF}.tar.gz
65 test? (
66 http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/cteq61.LHgrid
67 http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/MRST2004nlo.LHgrid
68 http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/cteq61.LHpdf
69 octave? ( http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/cteq5l.LHgrid ) )"
70
71 LICENSE="GPL-2"
72 SLOT="0"
73 KEYWORDS="~amd64 ~x86"
74 IUSE="cxx doc examples octave python static-libs test"
75 REQUIRED_USE="octave? ( cxx )"
76 RDEPEND="octave? ( sci-mathematics/octave )"
77 DEPEND="${RDEPEND}
78 doc? ( app-doc/doxygen[latex] )
79 python? ( dev-lang/swig )"
80
81 S="${WORKDIR}/${MY_PF}"
82
83 src_prepare() {
84 # do not create extra latex docs
85 sed -i \
86 -e 's/GENERATE_LATEX.*=YES/GENERATE_LATEX = NO/g' \
87 ccwrap/Doxyfile || die
88 }
89
90 src_configure() {
91 econf \
92 $(use_enable cxx ccwrap) \
93 $(use_enable cxx old-ccwrap ) \
94 $(use_enable doc doxygen) \
95 $(use_enable octave) \
96 $(use_enable python pyext) \
97 $(use_enable static-libs static)
98 }
99
100 src_test() {
101 # need to make a bogus link for octave test
102 ln -s "${DISTDIR}" PDFsets
103 LHAPATH="${PWD}/PDFsets" \
104 LD_LIBRARY_PATH="${PWD}/lib/.libs:${LD_LIBRARY_PATH}" \
105 emake check
106 }
107
108 src_install() {
109 default
110 # leftover
111 rm -rf "${ED}"/usr/share/${PN}/doc || die
112 use doc && use cxx && dohtml -r ccwrap/doxy/html/*
113 if use examples; then
114 insinto /usr/share/doc/${PF}/examples
115 doins examples/*.{f,cc}
116 fi
117 }
118
119 pkg_postinst() {
120 elog "To install data files, you have to run as root:"
121 elog "lhapdf-getdata --dest=${EROOT}usr/share/lhapdf/PDFsets --all"
122 }