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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed May 27 14:57:09 2015 UTC (3 years, 10 months ago) by bircoph
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
no geant-3 homepage anymore

Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
(Portage version: 2.2.20/cvs/Linux i686, 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.4 2013/06/05 16:14:34 bicatali Exp $
4
5 EAPI=4
6
7 inherit eutils fortran-2
8
9 DEB_PN=geant321
10 DEB_PV=${PV}.dfsg
11 DEB_PR=9
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}.diff.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 cd "${WORKDIR}"
39 sed -i -e 's:/tmp/dp.*/cern:cern:g' ${DEB_P}-${DEB_PR}.diff || die
40 epatch ${DEB_P}-${DEB_PR}.diff
41 cd "${S}"
42 cp debian/add-ons/Makefile .
43 export DEB_BUILD_OPTIONS="$(tc-getFC) nostrip nocheck"
44 sed -i \
45 -e 's:/usr/local:/usr:g' \
46 Makefile || die "sed'ing the Makefile failed"
47
48 einfo "Applying Debian patches"
49 emake -j1 patch
50
51 # since we depend on cfortran, do not use the one from cernlib
52 rm -f src/include/cfortran/cfortran.h
53 }
54
55 src_compile() {
56 # create local LaTeX cache directory
57 VARTEXFONTS="${T}"/fonts
58 emake -j1 cernlib-indep cernlib-arch
59 }
60
61 src_test_() {
62 LD_LIBRARY_PATH="${S}"/shlib emake -j1 cernlib-test
63 }
64
65 src_install() {
66 emake DESTDIR="${D}" install
67 cd debian
68 dodoc changelog README.* deadpool.txt NEWS copyright
69 newdoc add-ons/README README.add-ons
70 }

  ViewVC Help
Powered by ViewVC 1.1.20