View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/sci-chemistry/ghemical/ghemical-2.01.ebuild (-1 / +12 lines)
 Lines 2-8    Link Here 
# 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/"
 Lines 24-29    Link Here 
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)
 Lines 31-36    Link Here 
}
}
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) \