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.3_p01.ebuild
Date: Mon, 05 Jul 2010 17:15:02
Message-Id: 20100705171456.71F5D2CE14@corvid.gentoo.org
1 bicatali 10/07/05 17:14:56
2
3 Modified: ChangeLog
4 Added: lhapdf-5.8.3_p01.ebuild
5 Log:
6 Version bump. Thanks Ben Bannier, bug #326623
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.12 sci-physics/lhapdf/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/ChangeLog?rev=1.12&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/ChangeLog?rev=1.12&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/ChangeLog?r1=1.11&r2=1.12
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v
19 retrieving revision 1.11
20 retrieving revision 1.12
21 diff -u -r1.11 -r1.12
22 --- ChangeLog 7 Jun 2010 15:21:11 -0000 1.11
23 +++ ChangeLog 5 Jul 2010 17:14:56 -0000 1.12
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sci-physics/lhapdf
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v 1.11 2010/06/07 15:21:11 bicatali Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v 1.12 2010/07/05 17:14:56 bicatali Exp $
29 +
30 +*lhapdf-5.8.3_p01 (05 Jul 2010)
31 +
32 + 05 Jul 2010; Sébastien Fabbro <bicatali@g.o>
33 + +lhapdf-5.8.3_p01.ebuild:
34 + Version bump. Thanks Ben Bannier, bug #326623
35
36 *lhapdf-5.8.3 (07 Jun 2010)
37
38
39
40
41 1.1 sci-physics/lhapdf/lhapdf-5.8.3_p01.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/lhapdf-5.8.3_p01.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lhapdf/lhapdf-5.8.3_p01.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lhapdf-5.8.3_p01.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-physics/lhapdf/lhapdf-5.8.3_p01.ebuild,v 1.1 2010/07/05 17:14:56 bicatali Exp $
51
52 EAPI=2
53
54 inherit versionator
55
56 MY_PV=$(get_version_component_range 1-3 ${PV})
57 MY_PF=${PN}-${MY_PV}
58
59 DESCRIPTION="Les Houches Parton Density Function unified library"
60 HOMEPAGE="http://projects.hepforge.org/lhapdf/"
61 SRC_URI="http://www.hepforge.org/archive/lhapdf/${MY_PF}.tar.gz
62 http://projects.hepforge.org/${PN}/updates-5.8.3/wrapheragrid.f
63 http://projects.hepforge.org/${PN}/updates-5.8.3/wrapheragrid-lite.f
64 test? (
65 http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/cteq61.LHgrid
66 http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/MRST2004nlo.LHgrid
67 http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/cteq61.LHpdf
68 octave? ( http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/cteq5l.LHgrid ) )"
69
70 LICENSE="GPL-2"
71 SLOT="0"
72 KEYWORDS="~amd64 ~x86"
73 IUSE="cxx doc examples octave python test"
74
75 RDEPEND="octave? ( sci-mathematics/octave )"
76 DEPEND="${RDEPEND}
77 doc? ( app-doc/doxygen[latex] )
78 python? ( dev-lang/swig )"
79
80 S="${WORKDIR}/${MY_PF}"
81
82 src_unpack() {
83 unpack ${MY_PF}.tar.gz
84 mv "${DISTDIR}"/wrapheragrid.f "${WORKDIR}/${MY_PF}"/src/wrapheragrid.f
85 mv "${DISTDIR}"/wrapheragrid-lite.f "${WORKDIR}/${MY_PF}"/src/wrapheragrid-lite.f
86 }
87
88 src_prepare() {
89 # do not create extra latex docs
90 sed -i \
91 -e 's/GENERATE_LATEX.*=YES/GENERATE_LATEX = NO/g' \
92 ccwrap/Doxyfile || die
93 }
94
95 src_configure() {
96 econf \
97 $(use_enable cxx ccwrap) \
98 $(use_enable cxx old-ccwrap ) \
99 $(use_enable python pyext) \
100 $(use_enable doc doxygen)
101 }
102
103 src_test() {
104 # need to make a bogus link for octave test
105 ln -s "${DISTDIR}" PDFsets
106 LHAPATH="${PWD}/PDFsets" \
107 LD_LIBRARY_PATH="${PWD}/lib/.libs:${LD_LIBRARY_PATH}" \
108 emake check || die "emake check failed"
109 }
110
111 src_install() {
112 emake DESTDIR="${D}" install || die "emake install failed"
113 dodoc README TODO AUTHORS ChangeLog
114
115 # leftover
116 rm -rf "${D}"/usr/share/${PN}/doc || die
117 if use doc && use cxx; then
118 # default doc install buggy
119 insinto /usr/share/doc/${PF}
120 doins -r ccwrap/doxy/html || die
121 fi
122 if use examples; then
123 insinto /usr/share/doc/${PF}/examples
124 doins examples/*.{f,cc} || die
125 fi
126 }
127
128 pkg_postinst() {
129 elog "To install data files, you have to run as root:"
130 elog "${ROOT}usr/bin/lhapdf-getdata --dest=${ROOT}usr/share/lhapdf --all"
131 }
132
133 pkg_postrm() {
134 if [ -d "${ROOT}usr/share/lhapdf" ]; then
135 ewarn "The data directory has not been removed, probably because"
136 ewarn "you still have installed data files."
137 fi
138 }