|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ghemical/ghemical-2.01.ebuild,v 1.4 2006/07/09 07:08:10 dberkholz Exp $ | # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ghemical/ghemical-2.01.ebuild,v 1.4 2006/07/09 07:08:10 dberkholz Exp $ |
| |
inherit eutils |
inherit eutils flag-o-matic toolchain-funcs |
| |
DESCRIPTION="Chemical quantum mechanics and molecular mechanics" | DESCRIPTION="Chemical quantum mechanics and molecular mechanics" |
HOMEPAGE="http://bioinformatics.org/ghemical/" | HOMEPAGE="http://bioinformatics.org/ghemical/" |
|
|
DEPEND="${RDEPEND} | DEPEND="${RDEPEND} |
>=dev-util/pkgconfig-0.15" | >=dev-util/pkgconfig-0.15" |
| |
|
src_unpack() { |
|
unpack ${A} |
|
cd "${S}" |
|
epatch "${FILESDIR}"/${P}-views.patch |
|
cp "${FILESDIR}"/ugly_main_hack.cpp . |
|
} |
|
|
|
|
pkg_setup() { | pkg_setup() { |
# Only works with xorg-x11 GL implementation | # Only works with xorg-x11 GL implementation |
GL_IMPLEM=$(eselect opengl show) | GL_IMPLEM=$(eselect opengl show) |
|
|
} | } |
| |
src_compile() { | src_compile() { |
|
$(tc-getCC) ${CFLAGS} -c ugly_main_hack.cpp |
|
cp ugly_main_hack.o src |
|
append-ldflags -lglut -lf2c -lm ugly_main_hack.o |
econf \ | econf \ |
$(use_enable toolbar shortcuts) \ | $(use_enable toolbar shortcuts) \ |
$(use_enable openbabel) \ | $(use_enable openbabel) \ |