diff options
Diffstat (limited to 'sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild')
-rw-r--r-- | sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild b/sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild deleted file mode 100644 index 2c23f377418d..000000000000 --- a/sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild,v 1.2 2010/05/20 20:18:14 jlec Exp $ - -EAPI="3" - -PYTHON_DEPEND="python? 2" -SUPPORT_PYTHON_ABIS="1" - -inherit eutils distutils - -DESCRIPTION="Interconverts file formats used in molecular modeling" -HOMEPAGE="http://openbabel.sourceforge.net/" -SRC_URI="mirror://sourceforge/openbabel/${P}.tar.gz" - -KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -SLOT="0" -LICENSE="GPL-2" -IUSE="doc python swig" - -RDEPEND=" - >=dev-libs/libxml2-2.6.5 - !sci-chemistry/babel - sys-libs/zlib" - -DEPEND="${RDEPEND} - dev-lang/perl - >=dev-libs/boost-1.35.0 - python? ( swig? ( >=dev-lang/swig-1.3.38 ) ) - doc? ( app-doc/doxygen )" - -RESTRICT_PYTHON_ABIS="3.*" - -src_prepare() { - epatch "${FILESDIR}/${PN}-2.2.0-doxyfile.patch" - if use python; then - cd "${S}/scripts/python" - distutils_src_prepare - fi -} - -src_configure() { - local swigconf="" - if use swig; then - swigconf="--enable-maintainer-mode" - fi - econf ${swigconf} || die "econf failed" -} - -src_compile() { - emake || die "emake failed" - if use doc ; then - emake docs || die "make docs failed" - fi - if use swig; then - emake scripts/python/openbabel_python.cpp \ - || die "Failed to make SWIG python bindings" - fi - if use python; then - cd "${S}/scripts/python" - distutils_src_compile - fi -} - -src_test() { - emake check || die "make check failed" -} - -src_install() { - dodoc AUTHORS ChangeLog NEWS README THANKS doc/{*.inc,README*,*.inc,*.mol2} || die - dohtml doc/{*.html,*.png} || die - if use doc ; then - insinto /usr/share/doc/${PF}/API/html - doins API/html/* || die - fi - emake DESTDIR="${D}" install || die "make install failed" - # Now to install the Python bindings if necessary - if use python; then - cd "${S}/scripts/python" - distutils_src_install - if use doc; then - docinto python - dodoc README || die - docinto python/html - dodoc *.html || die - fi - fi -} |