blob: 7f9f05351f7b1268b22c6c9f900ae0fadb8faedd (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-sci/pymol/pymol-0.82.ebuild,v 1.7 2003/02/13 09:24:52 vapier Exp $
MY_PV=${PV/./_}
DESCRIPTION="A Python-extensible molecular graphics system."
SRC_URI="mirror://sourceforge/pymol/${PN}-${MY_PV}-src.tgz"
HOMEPAGE="http://pymol.sf.net"
LICENSE="PSF-2.2"
SLOT="0"
KEYWORDS="x86"
DEPEND="dev-lang/python
dev-python/pmw
dev-python/Numeric
dev-lang/tk
media-libs/libpng
sys-libs/zlib
media-libs/glut"
src_unpack() {
unpack ${A}
cd ${S}
cp setup/Rules.linux Rules.make
patch -p0 < ${FILESDIR}/${PN}-gentoo.diff || die
}
src_compile() {
CFLAGS="$CFLAGS -ffast-math -funroll-loops"
make || die
}
src_install() {
local PYMOL_PATH=/usr/lib/pymol/${PV}
dodir /usr/lib/pymol/${PV}
cp -a modules ${D}/usr/lib/pymol/${PV}
dodir /usr/bin
cat <<-EOF > ${D}/usr/bin/pymol-${PV}
#!/bin/sh
export PYMOL_PATH=/usr/lib/pymol/${PV}
export TCL_LIBRARY=/usr/lib/tcl8.3
export PYTHONPATH=/usr/lib/pymol/${PV/modules}:\${PYTHONPATH}
python /usr/lib/pymol/${PV}/modules/launch_pymol.py \$*
EOF
chmod 755 ${D}/usr/bin/pymol-${PV}
dodoc README DEVELOPERS CHANGES
dosym /usr/bin/pymol-${PV} /usr/bin/pymol
}
|