public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/pymol-plugins-emovie/
@ 2015-12-10 15:00 Justin Lecher
  0 siblings, 0 replies; only message in thread
From: Justin Lecher @ 2015-12-10 15:00 UTC (permalink / raw
  To: gentoo-commits

commit:     ca4803f9e53d7108d632e78f91265e72ade4c9be
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 10 15:00:43 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Dec 10 15:00:55 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca4803f9

sci-chemistry/pymol-plugins-emovie: Bump to EAPI=5 and python-r1.eclass

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=567928

Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 sci-chemistry/pymol-plugins-emovie/metadata.xml    |  6 +--
 .../pymol-plugins-emovie-1.0.4.ebuild              | 46 +++++++---------------
 2 files changed, 17 insertions(+), 35 deletions(-)

diff --git a/sci-chemistry/pymol-plugins-emovie/metadata.xml b/sci-chemistry/pymol-plugins-emovie/metadata.xml
index 18330bb..1837bbc 100644
--- a/sci-chemistry/pymol-plugins-emovie/metadata.xml
+++ b/sci-chemistry/pymol-plugins-emovie/metadata.xml
@@ -2,7 +2,7 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 	<herd>sci-chemistry</herd>
-<maintainer>
-	<email>jlec@gentoo.org</email>
-</maintainer>
+	<maintainer>
+		<email>jlec@gentoo.org</email>
+	</maintainer>
 </pkgmetadata>

diff --git a/sci-chemistry/pymol-plugins-emovie/pymol-plugins-emovie-1.0.4.ebuild b/sci-chemistry/pymol-plugins-emovie/pymol-plugins-emovie-1.0.4.ebuild
index 38a48fd..667dcf3 100644
--- a/sci-chemistry/pymol-plugins-emovie/pymol-plugins-emovie-1.0.4.ebuild
+++ b/sci-chemistry/pymol-plugins-emovie/pymol-plugins-emovie-1.0.4.ebuild
@@ -1,14 +1,14 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="3"
+EAPI=5
 
-SUPPORT_PYTHON_ABIS="1"
+PYTHON_COMPAT=( python2_7 )
 
-inherit eutils python
+inherit eutils python-r1
 
-DESCRIPTION="eMovie is a plug-in tool for the molecular visualization program PyMOL"
+DESCRIPTION="PyMOL plugin for convinient movie creation"
 SRC_URI="http://www.weizmann.ac.il/ISPC/eMovie_package.zip"
 HOMEPAGE="http://www.weizmann.ac.il/ISPC/eMovie.html"
 
@@ -17,38 +17,20 @@ LICENSE="GPL-2"
 KEYWORDS="~x86 ~amd64 ~x86-linux ~amd64-linux"
 IUSE=""
 
-RDEPEND=">sci-chemistry/pymol-0.99"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+	>sci-chemistry/pymol-0.99[${PYTHON_USEDEP}]"
 DEPEND="app-arch/unzip"
-#RESTRICT_PYTHON_ABIS="3.*"
+
+S="${WORKDIR}"
 
 src_prepare() {
 	epatch "${FILESDIR}"/${PV}-indent.patch
-
-	mkdir ${P}
-	mv e* ${P}/
-
-	python_copy_sources
-
-	conversion() {
-		[[ "${PYTHON_ABI}" == 2.* ]] && return
-
-		2to3-${PYTHON_ABI} -w eMovie.py > /dev/null
-	}
-	python_execute_function --action-message 'Applying patches for Python ${PYTHON_ABI}' --failure-message 'Applying patches for Python ${PYTHON_ABI} failed' -s conversion
 }
 
 src_install(){
-	installation() {
-		insinto $(python_get_sitedir)/pmg_tk/startup/
-		doins eMovie.py || die
-	}
-	python_execute_function -s installation
-}
-
-pkg_postinst(){
-	python_mod_optimize pmg_tk/startup
-}
-
-pkg_postrm() {
-	python_mod_cleanup pmg_tk/startup
+	python_moduleinto pmg_tk/startup
+	python_foreach_impl python_domodule eMovie.py
+	python_foreach_impl python_optimize
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-10 15:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-10 15:00 [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/pymol-plugins-emovie/ Justin Lecher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox