Gentoo Archives: gentoo-commits

From: "Markus Dittrich (markusle)" <markusle@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-physics/lhapdf: ChangeLog lhapdf-5.6.0.ebuild lhapdf-5.5.0.ebuild
Date: Sat, 25 Oct 2008 10:54:37
Message-Id: E1Ktgmw-000851-Iz@stork.gentoo.org
1 markusle 08/10/25 10:54:34
2
3 Modified: ChangeLog
4 Added: lhapdf-5.6.0.ebuild
5 Removed: lhapdf-5.5.0.ebuild
6 Log:
7 Version bump and removed old ebuild (fixes bug #243420).
8 (Portage version: 2.2_rc12/cvs/Linux 2.6.26-SENTINEL-3 i686)
9
10 Revision Changes Path
11 1.3 sci-physics/lhapdf/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/lhapdf/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/lhapdf/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/lhapdf/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 4 Oct 2008 10:17:42 -0000 1.2
24 +++ ChangeLog 25 Oct 2008 10:54:34 -0000 1.3
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-physics/lhapdf
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v 1.2 2008/10/04 10:17:42 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v 1.3 2008/10/25 10:54:34 markusle Exp $
30 +
31 +*lhapdf-5.6.0 (25 Oct 2008)
32 +
33 + 25 Oct 2008; Markus Dittrich <markusle@g.o> -lhapdf-5.5.0.ebuild,
34 + +lhapdf-5.6.0.ebuild:
35 + Version bump and removed old ebuild (fixes bug #243420).
36
37 *lhapdf-5.5.1 (04 Oct 2008)
38
39
40
41
42 1.1 sci-physics/lhapdf/lhapdf-5.6.0.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/lhapdf/lhapdf-5.6.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/lhapdf/lhapdf-5.6.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: lhapdf-5.6.0.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/lhapdf-5.6.0.ebuild,v 1.1 2008/10/25 10:54:34 markusle Exp $
52
53 inherit eutils fortran
54
55 DESCRIPTION="Les Houches Parton Density Function unified library"
56 HOMEPAGE="http://projects.hepforge.org/lhapdf/"
57 SRC_URI="http://www.hepforge.org/archive/lhapdf/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="doc examples python"
63
64 DEPEND="doc? ( app-doc/doxygen )
65 python? ( dev-lang/swig )"
66 RDEPEND=""
67
68 pkg_setup() {
69 local err
70 if use python && ! built_with_use dev-lang/swig python; then
71 eerror "You need USE=python in dev-lang/swig for python support."
72 err="${err} python"
73 fi
74 # this is needed for formulas even with html output only
75 if use doc && ! built_with_use app-doc/doxygen latex; then
76 eerror "You need USE=latex in app-doc/doxygen for docs."
77 err="${err} latex"
78 fi
79
80 [ -z "${err}" ] || die "Unsatisfied dependencies -- needs manual fix"
81
82 FORTRAN="gfortran ifc"
83 fortran_pkg_setup
84 }
85
86 src_unpack() {
87 unpack ${A}
88 cd "${S}"
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_compile() {
96 econf \
97 $(use_enable python pyext) \
98 $(use_enable doc doxygen) \
99 || die "econf failed"
100 emake || die "emake failed"
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install || die "emake install failed"
105 dodoc README TODO AUTHORS ChangeLog
106
107 use doc && mv "${D}"/usr/share/${PN}/doc/html "${D}"/usr/share/doc/${PF}
108 rm -rf "${D}"/usr/share/${PN}/doc
109 if use examples; then
110 insinto /usr/share/doc/${PF}
111 doins -r examples || die
112 fi
113 }