From 9c417bacd51da6d8b57fa9f37425161d30d4b95b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 28 Nov 2020 20:40:51 +0000 Subject: gentoo resync : 28.11.2020 --- sci-chemistry/pymol/Manifest | 4 +- sci-chemistry/pymol/pymol-2.3.0-r3.ebuild | 113 ----------------------------- sci-chemistry/pymol/pymol-2.4.0.ebuild | 115 ++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 115 deletions(-) delete mode 100644 sci-chemistry/pymol/pymol-2.3.0-r3.ebuild create mode 100644 sci-chemistry/pymol/pymol-2.4.0.ebuild (limited to 'sci-chemistry/pymol') diff --git a/sci-chemistry/pymol/Manifest b/sci-chemistry/pymol/Manifest index 54467b7a712d..0c799502cd11 100644 --- a/sci-chemistry/pymol/Manifest +++ b/sci-chemistry/pymol/Manifest @@ -1,4 +1,4 @@ DIST pymol-1.8.4.0.png.xz 19528 BLAKE2B f3d23d4cedca3d8bb96b20646a548da4be570697e3346a11b01c5c3599b536ba4697be08472dfa8a4f6533167defc1a37a1de332931a73857319cb28fd42cd2b SHA512 40bb0d3f226476f6e047b5361956aad955232a97641474765eaa5204f0539aee3810e0266213618a45364f9f31f6eb18380b17e0c79f64065f7b62a9016caa7c -DIST pymol-2.3.0.tar.gz 10448674 BLAKE2B 0d508587d880ce7f2e8a0481bf664e6bfe6eb1d68b0f48b9266cde756824bd8c0144d7243e958bbc5e571d60fca9dafff125d81a8a3d32107e78ad2ff8dffc05 SHA512 e1dcea1c97bcd9045d3543e92902f240e6affbf61a38e8d2a0be04309e3dbabfe1a869847d1423b3151008978d4c305bbf3ce994fc9d453c0063ce020100c133 -EBUILD pymol-2.3.0-r3.ebuild 3018 BLAKE2B 86e626d7a8c0f1dbfd92d73f07895c61cbabcaf2a468a0f58635139fe0fd772f9a5418b5b16267831341f3c36e109be46d018518dca56ba10b6b224da4dd64b2 SHA512 f6f8feca5c943800b8df207b4c71ca1dbc92fc4e4a1df5a8a29205c349d915fe367d145bb29ec4044c1824b4a2a820377f8da37f4c430e2e2805f24508b6e8ed +DIST pymol-2.4.0.tar.gz 10552539 BLAKE2B 34e31dce99c1e838b00389c3d7c29657534dd037349769bd6c8cb17028cfaaa856d5729760d3768fd43f61086cac30749a864fb4156c14eda07f9027430f0523 SHA512 2b19294197d58a808bf7bb7fa9f829c2ec582ba47a4380783a2b1eedda2ce4118cd398e01885db8c449e7fd5e4c08a1c40508e679ef42d8e183a6a52b031c02a +EBUILD pymol-2.4.0.ebuild 3080 BLAKE2B cf0b1e7d50edf615fdf82e1a5f7920f6095e402feed21b860dc1e21a11e833bee430f7b0b11fe85c0f74e2aaf3852f09ab5f7e35beb6af7d775c7307523f0aad SHA512 bb0113cdcbe8a10bc59a0aee51d305a72bdbe5a0d5b17baa586d8a98b66e8ce7db8086e9c8671d77131a0d3d5541cdc8a3210ad0d2feef30d337f0cb3afd0411 MISC metadata.xml 439 BLAKE2B 68df7dfc8ca3d4d4b18b419532bade69491f2e9362f10ae2397c804132b7fc9cd08dcf9703c0a89c44588c570e0c0c1bb9bffb7394d51faf1283142dbc5f70b3 SHA512 f5a3eded9b12fa715ba2e6e10b41c75d9bd823ca0dd40acbffc3f5bfc4b36c687f720b1a4e119b4540a31faf849985778cbd72b0b2cd35af8c52ca0f808d71e4 diff --git a/sci-chemistry/pymol/pymol-2.3.0-r3.ebuild b/sci-chemistry/pymol/pymol-2.3.0-r3.ebuild deleted file mode 100644 index 0a2e041f0dad..000000000000 --- a/sci-chemistry/pymol/pymol-2.3.0-r3.ebuild +++ /dev/null @@ -1,113 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9} ) - -inherit distutils-r1 desktop optfeature flag-o-matic xdg-utils - -DESCRIPTION="A Python-extensible molecular graphics system" -HOMEPAGE="https://www.pymol.org/" -SRC_URI=" - https://dev.gentoo.org/~jlec/distfiles/${PN}-1.8.4.0.png.xz - https://github.com/schrodinger/pymol-open-source/archive/v${PV}.tar.gz -> ${P}.tar.gz - " -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-libs/mmtf-cpp - dev-python/pyopengl[${PYTHON_USEDEP}] - dev-python/PyQt5[opengl,${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - media-libs/freetype:2 - media-libs/glew:0= - media-libs/glm - media-libs/libpng:0= - media-video/mpeg-tools - sys-libs/zlib -" -RDEPEND="${DEPEND} - sci-chemistry/chemical-mime-data -" - -S="${WORKDIR}"/${PN}-open-source-${PV} - -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 - sed \ - -e "s:\['msgpackc'\]:\['msgpack'\]: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 || die - 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() { - xdg_desktop_database_update - xdg_mimeinfo_database_update - optfeature "Electrostatic calculations" sci-chemistry/apbs sci-chemistry/pdb2pqr -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_mimeinfo_database_update -} diff --git a/sci-chemistry/pymol/pymol-2.4.0.ebuild b/sci-chemistry/pymol/pymol-2.4.0.ebuild new file mode 100644 index 000000000000..6ff6e2326d92 --- /dev/null +++ b/sci-chemistry/pymol/pymol-2.4.0.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=no + +inherit distutils-r1 desktop optfeature flag-o-matic xdg-utils + +DESCRIPTION="A Python-extensible molecular graphics system" +HOMEPAGE="https://www.pymol.org/" +SRC_URI=" + https://dev.gentoo.org/~jlec/distfiles/${PN}-1.8.4.0.png.xz + https://github.com/schrodinger/pymol-open-source/archive/v${PV}.tar.gz -> ${P}.tar.gz + " +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-libs/mmtf-cpp + dev-python/pyopengl[${PYTHON_USEDEP}] + dev-python/PyQt5[opengl,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pmw[${PYTHON_USEDEP}] + media-libs/freetype:2 + media-libs/glew:0= + media-libs/glm + media-libs/libpng:0= + media-video/mpeg-tools + sys-libs/zlib +" +RDEPEND="${DEPEND} + sci-chemistry/chemical-mime-data +" + +S="${WORKDIR}"/${PN}-open-source-${PV} + +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 + sed \ + -e "s:\['msgpackc'\]:\['msgpack'\]: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 || die + 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() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + optfeature "Electrostatic calculations" sci-chemistry/apbs sci-chemistry/pdb2pqr +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} -- cgit v1.2.3