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 6A75613888F for ; Sun, 25 Oct 2015 10:31:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6718EE080E; Sun, 25 Oct 2015 10:31:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E407AE080E for ; Sun, 25 Oct 2015 10:31:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3D5634095A for ; Sun, 25 Oct 2015 10:31:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CCECF1882 for ; Sun, 25 Oct 2015 10:31:47 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1445769093.036d3d0888dd26fd1e1be3bf21ef96a934374390.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/openbabel/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-chemistry/openbabel/openbabel-2.3.2-r1.ebuild X-VCS-Directories: sci-chemistry/openbabel/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 036d3d0888dd26fd1e1be3bf21ef96a934374390 X-VCS-Branch: master Date: Sun, 25 Oct 2015 10:31:47 +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: 2b902ce1-877d-404b-a5b2-1682e6277e0b X-Archives-Hash: 40ae3a63e59ca3e74ff051a2a3b249f3 commit: 036d3d0888dd26fd1e1be3bf21ef96a934374390 Author: Pacho Ramos gentoo org> AuthorDate: Sun Oct 25 10:31:33 2015 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sun Oct 25 10:31:33 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=036d3d08 sci-chemistry/openbabel: Support wxGTK:3.0 Package-Manager: portage-2.2.23 sci-chemistry/openbabel/openbabel-2.3.2-r1.ebuild | 82 +++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/sci-chemistry/openbabel/openbabel-2.3.2-r1.ebuild b/sci-chemistry/openbabel/openbabel-2.3.2-r1.ebuild new file mode 100644 index 0000000..c123bb0 --- /dev/null +++ b/sci-chemistry/openbabel/openbabel-2.3.2-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +WX_GTK_VER="3.0" + +inherit cmake-utils eutils wxwidgets + +DESCRIPTION="Interconverts file formats used in molecular modeling" +HOMEPAGE="http://openbabel.sourceforge.net/" +SRC_URI="mirror://sourceforge/openbabel/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="doc openmp test wxwidgets" + +RDEPEND=" + dev-cpp/eigen:3 + dev-libs/libxml2:2 + sci-libs/inchi + sys-libs/zlib + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )" +DEPEND="${RDEPEND} + >=dev-util/cmake-2.4.8 + doc? ( app-doc/doxygen )" + +DOCS="AUTHORS ChangeLog NEWS README THANKS doc/*.inc doc/README* doc/*.mol2" + +PATCHES=( "${FILESDIR}"/${P}-test_lib_path.patch ) + +pkg_setup() { + if use openmp; then + if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then + ewarn "OpenMP is not available in your current selected gcc" + die "need openmp capable gcc" + fi + FORTRAN_NEED_OPENMP=1 + fi +} + +src_configure() { + need-wxwidgets unicode + local mycmakeargs="" + mycmakeargs="${mycmakeargs} + -DOPENBABEL_USE_SYSTEM_INCHI=ON + $(cmake-utils_use_enable openmp OPENMP) + $(cmake-utils_use wxwidgets BUILD_GUI)" + + cmake-utils_src_configure +} + +src_install() { + dohtml doc/{*.html,*.png} + if use doc ; then + insinto /usr/share/doc/${PF}/API/html + doins doc/API/html/* + fi + + cmake-utils_src_install +} + +src_test() { + local mycmakeargs="" + mycmakeargs="${mycmakeargs} + -DOPENBABEL_USE_SYSTEM_INCHI=ON + -DPYTHON_EXECUTABLE=false + $(cmake-utils_use_enable openmp OPENMP) + $(cmake-utils_use wxwidgets BUILD_GUI) + $(cmake-utils_use_enable test TESTS)" + + cmake-utils_src_configure + cmake-utils_src_compile + cmake-utils_src_test -E py +} + +pkg_postinst() { + optfeature "perl support" sci-chemistry/openbabel-perl + optfeature "python support" sci-chemistry/openbabel-python +}