summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-04-17 17:52:58 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-04-17 17:52:58 +0000
commitf90f78d092614a0dcbd5638a7c075ee8c9fe2b8a (patch)
tree4f3f84be445fa176731ff7e083aad00587dd16e5 /sci-physics/paw
parentRevision bump to include new Debian patches and some ebuild cleanup (diff)
downloadhistorical-f90f78d092614a0dcbd5638a7c075ee8c9fe2b8a.tar.gz
historical-f90f78d092614a0dcbd5638a7c075ee8c9fe2b8a.tar.bz2
historical-f90f78d092614a0dcbd5638a7c075ee8c9fe2b8a.zip
Modernize to make it consistent with other cernlib ebuilds
Package-Manager: portage-2.2_rc28/cvs/Linux x86_64
Diffstat (limited to 'sci-physics/paw')
-rw-r--r--sci-physics/paw/ChangeLog5
-rw-r--r--sci-physics/paw/paw-2.14.04-r2.ebuild27
2 files changed, 13 insertions, 19 deletions
diff --git a/sci-physics/paw/ChangeLog b/sci-physics/paw/ChangeLog
index fc0a4e9bf20f..ad774ad5b39a 100644
--- a/sci-physics/paw/ChangeLog
+++ b/sci-physics/paw/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sci-physics/paw
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/paw/ChangeLog,v 1.11 2009/03/22 21:52:23 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/paw/ChangeLog,v 1.12 2009/04/17 17:52:58 bicatali Exp $
+
+ 17 Apr 2009; SĂ©bastien Fabbro <bicatali@gentoo.org> paw-2.14.04-r2:
+ Modernize to make it consistent with other cernlib ebuilds
22 Mar 2009; Jeremy Olexa <darkside@gentoo.org> paw-2.14.04-r2.ebuild:
amd64 stable, bug 245875
diff --git a/sci-physics/paw/paw-2.14.04-r2.ebuild b/sci-physics/paw/paw-2.14.04-r2.ebuild
index 6032b71c61e6..9045aceab1a7 100644
--- a/sci-physics/paw/paw-2.14.04-r2.ebuild
+++ b/sci-physics/paw/paw-2.14.04-r2.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/paw/paw-2.14.04-r2.ebuild,v 1.9 2009/03/22 21:41:34 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/paw/paw-2.14.04-r2.ebuild,v 1.10 2009/04/17 17:52:58 bicatali Exp $
-inherit eutils multilib fortran
+EAPI=2
+inherit eutils toolchain-funcs
DEB_PN=paw
DEB_PV=${PV}.dfsg.2
@@ -32,26 +33,23 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${DEB_PN}-${DEB_PV}.orig"
-FORTRAN="gfortran g77 ifc"
-
-src_unpack() {
- unpack ${A}
- epatch "${DEB_P}-${DEB_PR}".diff
-
+src_prepare() {
+ cd "${WORKDIR}"
+ epatch "${WORKDIR}/${DEB_P}-${DEB_PR}.diff"
cd "${S}"
cp debian/add-ons/Makefile .
- export DEB_BUILD_OPTIONS="${FORTRANC} nostrip nocheck"
+ export DEB_BUILD_OPTIONS="$(tc-getFC) nostrip nocheck"
# fix some path stuff and collision for comis.h,
# already installed by cernlib and replace hardcoded fortran compiler
sed -i \
-e 's:/usr/local:/usr:g' \
-e '/comis.h/d' \
- -e "s/gfortran/${FORTRANC}/g" \
+ -e "s/gfortran/$(tc-getFC)/g" \
Makefile || die "sed'ing the Makefile failed"
einfo "Applying Debian patches"
- emake -j1 patch || die "make patch failed"
+ emake -j1 patch || die "applying patch failed"
# since we depend on cfortran, do not use the one from cernlib
rm -f src/include/cfortran/cfortran.h
@@ -68,10 +66,3 @@ src_install() {
dodoc changelog README.* deadpool.txt copyright || die "dodoc failed"
newdoc add-ons/README README.add-ons || die "newdoc failed"
}
-
-pkg_postinst() {
- if use amd64; then
- elog "Please see the possible warnings in using ${PN} on 64 bits:"
- elog "${ROOT}/usr/share/doc/${PF}/README.*64*"
- fi
-}