blob: cc2fb105ab4d2bbc5d0dce4745273e3b37a4feac (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/rcsb-data/rcsb-data-1.700.ebuild,v 1.6 2009/12/13 17:37:24 flameeyes Exp $
inherit eutils
MY_PN="pdb-extract"
MY_P="${MY_PN}-v${PV}-prod-src"
DESCRIPTION="Data required to run RCSB PDB applications"
HOMEPAGE="http://sw-tools.pdb.org/apps/PDB_EXTRACT/index.html"
SRC_URI="http://sw-tools.pdb.org/apps/PDB_EXTRACT/${MY_P}.tar.gz"
LICENSE="PDB"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}
sci-chemistry/pdb-extract"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/respect-bindir.patch
sed -i \
-e "s:^\(BINDIR=\).*:\1/usr/bin:g" \
"${S}"/etc/binary.sh
}
src_compile() {
emake binary || die "make binary failed"
}
src_install() {
insinto /usr/lib/rcsb/data/binary
doins data/binary/* || die
insinto /usr/lib/rcsb/data/ascii
doins data/ascii/* || die
echo "RCSBROOT=\"/usr/lib/rcsb\"" > "${T}"/env.d
newenvd "${T}"/env.d 50validation
}
|