/[gentoo-x86]/sci-physics/lhapdf/lhapdf-5.8.6.ebuild
Gentoo

Contents of /sci-physics/lhapdf/lhapdf-5.8.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Aug 6 20:53:59 2011 UTC (3 years, 1 month ago) by bicatali
Branch: MAIN
Version bump

(Portage version: 2.1.10.10/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/lhapdf-5.8.5.ebuild,v 1.1 2011/03/09 20:03:41 bicatali Exp $
4
5 EAPI=4
6
7 inherit versionator eutils
8
9 MY_PV=$(get_version_component_range 1-3 ${PV})
10 MY_PF=${PN}-${MY_PV}
11
12 DESCRIPTION="Les Houches Parton Density Function unified library"
13 HOMEPAGE="http://projects.hepforge.org/lhapdf/"
14 SRC_URI="http://www.hepforge.org/archive/lhapdf/${MY_PF}.tar.gz
15 test? (
16 http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/cteq61.LHgrid
17 http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/MRST2004nlo.LHgrid
18 http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/cteq61.LHpdf
19 octave? ( http://svn.hepforge.org/${PN}/pdfsets/tags/${MY_PV}/cteq5l.LHgrid ) )"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86"
24 IUSE="cxx doc examples octave python static-libs test"
25 REQUIRED_USE="octave? ( cxx )"
26 RDEPEND="octave? ( sci-mathematics/octave )"
27 DEPEND="${RDEPEND}
28 doc? ( app-doc/doxygen[latex] )
29 python? ( dev-lang/swig )"
30
31 S="${WORKDIR}/${MY_PF}"
32
33 src_prepare() {
34 # do not create extra latex docs
35 sed -i \
36 -e 's/GENERATE_LATEX.*=YES/GENERATE_LATEX = NO/g' \
37 ccwrap/Doxyfile || die
38 }
39
40 src_configure() {
41 econf \
42 $(use_enable cxx ccwrap) \
43 $(use_enable cxx old-ccwrap ) \
44 $(use_enable doc doxygen) \
45 $(use_enable octave) \
46 $(use_enable python pyext) \
47 $(use_enable static-libs static)
48 }
49
50 src_test() {
51 # need to make a bogus link for octave test
52 ln -s "${DISTDIR}" PDFsets
53 LHAPATH="${PWD}/PDFsets" \
54 LD_LIBRARY_PATH="${PWD}/lib/.libs:${LD_LIBRARY_PATH}" \
55 emake check
56 }
57
58 src_install() {
59 default
60 # leftover
61 rm -rf "${ED}"/usr/share/${PN}/doc || die
62 use doc && use cxx && dohtml -r ccwrap/doxy/html/*
63 if use examples; then
64 insinto /usr/share/doc/${PF}/examples
65 doins examples/*.{f,cc}
66 fi
67 }
68
69 pkg_postinst() {
70 elog "To install data files, you have to run as root:"
71 elog "lhapdf-getdata --dest=${EROOT}usr/share/lhapdf/PDFsets --all"
72 }

  ViewVC Help
Powered by ViewVC 1.1.20