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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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.01.ebuild,v 1.1 2009/02/18 11:44:11 bicatali Exp $
4
5 EAPI=2
6
7 MYP=HepMC-${PV}
8
9 DESCRIPTION="Event Record for Monte Carlo Generators"
10 HOMEPAGE="https://savannah.cern.ch/projects/hepmc/"
11 SRC_URI="http://lcgapp.cern.ch/project/simu/HepMC/download/${MYP}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
16 IUSE="doc examples gev cm"
17
18 DEPEND=""
19
20 S="${WORKDIR}/${MYP}"
21
22 src_configure() {
23 # random default choice: use MeV over GeV and mm over cm
24 local length_conf="MM"
25 use cm && length_conf="CM"
26 local momentum_conf="MEV"
27 use gev && momentum_conf="GEV"
28 econf \
29 --with-length=${length_conf} \
30 --with-momentum=${momentum_conf}
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