diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-03-04 10:30:40 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-03-04 10:30:40 +0000 |
commit | e8aab525ce7108cba79a00b0754b73f2302b6788 (patch) | |
tree | 9ca3b7bded217d1397f2f9b231353bd53d3014b3 /sci-chemistry | |
parent | Import Version Bump from sci overlay prepared by Reinis Danne; restrict pypy (diff) | |
download | gentoo-2-e8aab525ce7108cba79a00b0754b73f2302b6788.tar.gz gentoo-2-e8aab525ce7108cba79a00b0754b73f2302b6788.tar.bz2 gentoo-2-e8aab525ce7108cba79a00b0754b73f2302b6788.zip |
Import Version Bump from sci overlay prepared by Reinis Danne
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry')
4 files changed, 87 insertions, 4 deletions
diff --git a/sci-chemistry/openbabel-perl/ChangeLog b/sci-chemistry/openbabel-perl/ChangeLog index a94acb2fdd55..4945e248a76d 100644 --- a/sci-chemistry/openbabel-perl/ChangeLog +++ b/sci-chemistry/openbabel-perl/ChangeLog @@ -1,6 +1,12 @@ # 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.4 2011/05/09 15:15:19 jlec Exp $ +# 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 $ + +*openbabel-perl-2.3.1 (04 Mar 2012) + + 04 Mar 2012; Justin Lecher <jlec@gentoo.org> +openbabel-perl-2.3.1.ebuild, + +files/openbabel-perl-2.3.1-makefile.patch, metadata.xml: + Import Version Bump from sci overlay prepared by Reinis Danne 09 May 2011; Justin Lecher <jlec@gentoo.org> files/openbabel-perl-2.3.0-makefile.patch: 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 000000000000..88248b4432f1 --- /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 index 78a71057d3ed..500c61ee3c93 100644 --- a/sci-chemistry/openbabel-perl/metadata.xml +++ b/sci-chemistry/openbabel-perl/metadata.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>sci-chemistry</herd> -<longdescription> + <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, 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 000000000000..b8ae965bc95d --- /dev/null +++ b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.1.ebuild @@ -0,0 +1,68 @@ +# 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.1.ebuild,v 1.1 2012/03/04 10:30:40 jlec Exp $ + +EAPI=4 + +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 +} + +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 +} |