summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-12-06 17:18:39 +0000
committerJustin Lecher <jlec@gentoo.org>2012-12-06 17:18:39 +0000
commitbc82ad889071582b4ca52cc293d0ecdf965e58c2 (patch)
tree58e91da063f00a296bc23f422a2e60ebaffbe6d3
parentsci-chemistry/openbabel-python: Version Bump prepared by Reinis Danne, #439434 (diff)
downloadhistorical-bc82ad889071582b4ca52cc293d0ecdf965e58c2.tar.gz
historical-bc82ad889071582b4ca52cc293d0ecdf965e58c2.tar.bz2
historical-bc82ad889071582b4ca52cc293d0ecdf965e58c2.zip
sci-chemistry/openbabel-perl: Version Bump prepared by Reinis Danne, #439434
Package-Manager: portage-2.2.0_alpha144/cvs/Linux x86_64 Manifest-Sign-Key: 0x70EB7916
-rw-r--r--sci-chemistry/openbabel-perl/ChangeLog9
-rw-r--r--sci-chemistry/openbabel-perl/Manifest32
-rw-r--r--sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-bindings_only.patch108
-rw-r--r--sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-trunk_cmake.patch41
-rw-r--r--sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild65
5 files changed, 240 insertions, 15 deletions
diff --git a/sci-chemistry/openbabel-perl/ChangeLog b/sci-chemistry/openbabel-perl/ChangeLog
index 4945e248a76d..95869b98bac5 100644
--- a/sci-chemistry/openbabel-perl/ChangeLog
+++ b/sci-chemistry/openbabel-perl/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-chemistry/openbabel-perl
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-perl/ChangeLog,v 1.5 2012/03/04 10:30:40 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-perl/ChangeLog,v 1.6 2012/12/06 17:18:38 jlec Exp $
+
+*openbabel-perl-2.3.2 (06 Dec 2012)
+
+ 06 Dec 2012; Justin Lecher <jlec@gentoo.org> +openbabel-perl-2.3.2.ebuild,
+ +files/openbabel-perl-2.3.2-bindings_only.patch,
+ +files/openbabel-perl-2.3.2-trunk_cmake.patch:
+ Version Bump prepared by Reinis Danne, #439434
*openbabel-perl-2.3.1 (04 Mar 2012)
diff --git a/sci-chemistry/openbabel-perl/Manifest b/sci-chemistry/openbabel-perl/Manifest
index d447a965a7e3..f623bf3eb87e 100644
--- a/sci-chemistry/openbabel-perl/Manifest
+++ b/sci-chemistry/openbabel-perl/Manifest
@@ -1,19 +1,23 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
-AUX openbabel-perl-2.3.0-makefile.patch 1764 RMD160 609901472d3d38f327ad48d418f71d316eba8f4c SHA1 8ec10cdb1d74986603f5d18f72134f9238f9e2ba SHA256 cae86d9500cbbc8598719e19bad2b39d0a0c05c3bc9b105cfa3a7aeade393300
-AUX openbabel-perl-2.3.0-swig.patch 887 RMD160 5fa3e9f6ee70c4f7ec542840cdf861a7b6b8acd5 SHA1 eaf1d9b79787a82734195433bf2ef29f81e0a10c SHA256 2cb191078d1280325ab2eea473be8800e5989e33d0d11a673702436a65954a4e
-AUX openbabel-perl-2.3.1-makefile.patch 298 RMD160 963b8fd3ce7083e8b0f529b3c02424fc535a6476 SHA1 05a2394ff0cad03df0915400391f644010adac45 SHA256 8078ac0f5b4d483ade684063583e4db43fadf2f3f8391259d282fd81112e688e
-DIST openbabel-2.3.0.tar.gz 14321281 RMD160 96dafa3c2aca544f79e08b5617ab0da845c28a16 SHA1 408a4bddb7f052fd89c57ea51b4204b721856b16 SHA256 6dadcb256d83b1f2e616fa1853dd1afadb23550a20d1c118b406231a09f861fb
-DIST openbabel-2.3.1.tar.gz 20142960 RMD160 da4d240a92942dbf9dcf999187336d69d7ef8f5c SHA1 b2dd1638eaf7e6d350110b1561aeb23b03552846 SHA256 9e2e8bc9af585ee7e4a03720e3d7b82ef567aa17fdeeea48cc213a3035ced7a3
-EBUILD openbabel-perl-2.3.0.ebuild 1342 RMD160 5ccc246d0db9e229d030f951fb2cca86824dac26 SHA1 ae2baf57c3834beeea11e1f54793d00892bb13c5 SHA256 e6b9a89f2a2aba741aec14b782336711ef4ca2b29e7108aa313cf00bdf9ebc09
-EBUILD openbabel-perl-2.3.1.ebuild 1281 RMD160 0934ff40c705b6bf4033f6eeb2e5a9a683d56e78 SHA1 6dd2f59670c33756a5083a23ac20fbe11fb1b1d6 SHA256 a6807fb29672019250cd7217d4695a0966268418a717784fa1d4daefc34b0ec0
-MISC ChangeLog 1155 RMD160 0e6a7f87663a6b70e456e4c3efb4aa34bde2e7a8 SHA1 8258734c7b28583ae61879eb52bebaa01b1cf8bc SHA256 6197fef5e3eb03120ca45bb8aaab1e2e328292cfc64cc62b52d4b53d6a7104c4
-MISC metadata.xml 549 RMD160 d8b314ccc5c255a621484eee6b93b8366a9e0550 SHA1 33fded4ff70695d4efefb3d5ec438331526448bf SHA256 ccd692e32761fe5f0adb4f38308ef677908521578bf09966faa01cf2a743a7d2
+AUX openbabel-perl-2.3.0-makefile.patch 1764 SHA256 cae86d9500cbbc8598719e19bad2b39d0a0c05c3bc9b105cfa3a7aeade393300 SHA512 2bd58622195c50e6afa2a98467f684667547b814ab4896a6fe7960bc252c1b92402d7e92698a0be43b90471ce12e878096da8a356d721d713b33b65ab154ba64 WHIRLPOOL c3d0d75c18f4df16c186fa3656c35f3e068760815182fcd212a6169f151189c1c82e40d083424372fba62f0053df98303ac1bf6ffcb23ea06e84103763aa5133
+AUX openbabel-perl-2.3.0-swig.patch 887 SHA256 2cb191078d1280325ab2eea473be8800e5989e33d0d11a673702436a65954a4e SHA512 765879e5ab08f155f931ff6cde2cc1fcac96409cb2964a52f50ea4cd63a63c04b0bfd130a5deace201c0c82e3b6794c17739eb5835bae55656ca28108ef8e171 WHIRLPOOL ac10c4fc0d4887c8e4486f1e27ada6422919dfec508ba1522c04a9d425f24010bd884c3803c603e8575147515f14d41dda9970ca3b38f27442536972d6bfe999
+AUX openbabel-perl-2.3.1-makefile.patch 298 SHA256 8078ac0f5b4d483ade684063583e4db43fadf2f3f8391259d282fd81112e688e SHA512 1ac26ee856ed716759878ef9db421ea851c9684e5ca751f1d0eeed7cb632d50da94b8cd175345a55c5db1086fb9fdccfd9c7730c1a295dc10263e9ea5a5e361f WHIRLPOOL e6b0bbafc0526c1ff62b8a0e9f7037aa91ef7a3ae0ea1d882bcfcef2c0a360746f738f981a87765e98064c0f573639f865e055be551b3e3905214432e124fbbb
+AUX openbabel-perl-2.3.2-bindings_only.patch 4557 SHA256 5ccb04d28bcbaf190275581fb66729b6a06c59b2e4a10e288bd90251f06f66a5 SHA512 475600513f188f2e3dee711ab2073954511b7d71c0af222dc9fe121bcbd4821d0ab32934d5035452ad4820d0dd750899995696c20504769b25cad7ef2d27aa5e WHIRLPOOL c573a123b43c67324b04a1283b2b567ed589f619dc2a22c1f4937edab82a2da40d74f56e52cb2d9418477c7713fd1f450dfd2f6b4563f745717a5a417a67975b
+AUX openbabel-perl-2.3.2-trunk_cmake.patch 2335 SHA256 20692e07e436c610b0d18f6a28ebaef342b43053b3b1dd57cc23b0c87fe5dedf SHA512 9f42cb3c8aff7eb765790fd3a7f259d8076ebce11f3c2e324a9568a94d948583455db90a8714cdcbd6b6a74087167ada9ec19261862233823d0792bc79302f30 WHIRLPOOL 766f7f1eec840021cc7fe29e94a45a839966bb4726578c72d341dcb9047bb71eec50df72de1072888d158b4ff69b7ee2c8c88a97e1569fb4f4024c8de3d26213
+DIST openbabel-2.3.0.tar.gz 14321281 SHA256 6dadcb256d83b1f2e616fa1853dd1afadb23550a20d1c118b406231a09f861fb
+DIST openbabel-2.3.1.tar.gz 20142960 SHA256 9e2e8bc9af585ee7e4a03720e3d7b82ef567aa17fdeeea48cc213a3035ced7a3 SHA512 3cd20d0d8487ab4d8a9c9f1017fb36026cc07e9443b0b245eee23c5b39292cda5a752970a07ba18fb9da42599ba8677d7aa7662984e2552b827b2f88ecd4acd7 WHIRLPOOL 01ba08ba176edd6bd483c9e1d7a2563306b4ab281c00052a533c76da2a4389efe13770cab65b7ca61da50d3eee3c092567f7d12401ec027253e69f213c1c94b4
+DIST openbabel-2.3.2.tar.gz 20509105 SHA256 4eaca26679aa6cc85ebf96af19191472ac63ca442c36b0427b369c3a25705188 SHA512 d0e1f8b758ffdd65ec6c31d988bffe3279355e286ce69fad12c5905b3b832e2b73ee95b1061b1576aba1ee9fe4da5e31ec30350c473be17493c657dc80caf919 WHIRLPOOL 74eff18b73d24c8f702e5573a58ba6afba8402e9ce8782de95dc0568575a7d2d632dbc8e8a98b3cd25efdfa7379494f7dcd449342c81ddf73f42a387bce77aaa
+EBUILD openbabel-perl-2.3.0.ebuild 1342 SHA256 e6b9a89f2a2aba741aec14b782336711ef4ca2b29e7108aa313cf00bdf9ebc09 SHA512 0f37a58fea82c94a525d0daa6fd875d102c3eac93796c8f2541e58bd281c734349db47efc2e81795cd9f253e06296a2a69f43fb8e4bac8bff8e33b781464996f WHIRLPOOL 12a4cc032c55ceb0074692be361f54a9855298d94a2a4d7685f30c18ad7551962f532d935cd3203e3a0a663f68962ea8a5b65023b73ccfb8f5fe37145723ea7e
+EBUILD openbabel-perl-2.3.1.ebuild 1281 SHA256 a6807fb29672019250cd7217d4695a0966268418a717784fa1d4daefc34b0ec0 SHA512 2d0f508c113ed1b1c12b49dd07a7134966a5f395563c6d3a4486d75aa905089965e41ab3303ce489b6bbaa622ff42ddd2f53fe4a58e926b2e254cb1ffe4e9441 WHIRLPOOL ba5c6bd6f68c2b32196e9d1cecde5401a7f4e3478dcfc707419ec8955504b59c141f4f8ed97276111b4338399bc4934e547eea11b314792e08856b25d9e2fbe1
+EBUILD openbabel-perl-2.3.2.ebuild 1621 SHA256 26c9b1723fab9ec968a1f9ceecfeb688e3253bd476d3ea15f0c82cef1d3048f8 SHA512 4fbe60620fa5142c6744bac18be13baa4003eb90c89a41fb8ae1014adfd0e63e5b96330c9b35e6657d5fdd43923ea51c79af244a4d76a51d6afad4b7d01f5228 WHIRLPOOL eeed68d9af61312cdf578d2a9626c498ae1adb720b40ed173ecff5883a26f288f85e9784465b52867a01fbcbc5f6b7c0415a62aa7b5b308238df7206c88f1765
+MISC ChangeLog 1419 SHA256 86dde4740b2db495e8daf78dae58576741e1b1791086692cac43f83fffe1c090 SHA512 0987ffe31d9034cf00245cbfb8c748cbd89b6d4a8b810685f1a5fb09855796dcdfc12308c08ff425a0ce986d7b72a01ab92d039867637db9c0746d5e833edf67 WHIRLPOOL 2fbd8737903e1460dae53d7a43a4188f08d0ad52dae4f2f8e14a720bb11efb46da1f00cf83765f8551fa07beb8df76502f2e334fd52c4a18ee7a1ef291b27b47
+MISC metadata.xml 549 SHA256 ccd692e32761fe5f0adb4f38308ef677908521578bf09966faa01cf2a743a7d2 SHA512 5ac61a7998f64c2e0827c9373b1d4e1b4dc914acdcf3b9092c8e2b1858bb412b734e0a61d8f0aa69b9d8f2d81b568c1234b6cbb5ed7ce841769cd45256992fc6 WHIRLPOOL b5bcf866d385f4eeded7a024d31a846903b43f6821520c4b079c49191be254d643dc395e8b96732b67125487158e8e0b46b9354842732b93c22676c81eda6172
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
+Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREKAAYFAk9TRFUACgkQgAnW8HDreRaG5QCgkVV/MdPUwbW4uwCh4zZ6byr0
-VKsAn0rE1YsjJOWSHZcW7+d+Rp1TFYke
-=r0wz
+iEYEAREIAAYFAlDA028ACgkQgAnW8HDreRa/8wCgnecAmYwTA4e1cC/dyfU1f08F
+8yEAni8Uv4qQGdTSZs1/gzm4xaOsL5gQ
+=tgUl
-----END PGP SIGNATURE-----
diff --git a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-bindings_only.patch b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-bindings_only.patch
new file mode 100644
index 000000000000..92e126a77d86
--- /dev/null
+++ b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-bindings_only.patch
@@ -0,0 +1,108 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 449f4b4..1c9ad00 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -252,7 +252,8 @@ if(NOT MSVC)
+ }
+ " SCANDIR_NEEDS_CONST)
+
+- set(OB_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/${OB_PLUGIN_INSTALL_DIR}")
++ set(OB_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/${OB_PLUGIN_INSTALL_DIR}"
++ CACHE PATH "Set to system install for bindings only build")
+ add_definitions(-DOB_MODULE_PATH="\\"${OB_MODULE_PATH}\\"")
+
+ # Add some visibility support when using GCC
+@@ -380,7 +381,8 @@ if(UNIX AND BUILD_SHARED)
+ if(APPLE)
+ set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR})
+ else()
+- set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
++ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}"
++ CACHE PATH "Set sane rpath")
+ set(CMAKE_SKIP_BUILD_RPATH FALSE)
+ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
+ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+@@ -477,6 +479,13 @@ endif()
+ # Should the language bindings be regenereted?
+ option(RUN_SWIG "Generate language bindings with SWIG" OFF)
+
++# Build bindings only
++option(BINDINGS_ONLY "Build bindings only" OFF)
++
++# Point to library if building bindings only
++set(BABEL_SYSTEM_LIBRARY ${BABEL_LIBRARY}
++ CACHE PATH "Point to openbabel library if building bindings only")
++
+ # Should all bindings be built?
+ option(ALL_BINDINGS "Build all languages bindings" OFF)
+
+diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
+index 16e9000..8f92e91 100644
+--- a/scripts/CMakeLists.txt
++++ b/scripts/CMakeLists.txt
+@@ -92,16 +92,30 @@ if (DO_PYTHON_BINDINGS)
+ endif(RUN_SWIG)
+
+ add_library(bindings_python MODULE ${openbabel_SOURCE_DIR}/scripts/python/openbabel-python.cpp)
+- target_link_libraries(bindings_python ${PYTHON_LIBRARIES} ${BABEL_LIBRARY})
++ if(BINDINGS_ONLY)
++ target_link_libraries(bindings_python ${PYTHON_LIBRARIES} ${BABEL_SYSTEM_LIBRARY})
++ else()
++ target_link_libraries(bindings_python ${PYTHON_LIBRARIES} ${BABEL_LIBRARY})
++ endif()
++
+ if(NOT WIN32)
+ set_target_properties(bindings_python PROPERTIES
+ OUTPUT_NAME _openbabel
+ PREFIX ""
+ SUFFIX .so )
+- add_dependencies(bindings_python openbabel)
+- install(TARGETS bindings_python LIBRARY DESTINATION ${LIB_INSTALL_DIR})
+- install(FILES ${openbabel_SOURCE_DIR}/scripts/python/openbabel.py DESTINATION ${LIB_INSTALL_DIR})
+- install(FILES ${openbabel_SOURCE_DIR}/scripts/python/pybel.py DESTINATION ${LIB_INSTALL_DIR})
++ if(NOT BINDINGS_ONLY)
++ add_dependencies(bindings_python openbabel)
++ endif()
++
++ install(TARGETS bindings_python
++ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
++ COMPONENT bindings_python)
++ install(FILES ${openbabel_SOURCE_DIR}/scripts/python/openbabel.py
++ DESTINATION ${LIB_INSTALL_DIR}
++ COMPONENT bindings_python)
++ install(FILES ${openbabel_SOURCE_DIR}/scripts/python/pybel.py
++ DESTINATION ${LIB_INSTALL_DIR}
++ COMPONENT bindings_python)
+ else(NOT WIN32)
+ set_target_properties(bindings_python PROPERTIES
+ OUTPUT_NAME _openbabel
+@@ -231,13 +245,25 @@ if (DO_PERL_BINDINGS)
+ endif (RUN_SWIG)
+
+ add_library(bindings_perl MODULE ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp)
+- target_link_libraries(bindings_perl ${PERL_LIBRARY} ${BABEL_LIBRARY} ${PERL_EXTRA_LINK_FLAGS})
++ if(BINDINGS_ONLY)
++ target_link_libraries(bindings_perl ${PERL_LIBRARY} ${BABEL_SYSTEM_LIBRARY} ${PERL_EXTRA_LINK_FLAGS})
++ else()
++ target_link_libraries(bindings_perl ${PERL_LIBRARY} ${BABEL_LIBRARY} ${PERL_EXTRA_LINK_FLAGS})
++ endif()
++
+ set_target_properties(bindings_perl PROPERTIES
+ PREFIX ""
+ OUTPUT_NAME OpenBabel)
+- add_dependencies(bindings_perl openbabel)
+- install(TARGETS bindings_perl LIBRARY DESTINATION ${LIB_INSTALL_DIR})
+- install(FILES ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm DESTINATION ${LIB_INSTALL_DIR})
++ if(NOT BINDINGS_ONLY)
++ add_dependencies(bindings_perl openbabel)
++ endif()
++
++ install(TARGETS bindings_perl
++ LIBRARY DESTINATION ${LIB_INSTALL_DIR}/auto/Chemistry/OpenBabel/
++ COMPONENT bindings_perl)
++ install(FILES ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm
++ DESTINATION ${LIB_INSTALL_DIR}/Chemistry/
++ COMPONENT bindings_perl)
+
+ endif (DO_PERL_BINDINGS)
+
diff --git a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-trunk_cmake.patch b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-trunk_cmake.patch
new file mode 100644
index 000000000000..b72a622a3afb
--- /dev/null
+++ b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-trunk_cmake.patch
@@ -0,0 +1,41 @@
+diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
+index e7298ce..16e9000 100644
+--- a/scripts/CMakeLists.txt
++++ b/scripts/CMakeLists.txt
+@@ -231,36 +239,6 @@ if (DO_PERL_BINDINGS)
+ install(TARGETS bindings_perl LIBRARY DESTINATION ${LIB_INSTALL_DIR})
+ install(FILES ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm DESTINATION ${LIB_INSTALL_DIR})
+
+- set(PERL_INSTALLDIRS_TEXT "")
+- if (OBPERL_INSTALLDIRS)
+- set(PERL_INSTALLDIRS_TEXT "INSTALLDIRS=${OBPERL_INSTALLDIRS}")
+- endif (OBPERL_INSTALLDIRS)
+-
+- if (NOT MSVC)
+- add_custom_target(pre_bindings_perl ALL
+- # Create the scripts/perl directory; we cannot do this inside
+- # bindings_perl as the WORKING_DIRECTORY needs to already exist!
+- COMMAND ${CMAKE_COMMAND} -E make_directory ${openbabel_BINARY_DIR}/scripts/perl
+- )
+- add_custom_target(bindings_perl ALL
+- 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} ${PERL_INSTALLDIRS_TEXT}
+- COMMAND PERL5LIB=${openbabel_SOURCE_DIR}/scripts/perl/inc make
+- DEPENDS openbabel ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp
+- WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts/perl
+- )
+- add_dependencies(bindings_perl pre_bindings_perl openbabel)
+- install(CODE "execute_process(COMMAND make install DESTDIR=\$ENV{DESTDIR} WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts/perl)")
+-
+- else (NOT MSVC)
+- add_library(bindings_perl MODULE ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp)
+- target_link_libraries(bindings_perl ${PERL_LIBRARY} ${BABEL_LIBRARY})
+- set_target_properties(bindings_perl PROPERTIES
+- OUTPUT_NAME openbabel_perl )
+- endif(NOT MSVC)
+-
+ endif (DO_PERL_BINDINGS)
+
+ ###################
diff --git a/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild
new file mode 100644
index 000000000000..3757e484b6e8
--- /dev/null
+++ b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2012 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.2.ebuild,v 1.1 2012/12/06 17:18:38 jlec Exp $
+
+EAPI=5
+
+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-util/cmake-2.4.8
+ >=dev-lang/swig-2"
+
+S="${WORKDIR}/openbabel-${PV}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-trunk_cmake.patch \
+ "${FILESDIR}"/${P}-bindings_only.patch
+ perl_set_version
+}
+
+src_configure() {
+ local mycmakeargs="${mycmakeargs}
+ -DCMAKE_INSTALL_RPATH=
+ -DBINDINGS_ONLY=ON
+ -DBABEL_SYSTEM_LIBRARY="${EPREFIX}/usr/$(get_libdir)/libopenbabel.so"
+ -DOB_MODULE_PATH="${EPREFIX}/usr/$(get_libdir)/openbabel/${PV}"
+ -DLIB_INSTALL_DIR="${ED}/${VENDOR_ARCH}"
+ -DPERL_BINDINGS=ON
+ -DRUN_SWIG=ON"
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile bindings_perl
+}
+
+src_test() {
+ mkdir "${CMAKE_BUILD_DIR}/$(get_libdir)/Chemistry"
+ cp \
+ "${CMAKE_USE_DIR}/scripts/perl/OpenBabel.pm" \
+ "${CMAKE_BUILD_DIR}/$(get_libdir)/Chemistry/"
+ for i in "${CMAKE_USE_DIR}"/scripts/perl/t/*; do
+ einfo "Running test: ${i}"
+ perl -I"${CMAKE_BUILD_DIR}/$(get_libdir)" "${i}" || die
+ done
+}
+
+src_install() {
+ cd "${CMAKE_BUILD_DIR}"
+ cmake -DCOMPONENT=bindings_perl -P cmake_install.cmake
+}