blob: 9d127af7511d8f5689dba942c5e8c3ed0c26d736 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/cara-bin/cara-bin-1.8.4.ebuild,v 1.2 2010/03/09 07:55:02 jlec Exp $
EAPI="3"
MY_PN="${PN%%-bin}"
MY_P="${MY_PN}_${PV}"
DESCRIPTION="An application for the analysis of NMR spectra and Computer Aided Resonance Assignment"
SRC_URI="http://www.cara.nmr-software.org/downloads/${MY_P}_linux.gz
ftp://ftp.mol.biol.ethz.ch/software/${MY_PN}/Start1.2.cara"
HOMEPAGE="www.nmr.ch"
RESTRICT="mirror"
LICENSE="CARA"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="lua"
RDEPEND="
amd64? (
app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-compat )
x86? (
media-libs/fontconfig
media-libs/freetype
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXrender
virtual/libstdc++ )
lua? ( dev-lang/lua )"
DEPEND=""
src_unpack(){
unpack ${MY_P}_linux.gz
cp "${DISTDIR}"/Start1.2.cara "${WORKDIR}"
}
src_install() {
exeinto "/opt/cara"
doexe cara_1.8.4_linux || die
dosym cara_1.8.4_linux /opt/cara/cara || die
dodoc Start1.2.cara || die
cat >>"${T}"/20cara<<- EOF
PATH="${EPREFIX}/opt/cara/"
EOF
doenvd "${T}"/20cara || die
}
|