blob: bd4f7a38cdeab739e6a092ceca8c2c64764d20cc (
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
|
# Copyright 1999-2013 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.6 2013/04/21 19:55:14 mgorny Exp $
EAPI=4
MY_PN="${PN%%-bin}"
MY_P="${MY_PN}_${PV}"
DESCRIPTION="Analysis of NMR spectra and Computer Aided Resonance Assignment"
SRC_URI="
http://www.cara.nmr-software.org/downloads/${MY_P}_linux.gz
http://dev.gentoo.org/~jlec/distfiles//Start1.2.cara.xz"
HOMEPAGE="http://www.nmr.ch"
LICENSE="CARA"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="lua"
RDEPEND="
amd64? (
|| (
(
media-libs/fontconfig[abi_x86_32]
media-libs/freetype[abi_x86_32]
x11-libs/libICE[abi_x86_32]
x11-libs/libSM[abi_x86_32]
x11-libs/libX11[abi_x86_32]
x11-libs/libXcursor[abi_x86_32]
x11-libs/libXext[abi_x86_32]
x11-libs/libXi[abi_x86_32]
x11-libs/libXrandr[abi_x86_32]
x11-libs/libXrender[abi_x86_32]
)
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=""
RESTRICT="mirror"
QA_PREBUILT="opt/cara/*"
S="${WORKDIR}"
src_install() {
exeinto /opt/cara
doexe ${MY_P}_linux
dosym ${MY_P}_linux /opt/cara/cara
dodoc Start1.2.cara
cat >>"${T}"/20cara<<- EOF
PATH="${EPREFIX}/opt/cara/"
EOF
doenvd "${T}"/20cara
}
|