diff options
author | Reinis Danne <rei4dan@gmail.com> | 2009-03-03 21:26:39 +0200 |
---|---|---|
committer | Reinis Danne <rei4dan@gmail.com> | 2009-03-03 21:26:39 +0200 |
commit | 65db609f4fe5228c07e7a3604f081c6504c138c0 (patch) | |
tree | f8c268a96dd9cdcd678d318a1f1b8fc076fde9f8 /sci-chemistry/openbabel-perl | |
parent | ccp4i: fixes for finding smartie. (diff) | |
download | sci-65db609f4fe5228c07e7a3604f081c6504c138c0.tar.gz sci-65db609f4fe5228c07e7a3604f081c6504c138c0.tar.bz2 sci-65db609f4fe5228c07e7a3604f081c6504c138c0.zip |
sci-chemistry/openbabel-perl: Version bump to 2.2.1
Diffstat (limited to 'sci-chemistry/openbabel-perl')
4 files changed, 106 insertions, 1 deletions
diff --git a/sci-chemistry/openbabel-perl/ChangeLog b/sci-chemistry/openbabel-perl/ChangeLog index 22208edf0..c6ac5a5d1 100644 --- a/sci-chemistry/openbabel-perl/ChangeLog +++ b/sci-chemistry/openbabel-perl/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*openbabel-perl-2.2.1 (03 Mar 2009) + + 03 Mar 2009; Reinis Danne <rei4dan@gmail.com> + +files/openbabel-perl-2.2.1-makefile.patch, +openbabel-perl-2.2.1.ebuild: + Version bump to 2.2.1 + 28 Feb 2009; Reinis Danne <rei4dan@gmail.com> openbabel-perl-2.2.0.ebuild: Remove untested arches diff --git a/sci-chemistry/openbabel-perl/Manifest b/sci-chemistry/openbabel-perl/Manifest index 50ec08640..7dca95144 100644 --- a/sci-chemistry/openbabel-perl/Manifest +++ b/sci-chemistry/openbabel-perl/Manifest @@ -1,5 +1,8 @@ AUX openbabel-perl-2.2.0-makefile.patch 1151 RMD160 8e46b23009c938f102874242b4539d912bc7f47e SHA1 cb5616215d3199170759c35968243bf0f9c846f5 SHA256 55f1b90d5e388401eecb56a3fdaf6b33a8eb2326a7a329605624ffd08e6ba81d +AUX openbabel-perl-2.2.1-makefile.patch 1151 RMD160 8e46b23009c938f102874242b4539d912bc7f47e SHA1 cb5616215d3199170759c35968243bf0f9c846f5 SHA256 55f1b90d5e388401eecb56a3fdaf6b33a8eb2326a7a329605624ffd08e6ba81d DIST openbabel-2.2.0.tar.gz 6127264 RMD160 ade8e65ab37278d9af3ff1b9cfb115437f52e0ea SHA1 5fdc084fb744d5dae4cd9ddbd52fe1f0c56c973b SHA256 a898b79336c7372c901bcc7e5f83db7b8e79f8e864be6a262f515b3e088bc607 +DIST openbabel-2.2.1.tar.gz 6507473 RMD160 47c6afecc1a7c847052dcb8570eee89a52416586 SHA1 736fc5b69851d72b58545c5ba8c2bbd361d64e46 SHA256 822345d70778de1d2d9afe65a659f1719b8ca300066fb1fa2f473bc97c457e80 EBUILD openbabel-perl-2.2.0.ebuild 1257 RMD160 53145c1168fc2436b3a3c0baa74d49bc3e7baa28 SHA1 3be91c33677216f1fae6f72e8971c609321beb00 SHA256 adfcf82ce55f3cc256d4fe641407f45badc0316e88e9001cce548b1a0a501982 -MISC ChangeLog 598 RMD160 a4d0f88e04c61f9dfe7162804048f18ad63b6971 SHA1 f0da73f95be9f72af7fadd56a10e6320549936ce SHA256 28a0eb9f455e5699ff0a7e896c014b0ee63de20f7d140c278caf915a3e613be3 +EBUILD openbabel-perl-2.2.1.ebuild 1243 RMD160 ed9df7509ebfcee29cc200255c24982d3f843a67 SHA1 f18f9f72a27e4ec098a6b2d9c246da9ff37e0df9 SHA256 121619ad58edfae92beefb021f230568a3d79d6842c21490d9367d0bf1ebc465 +MISC ChangeLog 784 RMD160 81b563b7434f67870fd215b99edba7653e322d5f SHA1 7915f038ee2fd64518841c0a2e983f3395f945dc SHA256 274e37f735d73376e04b82ce7fe582ac02482c31742103ae28a07bf25a9285d0 MISC metadata.xml 627 RMD160 2eed792ed60ef1e4fe0aba88690f1fc4ff93b3e5 SHA1 d1e9cc0888dfedadb394def1835b272d11d91b38 SHA256 83b3a75fd868e56866941cba2671a75decc1e099e22709b3c6e799767f1e7253 diff --git a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.2.1-makefile.patch b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.2.1-makefile.patch new file mode 100644 index 000000000..4c5d4c69b --- /dev/null +++ b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.2.1-makefile.patch @@ -0,0 +1,25 @@ +--- Makefile.PL.orig 2009-02-09 15:32:59.000000000 +0200 ++++ Makefile.PL 2009-02-09 15:49:44.000000000 +0200 +@@ -7,16 +7,15 @@ + @ENV{"LD_LIBRARY_PATH"}); + + $CC = 'g++'; +-$srcdir = '../../src'; + + # check if we're compiling in the source directory + # check first for the static, then change to dynamic if available +-$ldfrom = "\$(OBJECT) $srcdir/.libs/libopenbabel.a -lz" +- if (-r "$srcdir/.libs/libopenbabel.a") and (-s _) and (-B _); +-$ldfrom = "\$(OBJECT) -L$srcdir/.libs -lopenbabel -lz" +- if (-r "$srcdir/.libs/libopenbabel.dylib") and (-s _) and (-B _); +-$ldfrom = "\$(OBJECT) -L$srcdir/.libs -lopenbabel -lz" +- if (-r "$srcdir/.libs/libopenbabel.so") and (-s _) and (-B _); ++$ldfrom = "\$(OBJECT) /usr/lib/libopenbabel.a -lz" ++ if (-r "/usr/lib/libopenbabel.a") and (-s _) and (-B _); ++$ldfrom = "\$(OBJECT) -L/usr/lib -lopenbabel -lz" ++ if (-r "/usr/lib/libopenbabel.dylib") and (-s _) and (-B _); ++$ldfrom = "\$(OBJECT) -L/usr/lib -lopenbabel -lz" ++ if (-r "/usr/lib/libopenbabel.so") and (-s _) and (-B _); + + # See lib/ExtUtils/MakeMaker.pm for details of how to influence + # the contents of the Makefile that is written. diff --git a/sci-chemistry/openbabel-perl/openbabel-perl-2.2.1.ebuild b/sci-chemistry/openbabel-perl/openbabel-perl-2.2.1.ebuild new file mode 100644 index 000000000..b7bc51a71 --- /dev/null +++ b/sci-chemistry/openbabel-perl/openbabel-perl-2.2.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils perl-module + +DESCRIPTION="Perl bindings for OpenBabel" +HOMEPAGE="http://openbabel.sourceforge.net/" +SRC_URI="mirror://sourceforge/openbabel/openbabel-${PV}.tar.gz" + +KEYWORDS="~amd64" +SLOT="0" +LICENSE="GPL-2" +IUSE="swig" + +RDEPEND="~sci-chemistry/openbabel-${PV} + dev-lang/perl" + +DEPEND="${RDEPEND} + swig? ( >=dev-lang/swig-1.3.38 )" + +src_unpack() { + unpack ${A} + S="${WORKDIR}/openbabel-${PV}" + cd "${S}" + + econf \ + $(use_enable swig maintainer-mode) \ + --enable-static \ + || die "econf failed" + S="${S}/scripts" + cd "${S}" + if use swig ; then + emake -W openbabel-perl.i perl/openbabel_perl.cpp \ + || die "Failed to make SWIG perl bindings" + fi + S="${S}/perl" + cd "${S}" + epatch "${FILESDIR}/${P}-makefile.patch" \ + || die "Failed to apply ${P}-makefile.patch" +} + +src_compile() { + perl-module_src_prep + perl-module_src_compile +} + +src_test() { + emake test || die "make test failed" +} + +src_install() { + perl-module_src_install +} + +pkg_preinst() { + perl-module_pkg_preinst +} + +pkg_postinst() { + perl-module_pkg_postinst +} + +pkg_prerm() { + perl-module_pkg_prerm +} + +pkg_postrm() { + perl-module_pkg_postrm +} + |