blob: 4ba5707b13cef3f65442248655d1e5d8a86e2906 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit autotools eutils flag-o-matic
DATE="090822"
DESCRIPTION="all atom molecular simulation toolkit"
HOMEPAGE="http://www-almost.ch.cam.ac.uk/site"
#SRC_URI="http://www-almost.ch.cam.ac.uk/site/downloads/${P}.tar.gz"
## Upstream changes tarballs w/o revision bump so I host a copy
SRC_URI="http://dev.gentooexperimental.org/~jlec/distfiles/${P}-${DATE}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
## dev-libs/boost-1.3.6, once it is in the tree soft masked
## until then we use the shipped one
# Upstream has to fix its code so that it compiles with mpicxx
## Upstream only uses sys-cluster/mpich2, so we should first get this to work.
#DEPEND="mpi? ( sys-cluster/mpich2 )"
DEPEND="${RDEPEND}"
RESTRICT="mirror"
src_unpack(){
unpack ${A}
cd "${S}"
rm -rf ./include/almost/boost src/lib/iostreams
# rm -rf ./include/almost/boost ./include/almost/boost_1_30 #src/lib/iostreams
sed -e 's:boost boost_1_30::g' \
-i ./include/almost/Makefile.am
epatch "${FILESDIR}"/configure2.patch
epatch "${FILESDIR}"/Makefile.patch
sed \
-e '/include\/almost\/boost/d' \
-e '/include\/almost\/tinyxml/d' \
-i configure.in
# find include \
# -name "*.h" \
# -exec sed 's:boost_1_30:boost:g' -i '{}' \;
epatch "${FILESDIR}"/gcc-4.3.patch
eautoreconf || die "Reconfiguration failed"
}
src_compile(){
econf || die "configure failed"
emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" -j1 || \
die "make failed"
}
src_test() {
emake check || die "test failed"
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
insinto /usr/include/${PN}
doins {almost,config}.h || die "failed to install missing headers"
dodoc README NEWS TODO ChangeLog AUTHORS
}
|