blob: f1016189b98773af6ed203d4405342c210030b9a (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit autotools eutils
MYP=Herwig++-${PV}
DESCRIPTION="High-Energy Physics event generator"
HOMEPAGE="http://herwig.hepforge.org/"
SRC_URI="http://www.hepforge.org/archive/herwig/${MYP}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="fastjet"
DEPEND="dev-libs/boost
virtual/fortran
sci-libs/gsl
sci-physics/LoopTools
dev-lang/perl
=sci-physics/thepeg-1.8.3
fastjet? ( sci-physics/fastjet )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MYP}"
src_prepare() {
epatch "${FILESDIR}/${P}-looptools.patch"
find -name 'Makefile.am' -exec sed -i '1ipkgdatadir=$(datadir)/herwig++' {} \; \
|| die "changing pkgdatadir name failed"
eautoreconf
}
src_configure() {
econf \
--disable-silent-rules \
--with-boost="${EPREFIX}"/usr \
--with-thepeg="${EPREFIX}"/usr \
$(use_with fastjet fastjet "${EPREFIX}"/usr)
}
pkg_preinst () {
sed -i "s%${ED}%%g" "${ED}"/usr/share/herwig++/defaults/PDF.in || die
sed -i "s%${ED}%%g" "${ED}"/usr/share/herwig++/HerwigDefaults.rpo || die
}
|