blob: c3b43c3d0cd288d223161ad6e4f2a7172d3d1c00 (
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
72
73
74
75
76
77
78
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/rasmol/rasmol-2.7.5.ebuild,v 1.1 2010/02/03 22:35:31 jlec Exp $
EAPI="3"
inherit toolchain-funcs eutils
MY_P="RasMol_${PV}"
VERS="23Jul09"
DESCRIPTION="Molecular Graphics Visualisation Tool"
HOMEPAGE="http://www.openrasmol.org/"
SRC_URI="http://www.rasmol.org/software/${MY_P}.tar.gz"
LICENSE="|| ( GPL-2 RASLIC )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
x11-libs/cairo
x11-libs/gtk+:2
x11-libs/libXext
x11-libs/libXi
x11-libs/vte
>=x11-libs/xforms-1.0.91
dev-libs/cvector
sci-libs/cbflib
sci-libs/cqrlib
sci-libs/neartree"
DEPEND="${RDEPEND}
x11-proto/inputproto
x11-proto/xextproto
app-text/rman
x11-misc/imake"
S="${WORKDIR}/${P}-${VERS}"
src_prepare() {
cd src
use amd64 && \
mv rasmol.h rasmol_amd64_save.h && \
echo "#define _LONGLONG"|cat - rasmol_amd64_save.h > rasmol.h
mv Imakefile_base Imakefile
epatch "${FILESDIR}"/${PV}-bundled-lib.patch
sed "s:EPREFIX:${EPREFIX}:g" -i Imakefile || die
xmkmf -DGTKWIN ${myconf}|| die "xmkmf failed with ${myconf}"
epatch "${FILESDIR}"/ldflags.patch
}
src_compile() {
cd src
make clean
emake \
DEPTHDEF=-DTHIRTYTWOBIT \
CC="$(tc-getCC)" \
CDEBUGFLAGS="${CFLAGS}" \
|| die "make failed"
}
src_install () {
libdir=$(get_libdir)
insinto /usr/${libdir}/${PN}
doins doc/rasmol.hlp || die
dobin src/rasmol || die
dodoc PROJECTS {README,TODO}.txt doc/*.{ps,pdf}.gz doc/rasmol.txt.gz || die
doman doc/rasmol.1 || die
insinto /usr/${libdir}/${PN}/databases
doins data/* || die
dohtml -r *html doc/*.html html_graphics || die
}
|