From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8D278139694 for ; Mon, 27 Mar 2017 14:09:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5E91234009; Mon, 27 Mar 2017 14:09:45 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A4BE4234009 for ; Mon, 27 Mar 2017 14:09:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 38A4E34112A for ; Mon, 27 Mar 2017 14:09:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D19C76E55 for ; Mon, 27 Mar 2017 14:09:42 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1490623761.f7f304a16a0f4530e49dc100bc4a542b457a5e28.alexxy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/pymol/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-chemistry/pymol/Manifest sci-chemistry/pymol/pymol-1.8.6.0.ebuild X-VCS-Directories: sci-chemistry/pymol/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: f7f304a16a0f4530e49dc100bc4a542b457a5e28 X-VCS-Branch: master Date: Mon, 27 Mar 2017 14:09:42 +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: c6b6aa03-2ab5-4284-8c3e-7b7e1bd8521f X-Archives-Hash: 61dffdc03f6196fcbfc5330dbc82245b commit: f7f304a16a0f4530e49dc100bc4a542b457a5e28 Author: Alexey Shvetsov gentoo org> AuthorDate: Mon Mar 27 14:08:53 2017 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Mon Mar 27 14:09:21 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7f304a1 sci-chemistry/pymol: Version bump Warning: Pymol now depends on dev-libs/msgpack Package-Manager: Portage-2.3.3, Repoman-2.3.1 sci-chemistry/pymol/Manifest | 1 + sci-chemistry/pymol/pymol-1.8.6.0.ebuild | 109 +++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) diff --git a/sci-chemistry/pymol/Manifest b/sci-chemistry/pymol/Manifest index 1f72685ea0c..b4695e66d6d 100644 --- a/sci-chemistry/pymol/Manifest +++ b/sci-chemistry/pymol/Manifest @@ -1,2 +1,3 @@ DIST pymol-1.8.4.0.png.xz 19528 SHA256 e2c956b39965130a3dc51c2c1b1090bee6bf591885069b2ddb77c0991e9e4928 SHA512 40bb0d3f226476f6e047b5361956aad955232a97641474765eaa5204f0539aee3810e0266213618a45364f9f31f6eb18380b17e0c79f64065f7b62a9016caa7c WHIRLPOOL 1336c20e068b71cdf35118c84b5df8485c86bc51eed7f542a483fb78ce374ca76e4aed3518aced0a6f8ea49e0b180004e567cc059ac52a27a3d616adb282cea2 DIST pymol-v1.8.4.0.tar.bz2 8717344 SHA256 b6147befe74844dd23550461b831b2fa6d170d4456f0059cf93fb1e8cb43d279 SHA512 73a810adfc31adaf0f3fa25512084882c87b0782c8af716ac0203a5b5b7f0b9fedfbce3d129bffef7b52044e92b0542e683966b2acf961c4dac17fbba72dd7fe WHIRLPOOL 3943a619ca00cc2bfb51ff4dffa0166856b4425c7518d91b1ff2a048caa53dcb7411c64b246014b860b7f036de582e9efdc09783b3918283f0a96ee5130c7287 +DIST pymol-v1.8.6.0.tar.bz2 8717164 SHA256 7eaaf90ac1e1be0969291cdb1154b3631b5b6403cce1d697133d90cd37a3c565 SHA512 bd08e6890382af1503d6af16b27b43af09b372a1229cc9d8e2de311873918b5e7b06e8a2365ce73a5f52cb31ac795f5d91b2ae6ef62890d9c2bf0ea25f856658 WHIRLPOOL 950d655a48b3801de2657b6d8935404ca0069525719b9c88a117ad819c37366a55e42dbe51a253b960b79413e5df9d781b9ada8839ca06e1e01dde965044efe4 diff --git a/sci-chemistry/pymol/pymol-1.8.6.0.ebuild b/sci-chemistry/pymol/pymol-1.8.6.0.ebuild new file mode 100644 index 00000000000..8fd0a78a12a --- /dev/null +++ b/sci-chemistry/pymol/pymol-1.8.6.0.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk" + +inherit distutils-r1 eutils fdo-mime flag-o-matic versionator + +DESCRIPTION="A Python-extensible molecular graphics system" +HOMEPAGE="http://www.pymol.org/" +SRC_URI=" + https://dev.gentoo.org/~jlec/distfiles/${PN}-1.8.4.0.png.xz + mirror://sourceforge/project/${PN}/${PN}/$(get_version_component_range 1-2)/${PN}-v${PV}.tar.bz2 + " +# git archive -v --prefix=${P}/ master -o ${P}.tar.xz +RESTRICT="mirror" +LICENSE="PSF-2.2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="web" + +DEPEND=" + dev-libs/msgpack[cxx] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pyopengl[${PYTHON_USEDEP}] + media-libs/freeglut + media-libs/freetype:2 + media-libs/glew:0= + media-libs/libpng:0= + media-video/mpeg-tools + sys-libs/zlib + virtual/python-pmw[${PYTHON_USEDEP}] + !sci-chemistry/pymol-apbs-plugin[${PYTHON_USEDEP}] + web? ( !dev-python/webpy[${PYTHON_USEDEP}] )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN} + +python_prepare_all() { + sed \ + -e "s:\"/usr:\"${EPREFIX}/usr:g" \ + -e "/ext_comp_args.*+=/s:\[.*\]$:\[\]:g" \ + -e "/import/s:argparse:argparseX:g" \ + -i setup.py || die + + sed \ + -e "s:/opt/local:${EPREFIX}/usr:g" \ + -e '/ext_comp_args/s:\[.*\]:[]:g' \ + -i setup.py || die + + append-cxxflags -std=c++0x + + distutils-r1_python_prepare_all +} + +python_install() { + distutils-r1_python_install --pymol-path="${EPREFIX}/usr/share/pymol" + + sed \ + -e '1d' \ + -e "/APBS_BINARY_LOCATION/s:None:\"${EPREFIX}/usr/bin/apbs\":g" \ + -e "/APBS_PSIZE_LOCATION/s:None:\"$(python_get_sitedir)/pdb2pqr/src/\":g" \ + -e "/APBS_PDB2PQR_LOCATION/s:None:\"$(python_get_sitedir)/pdb2pqr/\":g" \ + -i "${D}/$(python_get_sitedir)"/pmg_tk/startup/apbs_tools.py || die +} + +python_install_all() { + distutils-r1_python_install_all + + sed \ + -e '1i#!/usr/bin/env python' \ + "${D}/$(python_get_sitedir)"/pymol/__init__.py > "${T}"/${PN} || die + + python_foreach_impl python_doscript "${T}"/${PN} + + # These environment variables should not go in the wrapper script, or else + # it will be impossible to use the PyMOL libraries from Python. + cat >> "${T}"/20pymol <<- EOF + PYMOL_PATH="${EPREFIX}/usr/share/pymol" + PYMOL_DATA="${EPREFIX}/usr/share/pymol/data" + PYMOL_SCRIPTS="${EPREFIX}/usr/share/pymol/scripts" + EOF + + doenvd "${T}"/20pymol + + newicon "${WORKDIR}"/${PN}-1.8.4.0.png ${PN}.png + make_desktop_entry ${PN} PyMol ${PN} \ + "Graphics;Education;Science;Chemistry;" \ + "MimeType=chemical/x-pdb;chemical/x-mdl-molfile;chemical/x-mol2;chemical/seq-aa-fasta;chemical/seq-na-fasta;chemical/x-xyz;chemical/x-mdl-sdf;" + + if ! use web; then + rm -rf "${D}/$(python_get_sitedir)/web" || die + fi + + rm -f "${ED}"/usr/share/${PN}/LICENSE || die +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + optfeature "Electrostatic calculations" sci-chemistry/apbs sci-chemistry/pdb2pqr +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update +}