public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/pymol/
Date: Tue, 29 Jan 2013 15:20:29 +0000 (UTC)	[thread overview]
Message-ID: <1359472476.b61bef4418f124efdf37752805951f79b6572a7a.jlec@gentoo> (raw)

commit:     b61bef4418f124efdf37752805951f79b6572a7a
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 29 15:14:36 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Jan 29 15:14:36 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b61bef44

sci-chemistry/pymol: Bump python eclass

Package-Manager: portage-2.2.0_alpha161

---
 sci-chemistry/pymol/ChangeLog         |    5 ++-
 sci-chemistry/pymol/metadata.xml      |   20 ++++++------
 sci-chemistry/pymol/pymol-9999.ebuild |   57 ++++++++++++++++-----------------
 3 files changed, 42 insertions(+), 40 deletions(-)

diff --git a/sci-chemistry/pymol/ChangeLog b/sci-chemistry/pymol/ChangeLog
index 83d97e1..c88876a 100644
--- a/sci-chemistry/pymol/ChangeLog
+++ b/sci-chemistry/pymol/ChangeLog
@@ -1,7 +1,10 @@
 # ChangeLog for sci-chemistry/pymol
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  29 Jan 2013; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild, metadata.xml:
+  Bump python eclass
+
   15 Oct 2012; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild:
   Add mime type definition
 

diff --git a/sci-chemistry/pymol/metadata.xml b/sci-chemistry/pymol/metadata.xml
index 1a70ddc..8ada2f2 100644
--- a/sci-chemistry/pymol/metadata.xml
+++ b/sci-chemistry/pymol/metadata.xml
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <pkgmetadata>
-	<herd>sci-chemistry</herd>
-	<maintainer>
-		<email>jlec@gentoo.org</email>
-	</maintainer>
-	<use>
-		<flag name="apbs">Pymol supprt for sci-chemistry/apbs</flag>
-		<flag name="numpy">Enable numpy support for Pymol</flag>
-		<flag name="vmd">Builds molfile plugin support</flag>
-		<flag name="web">Install Pymodule needed for web app support</flag>
-	</use>
+  <herd>sci-chemistry</herd>
+  <maintainer>
+    <email>jlec@gentoo.org</email>
+  </maintainer>
+  <use>
+    <flag name="apbs">Pymol supprt for sci-chemistry/apbs</flag>
+    <flag name="numpy">Enable numpy support for Pymol</flag>
+    <flag name="vmd">Builds molfile plugin support</flag>
+    <flag name="web">Install Pymodule needed for web app support</flag>
+  </use>
 </pkgmetadata>

diff --git a/sci-chemistry/pymol/pymol-9999.ebuild b/sci-chemistry/pymol/pymol-9999.ebuild
index 932aa80..5cddebf 100644
--- a/sci-chemistry/pymol/pymol-9999.ebuild
+++ b/sci-chemistry/pymol/pymol-9999.ebuild
@@ -1,16 +1,13 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI=4
+EAPI=5
 
-PYTHON_DEPEND="2:2.7"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.4 2.5 2.6 3.* *-jython 2.7-pypy-*"
-PYTHON_USE_WITH="tk"
-PYTHON_MODNAME="${PN} chempy pmg_tk pmg_wx"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="tk"
 
-inherit distutils eutils fdo-mime prefix subversion versionator
+inherit distutils-r1 fdo-mime prefix subversion versionator
 
 DESCRIPTION="A Python-extensible molecular graphics system."
 HOMEPAGE="http://pymol.sourceforge.net/"
@@ -24,7 +21,7 @@ IUSE="apbs numpy vmd web"
 
 DEPEND="
 	dev-python/numpy
-	dev-python/pmw
+	dev-python/pmw[${PYTHON_USEDEP}]
 	media-libs/freetype:2
 	media-libs/glew
 	media-libs/libpng
@@ -45,18 +42,16 @@ src_unpack() {
 	subversion_src_unpack
 }
 
