blob: 478f52fa015240b2a3f9df76208afe9e699e845e (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-sci/rasmol/rasmol-2.7.1.1.ebuild,v 1.3 2004/04/19 12:20:49 phosphan Exp $
MY_P="RasMol_${PV}"
DESCRIPTION="Free program that displays molecular structure."
HOMEPAGE="http://www.openrasmol.org/"
KEYWORDS="x86"
SLOT="0"
IUSE=""
LICENSE="public-domain"
DEPEND="virtual/x11"
SRC_URI="http://www.bernstein-plus-sons.com/software/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd ${S}
# Hack required for build
cd src
ln -s ../doc
gunzip doc/rasmol.1.gz
}
src_compile() {
cd src
xmkmf || die "xmkmf failed"
make DEPTHDEF=-DEIGHTBIT CC=${CC} \
CDEBUGFLAGS="${CFLAGS}" \
|| die "8-bit make failed"
mv rasmol rasmol.8
make clean
make DEPTHDEF=-DSIXTEENBIT CC=${CC} \
CDEBUGFLAGS="${CFLAGS}" \
|| die "16-bit make failed"
mv rasmol rasmol.16
make clean
make DEPTHDEF=-DTHIRTYTWOBIT CC=${CC} \
CDEBUGFLAGS="${CFLAGS}" \
|| die "32-bit make failed"
mv rasmol rasmol.32
make clean
}
src_install () {
newbin ${FILESDIR}/rasmol.sh.debian rasmol
insinto /usr/lib/${PN}
doins doc/rasmol.hlp
exeinto /usr/lib/${PN}
doexe src/rasmol.{8,16,32}
dodoc INSTALL PROJECTS README TODO doc/*.{ps,pdf}.gz doc/rasmol.txt.gz
doman doc/rasmol.1
insinto /usr/lib/${PN}/databases
doins data/*
}
|