/[gentoo-x86]/sci-physics/heppdt/heppdt-3.04.01.ebuild
Gentoo

Contents of /sci-physics/heppdt/heppdt-3.04.01.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Aug 7 17:19:39 2012 UTC (7 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +18 -10 lines
Added static-libs flag, fixed tests when linking to shared libs, keyword amd64-linux, x86-linux

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-physics/heppdt/heppdt-3.04.01.ebuild,v 1.3 2010/05/25 21:20:38 pacho Exp $
4
5 EAPI=4
6 inherit autotools
7
8 MYP=HepPDT-${PV}
9
10 DESCRIPTION="Data about each particle from the Review of Particle Properties"
11 HOMEPAGE="http://lcgapp.cern.ch/project/simu/HepPDT/"
12 SRC_URI="${HOMEPAGE}/download/${MYP}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
17 IUSE="doc examples static-libs"
18
19 RDEPEND=""
20 DEPEND="${RDEPEND}"
21
22 S="${WORKDIR}/${MYP}"
23
24 src_prepare() {
25 # respect user flags
26 sed -i \
27 -e '/AC_SUBST(AM_CXXFLAGS)/d' \
28 configure.ac || die
29 # directories
30 sed -i \
31 -e 's:$(prefix)/data:$(datadir)/${PN}:g' \
32 data/Makefile.am || die
33 eautoreconf
34 }
35
36 src_configure() {
37 econf $(use_enable static-libs static)
38 }
39
40 src_test() {
41 LD_LIBRARY_PATH="${S}/src/HepPDT:${S}/src/HepPID" \
42 emake check MY_LD=-L SHEXT=so
43 }
44
45 src_install() {
46 default
47 use doc && mv "${ED}"usr/doc/* "${ED}"usr/share/doc/${PF}/
48 use examples && mv "${ED}"usr/examples "${ED}"usr/share/doc/${PF}/
49 rm -r "${ED}"usr/{doc,examples}
50 }

  ViewVC Help
Powered by ViewVC 1.1.20