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/, sci-chemistry/pymol/files/
Date: Tue, 19 Feb 2013 19:35:10 +0000 (UTC)	[thread overview]
Message-ID: <1361218925.e4f5b3533db0f3b40cbcfeee0adbcc8684c37972.jlec@gentoo> (raw)

commit:     e4f5b3533db0f3b40cbcfeee0adbcc8684c37972
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 18 20:22:05 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Feb 18 20:22:05 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e4f5b353

sci-chemistry/pymol: Adapt to current HEAD

Package-Manager: portage-2.2.0_alpha163

---
 sci-chemistry/pymol/ChangeLog                     |    4 ++
 sci-chemistry/pymol/files/pymol-9999-flags.patch  |   19 ----------
 sci-chemistry/pymol/files/pymol-9999-prefix.patch |   41 ---------------------
 sci-chemistry/pymol/metadata.xml                  |    1 -
 sci-chemistry/pymol/pymol-9999.ebuild             |   20 +++--------
 5 files changed, 9 insertions(+), 76 deletions(-)

diff --git a/sci-chemistry/pymol/ChangeLog b/sci-chemistry/pymol/ChangeLog
index fe1b0b7..9652f4b 100644
--- a/sci-chemistry/pymol/ChangeLog
+++ b/sci-chemistry/pymol/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  18 Feb 2013; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild,
+  -files/pymol-9999-flags.patch, -files/pymol-9999-prefix.patch, metadata.xml:
+  Adapt to current HEAD
+
   15 Feb 2013; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild,
   -files/pymol-9999-data-path.patch, files/pymol-9999-flags.patch,
   -files/pymol-9999-nosplash.patch, files/pymol-9999-prefix.patch,

diff --git a/sci-chemistry/pymol/files/pymol-9999-flags.patch b/sci-chemistry/pymol/files/pymol-9999-flags.patch
deleted file mode 100644
index 528e220..0000000
--- a/sci-chemistry/pymol/files/pymol-9999-flags.patch
+++ /dev/null
@@ -1,19 +0,0 @@
- pymol/setup.py | 5 +----
- 1 file changed, 1 insertion(+), 4 deletions(-)
-
-diff --git a/pymol/setup.py b/pymol/setup.py
-index b8d7070..7fc11fb 100644
---- a/pymol/setup.py
-+++ b/pymol/setup.py
-@@ -252,10 +252,7 @@ else: # linux or other unix
-                    ("_PYMOL_GL_CALLLISTS",None),
-                    ("OPENGL_ES_2",None),
-                    ]
--    ext_comp_args = [ "-ffast-math",
--                      "-funroll-loops",
--                      "-O3",
--                      "-g" ]
-+    ext_comp_args = []
- 
- def get_pymol_version():
-     return re.findall(r'_PyMOL_VERSION "(.*)"', open('layer0/Version.h').read())[0]

