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: Mon, 15 Aug 2011 15:55:08 +0000 (UTC)	[thread overview]
Message-ID: <d5fe6f9794ab6175d9b31e6f98af156ca81a42f4.jlec@gentoo> (raw)

commit:     d5fe6f9794ab6175d9b31e6f98af156ca81a42f4
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 22 07:19:08 2011 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Jul 22 07:19:08 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=d5fe6f97

Grap some fedora stuff, fix shadrers patch for current head

(Portage version: 2.2.0_alpha46/git/Linux x86_64, signed Manifest commit with key 70EB7916)

---
 sci-chemistry/pymol/ChangeLog                      |    5 +++
 .../pymol/files/pymol-9999-setup.py.patch          |   24 +++++++++++++++
 sci-chemistry/pymol/files/pymol-9999-shaders.patch |   32 +++++++++++--------
 sci-chemistry/pymol/metadata.xml                   |   20 ++++++------
 sci-chemistry/pymol/pymol-9999.ebuild              |   10 ++----
 5 files changed, 60 insertions(+), 31 deletions(-)

diff --git a/sci-chemistry/pymol/ChangeLog b/sci-chemistry/pymol/ChangeLog
index e3f6e08..b007111 100644
--- a/sci-chemistry/pymol/ChangeLog
+++ b/sci-chemistry/pymol/ChangeLog
@@ -2,6 +2,11 @@
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  22 Jul 2011; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild,
+  +files/pymol-9999-setup.py.patch, files/pymol-9999-shaders.patch,
+  metadata.xml:
+  Grap some fedora stuff, fix shadrers patch for current head
+
   02 Jun 2011; Justin Lecher <jlec@gentoo.org> +files/9999-web.patch,
   pymol-9999.ebuild, metadata.xml:
   Fix collision with dev-python/webpy, #368947

