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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jun 6 19:58:51 2008 UTC (10 years, 10 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Added major version bump for geant-4, slotted. Thanks much to Benjamin Bennier for his work (bug #). Now geant-3 is also slotted, and got a revision bump
(Portage version: 2.1.5.4)

1 # Copyright 1999-2007 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.ebuild,v 1.1 2007/08/24 21:43:26 bicatali Exp $
4
5 DEB_PN=geant321
6 DEB_PV=${PV}.dfsg
7 DEB_PR=5
8 DEB_P=${DEB_PN}_${DEB_PV}
9
10 inherit eutils multilib fortran
11
12 DESCRIPTION="CERN's detector description and simulation Tool"
13 HOMEPAGE="http://wwwasd.web.cern.ch/wwwasd/geant/index.html"
14
15 LICENSE="GPL-2 LGPL-2 BSD"
16 SRC_URI="mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}.orig.tar.gz
17 mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.diff.gz"
18
19 KEYWORDS="~amd64 ~x86"
20 SLOT="0"
21 IUSE=""
22
23 RDEPEND="virtual/motif
24 virtual/lapack
25 dev-lang/cfortran
26 sci-physics/cernlib
27 sci-physics/paw"
28
29 DEPEND="${RDEPEND}
30 virtual/tetex
31 x11-misc/imake
32 x11-misc/makedepend"
33
34 S="${WORKDIR}/${DEB_PN}-${DEB_PV}.orig"
35
36 KEYWORDS="~amd64 ~x86"
37
38 FORTRAN="gfortran g77 ifc"
39
40 src_unpack() {
41 unpack ${A}
42 epatch ${DEB_P}-${DEB_PR}.diff
43 rm -f ${DEB_P}-${DEB_PR}.diff
44 cd "${S}"
45 cp debian/add-ons/Makefile .
46 sed -i \
47 -e 's:/usr/local:/usr:g' \
48 Makefile || "sed'ing the Makefile failed"
49
50 einfo "Applying Debian patches"
51 emake -j1 \
52 DEB_BUILD_OPTIONS="${FORTRANC} ${restrict}" \
53 patch || die "make patch failed"
54
55 # since we depend on cfortran, do not use the one from cernlib
56 # (adapted from debian/cernlib-debian.mk)
57 mv -f src/include/cfortran/cfortran.h \
58 src/include/cfortran/cfortran.h.disabled
59 # create local LaTeX cache directory
60 mkdir -p .texmf-var
61 }
62
63 src_compile() {
64 emake -j1 \
65 DEB_BUILD_OPTIONS="${FORTRANC} nostrip" \
66 || die "emake failed"
67 }
68
69 src_install() {
70 emake \
71 DEB_BUILD_OPTIONS="${FORTRANC} nostrip" \
72 DESTDIR="${D}" \
73 install || die "emake install failed"
74 cd "${S}"/debian
75 dodoc changelog README.* deadpool.txt NEWS copyright || die "dodoc failed"
76 newdoc add-ons/README README.add-ons || die "newdoc failed"
77 }

  ViewVC Help
Powered by ViewVC 1.1.20