/[gentoo-x86]/sci-physics/geant/geant-3.21.14-r4.ebuild
Gentoo

Contents of /sci-physics/geant/geant-3.21.14-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Aug 6 20:30:29 2015 UTC (3 years, 8 months ago) by bircoph
Branch: MAIN
CVS Tags: HEAD
Update Debian patchset and EAPI for geant-3, fix copyright year for geant-4

Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 565953B95372756C)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-physics/geant/geant-3.21.14-r3.ebuild,v 1.5 2015/05/27 14:57:09 bircoph Exp $
4
5 EAPI=5
6
7 inherit eutils fortran-2
8
9 DEB_PN=geant321
10 DEB_PV=${PV}.dfsg
11 DEB_PR=11
12 DEB_P=${DEB_PN}_${DEB_PV}
13
14 DESCRIPTION="CERN's detector description and simulation Tool"
15 HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
16 SRC_URI="
17 mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}.orig.tar.gz
18 mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.debian.tar.gz"
19
20 SLOT="3"
21 LICENSE="GPL-2 LGPL-2 BSD"
22 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
23 IUSE=""
24
25 RDEPEND="
26 x11-libs/motif:0
27 dev-lang/cfortran
28 sci-physics/cernlib
29 sci-physics/paw"
30 DEPEND="${RDEPEND}
31 virtual/latex-base
32 x11-misc/imake
33 x11-misc/makedepend"
34
35 S="${WORKDIR}/${DEB_PN}-${DEB_PV}.orig"
36
37 src_prepare() {
38 mv ../debian . || die
39 sed -i -e 's:/tmp/dp.*/cern:cern:g' debian/patches/* || die
40 cp debian/add-ons/Makefile . || die
41 export DEB_BUILD_OPTIONS="$(tc-getFC) nostrip nocheck"
42 sed -i \
43 -e 's:/usr/local:${EROOT}usr:g' \
44 Makefile || die "sed'ing the Makefile failed"
45
46 einfo "Applying Debian patches"
47 emake -j1 patch
48
49 # since we depend on cfortran, do not use the one from cernlib
50 rm -f src/include/cfortran/cfortran.h
51 }
52
53 src_compile() {
54 # create local LaTeX cache directory
55 VARTEXFONTS="${T}"/fonts
56 emake -j1 cernlib-indep cernlib-arch
57 }
58
59 src_test_() {
60 LD_LIBRARY_PATH="${S}"/shlib emake -j1 cernlib-test
61 }
62
63 src_install() {
64 emake DESTDIR="${D}" install
65 cd debian
66 dodoc changelog README.* deadpool.txt NEWS copyright
67 newdoc add-ons/README README.add-ons
68 }

  ViewVC Help
Powered by ViewVC 1.1.20