aboutsummaryrefslogtreecommitdiff
blob: 1b998c678fab7ad0d31fabcd0ee944cc9471cd33 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit fortran-2 toolchain-funcs

DESCRIPTION="a general purpose molecular dynamics simulation package"
HOMEPAGE="http://www.ccp5.ac.uk/DL_POLY_CLASSIC/"
SRC_URI="http://ccpforge.cse.rl.ac.uk/gf/download/frsrelease/255/2627/dl_class_1.9.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"

DEPEND=""
RDEPEND="${DEPEND}"

S="${WORKDIR}/dl_class_1.9/source"

src_prepare() {
	cp ../build/MakeSEQ Makefile || die
}

src_compile() {
	emake -j1 FC=$(tc-getF77) FFLAGS="${FFLAGS} -c" LD="$(tc-getF77) -o" LDFLAGS="${LDFLAGS}" EXE="${PN}" seq
}

src_install() {
	newbin "${PN}" DLPOLY.Z
	dodoc ../README
	use doc && dodoc ../manual/USRMAN.pdf
}