blob: 19e3b56bb06f5d8b8972cf798c8cbfbde09636d1 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=1
WX_GTK_VER="2.8"
inherit eutils portability wxwidgets
MY_P="QuteMol.V${PV}"
DESCRIPTION="High quality molecular visualization system that exploits GPU capabilites through OpenGL shaders"
HOMEPAGE="http://qutemol.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.src.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="media-libs/giflib
media-libs/libpng
virtual/opengl
virtual/glu
media-libs/glew
x11-libs/wxGTK:2.8
sci-libs/vcg"
DEPEND="${RDEPEND}"
S=${WORKDIR}/src
pkg_setup() {
check_wxuse opengl
}
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${P}.patch
# Needs to build files from vcg
mkdir -p "${S}"/vcg/wrap/gui/ || die
cp /usr/include/vcg/wrap/gui/*.cpp "${S}"/vcg/wrap/gui/ || die
}
src_compile() {
emake \
OPTFLAGS="${CFLAGS}" \
|| die
}
src_install() {
dobin qutemol || die
dodir /usr/share/${PN} || die
treecopy image presets "${D}"/usr/share/${PN}/ || die
}
|