blob: 0ea8c53c92e4f99feff933c2ecc283af15f92577 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
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_prepare(){
rm -rf ./include/almost/boost src/lib/iostreams || die
# 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 || die
epatch \
"${FILESDIR}"/configure2.patch \
"${FILESDIR}"/Makefile.patch
sed \
-e '/include\/almost\/boost/d' \
-e '/include\/almost\/tinyxml/d' \
-i configure.in || die
# find include \
# -name "*.h" \
# -exec sed 's:boost_1_30:boost:g' -i '{}' \;
epatch "${FILESDIR}"/gcc-4.3.patch
eautoreconf
}
src_compile(){
emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" -j1
}
src_install() {
default
insinto /usr/include/${PN}
doins {almost,config}.h
}
|