From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D46651381F3 for ; Thu, 26 Sep 2013 20:27:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 995FCE0D1E; Thu, 26 Sep 2013 20:27:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E7DFCE0D22 for ; Thu, 26 Sep 2013 20:27:39 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC4AE33EE1F for ; Thu, 26 Sep 2013 20:27:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 63A23E5461 for ; Thu, 26 Sep 2013 20:27:37 +0000 (UTC) From: "Reinis Danne" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Reinis Danne" Message-ID: <1380227120.e75ac73b4b32cccf5d834e468e62a2429549d295.rei4dan@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/openbabel-perl/ X-VCS-Repository: proj/sci X-VCS-Files: sci-chemistry/openbabel-perl/ChangeLog sci-chemistry/openbabel-perl/metadata.xml sci-chemistry/openbabel-perl/openbabel-perl-9999.ebuild X-VCS-Directories: sci-chemistry/openbabel-perl/ X-VCS-Committer: rei4dan X-VCS-Committer-Name: Reinis Danne X-VCS-Revision: e75ac73b4b32cccf5d834e468e62a2429549d295 X-VCS-Branch: master Date: Thu, 26 Sep 2013 20:27:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5177e33b-c42f-412b-8739-9220368b9d40 X-Archives-Hash: 77e772b132b8116f62f93a4e8a9bd330 commit: e75ac73b4b32cccf5d834e468e62a2429549d295 Author: Reinis Danne gmail com> AuthorDate: Thu Sep 26 19:20:39 2013 +0000 Commit: Reinis Danne gmail com> CommitDate: Thu Sep 26 20:25:20 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e75ac73b Add sci-chemistry/openbabel-perl live ebuild --- sci-chemistry/openbabel-perl/ChangeLog | 10 ++++ sci-chemistry/openbabel-perl/metadata.xml | 12 ++++ .../openbabel-perl/openbabel-perl-9999.ebuild | 64 ++++++++++++++++++++++ 3 files changed, 86 insertions(+) diff --git a/sci-chemistry/openbabel-perl/ChangeLog b/sci-chemistry/openbabel-perl/ChangeLog new file mode 100644 index 0000000..14040e1 --- /dev/null +++ b/sci-chemistry/openbabel-perl/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-chemistry/openbabel-perl +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*openbabel-perl-9999 (26 Sep 2013) + + 26 Sep 2013; Reinis Danne +openbabel-perl-9999.ebuild, + +metadata.xml: + Add live ebuild. + diff --git a/sci-chemistry/openbabel-perl/metadata.xml b/sci-chemistry/openbabel-perl/metadata.xml new file mode 100644 index 0000000..0750562 --- /dev/null +++ b/sci-chemistry/openbabel-perl/metadata.xml @@ -0,0 +1,12 @@ + + + + sci-chemistry + + Open Babel 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 Open Babel library from Perl programs. + + diff --git a/sci-chemistry/openbabel-perl/openbabel-perl-9999.ebuild b/sci-chemistry/openbabel-perl/openbabel-perl-9999.ebuild new file mode 100644 index 0000000..2a352a8 --- /dev/null +++ b/sci-chemistry/openbabel-perl/openbabel-perl-9999.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit cmake-utils eutils git-2 perl-module + +DESCRIPTION="Perl bindings for OpenBabel" +HOMEPAGE="http://openbabel.sourceforge.net/" +EGIT_REPO_URI="https://github.com/openbabel/openbabel.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +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_unpack() { + git-2_src_unpack +} + +src_configure() { + perl_set_version + 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 +}