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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Jan 8 03:38:33 2010 UTC (9 years, 9 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Version bump and skip the buggy tests in the case when MeV and cm are chosen units
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.04.00.ebuild,v 1.6 2009/05/05 19:37:24 fauli Exp $
4
5 MYP=HepMC-${PV}
6
7 DESCRIPTION="Event Record for Monte Carlo Generators"
8 HOMEPAGE="https://savannah.cern.ch/projects/hepmc/"
9 SRC_URI="http://lcgapp.cern.ch/project/simu/HepMC/download/${MYP}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ~hppa sparc x86"
14 IUSE="doc examples gev cm"
15
16 DEPEND=""
17
18 S="${WORKDIR}/${MYP}"
19
20 src_compile() {
21 # random default choice: use MeV over GeV and mm over cm
22 local length_conf="MM"
23 use cm && length_conf="CM"
24 local momentum_conf="MEV"
25 use gev && momentum_conf="GEV"
26 econf \
27 --with-length=${length_conf} \
28 --with-momentum=${momentum_conf} \
29 || die "econf failed"
30 emake || die "emake failed"
31 }
32
33 src_install() {
34 emake \
35 DESTDIR="${D}" \
36 INSTALLDIR=/usr/share/doc/${PF}/examples \
37 doc_installdir=/usr/share/doc/${PF} \
38 install || die "emake install failed"
39
40 dodoc README AUTHORS ChangeLog
41 insinto /usr/share/doc/${PF}
42 if use doc; then
43 doins -r doc/html || die
44 else
45 rm -f "${D}"/usr/share/doc/${PF}/*pdf
46 fi
47 use examples || rm -rf "${D}"/usr/share/doc/${PF}/examples
48 }

  ViewVC Help
Powered by ViewVC 1.1.20