blob: 7ab0ce669a6a5de1da28c54d134a324f0e840228 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/msms-bin/msms-bin-2.6.1-r1.ebuild,v 1.4 2010/10/30 15:01:28 jlec Exp $
EAPI=3
DESCRIPTION="MSMS allows to compute very efficiently triangulations of Solvent Excluded Surfaces"
HOMEPAGE="http://mgl.scripps.edu/people/sanner/html/msms_home.html"
SRC_URI="
amd64? ( msms_i86_64Linux2_2.6.1.tar.gz )
x86? ( msms_i86Linux2_2.6.1.tar.gz )
"
LICENSE="MSMS"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
RESTRICT="fetch"
S="${WORKDIR}"
QA_DT_HASH="${EROOT#/}opt/bin"
pkg_nofetch() {
einfo "Please download ${A} from ${HOMEPAGE} and place it to ${DISTDIR}"
}
src_install() {
doman msms.1 || die
dodoc README msms.html ReleaseNotes || die
exeinto /opt/bin
if use amd64; then
newexe ${PN%-bin}.x86_64Linux2.${PV} msms || die
elif use x86; then
newexe ${PN%-bin}.i86Linux2.${PV} msms || die
fi
insinto /usr/share/${PN}/
doins atmtypenumbers || die
sed \
-e 's:nawk:awk:g' \
-e "s:./atmtypenumbers:${EPREFIX}/usr/share/${PN}/atmtypenumbers:g" \
-i pdb_to_xyz* || die
dobin pdb_to_xyz* || die
}
|