diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-03-26 15:52:07 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-03-26 15:52:07 +0000 |
commit | 0973bbe548e662e86228cef920738caa24db86bd (patch) | |
tree | 724f8401828668b835f3a66cf03f5afc17cb42b8 /sci-chemistry | |
parent | Depend on virtual/ffmpeg instead of media-video/ffmpeg. (diff) | |
download | historical-0973bbe548e662e86228cef920738caa24db86bd.tar.gz historical-0973bbe548e662e86228cef920738caa24db86bd.tar.bz2 historical-0973bbe548e662e86228cef920738caa24db86bd.zip |
Perl Bindings for openbabel, writing by rei4dan, #212212
Package-Manager: portage-2.2.0_alpha28/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/openbabel-perl/ChangeLog | 10 | ||||
-rw-r--r-- | sci-chemistry/openbabel-perl/Manifest | 15 | ||||
-rw-r--r-- | sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.0-makefile.patch | 28 | ||||
-rw-r--r-- | sci-chemistry/openbabel-perl/metadata.xml | 12 | ||||
-rw-r--r-- | sci-chemistry/openbabel-perl/openbabel-perl-2.3.0.ebuild | 68 | ||||
-rw-r--r-- | sci-chemistry/openbabel/Manifest | 10 |
6 files changed, 138 insertions, 5 deletions
diff --git a/sci-chemistry/openbabel-perl/ChangeLog b/sci-chemistry/openbabel-perl/ChangeLog new file mode 100644 index 000000000000..08d09c143f48 --- /dev/null +++ b/sci-chemistry/openbabel-perl/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-chemistry/openbabel-perl +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-perl/ChangeLog,v 1.1 2011/03/26 15:52:07 jlec Exp $ + +*openbabel-perl-2.3.0 (26 Mar 2011) + + 26 Mar 2011; Justin Lecher <jlec@gentoo.org> +openbabel-perl-2.3.0.ebuild, + +files/openbabel-perl-2.3.0-makefile.patch, +metadata.xml: + Perl Bindings for openbabel, writing by rei4dan, #212212 + diff --git a/sci-chemistry/openbabel-perl/Manifest b/sci-chemistry/openbabel-perl/Manifest new file mode 100644 index 000000000000..89a4c8d809b0 --- /dev/null +++ b/sci-chemistry/openbabel-perl/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX openbabel-perl-2.3.0-makefile.patch 1765 RMD160 debf4cd445a8d997beb5686c57ce5723e4ed547d SHA1 7947bd8046523bbb87b471308874fd709b0d5b91 SHA256 07e7d4a02fe656ca74ea4bb9e05388010e5a2f1200d7a8ef688b87edf90d1359 +DIST openbabel-2.3.0.tar.gz 14321281 RMD160 96dafa3c2aca544f79e08b5617ab0da845c28a16 SHA1 408a4bddb7f052fd89c57ea51b4204b721856b16 SHA256 6dadcb256d83b1f2e616fa1853dd1afadb23550a20d1c118b406231a09f861fb +EBUILD openbabel-perl-2.3.0.ebuild 1307 RMD160 d5d2ad3593aeedb9a134c28176d22ee7337d057d SHA1 7673ea0ae65424d49dcbb7911c9b041b8d0916d5 SHA256 73be0e69efbce1111db514b27d521fb3f255771f4f77b5143f77c3f2e411e4c9 +MISC ChangeLog 462 RMD160 5acedaed6c6b19b15d00c1e3763b263922045088 SHA1 207b810eebdbdd8ed6c87d109c043d5e21f99fbf SHA256 09912a856edc6896896e6b8753cb63cd93a637e0264a09737021ac031c6cfab8 +MISC metadata.xml 547 RMD160 685c790d772d3d340cc6506f9ddb0157f0bb1ee0 SHA1 621e3849da03363d9daf831344d275f0116dd95b SHA256 9ab03099df4d364cf5a858fe8127a0069cebe1bab7bf696ed8723c025048b6e6 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iEYEARECAAYFAk2OC6wACgkQgAnW8HDreRYkAwCfeerE2nm+PewlQiYZGcY60CDU +n1QAmwZcIjy9jBz/72ul8HIknU4ITFdo +=OEcH +-----END PGP SIGNATURE----- diff --git a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.0-makefile.patch b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.0-makefile.patch new file mode 100644 index 000000000000..034b6090777c --- /dev/null +++ b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.0-makefile.patch @@ -0,0 +1,28 @@ + scripts/CMakeLists.txt | 2 +- + scripts/perl/Makefile.PL | 1 + + 2 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt +index bf2527b..3c45111 100644 +--- a/scripts/CMakeLists.txt ++++ b/scripts/CMakeLists.txt +@@ -223,7 +223,7 @@ if (DO_PERL_BINDINGS) + COMMAND ${CMAKE_COMMAND} -E copy ${openbabel_SOURCE_DIR}/scripts/perl/Makefile.PL ${openbabel_BINARY_DIR}/scripts/perl + COMMAND ${CMAKE_COMMAND} -E copy ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm ${openbabel_BINARY_DIR}/scripts/perl + COMMAND ${CMAKE_COMMAND} -E copy ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp ${openbabel_BINARY_DIR}/scripts/perl +- COMMAND PERL5LIB=${openbabel_SOURCE_DIR}/scripts/perl/inc SRC_DIR=${openbabel_SOURCE_DIR} OBJ_DIR=${openbabel_BINARY_DIR} ${PERL_EXECUTABLE} ${openbabel_BINARY_DIR}/scripts/perl/Makefile.PL ${PERL_PREFIX_TEXT} ++ COMMAND PERL5LIB=${openbabel_SOURCE_DIR}/scripts/perl/inc SRC_DIR=${openbabel_SOURCE_DIR} OBJ_DIR=${openbabel_BINARY_DIR} ${PERL_EXECUTABLE} ${openbabel_BINARY_DIR}/scripts/perl/Makefile.PL INSTALLDIRS=vendor ${PERL_PREFIX_TEXT} + COMMAND PERL5LIB=${openbabel_SOURCE_DIR}/scripts/perl/inc make + DEPENDS ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp + WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts/perl +diff --git a/scripts/perl/Makefile.PL b/scripts/perl/Makefile.PL +index a3a2116..44ad27d 100644 +--- a/scripts/perl/Makefile.PL ++++ b/scripts/perl/Makefile.PL +@@ -32,5 +32,6 @@ WriteMakefile( + 'CC' => $CC, + 'LD' => '$(CC)', + 'INC' => '-I../../include -I'.$cmakesrcdir.'/include', ++ 'DESTDIR' => @ENV{"ED"}, + 'OBJECT' => 'openbabel-perl.o' + ); diff --git a/sci-chemistry/openbabel-perl/metadata.xml b/sci-chemistry/openbabel-perl/metadata.xml new file mode 100644 index 000000000000..78a71057d3ed --- /dev/null +++ b/sci-chemistry/openbabel-perl/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-chemistry</herd> +<longdescription> +OpenBabel is a chemical toolbox designed to speak the many languages of +chemical data. It's an open, collaborative project allowing anyone to +search, convert, analyze, or store data from molecular modeling, chemistry, +solid-state materials, biochemistry, or related areas. This package enables +to access OpenBabel library from Python programs. +</longdescription> +</pkgmetadata> diff --git a/sci-chemistry/openbabel-perl/openbabel-perl-2.3.0.ebuild b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.0.ebuild new file mode 100644 index 000000000000..41f94e0ea36c --- /dev/null +++ b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-perl/openbabel-perl-2.3.0.ebuild,v 1.1 2011/03/26 15:52:07 jlec Exp $ + +EAPI="3" + +inherit cmake-utils eutils perl-module + +DESCRIPTION="Perl bindings for OpenBabel" +HOMEPAGE="http://openbabel.sourceforge.net/" +SRC_URI="mirror://sourceforge/openbabel/openbabel-${PV}.tar.gz" + +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +RDEPEND=" + dev-lang/perl + ~sci-chemistry/openbabel-${PV}" +DEPEND="${RDEPEND} + =dev-lang/swig-2.0.1 + dev-util/cmake" + +S="${WORKDIR}/openbabel-${PV}" + +src_prepare() { + epatch "${FILESDIR}/${P}-makefile.patch" +} + +src_configure() { + local mycmakeargs="-DPERL_BINDINGS=ON" + mycmakeargs="${mycmakeargs} + -DRUN_SWIG=ON" + cmake-utils_src_configure +} + +src_compile() { + cd "${WORKDIR}/${P}_build/scripts" + perl-module_src_prep + perl-module_src_compile +} + +src_test() { + cd "${WORKDIR}/${P}_build/scripts" + emake test || die "make test failed" +} + +src_install() { + cd "${WORKDIR}/${P}_build/scripts" + 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 +} diff --git a/sci-chemistry/openbabel/Manifest b/sci-chemistry/openbabel/Manifest index 0f8eab0bd3a5..4ec21729f852 100644 --- a/sci-chemistry/openbabel/Manifest +++ b/sci-chemistry/openbabel/Manifest @@ -6,13 +6,13 @@ AUX openbabel-2.3.0-test_lib_path.patch 637 RMD160 08d27b2de2aa7c323808373d5874d DIST openbabel-2.2.3.tar.gz 6624028 RMD160 4234baf9773aa6f918bb3fa5a25cab5f657f857e SHA1 e396b27551a106e001ca6c953181657a0a53f43f SHA256 eabc8bdbd68431f441b6b40adde0861b2e99750efd21bbb4870ee0a233feae46 DIST openbabel-2.3.0.tar.gz 14321281 RMD160 96dafa3c2aca544f79e08b5617ab0da845c28a16 SHA1 408a4bddb7f052fd89c57ea51b4204b721856b16 SHA256 6dadcb256d83b1f2e616fa1853dd1afadb23550a20d1c118b406231a09f861fb EBUILD openbabel-2.2.3.ebuild 2150 RMD160 66fec659e0082dcecf1facd29defb3c443219aef SHA1 fafcc1825e11d4fb3419a095536944cee1c92bf9 SHA256 ef0c0a8fa67d92f0c78b4c5749da5fa73566f95d20e9eae11fb65aeaeab6f66b -EBUILD openbabel-2.3.0.ebuild 1485 RMD160 47f942e48706e99da87fca138366a2cff9575127 SHA1 28a3c6e1cfd84a478e76cf96e417eda0487ad5cf SHA256 8b9fc0efc30de7a5a96ff92a170fddd5de5937d1fe58f653d864931855d6ffe0 -MISC ChangeLog 7675 RMD160 01ed354939aeecedfd4bfdcc49883bf5b5417af8 SHA1 97f68e72506846a331786389aebda95136643d25 SHA256 1e1fb88299d9a5a60a3d6218d449ef3aa5825a0b13cf635c2f9bc31ee46724a8 +EBUILD openbabel-2.3.0.ebuild 1581 RMD160 83fe4a1ce226efef985edd775928be30724b402b SHA1 372f1c27fbf22244f1b953d82e0a7cbab455ccd6 SHA256 fa42db514f3774b43bf5c2d46b42d3f0164c5906cdb4bee67dd0e2a28c35ffc4 +MISC ChangeLog 7773 RMD160 c5ec4cb99a36435931aec44eded8a829e208fc45 SHA1 65887829a158a998414cf176edf267a24dd1acfd SHA256 1b6c9addb6e407bc56767bed2db706167070b26d8259e2d86ed0817ca267894c MISC metadata.xml 574 RMD160 de480e8ffc0e8c12f3e3d7254daddcf93c8aeb35 SHA1 ff5f154d3514a400db3424496fe9066587f6a731 SHA256 b8fa09ae4d94de3b0ba7233976cfe754060c06a43e583954126cac14193bb07e -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk2OBroACgkQgAnW8HDreRYAJQCfRS3n7Hj6/O3pGSbinhIMCEQM -xAgAn327psHd4ek8TireFijbxG3dMuNA -=PPzL +iEYEARECAAYFAk2ODDoACgkQgAnW8HDreRa33wCeLw8rDpt3zyAuJgVifOqaMGsd +AM8AoI+crak/GYpune4i14bYp3Xz8ADV +=LmUd -----END PGP SIGNATURE----- |