diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-chemistry/pymol-apbs-plugin | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-chemistry/pymol-apbs-plugin')
8 files changed, 471 insertions, 0 deletions
diff --git a/sci-chemistry/pymol-apbs-plugin/Manifest b/sci-chemistry/pymol-apbs-plugin/Manifest new file mode 100644 index 000000000000..b2d73f85090c --- /dev/null +++ b/sci-chemistry/pymol-apbs-plugin/Manifest @@ -0,0 +1,4 @@ +DIST pymol-apbs-plugin-0_p15.py 104351 SHA256 c5a259ddc1931f1ec4efe0ffc3ae9e9ac4a84a28c83a4f93a06ebb7c1bef0c1d +DIST pymol-apbs-plugin-0_p18.py 108766 SHA256 ec09c5a0903ac965cc29fcf0a3c1999bd939f9791d037915596092698855d12c +DIST pymol-apbs-plugin-2.1_p24.py 113049 SHA256 d51bb1bbbf641777ee36713c0c47696d7906179e42cac8cdd0e8e156ef081c9f SHA512 49141ea7e4a3a3430d342fb4fbb497d522ce6485c6d9e3527414519574eab7b8218fe240f26920013676528c40059a46341d58153bfe9d05bf747ead926b2cfd WHIRLPOOL 17a4f9ed9670b9a7f82395a9cf1ad465635f840b7389c10ad8c8eae3262c3696383bbacadf5aee9fed817eff7370008cc85a1666896fed56dffb0163e4c3d7e1 +DIST pymol-apbs-plugin-2.1_p26.py 113086 SHA256 552242b4f5b47f298eeb0616e0d51924b4a7649dc8a16e4809e923dbcb97738d SHA512 3561d077875a1880d6badccf835db3d17e0c45416accd6127cbef7c550711908b47ccb392563e3d29ecb7d6527c098584eeabb6490d1033720ed7efe751d0fb0 WHIRLPOOL dccd32b0193e74e505d69922b441323fb24b0ba30aa85f4d69b94663ab406a57b772985ca2c56146e2c4b929f73b321095c3ae2caf95f297f14d8b31671f475e diff --git a/sci-chemistry/pymol-apbs-plugin/files/pymol-apbs-plugin-2.1_p26-tcltk8.6.patch b/sci-chemistry/pymol-apbs-plugin/files/pymol-apbs-plugin-2.1_p26-tcltk8.6.patch new file mode 100644 index 000000000000..c3675cf4c0d0 --- /dev/null +++ b/sci-chemistry/pymol-apbs-plugin/files/pymol-apbs-plugin-2.1_p26-tcltk8.6.patch @@ -0,0 +1,176 @@ +--- pymol-apbs-plugin-2.1_p26.py.orig 2013-08-16 20:29:27.000000000 -0400 ++++ pymol-apbs-plugin-2.1_p26.py 2013-08-16 20:31:35.000000000 -0400 +@@ -560,7 +560,8 @@ + # Set up the Main page + page = self.notebook.add('Main') + group = Pmw.Group(page,tag_text='Main options') +- group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ group.grid(padx = 10, pady = 5, sticky=(N, S, E, W)) + self.selection = Pmw.EntryField(group.interior(), + labelpos='w', + label_text='Selection to use: ', +@@ -606,7 +607,8 @@ + page = self.notebook.add('Configuration') + + group = Pmw.Group(page,tag_text='Dielectric Constants') +- group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + group.grid(column=0, row=0) + self.interior_dielectric = Pmw.EntryField(group.interior(),labelpos='w', + label_text = 'Protein Dielectric:', +@@ -625,7 +627,8 @@ + #entry.pack(side='left',fill='both',expand=1,padx=4) # side-by-side + entry.pack(fill='x',expand=1,padx=4,pady=1) # vertical + group = Pmw.Group(page,tag_text='Other') +- group.pack(fill='both',expand=1, padx=4, pady=5) ++ #group.pack(fill='both',expand=1, padx=4, pady=5) ++ group.grid(padx=4, pady=5, sticky=(N, S, E, W)) + group.grid(column=1, row=1,columnspan=4) + self.max_mem_allowed = Pmw.EntryField(group.interior(),labelpos='w', + label_text = 'Maximum Memory Allowed (MB):', +@@ -683,7 +686,8 @@ + + + group = Pmw.Group(page,tag_text='Ions') +- group.pack(fill='both',expand=1, padx=4, pady=5) ++ #group.pack(fill='both',expand=1, padx=4, pady=5) ++ group.grid(padx=4, pady=5, sticky=(N, S, E, W)) + group.grid(column=0, row=1, ) + self.ion_plus_one_conc = Pmw.EntryField(group.interior(), + labelpos='w', +@@ -742,7 +746,8 @@ + entry.pack(fill='x',expand=1,padx=4) + + group = Pmw.Group(page,tag_text = 'Coarse Mesh Length') +- group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + group.grid(column = 1, row = 0) + for coord in 'x y z'.split(): + setattr(self,'grid_coarse_%s'%coord,Pmw.EntryField(group.interior(), +@@ -757,7 +762,8 @@ + + + group = Pmw.Group(page,tag_text = 'Fine Mesh Length') +- group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + group.grid(column = 2, row = 0) + for coord in 'x y z'.split(): + setattr(self,'grid_fine_%s'%coord,Pmw.EntryField(group.interior(), +@@ -772,7 +778,8 @@ + + + group = Pmw.Group(page,tag_text = 'Grid Center') +- group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + group.grid(column = 3, row = 0) + for coord in 'x y z'.split(): + setattr(self,'grid_center_%s'%coord,Pmw.EntryField(group.interior(), +@@ -786,7 +793,8 @@ + getattr(self,'grid_center_%s'%coord).pack(fill='x', expand=1, padx=4, pady=1) + + group = Pmw.Group(page,tag_text = 'Grid Points') +- group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 4, pady = 5) ++ group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + group.grid(column = 4, row = 0) + for coord in 'x y z'.split(): + setattr(self,'grid_points_%s'%coord,Pmw.EntryField(group.interior(), +@@ -804,7 +812,8 @@ + page.grid_columnconfigure(5,weight=1) + page = self.notebook.add('Program Locations') + group = Pmw.Group(page,tag_text='Locations') +- group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ group.grid(padx = 10, pady = 5, sticky=(N, S, E, W)) + def quickFileValidation(s): + if s == '': return Pmw.PARTIAL + elif os.path.isfile(s): return Pmw.OK +@@ -867,7 +876,8 @@ + + page = self.notebook.add('Temp File Locations') + group = Pmw.Group(page,tag_text='Locations') +- group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ group.grid(padx = 10, pady = 5, sticky=(N, S, E, W)) + self.pymol_generated_pqr_filename = Pmw.EntryField(group.interior(), + labelpos = 'w', + label_pyclass = FileDialogButtonClassFactory.get(self.setPymolGeneratedPqrFilename), +@@ -915,17 +925,20 @@ + page = self.notebook.add('Visualization (1)') + group = VisualizationGroup(page,tag_text='Visualization',visgroup_num=1) + self.visualization_group_1 = group +- group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ group.grid(padx = 10, pady = 5, sticky=(N, S, E, W)) + + page = self.notebook.add('Visualization (2)') + group = VisualizationGroup(page,tag_text='Visualization',visgroup_num=2) + self.visualization_group_2 = group +- group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ group.grid(padx = 10, pady = 5, sticky=(N, S, E, W)) + + # Create a couple of other empty pages + page = self.notebook.add('About') + group = Pmw.Group(page, tag_text='About PyMOL APBS Tools') +- group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ #group.pack(fill = 'both', expand = 1, padx = 10, pady = 5) ++ group.grid(padx = 10, pady = 5, sticky=(N, S, E, W)) + text = """This plugin integrates PyMOL (http://PyMOL.org/) with APBS (http://www.poissonboltzmann.org/apbs/). + + Documentation may be found at +@@ -2158,7 +2171,8 @@ + self.update_buttonbox = Pmw.ButtonBox(self.mm_group.interior(), padx=0) + self.update_buttonbox.pack(side=LEFT) + self.update_buttonbox.add('Update',command=self.refresh) +- self.mm_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=TOP) ++ #self.mm_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=TOP) ++ self.mm_group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + + self.ms_group = Pmw.Group(self.interior(),tag_text='Molecular Surface') + self.ms_buttonbox = Pmw.ButtonBox(self.ms_group.interior(), padx=0) +@@ -2209,7 +2223,8 @@ + bars = (self.mol_surf_low,self.mol_surf_middle,self.mol_surf_high) + Pmw.alignlabels(bars) + for bar in bars: bar.pack(side=LEFT) +- self.ms_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=LEFT) ++ #self.ms_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=LEFT) ++ self.ms_group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + + self.fl_group = Pmw.Group(self.interior(),tag_text='Field Lines') + self.fl_buttonbox = Pmw.ButtonBox(self.fl_group.interior(), padx=0) +@@ -2224,7 +2239,8 @@ + text = """Follows same coloring as surface.""", + ) + label.pack() +- self.fl_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=TOP) ++ #self.fl_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=TOP) ++ self.fl_group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + + self.pi_group = Pmw.Group(self.interior(),tag_text='Positive Isosurface') + self.pi_buttonbox = Pmw.ButtonBox(self.pi_group.interior(), padx=0) +@@ -2243,7 +2259,8 @@ + entryfield_validate = {'validator' : 'real', 'min':0} + ) + self.pos_surf_val.pack(side=LEFT) +- self.pi_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=LEFT) ++ #self.pi_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=LEFT) ++ self.pi_group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + + self.ni_group = Pmw.Group(self.interior(),tag_text='Negative Isosurface') + self.ni_buttonbox = Pmw.ButtonBox(self.ni_group.interior(), padx=0) +@@ -2262,7 +2279,8 @@ + entryfield_validate = {'validator' : 'real', 'max':0} + ) + self.neg_surf_val.pack(side=LEFT) +- self.ni_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=LEFT) ++ #self.ni_group.pack(fill = 'both', expand = 1, padx = 4, pady = 5, side=LEFT) ++ self.ni_group.grid(padx = 4, pady = 5, sticky=(N, S, E, W)) + + + diff --git a/sci-chemistry/pymol-apbs-plugin/metadata.xml b/sci-chemistry/pymol-apbs-plugin/metadata.xml new file mode 100644 index 000000000000..ae9ec7c5f6a4 --- /dev/null +++ b/sci-chemistry/pymol-apbs-plugin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-chemistry</herd> + <maintainer> + <email>jlec@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p15.ebuild b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p15.ebuild new file mode 100644 index 000000000000..8609778501ce --- /dev/null +++ b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p15.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" + +inherit python + +MY_PV="${PV##*_p}" + +DESCRIPTION="APBS plugin for pymol" +HOMEPAGE="http://sourceforge.net/projects/pymolapbsplugin/" +SRC_URI="http://pymolapbsplugin.svn.sourceforge.net/viewvc/pymolapbsplugin/trunk/src/apbsplugin.py?revision=${MY_PV} -> ${P}.py" + +SLOT="0" +KEYWORDS="~amd64 ~ppc x86 ~amd64-linux ~x86-linux" +LICENSE="pymol" +IUSE="" + +RDEPEND=" + sci-chemistry/apbs + sci-chemistry/pdb2pqr + !<sci-chemistry/pymol-1.2.2-r1" +DEPEND="${RDEPEND}" +RESTRICT_PYTHON_ABIS="3.*" + +src_unpack() { + mkdir "${S}" + cp "${DISTDIR}"/${P}.py "${S}"/ + python_copy_sources +} + +src_install() { + installation() { + sed \ + -e "s:^APBS_BINARY_LOCATION.*:APBS_BINARY_LOCATION = \"${EPREFIX}/usr/bin/apbs\":g" \ + -e "s:^APBS_PSIZE_LOCATION.*:APBS_PSIZE_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/src/\":g" \ + -e "s:^APBS_PDB2PQR_LOCATION.*:APBS_PDB2PQR_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/\":g" \ + -e "s:^TEMPORARY_FILE_DIR.*:TEMPORARY_FILE_DIR = \"./\":g" \ + -i ${P}.py + + insinto $(python_get_sitedir)/pmg_tk/startup/ + newins ${P}.py apbs_tools.py || die + } + python_execute_function -s installation +} + +pkg_postinst() { + python_mod_optimize pmg_tk/startup/apbs_tools.py +} + +pkg_postrm() { + python_mod_cleanup pmg_tk/startup/apbs_tools.py +} diff --git a/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p18.ebuild b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p18.ebuild new file mode 100644 index 000000000000..11596fe54cbf --- /dev/null +++ b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-0_p18.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" + +inherit python + +MY_PV="${PV##*_p}" + +DESCRIPTION="APBS plugin for pymol" +HOMEPAGE="http://sourceforge.net/projects/pymolapbsplugin/" +SRC_URI="http://pymolapbsplugin.svn.sourceforge.net/viewvc/pymolapbsplugin/trunk/src/apbsplugin.py?revision=${MY_PV} -> ${P}.py" + +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux" +LICENSE="pymol" +IUSE="" + +RDEPEND=" + sci-chemistry/apbs + sci-chemistry/pdb2pqr + !<sci-chemistry/pymol-1.2.2-r1" +DEPEND="${RDEPEND}" +RESTRICT_PYTHON_ABIS="3.*" + +src_unpack() { + mkdir "${S}" + cp "${DISTDIR}"/${P}.py "${S}"/ + python_copy_sources +} + +src_install() { + installation() { + sed \ + -e "s:^APBS_BINARY_LOCATION.*:APBS_BINARY_LOCATION = \"${EPREFIX}/usr/bin/apbs\":g" \ + -e "s:^APBS_PSIZE_LOCATION.*:APBS_PSIZE_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/src/\":g" \ + -e "s:^APBS_PDB2PQR_LOCATION.*:APBS_PDB2PQR_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/\":g" \ + -e "s:^TEMPORARY_FILE_DIR.*:TEMPORARY_FILE_DIR = \"./\":g" \ + -i ${P}.py + + insinto $(python_get_sitedir)/pmg_tk/startup/ + newins ${P}.py apbs_tools.py || die + } + python_execute_function -s installation +} + +pkg_postinst() { + python_mod_optimize pmg_tk/startup/apbs_tools.py +} + +pkg_postrm() { + python_mod_cleanup pmg_tk/startup/apbs_tools.py +} diff --git a/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p24.ebuild b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p24.ebuild new file mode 100644 index 000000000000..627780c1ff39 --- /dev/null +++ b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p24.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" + +inherit python + +MY_PV="${PV##*_p}" + +DESCRIPTION="APBS plugin for pymol" +HOMEPAGE="http://sourceforge.net/projects/pymolapbsplugin/" +SRC_URI="http://pymolapbsplugin.svn.sourceforge.net/viewvc/pymolapbsplugin/trunk/src/apbsplugin.py?revision=${MY_PV} -> ${P}.py" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +LICENSE="pymol" +IUSE="" + +RDEPEND=" + sci-chemistry/apbs + sci-chemistry/pdb2pqr + !<sci-chemistry/pymol-1.2.2-r1" +DEPEND="${RDEPEND}" +RESTRICT_PYTHON_ABIS="3.*" + +src_unpack() { + mkdir "${S}" + cp "${DISTDIR}"/${P}.py "${S}"/ + python_copy_sources +} + +src_install() { + installation() { + sed \ + -e "s:^APBS_BINARY_LOCATION.*:APBS_BINARY_LOCATION = \"${EPREFIX}/usr/bin/apbs\":g" \ + -e "s:^APBS_PSIZE_LOCATION.*:APBS_PSIZE_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/src/\":g" \ + -e "s:^APBS_PDB2PQR_LOCATION.*:APBS_PDB2PQR_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/\":g" \ + -e "s:^TEMPORARY_FILE_DIR.*:TEMPORARY_FILE_DIR = \"./\":g" \ + -i ${P}.py + + insinto $(python_get_sitedir)/pmg_tk/startup/ + newins ${P}.py apbs_tools.py || die + } + python_execute_function -s installation +} + +pkg_postinst() { + python_mod_optimize pmg_tk/startup/apbs_tools.py +} + +pkg_postrm() { + python_mod_cleanup pmg_tk/startup/apbs_tools.py +} diff --git a/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p26-r1.ebuild b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p26-r1.ebuild new file mode 100644 index 000000000000..819687b121bc --- /dev/null +++ b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p26-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-r1 + +MY_PV="${PV##*_p}" + +DESCRIPTION="APBS plugin for pymol" +HOMEPAGE="http://sourceforge.net/projects/pymolapbsplugin/" +SRC_URI="http://sourceforge.net/p/pymolapbsplugin/code/${MY_PV}/tree/trunk/src/apbsplugin.py?format=raw -> ${P}.py" + +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux" +LICENSE="pymol" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + sci-chemistry/apbs + sci-chemistry/pdb2pqr + !<sci-chemistry/pymol-1.2.2-r1" +DEPEND="${RDEPEND}" + +src_unpack() { + mkdir "${S}" + cp "${DISTDIR}"/${P}.py "${S}"/ +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-tcltk8.6.patch + python_copy_sources +} + +src_install() { + installation() { + cd "${BUILD_DIR}" || die + sed \ + -e "s:^APBS_BINARY_LOCATION.*:APBS_BINARY_LOCATION = \"${EPREFIX}/usr/bin/apbs\":g" \ + -e "s:^APBS_PSIZE_LOCATION.*:APBS_PSIZE_LOCATION = \"$(python_get_sitedir)/pdb2pqr/src/\":g" \ + -e "s:^APBS_PDB2PQR_LOCATION.*:APBS_PDB2PQR_LOCATION = \"$(python_get_sitedir)/pdb2pqr/\":g" \ + -e "s:^TEMPORARY_FILE_DIR.*:TEMPORARY_FILE_DIR = \"./\":g" \ + ${P}.py > apbs_tools.py || die + + python_moduleinto pmg_tk/startup + python_domodule apbs_tools.py + python_optimize + } + python_parallel_foreach_impl installation +} diff --git a/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p26.ebuild b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p26.ebuild new file mode 100644 index 000000000000..5f4c1affc3de --- /dev/null +++ b/sci-chemistry/pymol-apbs-plugin/pymol-apbs-plugin-2.1_p26.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-r1 + +MY_PV="${PV##*_p}" + +DESCRIPTION="APBS plugin for pymol" +HOMEPAGE="http://sourceforge.net/projects/pymolapbsplugin/" +SRC_URI="http://sourceforge.net/p/pymolapbsplugin/code/${MY_PV}/tree/trunk/src/apbsplugin.py?format=raw -> ${P}.py" + +SLOT="0" +KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +LICENSE="pymol" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + sci-chemistry/apbs + sci-chemistry/pdb2pqr + !<sci-chemistry/pymol-1.2.2-r1" +DEPEND="${RDEPEND}" + +src_unpack() { + mkdir "${S}" + cp "${DISTDIR}"/${P}.py "${S}"/ +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-tcltk8.6.patch + python_copy_sources +} + +src_install() { + installation() { + cd "${BUILD_DIR}" || die + sed \ + -e "s:^APBS_BINARY_LOCATION.*:APBS_BINARY_LOCATION = \"${EPREFIX}/usr/bin/apbs\":g" \ + -e "s:^APBS_PSIZE_LOCATION.*:APBS_PSIZE_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/src/\":g" \ + -e "s:^APBS_PDB2PQR_LOCATION.*:APBS_PDB2PQR_LOCATION = \"${EPREFIX}/$(python_get_sitedir)/pdb2pqr/\":g" \ + -e "s:^TEMPORARY_FILE_DIR.*:TEMPORARY_FILE_DIR = \"./\":g" \ + ${P}.py > apbs_tools.py + + python_moduleinto pmg_tk/startup + python_domodule apbs_tools.py || die + python_optimize + } + python_parallel_foreach_impl installation +} |