blob: cf436323a44360b7093b425acef3284688a42046 (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molscript/molscript-2.1.2.ebuild,v 1.4 2007/02/20 01:46:09 je_fro Exp $
inherit toolchain-funcs eutils
DESCRIPTION="Display molecular 3D structures, such as proteins, in both schematic and detailed representations."
HOMEPAGE="http://www.avatar.se/molscript/"
SRC_URI="${P}.tar.gz"
LICENSE="glut molscript"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
RESTRICT="fetch"
IUSE=""
DEPEND="media-libs/jpeg
media-libs/libpng
media-libs/gd
virtual/glut
|| ( x11-libs/libXmu
x11-libs/libXext
x11-libs/libX11 )"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/fix-makefile-shared.patch
# Provide glutbitmap.h, because freeglut doesn't have it
cp ${FILESDIR}/glutbitmap.h ${S}/clib/
# Stop an incredibly hacky include
sed -i -e 's:<../lib/glut/glutbitmap.h>:"glutbitmap.h":g' \
${S}/clib/ogl_bitmap_character.c
}
src_compile() {
# Prefix of programs it links with
export FREEWAREDIR="/usr"
ln -s Makefile.complete Makefile
# Honor CC and CFLAGS from environment;
# unfortunately a bash bug prevents us from doing typeset and
# assignment on the same line.
typeset -a args
args=( CC="$(tc-getCC)" \
COPT="${CFLAGS}" )
emake "${args[@]}" || die "emake failed"
}
src_install() {
exeinto /usr/bin
doexe molscript molauto
dohtml ${S}/doc/*.html
}
|