aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinis Danne <rei4dan@gmail.com>2011-11-10 15:42:52 +0200
committerReinis Danne <rei4dan@gmail.com>2011-11-10 15:42:52 +0200
commit5d27fda0cc76781ef1f17c425cfb22d3e2000599 (patch)
tree61fac035062a2bbe953523b34610bea83f8f5464 /sci-chemistry/openbabel-perl
parentopenbabel-python: Version bump to 2.3.1 (diff)
downloadsci-5d27fda0cc76781ef1f17c425cfb22d3e2000599.tar.gz
sci-5d27fda0cc76781ef1f17c425cfb22d3e2000599.tar.bz2
sci-5d27fda0cc76781ef1f17c425cfb22d3e2000599.zip
openbabel-perl: Version bump to 2.3.1
Diffstat (limited to 'sci-chemistry/openbabel-perl')
-rw-r--r--sci-chemistry/openbabel-perl/ChangeLog10
-rw-r--r--sci-chemistry/openbabel-perl/Manifest7
-rw-r--r--sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.1-makefile.patch9
-rw-r--r--sci-chemistry/openbabel-perl/metadata.xml12
-rw-r--r--sci-chemistry/openbabel-perl/openbabel-perl-2.3.1.ebuild69
5 files changed, 107 insertions, 0 deletions
diff --git a/sci-chemistry/openbabel-perl/ChangeLog b/sci-chemistry/openbabel-perl/ChangeLog
new file mode 100644
index 000000000..b6a2102a8
--- /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: $
+
+*openbabel-perl-2.3.1 (10 Nov 2011)
+
+ 10 Nov 2011; Reinis Danne <rei4dan@gmail.com> +openbabel-perl-2.3.1.ebuild,
+ +files/openbabel-perl-2.3.1-makefile.patch, +metadata.xml:
+ Version bump to 2.3.1
+
diff --git a/sci-chemistry/openbabel-perl/Manifest b/sci-chemistry/openbabel-perl/Manifest
new file mode 100644
index 000000000..e15d6ae48
--- /dev/null
+++ b/sci-chemistry/openbabel-perl/Manifest
@@ -0,0 +1,7 @@
+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.1.tar.gz 20142960 RMD160 da4d240a92942dbf9dcf999187336d69d7ef8f5c SHA1 b2dd1638eaf7e6d350110b1561aeb23b03552846 SHA256 9e2e8bc9af585ee7e4a03720e3d7b82ef567aa17fdeeea48cc213a3035ced7a3
+EBUILD openbabel-perl-2.3.1.ebuild 1313 RMD160 f4266088ad236d845bd1402aa2d3da68cbbac1bf SHA1 db1ec2d55f59b9e719a1c6031137938519fa0972 SHA256 2b8ebb6c6bdd8920b228064841b1dcc2cc9c74f903378d24cffa8149bd6fecda
+MISC ChangeLog 916 RMD160 60ee8850f40339cd607ec4e9328ea528576147ef SHA1 3888b7a01d7a475233d7bb126d0f16582bc08824 SHA256 a485e4a2fcb8473ca810f089f5e93fcb524a6168e3f5cbd516a02f8bcd175152
+MISC metadata.xml 547 RMD160 685c790d772d3d340cc6506f9ddb0157f0bb1ee0 SHA1 621e3849da03363d9daf831344d275f0116dd95b SHA256 9ab03099df4d364cf5a858fe8127a0069cebe1bab7bf696ed8723c025048b6e6
+MISC openbabel-perl-2.3.1-makefile.patch 1461 RMD160 ef67e732bad669eb6b5049fa6cd3fc25cd6d4bfe SHA1 37b9b239f53e0397903f130a430428fa473c6a95 SHA256 352691a7fc83bae61e519003e48a7b155508e1760173527af14d7d336facf8cd
diff --git a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.1-makefile.patch b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.1-makefile.patch
new file mode 100644
index 000000000..88248b443
--- /dev/null
+++ b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.1-makefile.patch
@@ -0,0 +1,9 @@
+--- scripts/perl/Makefile.PL
++++ scripts/perl/Makefile.PL
+@@ -37,5 +37,6 @@ 'LDFROM' => $ldfrom,
+ 'CC' => $CC,
+ 'LD' => '$(CC)',
+ 'INC' => '-I../../include -I'.$cmakesrcdir.'/include',
++ 'DESTDIR' => @ENV{"D"},
+ '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 000000000..433cfe800
--- /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.1.ebuild b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.1.ebuild
new file mode 100644
index 000000000..96f267f2e
--- /dev/null
+++ b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.1.ebuild
@@ -0,0 +1,69 @@
+# 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.3 2011/03/29 06:00:42 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
+ 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"
+ 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
+}