summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-07-21 16:55:57 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-07-21 16:55:57 +0000
commit541562a51cd4c18268cbdfa384db4d4011a5899e (patch)
tree13369fc5ce2d9a3220d55597893da900d2ef627a /sci-physics
parentRespect LDFLAGS. (diff)
downloadgentoo-2-541562a51cd4c18268cbdfa384db4d4011a5899e.tar.gz
gentoo-2-541562a51cd4c18268cbdfa384db4d4011a5899e.tar.bz2
gentoo-2-541562a51cd4c18268cbdfa384db4d4011a5899e.zip
New debian patch set. Switch to EAPI4
(Portage version: 2.1.10.7/cvs/Linux x86_64)
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/paw/ChangeLog7
-rw-r--r--sci-physics/paw/paw-2.14.04-r3.ebuild67
2 files changed, 73 insertions, 1 deletions
diff --git a/sci-physics/paw/ChangeLog b/sci-physics/paw/ChangeLog
index ab7cc056855d..a85322dbf71d 100644
--- a/sci-physics/paw/ChangeLog
+++ b/sci-physics/paw/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-physics/paw
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/paw/ChangeLog,v 1.22 2011/06/21 14:33:07 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/paw/ChangeLog,v 1.23 2011/07/21 16:55:57 bicatali Exp $
+
+*paw-2.14.04-r3 (21 Jul 2011)
+
+ 21 Jul 2011; Sébastien Fabbro <bicatali@gentoo.org> +paw-2.14.04-r3.ebuild:
+ New debian patch set. Switch to EAPI4
21 Jun 2011; Justin Lecher <jlec@gentoo.org> paw-2.14.04-r2.ebuild:
Add dependency on virtual/fortran
diff --git a/sci-physics/paw/paw-2.14.04-r3.ebuild b/sci-physics/paw/paw-2.14.04-r3.ebuild
new file mode 100644
index 000000000000..b1a9c4ca45d2
--- /dev/null
+++ b/sci-physics/paw/paw-2.14.04-r3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2011 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-r3.ebuild,v 1.1 2011/07/21 16:55:57 bicatali Exp $
+
+EAPI=4
+inherit eutils toolchain-funcs fortran-2
+
+DEB_PN=paw
+DEB_PV=${PV}.dfsg.2
+DEB_PR=7
+DEB_P=${DEB_PN}_${DEB_PV}
+
+DESCRIPTION="CERN's Physics Analysis Workstation data analysis program"
+HOMEPAGE="http://wwwasd.web.cern.ch/wwwasd/paw/index.html"
+LICENSE="GPL-2 LGPL-2 BSD"
+SRC_URI="mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}.orig.tar.gz
+ mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.debian.tar.gz"
+
+KEYWORDS="~amd64 ~hppa ~sparc ~x86"
+SLOT="0"
+IUSE=""
+
+RDEPEND="sci-physics/cernlib
+ virtual/fortran
+ x11-libs/libXaw
+ >=x11-libs/openmotif-2.3:0
+ x11-libs/xbae"
+
+DEPEND="${RDEPEND}
+ dev-lang/cfortran
+ virtual/latex-base
+ x11-misc/imake
+ x11-misc/makedepend"
+
+S="${WORKDIR}/${DEB_PN}-${DEB_PV}.orig"
+
+src_prepare() {
+ mv ../debian . && cp debian/add-ons/Makefile .
+ 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/$(tc-getFC)/g" \
+ Makefile || die "sed'ing the Makefile failed"
+
+ einfo "Applying Debian patches"
+ emake -j1 patch
+ epatch "${FILESDIR}"/${P}-glibc-2.10.patch
+ #epatch "${FILESDIR}"/${P}-missing-headers.patch
+ # since we depend on cfortran, do not use the one from cernlib
+ rm -f src/include/cfortran/cfortran.h
+}
+
+src_compile() {
+ VARTEXFONTS="${T}"/fonts
+ emake -j1 cernlib-indep cernlib-arch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ cd "${S}"/debian
+ dodoc changelog README.* deadpool.txt copyright
+ newdoc add-ons/README README.add-ons
+}