blob: 10d018292e9386561512329a87578be7761a1ecc (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit autotools eutils python-any-r1 versionator
MY_PN="autodocksuite"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A suite of automated docking tools"
HOMEPAGE="http://autodock.scripps.edu/"
SRC_URI="http://autodock.scripps.edu/downloads/autodock-registration/tars/dist$(delete_all_version_separators)/${MY_P}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples openmp test"
RDEPEND=""
DEPEND="test? ( ${PYTHON_DEPS} )"
S="${WORKDIR}/src"
PATCHES=(
"${FILESDIR}"/${P}-buildsystem.patch
)
src_prepare() {
local i
epatch ${PATCHES[@]}
sed \
-e "s/\tcsh/\tsh/" \
-i auto{dock,grid}/Makefile.am || die
for i in autodock autogrid; do
pushd $i &>/dev/null
eautoreconf
popd &>/dev/null
done
}
src_configure() {
local i
for i in autodock autogrid; do
pushd $i &>/dev/null
econf $(use_enable openmp)
popd &>/dev/null
done
}
src_compile() {
emake -C autodock
emake -C autogrid
}
src_test() {
elog "Testing autodock"
cd "${S}/autodock/Tests" || die
cp ../*.dat . || die
${EPYTHON} test_autodock4.py || die "AutoDock tests failed."
einfo "Testing autogrid"
cd "${S}/autogrid/Tests" || die
${EPYTHON} test_autogrid4.py || die "AutoGrid tests failed."
}
src_install() {
if use openmp; then
newbin autodock/autodock4.omp ${PN}4
dobin autogrid/autogrid4
else
dobin autodock/autodock4 autogrid/autogrid4
fi
insinto /usr/share/${PN}
doins -r \
autodock/{AD4_parameters.dat,AD4_PARM99.dat} \
$(usex examples "autodoc/EXAMPLES" "")
DOCS=(
RELEASENOTES
autodock/{AUTHORS,README}
autodock/USERGUIDES/AutoDock4.{0,1,2}_UserGuide.doc
autodock/USERGUIDES/AutoDock4.2_UserGuide.pdf
)
einstalldocs
}
pkg_postinst() {
elog "The AutoDock development team requests all users to fill out the"
elog "registration form at:"
echo
elog "\thttp://autodock.scripps.edu/downloads/autodock-registration"
echo
elog "The number of unique users of AutoDock is used by Prof. Arthur J."
elog "Olson and the Scripps Research Institude to support grant"
elog "applications."
}
|