-src_prepare() {
-	epatch \
-		"${FILESDIR}"/${P}-setup.py.patch \
-		"${FILESDIR}"/${P}-data-path.patch \
+python_prepare_all() {
+	local PATCHES=(
+		"${FILESDIR}"/${P}-setup.py.patch
+		"${FILESDIR}"/${P}-data-path.patch
 		"${FILESDIR}"/${P}-flags.patch
+		"${FILESDIR}"/${P}-prefix.patch
+		)
 
-	use web || epatch "${FILESDIR}"/${P}-web.patch
-
-	epatch "${FILESDIR}"/${P}-prefix.patch && \
-		eprefixify setup.py
-
-	use vmd && epatch "${FILESDIR}"/${P}-vmd.patch
+	use web || PATCHES+=( "${FILESDIR}"/${P}-web.patch )
+	use vmd && PATCHES+=( "${FILESDIR}"/${P}-vmd.patch )
 
 	if use numpy; then
 		sed \
@@ -66,29 +61,33 @@ src_prepare() {
 
 	rm ./modules/pmg_tk/startup/apbs_tools.py || die
 
-	echo "site_packages = \'$(python_get_sitedir -f)\'" > setup3.py || die
+	python_export python2_7 EPYTHON PYTHON_SITEDIR
+	echo "site_packages = \'$(python_get_sitedir)\'" > setup3.py || die
 
 	sed \
 		-e "s:/opt/local:${EPREFIX}/usr:g" \
 		-e '/ext_comp_args/s:\[.*\]:[]:g' \
 		-i setup.py || die
 
-	# python 3.* fix
-	# sed '452,465d' -i setup.py
-	distutils_src_prepare
+	distutils-r1_python_prepare_all
+
+	eprefixify setup.py
 }
 
-src_configure() {
-	:
+src_prepare() {
+	subversion_src_prepare
+	distutils-r1_src_prepare
 }
 
-src_install() {
-	distutils_src_install
+python_install_all() {
+	distutils-r1_python_install_all
+
+	python_export python2_7 EPYTHON
 
 	# 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
-		PYMOL_PATH="${EPREFIX}/$(python_get_sitedir -f)/${PN}"
+		PYMOL_PATH="${EPREFIX}/$(python_get_sitedir)/${PN}"
 		PYMOL_DATA="${EPREFIX}/usr/share/pymol/data"
 		PYMOL_SCRIPTS="${EPREFIX}/usr/share/pymol/scripts"
 	EOF
@@ -97,7 +96,7 @@ src_install() {
 
 	cat >> "${T}"/pymol <<- EOF
 	#!/bin/sh
-	$(PYTHON -f) -O \${PYMOL_PATH}/__init__.py -q \$*
+	${EPYTHON} -O \${PYMOL_PATH}/__init__.py -q \$*
 	EOF
 
 	dobin "${T}"/pymol


             reply	other threads:[~2013-01-29 15:20 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29 15:20 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-22 11:59 [gentoo-commits] proj/sci:master commit in: sci-chemistry/pymol/ Aisha Tammy
2015-11-12 16:23 Justin Lecher
2015-08-27 15:01 Justin Lecher
2015-03-16  7:16 Justin Lecher
2015-03-14  8:21 Justin Lecher
2014-10-27 17:20 Justin Lecher
2014-10-21  6:47 Justin Lecher
2014-10-17  7:50 Justin Lecher
2014-05-01 12:23 Justin Lecher
2014-02-15 11:07 Justin Lecher
2014-01-18  7:39 Justin Lecher
2014-01-18  7:39 Justin Lecher
2014-01-18  7:38 Justin Lecher
2014-01-18  7:38 Justin Lecher
2013-07-24  9:17 Justin Lecher
2013-06-26 14:55 Justin Lecher
2013-06-26  7:39 ` Justin Lecher
2013-06-26 14:55 Justin Lecher
2013-06-26 14:45 ` Justin Lecher
2013-06-26 14:53 Justin Lecher
2013-06-26 14:53 Justin Lecher
2013-03-26 15:34 Justin Lecher
2013-03-03 17:52 Justin Lecher
2013-02-19 19:35 Justin Lecher
2013-02-19 19:35 Justin Lecher
2012-10-24  6:36 Justin Lecher
2012-08-13 20:22 Justin Lecher
2012-03-29 10:44 Justin Lecher
2012-03-29 10:44 Justin Lecher
2012-03-04  8:41 Justin Lecher
2011-06-24 17:09 Justin Lecher
2011-04-04 11:18 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1359472476.b61bef4418f124efdf37752805951f79b6572a7a.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox