Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/pymol/
Date: Sat, 01 Aug 2020 23:20:35
Message-Id: 1596323974.e6cc55210919cbdee58bcaa282cf6ef2064aa7c2.asturm@gentoo
1 commit: e6cc55210919cbdee58bcaa282cf6ef2064aa7c2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 29 18:47:25 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 23:19:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6cc5521
7
8 sci-chemistry/pymol: Drop 2.3.0-r2
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sci-chemistry/pymol/pymol-2.3.0-r2.ebuild | 118 ------------------------------
14 1 file changed, 118 deletions(-)
15
16 diff --git a/sci-chemistry/pymol/pymol-2.3.0-r2.ebuild b/sci-chemistry/pymol/pymol-2.3.0-r2.ebuild
17 deleted file mode 100644
18 index 5eadc9a8512..00000000000
19 --- a/sci-chemistry/pymol/pymol-2.3.0-r2.ebuild
20 +++ /dev/null
21 @@ -1,118 +0,0 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -PYTHON_COMPAT=( python2_7 )
28 -
29 -inherit distutils-r1 desktop eutils flag-o-matic xdg-utils
30 -
31 -DESCRIPTION="A Python-extensible molecular graphics system"
32 -HOMEPAGE="https://www.pymol.org/"
33 -SRC_URI="
34 - https://dev.gentoo.org/~jlec/distfiles/${PN}-1.8.4.0.png.xz
35 - https://github.com/schrodinger/pymol-open-source/archive/v${PV}.tar.gz -> ${P}.tar.gz
36 - "
37 -RESTRICT="mirror"
38 -LICENSE="PSF-2.2"
39 -SLOT="0"
40 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
41 -IUSE="web"
42 -
43 -DEPEND="
44 - dev-libs/msgpack[cxx]
45 - dev-libs/mmtf-cpp
46 - || (
47 - dev-python/numpy-python2[${PYTHON_USEDEP}]
48 - dev-python/numpy[${PYTHON_USEDEP}]
49 - )
50 - dev-python/pmw:py2[${PYTHON_USEDEP}]
51 - dev-python/pyopengl[${PYTHON_USEDEP}]
52 - dev-python/PyQt5[opengl,${PYTHON_USEDEP}]
53 - media-libs/freetype:2
54 - media-libs/glew:0=
55 - media-libs/glm
56 - media-libs/libpng:0=
57 - media-video/mpeg-tools
58 - sys-libs/zlib
59 - !sci-chemistry/pymol-apbs-plugin[${PYTHON_USEDEP}]
60 - web? ( !dev-python/webpy[${PYTHON_USEDEP}] )"
61 -RDEPEND="${DEPEND}
62 - sci-chemistry/chemical-mime-data
63 -"
64 -
65 -S="${WORKDIR}"/${PN}-open-source-${PV}
66 -
67 -python_prepare_all() {
68 - sed \
69 - -e "s:\"/usr:\"${EPREFIX}/usr:g" \
70 - -e "/ext_comp_args.*+=/s:\[.*\]$:\[\]:g" \
71 - -e "/import/s:argparse:argparseX:g" \
72 - -i setup.py || die
73 -
74 - sed \
75 - -e "s:/opt/local:${EPREFIX}/usr:g" \
76 - -e '/ext_comp_args/s:\[.*\]:[]:g' \
77 - -i setup.py || die
78 - sed \
79 - -e "s:\['msgpackc'\]:\['msgpack'\]:g" \
80 - -i setup.py || die
81 -
82 - append-cxxflags -std=c++0x
83 -
84 - distutils-r1_python_prepare_all
85 -}
86 -
87 -python_install() {
88 - distutils-r1_python_install \
89 - --pymol-path="${EPREFIX}/usr/share/pymol"
90 -
91 - sed \
92 - -e '1d' \
93 - -e "/APBS_BINARY_LOCATION/s:None:\"${EPREFIX}/usr/bin/apbs\":g" \
94 - -e "/APBS_PSIZE_LOCATION/s:None:\"$(python_get_sitedir)/pdb2pqr/src/\":g" \
95 - -e "/APBS_PDB2PQR_LOCATION/s:None:\"$(python_get_sitedir)/pdb2pqr/\":g" \
96 - -i "${D}/$(python_get_sitedir)"/pmg_tk/startup/apbs_tools.py || die
97 -}
98 -
99 -python_install_all() {
100 - distutils-r1_python_install_all
101 -
102 - sed \
103 - -e '1i#!/usr/bin/env python' \
104 - "${D}/$(python_get_sitedir)"/pymol/__init__.py > "${T}"/${PN} || die
105 -
106 - python_foreach_impl python_doscript "${T}"/${PN}
107 -
108 - # These environment variables should not go in the wrapper script, or else
109 - # it will be impossible to use the PyMOL libraries from Python.
110 - cat >> "${T}"/20pymol <<- EOF
111 - PYMOL_PATH="${EPREFIX}/usr/share/pymol"
112 - PYMOL_DATA="${EPREFIX}/usr/share/pymol/data"
113 - PYMOL_SCRIPTS="${EPREFIX}/usr/share/pymol/scripts"
114 - EOF
115 -
116 - doenvd "${T}"/20pymol
117 -
118 - newicon "${WORKDIR}"/${PN}-1.8.4.0.png ${PN}.png
119 - make_desktop_entry ${PN} PyMol ${PN} \
120 - "Graphics;Education;Science;Chemistry;" \
121 - "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;"
122 -
123 - if ! use web; then
124 - rm -rf "${D}/$(python_get_sitedir)/web" || die
125 - fi
126 -
127 - rm -f "${ED}"/usr/share/${PN}/LICENSE || die
128 -}
129 -
130 -pkg_postinst() {
131 - xdg_desktop_database_update
132 - xdg_mimeinfo_database_update
133 - optfeature "Electrostatic calculations" sci-chemistry/apbs sci-chemistry/pdb2pqr
134 -}
135 -
136 -pkg_postrm() {
137 - xdg_desktop_database_update
138 - xdg_mimeinfo_database_update
139 -}