--- /usr/portage/sci-chemistry/ghemical/ghemical-2.01.ebuild 2006-07-09 09:47:18.000000000 +0200 +++ /usr/local/portage/sci-chemistry/ghemical/ghemical-2.01-r1.ebuild 2006-12-21 17:48:18.000000000 +0100 @@ -2,7 +2,7 @@ # 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 $ -inherit eutils +inherit eutils flag-o-matic toolchain-funcs DESCRIPTION="Chemical quantum mechanics and molecular mechanics" HOMEPAGE="http://bioinformatics.org/ghemical/" @@ -24,6 +24,14 @@ DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.15" +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-views.patch + cp "${FILESDIR}"/ugly_main_hack.cpp . +} + + pkg_setup() { # Only works with xorg-x11 GL implementation GL_IMPLEM=$(eselect opengl show) @@ -31,6 +39,9 @@ } 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 \ $(use_enable toolbar shortcuts) \ $(use_enable openbabel) \