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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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.05.ebuild,v 1.2 2011/06/08 15:15:24 jer 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_configure() {
27 # use MeV over GeV and mm over cm
28 local length_conf="MM"
29 use cm && length_conf="CM"
30 local momentum_conf="MEV"
31 use gev && momentum_conf="GEV"
32 econf \
33 --with-length=${length_conf} \
34 --with-momentum=${momentum_conf} \
35 $(use_enable static-libs static)
36 }
37
38 src_compile() {
39 emake
40 if use doc; then
41 cd doc
42 doxygen doxygen.conf || die "doc building failed"
43 fi
44 }
45
46 src_install() {
47 emake \
48 DESTDIR="${ED}" \
49 INSTALLDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
50 doc_installdir="${EPREFIX}/usr/share/doc/${PF}" \
51 install
52
53 insinto /usr/share/doc/${PF}
54 if use doc; then
55 doins -r doc/html doc/*.pdf || die
56 else
57 rm -f "${ED}"/usr/share/doc/${PF}/*pdf
58 fi
59 use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples
60 }

  ViewVC Help
Powered by ViewVC 1.1.20