aboutsummaryrefslogtreecommitdiff
blob: 63b01978a0f95ae4a3b2d70f9e5644b4bee1a164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils multilib fortran

DEB_PV="${PV}"
DEB_PR="7"

DESCRIPTION="CERN's Physics Analysis Workstation data analysis program"
HOMEPAGE="http://wwwasd.web.cern.ch/wwwasd/paw/index.html"
LICENSE="GPL-2 LGPL-2"
SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${DEB_PV}.orig.tar.gz
	mirror://debian/pool/main/p/${PN}/${PN}_${DEB_PV}-${DEB_PR}.diff.gz"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="=sci-physics/cernlib-2005*"

S=${WORKDIR}/${PN}-${DEB_PV}.orig

FORTRAN="g77"

src_unpack() {
	unpack ${A}
	epatch ${PN}_${DEB_PV}-${DEB_PR}.diff || die "epatch failed"
	cd "${S}"
	cp debian/add-ons/Makefile .
	# fix some path stuff and collision for comis.h, already installed by cernlib
	sed -i \
		-e "s:/usr/local:/usr:g" \
		-e '/comis.h/d' \
		Makefile

	einfo "Applying Debian patches"
	make patch &> /dev/null || die "make patch failed"
}


src_compile() {
	make || die "make failed"
}

src_install() {
	make DESTDIR="${D}" install || die "make install failed"
	cd "${S}"/debian
	docinto debian
	dodoc changelog README.* deadpool.txt copyright
	docinto debian/add-ons
	dodoc add-ons/README
}