# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator qt4 MY_P="${PN}_${PV}" MY_P="$(replace_all_version_separators _ ${MY_P})" DESCRIPTION="Software for molecular modelling - computer-aided drug design" HOMEPAGE="http://www.zeden.org/" SRC_URI="mirror://sourceforge/zodiac-zeden/${MY_P}_src.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RDEPEND="sci-chemistry/openbabel" DEPEND="${RDEPEND}" QT4_BUILT_WITH_USE_CHECK="opengl qt3support" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/build.patch epatch "${FILESDIR}"/gcc-4.3.patch epatch "${FILESDIR}"/openbabel-2.2.patch # It bundles openbabel headers. Use system ones. rm -rf openbabel || die } src_compile() { eqmake4 \ Zodiac.pro \ INCLUDEPATH=/usr/include/openbabel-2.0 \ || die emake || die } src_install() { dobin Zodiac || die }