diff --git a/sci-chemistry/pymol/files/pymol-9999-setup.py.patch b/sci-chemistry/pymol/files/pymol-9999-setup.py.patch
new file mode 100644
index 0000000..1267b96
--- /dev/null
+++ b/sci-chemistry/pymol/files/pymol-9999-setup.py.patch
@@ -0,0 +1,24 @@
+ setup.py |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index b0f4dad..8c82722 100644
+--- a/setup.py
++++ b/setup.py
+@@ -156,7 +156,7 @@ else: # linux or other unix
+ #               ("_PYMOL_VMD_PLUGINS",None)
+ 		("NO_MMLIBS",None),
+                 ]
+-    ext_comp_args=["-ffast-math","-funroll-loops","-O3"]
++    ext_comp_args=[]
+     ext_link_args=[]
+   
+ setup ( # Distribution meta-data
+@@ -174,6 +174,7 @@ setup ( # Distribution meta-data
+                 'pmg_tk/skins',
+                 'pmg_tk/skins/normal',                    
+                 'pmg_wx',
++                'pymol2',
+                 'pymol',
+                 'pymol/contrib',                
+                 'pymol/opengl',

diff --git a/sci-chemistry/pymol/files/pymol-9999-shaders.patch b/sci-chemistry/pymol/files/pymol-9999-shaders.patch
index 2caac2d..a20bfe3 100644
--- a/sci-chemistry/pymol/files/pymol-9999-shaders.patch
+++ b/sci-chemistry/pymol/files/pymol-9999-shaders.patch
@@ -1,8 +1,12 @@
-Index: layer0/ShaderMgr.c
-===================================================================
---- layer0/ShaderMgr.c	(revision 3945)
-+++ layer0/ShaderMgr.c	(working copy)
-@@ -400,7 +400,7 @@
+ layer0/ShaderMgr.c |   16 ++++++++--------
+ layer1/Setting.c   |    2 +-
+ 2 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/layer0/ShaderMgr.c b/layer0/ShaderMgr.c
+index 4658b96..092aac8 100644
+--- a/layer0/ShaderMgr.c
++++ b/layer0/ShaderMgr.c
+@@ -416,7 +416,7 @@ int CShaderMgr_ShadersPresent(CShaderMgr * I)
  char * CShaderMgr_ReadShaderFromDisk(PyMOLGlobals * G, const char * fileName) {
    FILE* f;
    long size;
@@ -11,7 +15,7 @@ Index: layer0/ShaderMgr.c
  
    PRINTFB(G, FB_ShaderMgr, FB_Debugging)
      "CShaderMgr_ReadShaderFromDisk: fileName='%s'\n", fileName
-@@ -412,16 +412,16 @@
+@@ -428,16 +428,16 @@ char * CShaderMgr_ReadShaderFromDisk(PyMOLGlobals * G, const char * fileName) {
      return NULL;
    }
    
@@ -20,8 +24,8 @@ Index: layer0/ShaderMgr.c
 +  pymol_data = getenv("PYMOL_DATA");
 +  if (!pymol_data){
      PRINTFB(G, FB_ShaderMgr, FB_Warnings)
--      " PyMOLShader_NewFromFile-Warning: PYMOL_PATH not set, cannot read shader config files from disk\n", fileName ENDFB(G);
-+      " PyMOLShader_NewFromFile-Warning: PYMOL_DATA not set, cannot read shader config files from disk\n", fileName ENDFB(G);
+-      " PyMOLShader_NewFromFile-Warning: PYMOL_PATH not set, cannot read shader config files from disk\n" ENDFB(G);
++      " PyMOLShader_NewFromFile-Warning: PYMOL_DATA not set, cannot read shader config files from disk\n" ENDFB(G);
      return NULL;
    }
    /* make this a setting */
@@ -34,7 +38,7 @@ Index: layer0/ShaderMgr.c
    fullFile = strcat(fullFile, shader_path);
    fullFile = strcat(fullFile, fileName);
  
-@@ -430,7 +430,7 @@
+@@ -446,7 +446,7 @@ char * CShaderMgr_ReadShaderFromDisk(PyMOLGlobals * G, const char * fileName) {
  
    if (!f) {
      PRINTFB(G, FB_ShaderMgr, FB_Errors)
@@ -43,11 +47,11 @@ Index: layer0/ShaderMgr.c
      return NULL;
    } else {
      PRINTFB(G, FB_ShaderMgr, FB_Blather)
-Index: layer1/Setting.c
-===================================================================
---- layer1/Setting.c	(revision 3945)
-+++ layer1/Setting.c	(working copy)
-@@ -3990,7 +3990,7 @@
+diff --git a/layer1/Setting.c b/layer1/Setting.c
+index 29b6bc5..2a70835 100644
+--- a/layer1/Setting.c
++++ b/layer1/Setting.c
+@@ -3991,7 +3991,7 @@ void SettingInitGlobal(PyMOLGlobals * G, int alloc, int reset_gui, int use_defau
      set_b(I, cSetting_line_use_shader, 1);
      set_b(I, cSetting_sphere_use_shader, 1);
      set_b(I, cSetting_use_shaders, 0);  /* disable by default until optimized shaders present; doesn't effect vol */

diff --git a/sci-chemistry/pymol/metadata.xml b/sci-chemistry/pymol/metadata.xml
index 58b73ca..1a70ddc 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 62a7a60..edfdbf2 100644
--- a/sci-chemistry/pymol/pymol-9999.ebuild
+++ b/sci-chemistry/pymol/pymol-9999.ebuild
@@ -43,22 +43,18 @@ RDEPEND="${DEPEND}"
 src_prepare() {
 	epatch \
 		"${FILESDIR}"/${P}-data-path.patch \
-		"${FILESDIR}"/${P}-shaders.patch
+		"${FILESDIR}"/${P}-shaders.patch \
+		"${FILESDIR}"/${P}-setup.py.patch
 
 	use web || epatch "${FILESDIR}"/${PV}-web.patch
 
 	epatch "${FILESDIR}"/${P}-prefix.patch && \
-	eprefixify setup.py
+		eprefixify setup.py
 
 	# Turn off splash screen.  Please do make a project contribution
 	# if you are able though. #299020
 	epatch "${FILESDIR}"/nosplash-gentoo.patch
 
-	# Respect CFLAGS
-	sed -i \
-		-e "s:\(ext_comp_args=\).*:\1[]:g" \
-		"${S}"/setup.py || die "Failed running sed on setup.py"
-
 	use vmd && epatch "${FILESDIR}"/${PV}-vmd.patch
 
 	use numpy && \



             reply	other threads:[~2011-08-15 15:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15 15:55 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-19 19:35 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-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=d5fe6f9794ab6175d9b31e6f98af156ca81a42f4.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