blob: 5d84dfb185c91d80d74d78cc7685294cb001ac79 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/autodock/autodock-4.0.1-r1.ebuild,v 1.2 2008/08/05 05:48:56 dberkholz Exp $
inherit eutils
MY_PN="autodocksuite"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A suite of automated docking tools"
HOMEPAGE="http://autodock.scripps.edu/"
SRC_URI="mirror://gentoo/${MY_PN}/${MY_P}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/${MY_P}/src"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PV}-gcc-4.3.patch
}
src_compile() {
cd autodock/
econf || die "AutoDock econf failed."
emake || die "AutoDock emake failed."
cd ..
cd autogrid/
econf || die "AutoGrid econf failed."
emake || die "AutoGrid emake failed."
cd ..
}
src_install() {
cd "${S}/autodock"
dobin autodock4 || die "Failed to install autodock binary."
dodoc AUTHORS ChangeLog NEWS README || die \
"Failed to install documentation."
insinto "/usr/share/autodock"
doins AD4_parameters.dat AD4_PARM99.dat || die \
"Failed to install shared files."
cd "${S}/autogrid"
dobin autogrid4 || die "Failed to install autogrid binary."
}
src_test() {
cd "${S}/autodock/Tests"
python test_autodock4.py || die "AutoDock tests failed."
cd "${S}/autogrid/Tests"
python test_autogrid4.py || die "AutoGrid tests failed."
}
pkg_postinst() {
echo
einfo "The AutoDock development team requests all users to fill out the"
einfo "registration form at:"
einfo
einfo "\thttp://autodock.scripps.edu/downloads/autodock-registration"
einfo
einfo "The number of unique users of AutoDock is used by Prof. Arthur J."
einfo "Olson and the Scripps Research Institude to support grant"
einfo "applications."
echo
}
|