From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4E8691384B4 for ; Thu, 10 Dec 2015 15:01:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA35E21C04F; Thu, 10 Dec 2015 15:01:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 515F921C04F for ; Thu, 10 Dec 2015 15:01:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CDF853409D7 for ; Thu, 10 Dec 2015 15:01:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0660EAF3 for ; Thu, 10 Dec 2015 15:00:57 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1449759655.ca4803f9e53d7108d632e78f91265e72ade4c9be.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/pymol-plugins-emovie/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-chemistry/pymol-plugins-emovie/metadata.xml sci-chemistry/pymol-plugins-emovie/pymol-plugins-emovie-1.0.4.ebuild X-VCS-Directories: sci-chemistry/pymol-plugins-emovie/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: ca4803f9e53d7108d632e78f91265e72ade4c9be X-VCS-Branch: master Date: Thu, 10 Dec 2015 15:00:57 +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: 613521cd-b4a2-42b4-806a-e851cf88126e X-Archives-Hash: 7da3d78dd6f65be2b406933b135564ce commit: ca4803f9e53d7108d632e78f91265e72ade4c9be Author: Justin Lecher gentoo org> AuthorDate: Thu Dec 10 15:00:43 2015 +0000 Commit: Justin Lecher gentoo 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 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 @@ sci-chemistry - - jlec@gentoo.org - + + jlec@gentoo.org + 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 }