diff --git a/sci-chemistry/pymol/files/pymol-9999-prefix.patch b/sci-chemistry/pymol/files/pymol-9999-prefix.patch
deleted file mode 100644
index 0334845..0000000
--- a/sci-chemistry/pymol/files/pymol-9999-prefix.patch
+++ /dev/null
@@ -1,41 +0,0 @@
- pymol/setup.py | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/pymol/setup.py b/pymol/setup.py
-index b8d7070..378bbf6 100644
---- a/pymol/setup.py
-+++ b/pymol/setup.py
-@@ -185,12 +185,12 @@ elif sys.platform=='darwin':
-                   "/sw/include/freetype2/freetype",
-                   "/sw/include/freetype2",
-                   "/sw/include",
--                  "/usr/X11/include",
-+                  "@GENTOO_PORTAGE_EPREFIX@/usr/X11/include",
-                   ]
-         ext_link_args=[
-                        "-L/sw/lib", "-lpng",
--                       "/usr/X11/lib/libGL.dylib",
--                       "/usr/X11/lib/libGLU.dylib",
-+                       "@GENTOO_PORTAGE_EPREFIX@/usr/X11/lib/libGL.dylib",
-+                       "@GENTOO_PORTAGE_EPREFIX@/usr/X11/lib/libGLU.dylib",
-                        "-lfreeglut",
-                        "-lglew",
-                        "-L/sw/lib/freetype219/lib", "-lfreetype"
-@@ -220,7 +220,7 @@ elif sys.platform=='darwin':
- else: # linux or other unix
- 
-     inc_dirs += [
--                 "/usr/include/freetype2",
-+                 "@GENTOO_PORTAGE_EPREFIX@/usr/include/freetype2",
-                  ]
-     libs = [ "GL",
-              "GLU",
-@@ -235,7 +235,7 @@ else: # linux or other unix
-                    "GLU",
-                    "glut",
-                    "GLEW"]
--    lib_dirs = [ "/usr/X11R6/lib64", ]
-+    lib_dirs = [ "@GENTOO_PORTAGE_EPREFIX@/usr/X11R6/lib64", ]
-     def_macros += [
-                    ("_PYMOL_INLINE",None),
-                    ("_PYMOL_FREETYPE",None),

diff --git a/sci-chemistry/pymol/metadata.xml b/sci-chemistry/pymol/metadata.xml
index 388b22d..e2aa7cd 100644
--- a/sci-chemistry/pymol/metadata.xml
+++ b/sci-chemistry/pymol/metadata.xml
@@ -6,6 +6,5 @@
   </maintainer>
   <use>
     <flag name="apbs">Pymol supprt for sci-chemistry/apbs</flag>
-    <flag name="numpy">Enable numpy support for Pymol</flag>
   </use>
 </pkgmetadata>

diff --git a/sci-chemistry/pymol/pymol-9999.ebuild b/sci-chemistry/pymol/pymol-9999.ebuild
index 12bf73d..cd05037 100644
--- a/sci-chemistry/pymol/pymol-9999.ebuild
+++ b/sci-chemistry/pymol/pymol-9999.ebuild
@@ -17,7 +17,7 @@ ESVN_REPO_URI="https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol"
 LICENSE="PSF-2.2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
-IUSE="apbs +numpy"
+IUSE="apbs"
 
 DEPEND="
 	dev-python/numpy
@@ -43,23 +43,13 @@ src_unpack() {
 }
 
 python_prepare_all() {
-	local PATCHES=(
-		"${FILESDIR}"/${P}-flags.patch
-		"${FILESDIR}"/${P}-prefix.patch
-		)
-
-	if use numpy; then
-		sed \
-			-e '/PYMOL_NUMPY/s:^#::g' \
-			-i setup.py || die
-	fi
-
-	rm ./modules/pmg_tk/startup/apbs_tools.py || die
-
 	sed \
-		-e "s:/opt/local:${EPREFIX}/usr:g" \
+		-e "s:\"/usr:\"${EPREFIX}/usr:g" \
+		-e "/ext_comp_args/s:=.*$:=:g" \
 		-i setup.py || die
 
+	rm ./modules/pmg_tk/startup/apbs_tools.py || die
+
 	distutils-r1_python_prepare_all
 
 	eprefixify setup.py


             reply	other threads:[~2013-02-19 19:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-19 19:35 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-10-30 13:48 [gentoo-commits] proj/sci:master commit in: sci-chemistry/pymol/, sci-chemistry/pymol/files/ Justin Lecher
2014-10-20 18:01 Justin Lecher
2013-02-15 15:52 Justin Lecher
2012-05-02 19:22 Justin Lecher
2012-03-29  9:07 Justin Lecher
2012-02-20 14:30 Justin Lecher
2012-02-19 12:44 Justin Lecher
2011-12-06 16:35 Justin Lecher
2011-08-31 10:05 Justin Lecher
2011-08-26 16:01 Justin Lecher
2011-08-15 15:55 Justin Lecher
2011-06-12 10:53 Justin Lecher
2011-04-28  7:58 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=1361218925.e4f5b3533db0f3b40cbcfeee0adbcc8684c37972.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