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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 18 16:45:55 2011 UTC (8 years, 9 months ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop old. Whitespace.

(Portage version: 2.2.0_alpha16/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.01.ebuild,v 1.1 2010/08/12 16:32:42 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 RDEPEND=""
19 DEPEND="${RDEPEND}
20 doc? ( app-doc/doxygen )"
21
22 S="${WORKDIR}/${MYP}"
23
24 src_configure() {
25 # use MeV over GeV and mm over cm
26 local length_conf="MM"
27 use cm && length_conf="CM"
28 local momentum_conf="MEV"
29 use gev && momentum_conf="GEV"
30 econf \
31 --with-length=${length_conf} \
32 --with-momentum=${momentum_conf}
33 }
34
35 src_compile() {
36 emake || die "emake failed"
37 if use doc; then
38 cd doc
39 doxygen doxygen.conf || die "doc building failed"
40 fi
41 }
42
43 src_install() {
44 emake \
45 DESTDIR="${D}" \
46 INSTALLDIR=/usr/share/doc/${PF}/examples \
47 doc_installdir=/usr/share/doc/${PF} \
48 install || die "emake install failed"
49
50 dodoc README AUTHORS ChangeLog
51 insinto /usr/share/doc/${PF}
52 if use doc; then
53 doins -r doc/html doc/*.pdf || die
54 else
55 rm -f "${D}"/usr/share/doc/${PF}/*pdf
56 fi
57 use examples || rm -rf "${D}"/usr/share/doc/${PF}/examples
58 }

  ViewVC Help
Powered by ViewVC 1.1.20