# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/babel/babel-1.6-r1.ebuild,v 1.1 2008/10/19 14:53:11 markusle Exp $ inherit eutils DESCRIPTION="Babel is a program to interconvert file formats used in molecular modeling." SRC_URI="http://smog.com/chem/babel/files/${P}.tar.Z" HOMEPAGE="http://smog.com/chem/babel/" KEYWORDS="~x86 ~ppc ~sparc ~amd64" SLOT="0" LICENSE="as-is" IUSE="" #Doesn't really seem to depend on anything (?) DEPEND="!sci-chemistry/openbabel" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-gcc32.diff epatch "${FILESDIR}"/${P}-makefile.patch } src_compile() { CC=$(tc-getCC) emake || die "emake failed" } src_install () { make DESTDIR="${D}"/usr/bin install || die insinto /usr/share/${PN} doins *.lis || die "Failed to install *.lis files" doenvd "${FILESDIR}"/10babel || die "doenvd failed" dodoc README.1ST || die "dodoc failed" }