/[gentoo-x86]/sci-physics/hepmc/hepmc-2.06.06.ebuild
Gentoo

Contents of /sci-physics/hepmc/hepmc-2.06.06.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 12 11:40:15 2012 UTC (7 years, 5 months ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.0_alpha103/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/hepmc/hepmc-2.06.06.ebuild,v 1.1 2011/12/17 16:55:13 bicatali Exp $
4
5 EAPI=4
6
7 inherit eutils
8
9 MYP=HepMC-${PV}
10
11 DESCRIPTION="Event Record for Monte Carlo Generators"
12 HOMEPAGE="https://savannah.cern.ch/projects/hepmc/"
13 SRC_URI="http://lcgapp.cern.ch/project/simu/HepMC/download/${MYP}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="doc examples gev cm static-libs"
19
20 RDEPEND=""
21 DEPEND="${RDEPEND}
22 doc? ( app-doc/doxygen )"
23
24 S="${WORKDIR}/${MYP}"
25
26 src_prepare() {
27 sed -i \
28 -e 's/2\.06\.05/2\.06\.06/g' \
29 test/test*.dat test/test*.output || die
30 }
31
32 src_configure() {
33 # use MeV over GeV and mm over cm
34 local length_conf="MM"
35 use cm && length_conf="CM"
36 local momentum_conf="MEV"
37 use gev && momentum_conf="GEV"
38 econf \
39 --with-length=${length_conf} \
40 --with-momentum=${momentum_conf} \
41 $(use_enable static-libs static)
42 }
43
44 src_compile() {
45 emake
46 if use doc; then
47 cd doc
48 doxygen doxygen.conf || die "doc building failed"
49 fi
50 }
51
52 src_install() {
53 emake \
54 DESTDIR="${ED}" \
55 INSTALLDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
56 doc_installdir="${EPREFIX}/usr/share/doc/${PF}" \
57 install
58
59 insinto /usr/share/doc/${PF}
60 if use doc; then
61 doins -r doc/html doc/*.pdf
62 else
63 rm -f "${ED}"/usr/share/doc/${PF}/*pdf
64 fi
65 use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples
66 }

  ViewVC Help
Powered by ViewVC 1.1.20