From 554e153855749c6bdbc84c31239553af63f301c8 Mon Sep 17 00:00:00 2001 From: "Justin Lecher (jlec)" Date: Fri, 2 Oct 2009 17:49:57 +0200 Subject: pymol bump to 1.2.2 --- sci-chemistry/pymol/ChangeLog | 18 ++++ sci-chemistry/pymol/Manifest | 14 +-- .../pymol/files/1.2.2/nosplash-gentoo.patch | 9 ++ .../pymol/files/1.2.2/pymol-1.2.2-data-path.patch | 30 ++++++ .../pymol/files/1.2.2/pymol-1.2.2-shaders.patch | 10 ++ .../pymol/files/pymol-1.2.0-data-path.patch | 30 ------ .../pymol/files/pymol-1.2.0-shaders.patch | 11 -- .../pymol/files/pymol-1.2.1-data-path.patch | 30 ------ .../pymol/files/pymol-1.2.1-shaders.patch | 10 -- .../pymol/files/pymol-1.2.2-data-path.patch | 30 ++++++ .../pymol/files/pymol-1.2.2-shaders.patch | 10 ++ sci-chemistry/pymol/pymol-1.2.0.ebuild | 115 -------------------- sci-chemistry/pymol/pymol-1.2.2.ebuild | 116 +++++++++++++++++++++ 13 files changed, 231 insertions(+), 202 deletions(-) create mode 100644 sci-chemistry/pymol/files/1.2.2/nosplash-gentoo.patch create mode 100644 sci-chemistry/pymol/files/1.2.2/pymol-1.2.2-data-path.patch create mode 100644 sci-chemistry/pymol/files/1.2.2/pymol-1.2.2-shaders.patch delete mode 100644 sci-chemistry/pymol/files/pymol-1.2.0-data-path.patch delete mode 100644 sci-chemistry/pymol/files/pymol-1.2.0-shaders.patch delete mode 100644 sci-chemistry/pymol/files/pymol-1.2.1-data-path.patch delete mode 100644 sci-chemistry/pymol/files/pymol-1.2.1-shaders.patch create mode 100644 sci-chemistry/pymol/files/pymol-1.2.2-data-path.patch create mode 100644 sci-chemistry/pymol/files/pymol-1.2.2-shaders.patch delete mode 100644 sci-chemistry/pymol/pymol-1.2.0.ebuild create mode 100644 sci-chemistry/pymol/pymol-1.2.2.ebuild diff --git a/sci-chemistry/pymol/ChangeLog b/sci-chemistry/pymol/ChangeLog index 737f24cda..87d4d79af 100644 --- a/sci-chemistry/pymol/ChangeLog +++ b/sci-chemistry/pymol/ChangeLog @@ -2,6 +2,24 @@ # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 02 Oct 2009; Justin Lecher (jlec) + +files/1.2.2/nosplash-gentoo.patch, -pymol-1.2.0.ebuild, + -files/pymol-1.2.0-data-path.patch, -files/pymol-1.2.0-shaders.patch, + -files/pymol-1.2.1-data-path.patch, -files/pymol-1.2.1-shaders.patch, + +pymol-1.2.2.ebuild, +files/1.2.2/pymol-1.2.2-data-path.patch, + +files/pymol-1.2.2-data-path.patch, + +files/1.2.2/pymol-1.2.2-shaders.patch, +files/pymol-1.2.2-shaders.patch: + clean up old stuff + +*pymol-1.2.2 (02 Oct 2009) + + 02 Oct 2009; Justin Lecher (jlec) + +files/1.2.2/nosplash-gentoo.patch, +pymol-1.2.2.ebuild, + +files/1.2.2/pymol-1.2.2-data-path.patch, + +files/pymol-1.2.2-data-path.patch, + +files/1.2.2/pymol-1.2.2-shaders.patch, +files/pymol-1.2.2-shaders.patch: + version bump + *pymol-1.2.1-r1 (24 Aug 2009) 24 Aug 2009; Justin Lecher (jlec) diff --git a/sci-chemistry/pymol/Manifest b/sci-chemistry/pymol/Manifest index 8c1c79f68..3d8ea58d7 100644 --- a/sci-chemistry/pymol/Manifest +++ b/sci-chemistry/pymol/Manifest @@ -1,17 +1,19 @@ AUX 1.2.1/nosplash-gentoo.patch 485 RMD160 3b3d85ffe14a253e54c4ff89b210cf35effe7aee SHA1 627affce7ee9763e308cf6dee70b831e09bd829d SHA256 acf8ef1d53719c1b4158b0f49250e8ed7c3aa4c870ef7ce4bdbc8ec97f591e27 AUX 1.2.1/pymol-1.2.1-data-path.patch 1585 RMD160 e8d505a25869f0abd7b1ef77e1176c5fe7b2a312 SHA1 89464b3780fc48bd239c0e0662dbd1d61665984f SHA256 c89862e631b7bb0e05426ad0550be51501380d4522820a7600708d5290e5dfa8 AUX 1.2.1/pymol-1.2.1-shaders.patch 442 RMD160 db5ee361cd1e253b9aa012098d08eb7873d95da3 SHA1 881d25514bc744d6f12b5f30bfa1709ed45dba05 SHA256 48042a9baf28c35a55204f646f14eddcf5093e17f518d7de2ffc50cbb7914dda +AUX 1.2.2/nosplash-gentoo.patch 485 RMD160 3b3d85ffe14a253e54c4ff89b210cf35effe7aee SHA1 627affce7ee9763e308cf6dee70b831e09bd829d SHA256 acf8ef1d53719c1b4158b0f49250e8ed7c3aa4c870ef7ce4bdbc8ec97f591e27 +AUX 1.2.2/pymol-1.2.2-data-path.patch 1585 RMD160 e8d505a25869f0abd7b1ef77e1176c5fe7b2a312 SHA1 89464b3780fc48bd239c0e0662dbd1d61665984f SHA256 c89862e631b7bb0e05426ad0550be51501380d4522820a7600708d5290e5dfa8 +AUX 1.2.2/pymol-1.2.2-shaders.patch 442 RMD160 db5ee361cd1e253b9aa012098d08eb7873d95da3 SHA1 881d25514bc744d6f12b5f30bfa1709ed45dba05 SHA256 48042a9baf28c35a55204f646f14eddcf5093e17f518d7de2ffc50cbb7914dda AUX nosplash-gentoo.patch 485 RMD160 3b3d85ffe14a253e54c4ff89b210cf35effe7aee SHA1 627affce7ee9763e308cf6dee70b831e09bd829d SHA256 acf8ef1d53719c1b4158b0f49250e8ed7c3aa4c870ef7ce4bdbc8ec97f591e27 -AUX pymol-1.2.0-data-path.patch 1585 RMD160 e8d505a25869f0abd7b1ef77e1176c5fe7b2a312 SHA1 89464b3780fc48bd239c0e0662dbd1d61665984f SHA256 c89862e631b7bb0e05426ad0550be51501380d4522820a7600708d5290e5dfa8 -AUX pymol-1.2.0-shaders.patch 524 RMD160 07d83746617fba941bba8ad95d889e22e5310c9a SHA1 2cbbd82a91029d7c540535c83b0f2663e58a891e SHA256 96b1e2b30c7d6699d87a9efb5cab242db66683f71bfd58bbc69f87ce4df397e0 -AUX pymol-1.2.1-data-path.patch 1585 RMD160 e8d505a25869f0abd7b1ef77e1176c5fe7b2a312 SHA1 89464b3780fc48bd239c0e0662dbd1d61665984f SHA256 c89862e631b7bb0e05426ad0550be51501380d4522820a7600708d5290e5dfa8 -AUX pymol-1.2.1-shaders.patch 442 RMD160 db5ee361cd1e253b9aa012098d08eb7873d95da3 SHA1 881d25514bc744d6f12b5f30bfa1709ed45dba05 SHA256 48042a9baf28c35a55204f646f14eddcf5093e17f518d7de2ffc50cbb7914dda +AUX pymol-1.2.2-data-path.patch 1585 RMD160 e8d505a25869f0abd7b1ef77e1176c5fe7b2a312 SHA1 89464b3780fc48bd239c0e0662dbd1d61665984f SHA256 c89862e631b7bb0e05426ad0550be51501380d4522820a7600708d5290e5dfa8 +AUX pymol-1.2.2-shaders.patch 442 RMD160 db5ee361cd1e253b9aa012098d08eb7873d95da3 SHA1 881d25514bc744d6f12b5f30bfa1709ed45dba05 SHA256 48042a9baf28c35a55204f646f14eddcf5093e17f518d7de2ffc50cbb7914dda AUX pymol-9999-data-path.patch 1585 RMD160 e8d505a25869f0abd7b1ef77e1176c5fe7b2a312 SHA1 89464b3780fc48bd239c0e0662dbd1d61665984f SHA256 c89862e631b7bb0e05426ad0550be51501380d4522820a7600708d5290e5dfa8 AUX pymol-9999-shaders.patch 524 RMD160 07d83746617fba941bba8ad95d889e22e5310c9a SHA1 2cbbd82a91029d7c540535c83b0f2663e58a891e SHA256 96b1e2b30c7d6699d87a9efb5cab242db66683f71bfd58bbc69f87ce4df397e0 DIST apbs_tools.py.090618.bz2 21329 RMD160 80baed718524dfbaff2f0a3b7263fc75c55bf1d9 SHA1 e2c69bb150679f137ba7ff2cfcd0fe2da000612b SHA256 604803ed58f1827b76cbf5f3b58c35859d31c68d51481da4b37e08a1c0656d6e DIST pymol-1.2.1.tar.gz 8276264 RMD160 0b888ef9dfc91057077248bd388327dd9d3ff15b SHA1 2fb71dd69fbfffd2a6b2804766e410c6167be066 SHA256 f8b38fce8b56015c9e40f8af20fe69ae14b758fa2d3578a62ac9d26e97426e78 -EBUILD pymol-1.2.0.ebuild 2726 RMD160 e4fbf3696379427d95b88e1631748c0a7ef2deff SHA1 d79acbbc0a5a8602330c3735cdc7311ff3a94f77 SHA256 4a97a8c7da7056d19a9a1ab8ec58b5311b6868d5267c793fc9e6b782d6f9f5e0 +DIST pymol-1.2.2.tar.gz 8280622 RMD160 e1246c98843fe004e50b5158c0be204a321fc983 SHA1 0d7e564b92564fb3f3db93b8700195f360226ea7 SHA256 15cd754317fff2fc975de1d8bf521f86227eba6674120ef336b819be80b0d7d9 EBUILD pymol-1.2.1-r1.ebuild 2853 RMD160 52f6cfd723b6c641d56b91415e3d9c864fe30914 SHA1 454d659a2efdb76132541d9483238618180fe00a SHA256 6130c4ec3082a6235d4d54aa4bf104b95d7129a4e06f6b76577671ae29f6495e +EBUILD pymol-1.2.2.ebuild 2853 RMD160 a1ed58df5d32ffc0cae65b5daedd8290d4bce112 SHA1 c86b9d79c2ca6fcc0ed84b204f749cabeba44e1a SHA256 9e40a955023862bb493dceb2ef05cc14b75ad9e10f39bcaa0da01062c996bb44 EBUILD pymol-9999.ebuild 2981 RMD160 1d609dd649eadf68293340adb19c3b05b206e5f5 SHA1 b161cc3344f98660cb18e7a97621cf311c297d5f SHA256 3b315033850b04249d94a211b0c5105fcd76f1b938688a44f2e9a274d808f3f9 -MISC ChangeLog 5600 RMD160 756ad80c0250aa0dec71de25039c8820ce12263f SHA1 a936993504eeea76fc37eb4e4e93af34a050781c SHA256 ec76908ab6bde7d495c1619bf097f076a89c3457d6487493840c04335fefa00d +MISC ChangeLog 6379 RMD160 274e2b66def036321a832f929fabb8c0fb1c8f95 SHA1 5d09b241daad1799bf489287d86a7fc4f0fa6259 SHA256 0f4837871662865fd547668436b97ead361ad3848b7328b118563bcb9e1de4f7 MISC metadata.xml 412 RMD160 9c33c90cdb3bc60af7dbee004b7f1cffd1b43aa6 SHA1 efd4a32d739fe54f0f464edc0843c81e9fb23437 SHA256 ee0056aa8c9e40b6da007fa8c895e15c17cb25004212b91d48dad03f6123483c diff --git a/sci-chemistry/pymol/files/1.2.2/nosplash-gentoo.patch b/sci-chemistry/pymol/files/1.2.2/nosplash-gentoo.patch new file mode 100644 index 000000000..3125b2856 --- /dev/null +++ b/sci-chemistry/pymol/files/1.2.2/nosplash-gentoo.patch @@ -0,0 +1,9 @@ +--- modules/pymol/invocation.py 2009-06-25 17:26:27.000000000 +0200 ++++ modules/pymol/invocation.py.new 2009-06-25 17:41:57.000000000 +0200 +@@ -395,6 +395,4 @@ + if loaded_something and (options.after_load_script!=""): + options.deferred.append(options.after_load_script) + options.deferred.extend(final_actions) +- if options.show_splash and not options.no_gui and not restricted: +- options.deferred.insert(0,"_do__ cmd.splash(1)") + diff --git a/sci-chemistry/pymol/files/1.2.2/pymol-1.2.2-data-path.patch b/sci-chemistry/pymol/files/1.2.2/pymol-1.2.2-data-path.patch new file mode 100644 index 000000000..86c3fe1f1 --- /dev/null +++ b/sci-chemistry/pymol/files/1.2.2/pymol-1.2.2-data-path.patch @@ -0,0 +1,30 @@ +diff -arNu -uarN pymol/modules/pymol/commanding.py pymol.new/modules/pymol/commanding.py +--- pymol/modules/pymol/commanding.py 2009-03-31 12:43:14.585834066 +0200 ++++ pymol.new/modules/pymol/commanding.py 2009-03-31 12:44:26.436354330 +0200 +@@ -219,11 +219,11 @@ + _self.unlock(0,_self) + r = DEFAULT_SUCCESS + if show_splash==1: # generic / open-source +- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/splash.png") ++ png_path = _self.exp_path("$PYMOL_DATA/pymol/splash.png") + elif show_splash==2: # evaluation builds +- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/epymol.png") ++ png_path = _self.exp_path("$PYMOL_DATA/pymol/epymol.png") + else: # incentive builds +- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/ipymol.png") ++ png_path = _self.exp_path("$PYMOL_DATA/pymol/ipymol.png") + if os.path.exists(png_path): + _self.do("_ cmd.load_png('%s',0,quiet=1)"%png_path) + else: +diff -arNu -uarN pymol/modules/pymol/importing.py pymol.new/modules/pymol/importing.py +--- pymol/modules/pymol/importing.py 2009-03-31 12:43:14.546250540 +0200 ++++ pymol.new/modules/pymol/importing.py 2009-03-31 12:44:48.876657949 +0200 +@@ -191,7 +191,7 @@ + ''' + r = DEFAULT_ERROR + +- tables = { 'cmyk' : "$PYMOL_PATH/data/pymol/cmyk.png", ++ tables = { 'cmyk' : "$PYMOL_DATA/pymol/cmyk.png", + 'pymol' : 'pymol', + 'rgb' : 'rgb' } + diff --git a/sci-chemistry/pymol/files/1.2.2/pymol-1.2.2-shaders.patch b/sci-chemistry/pymol/files/1.2.2/pymol-1.2.2-shaders.patch new file mode 100644 index 000000000..06f756823 --- /dev/null +++ b/sci-chemistry/pymol/files/1.2.2/pymol-1.2.2-shaders.patch @@ -0,0 +1,10 @@ +--- pymol-1.2_rc1/setup.py.old 2009-07-17 00:05:10.339203020 -0500 ++++ pymol-1.2_rc1/setup.py 2009-07-17 00:09:03.375274561 -0500 +@@ -138,6 +138,7 @@ + ("_PYMOL_INLINE",None), + ("_PYMOL_FREETYPE",None), + ("_PYMOL_LIBPNG",None), ++ ("_PYMOL_OPENGL_SHADERS",None), + # Numeric Python support + # ("_PYMOL_NUMPY",None), + # VMD plugin support diff --git a/sci-chemistry/pymol/files/pymol-1.2.0-data-path.patch b/sci-chemistry/pymol/files/pymol-1.2.0-data-path.patch deleted file mode 100644 index 86c3fe1f1..000000000 --- a/sci-chemistry/pymol/files/pymol-1.2.0-data-path.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -arNu -uarN pymol/modules/pymol/commanding.py pymol.new/modules/pymol/commanding.py ---- pymol/modules/pymol/commanding.py 2009-03-31 12:43:14.585834066 +0200 -+++ pymol.new/modules/pymol/commanding.py 2009-03-31 12:44:26.436354330 +0200 -@@ -219,11 +219,11 @@ - _self.unlock(0,_self) - r = DEFAULT_SUCCESS - if show_splash==1: # generic / open-source -- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/splash.png") -+ png_path = _self.exp_path("$PYMOL_DATA/pymol/splash.png") - elif show_splash==2: # evaluation builds -- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/epymol.png") -+ png_path = _self.exp_path("$PYMOL_DATA/pymol/epymol.png") - else: # incentive builds -- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/ipymol.png") -+ png_path = _self.exp_path("$PYMOL_DATA/pymol/ipymol.png") - if os.path.exists(png_path): - _self.do("_ cmd.load_png('%s',0,quiet=1)"%png_path) - else: -diff -arNu -uarN pymol/modules/pymol/importing.py pymol.new/modules/pymol/importing.py ---- pymol/modules/pymol/importing.py 2009-03-31 12:43:14.546250540 +0200 -+++ pymol.new/modules/pymol/importing.py 2009-03-31 12:44:48.876657949 +0200 -@@ -191,7 +191,7 @@ - ''' - r = DEFAULT_ERROR - -- tables = { 'cmyk' : "$PYMOL_PATH/data/pymol/cmyk.png", -+ tables = { 'cmyk' : "$PYMOL_DATA/pymol/cmyk.png", - 'pymol' : 'pymol', - 'rgb' : 'rgb' } - diff --git a/sci-chemistry/pymol/files/pymol-1.2.0-shaders.patch b/sci-chemistry/pymol/files/pymol-1.2.0-shaders.patch deleted file mode 100644 index 7f4a24f48..000000000 --- a/sci-chemistry/pymol/files/pymol-1.2.0-shaders.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -uarN pymol-9999.orig/setup.py pymol-9999/setup.py ---- pymol-9999.orig/setup.py 2008-06-18 11:47:58.000000000 +0200 -+++ pymol-9999/setup.py 2008-06-18 11:48:52.000000000 +0200 -@@ -143,6 +143,7 @@ - def_macros=[("_PYMOL_MODULE",None), - ("_PYMOL_INLINE",None), - ("_PYMOL_FREETYPE",None), -+ ("_PYMOL_OPENGL_SHADERS",None), - # Numeric Python support - # ("_PYMOL_NUMPY",None), - # VMD plugin support diff --git a/sci-chemistry/pymol/files/pymol-1.2.1-data-path.patch b/sci-chemistry/pymol/files/pymol-1.2.1-data-path.patch deleted file mode 100644 index 86c3fe1f1..000000000 --- a/sci-chemistry/pymol/files/pymol-1.2.1-data-path.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -arNu -uarN pymol/modules/pymol/commanding.py pymol.new/modules/pymol/commanding.py ---- pymol/modules/pymol/commanding.py 2009-03-31 12:43:14.585834066 +0200 -+++ pymol.new/modules/pymol/commanding.py 2009-03-31 12:44:26.436354330 +0200 -@@ -219,11 +219,11 @@ - _self.unlock(0,_self) - r = DEFAULT_SUCCESS - if show_splash==1: # generic / open-source -- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/splash.png") -+ png_path = _self.exp_path("$PYMOL_DATA/pymol/splash.png") - elif show_splash==2: # evaluation builds -- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/epymol.png") -+ png_path = _self.exp_path("$PYMOL_DATA/pymol/epymol.png") - else: # incentive builds -- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/ipymol.png") -+ png_path = _self.exp_path("$PYMOL_DATA/pymol/ipymol.png") - if os.path.exists(png_path): - _self.do("_ cmd.load_png('%s',0,quiet=1)"%png_path) - else: -diff -arNu -uarN pymol/modules/pymol/importing.py pymol.new/modules/pymol/importing.py ---- pymol/modules/pymol/importing.py 2009-03-31 12:43:14.546250540 +0200 -+++ pymol.new/modules/pymol/importing.py 2009-03-31 12:44:48.876657949 +0200 -@@ -191,7 +191,7 @@ - ''' - r = DEFAULT_ERROR - -- tables = { 'cmyk' : "$PYMOL_PATH/data/pymol/cmyk.png", -+ tables = { 'cmyk' : "$PYMOL_DATA/pymol/cmyk.png", - 'pymol' : 'pymol', - 'rgb' : 'rgb' } - diff --git a/sci-chemistry/pymol/files/pymol-1.2.1-shaders.patch b/sci-chemistry/pymol/files/pymol-1.2.1-shaders.patch deleted file mode 100644 index 06f756823..000000000 --- a/sci-chemistry/pymol/files/pymol-1.2.1-shaders.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- pymol-1.2_rc1/setup.py.old 2009-07-17 00:05:10.339203020 -0500 -+++ pymol-1.2_rc1/setup.py 2009-07-17 00:09:03.375274561 -0500 -@@ -138,6 +138,7 @@ - ("_PYMOL_INLINE",None), - ("_PYMOL_FREETYPE",None), - ("_PYMOL_LIBPNG",None), -+ ("_PYMOL_OPENGL_SHADERS",None), - # Numeric Python support - # ("_PYMOL_NUMPY",None), - # VMD plugin support diff --git a/sci-chemistry/pymol/files/pymol-1.2.2-data-path.patch b/sci-chemistry/pymol/files/pymol-1.2.2-data-path.patch new file mode 100644 index 000000000..86c3fe1f1 --- /dev/null +++ b/sci-chemistry/pymol/files/pymol-1.2.2-data-path.patch @@ -0,0 +1,30 @@ +diff -arNu -uarN pymol/modules/pymol/commanding.py pymol.new/modules/pymol/commanding.py +--- pymol/modules/pymol/commanding.py 2009-03-31 12:43:14.585834066 +0200 ++++ pymol.new/modules/pymol/commanding.py 2009-03-31 12:44:26.436354330 +0200 +@@ -219,11 +219,11 @@ + _self.unlock(0,_self) + r = DEFAULT_SUCCESS + if show_splash==1: # generic / open-source +- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/splash.png") ++ png_path = _self.exp_path("$PYMOL_DATA/pymol/splash.png") + elif show_splash==2: # evaluation builds +- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/epymol.png") ++ png_path = _self.exp_path("$PYMOL_DATA/pymol/epymol.png") + else: # incentive builds +- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/ipymol.png") ++ png_path = _self.exp_path("$PYMOL_DATA/pymol/ipymol.png") + if os.path.exists(png_path): + _self.do("_ cmd.load_png('%s',0,quiet=1)"%png_path) + else: +diff -arNu -uarN pymol/modules/pymol/importing.py pymol.new/modules/pymol/importing.py +--- pymol/modules/pymol/importing.py 2009-03-31 12:43:14.546250540 +0200 ++++ pymol.new/modules/pymol/importing.py 2009-03-31 12:44:48.876657949 +0200 +@@ -191,7 +191,7 @@ + ''' + r = DEFAULT_ERROR + +- tables = { 'cmyk' : "$PYMOL_PATH/data/pymol/cmyk.png", ++ tables = { 'cmyk' : "$PYMOL_DATA/pymol/cmyk.png", + 'pymol' : 'pymol', + 'rgb' : 'rgb' } + diff --git a/sci-chemistry/pymol/files/pymol-1.2.2-shaders.patch b/sci-chemistry/pymol/files/pymol-1.2.2-shaders.patch new file mode 100644 index 000000000..06f756823 --- /dev/null +++ b/sci-chemistry/pymol/files/pymol-1.2.2-shaders.patch @@ -0,0 +1,10 @@ +--- pymol-1.2_rc1/setup.py.old 2009-07-17 00:05:10.339203020 -0500 ++++ pymol-1.2_rc1/setup.py 2009-07-17 00:09:03.375274561 -0500 +@@ -138,6 +138,7 @@ + ("_PYMOL_INLINE",None), + ("_PYMOL_FREETYPE",None), + ("_PYMOL_LIBPNG",None), ++ ("_PYMOL_OPENGL_SHADERS",None), + # Numeric Python support + # ("_PYMOL_NUMPY",None), + # VMD plugin support diff --git a/sci-chemistry/pymol/pymol-1.2.0.ebuild b/sci-chemistry/pymol/pymol-1.2.0.ebuild deleted file mode 100644 index 5b872e771..000000000 --- a/sci-chemistry/pymol/pymol-1.2.0.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -PYTHON_MODNAME="chempy pmg_tk pymol" -APBS_PATCH="090618" -REV="3790" - -inherit distutils subversion - -ESVN_REPO_URI="https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol@${REV}" - -DESCRIPTION="A Python-extensible molecular graphics system." -HOMEPAGE="http://pymol.sourceforge.net/" -SRC_URI="apbs? ( http://dev.gentooexperimental.org/~jlec/distfiles/apbs_tools.py.${APBS_PATCH}.bz2 )" - -LICENSE="PSF-2.2" -IUSE="apbs shaders" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND="dev-python/pmw - dev-python/numpy - >=dev-lang/python-2.4[tk] - media-libs/libpng - sys-libs/zlib - virtual/glut - media-video/mpeg-tools - apbs? ( dev-libs/maloc - sci-chemistry/apbs - sci-chemistry/pdb2pqr - )" -DEPEND="${RDEPEND}" - -pkg_setup(){ - python_version -} - -src_unpack() { - use apbs && unpack ${A} - subversion_src_unpack -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-data-path.patch || die - - # Turn off splash screen. Please do make a project contribution - # if you are able though. - [[ -n ${WANT_SPLASH} ]] || epatch "${FILESDIR}"/nosplash-gentoo.patch - - # Respect CFLAGS - sed -i \ - -e "s:\(ext_comp_args=\).*:\1[]:g" \ - "${S}"/setup.py - - use shaders && epatch "${FILESDIR}"/${P}-shaders.patch - - if use apbs; then - cp -f "${WORKDIR}"/apbs_tools.py.${APBS_PATCH} modules/pmg_tk/startup/apbs_tools.py || die - sed "s:LIBANDPYTHON:$(python_get_libdir):g" \ - -i modules/pmg_tk/startup/apbs_tools.py || die - fi -} - -src_configure() { - : -} - -src_install() { - distutils_src_install - - # 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=$(python_get_sitedir)/${PN} - PYMOL_DATA="/usr/share/pymol/data" - PYMOL_SCRIPTS="/usr/share/pymol/scripts" - EOF - - use apbs && \ - echo "APBS_PSIZE=$(python_get_sitedir)/pdb2pqr/src/psize.py" >> "${T}"/20pymol - - doenvd "${T}"/20pymol || die "Failed to install env.d file." - - cat >> "${T}"/pymol <<- EOF - #!/bin/sh - ${python} -O \${PYMOL_PATH}/__init__.py \$* - EOF - - dobin "${T}"/pymol || die "Failed to install wrapper." - - insinto /usr/share/pymol - doins -r test data scripts || die "no shared data" - - insinto /usr/share/pymol/examples - doins -r examples || die "Failed to install docs." - - dodoc DEVELOPERS README || die "Failed to install docs." - - if ! use apbs; then - rm "${D}"$(python_get_sitedir)/pmg_tk/startup/apbs_tools.py - fi -} - -pkg_postinst(){ - distutils_pkg_postinst - - # The apbs ebuild was just corrected and not bumped #213616 - if use apbs; then - [ -e /usr/share/apbs-0.5* ] && \ - ewarn "You need to reemerge sci-chemistry/apbs!" - fi -} diff --git a/sci-chemistry/pymol/pymol-1.2.2.ebuild b/sci-chemistry/pymol/pymol-1.2.2.ebuild new file mode 100644 index 000000000..1e9b05ec1 --- /dev/null +++ b/sci-chemistry/pymol/pymol-1.2.2.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit distutils #subversion + +PYTHON_MODNAME="chempy pmg_tk pymol" +APBS_PATCH="090618" +REV="3859" + +DESCRIPTION="A Python-extensible molecular graphics system." +HOMEPAGE="http://pymol.sourceforge.net/" +SRC_URI="apbs? ( mirror://gentoo/apbs_tools.py.${APBS_PATCH}.bz2 ) + http://pymol.svn.sourceforge.net/viewvc/pymol/trunk/pymol.tar.gz?view=tar&pathrev=${REV} -> ${P}.tar.gz" + +LICENSE="PSF-2.2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="apbs shaders" + +DEPEND="dev-python/pmw + dev-python/numpy + >=dev-lang/python-2.4[tk] + media-libs/libpng + sys-libs/zlib + virtual/glut + media-video/mpeg-tools + apbs? ( dev-libs/maloc + sci-chemistry/apbs + sci-chemistry/pdb2pqr + )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN} + +pkg_setup(){ + python_version +} + +src_prepare() { + epatch "${FILESDIR}"/${PV}/${P}-data-path.patch \ + || die "Failed to apply data-path.patch" + + # Turn off splash screen. Please do make a project contribution + # if you are able though. + [[ -n ${WANT_SPLASH} ]] || epatch "${FILESDIR}"/${PV}/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 shaders && epatch "${FILESDIR}"/${PV}/${P}-shaders.patch + + if use apbs; then + cp -f "${WORKDIR}"/apbs_tools.py.${APBS_PATCH} modules/pmg_tk/startup/apbs_tools.py \ + || die "Failed to copy apbs_tools.py" + + sed "s:LIBANDPYTHON:$(python_get_libdir):g" \ + -i modules/pmg_tk/startup/apbs_tools.py \ + || die "Failed running sed on apbs_tools.py" + fi +} + +src_configure() { + : +} + +src_install() { + distutils_src_install + + # 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=$(python_get_sitedir)/${PN} + PYMOL_DATA="/usr/share/pymol/data" + PYMOL_SCRIPTS="/usr/share/pymol/scripts" + EOF + + if use apbs; then + echo "APBS_PSIZE=$(python_get_sitedir)/pdb2pqr/src/psize.py" >> "${T}"/20pymol + fi + + doenvd "${T}"/20pymol || die "Failed to install env.d file." + + cat >> "${T}"/pymol <<- EOF + #!/bin/sh + ${python} -O \${PYMOL_PATH}/__init__.py \$* + EOF + + dobin "${T}"/pymol || die "Failed to install wrapper." + + insinto /usr/share/pymol + doins -r test data scripts || die "no shared data" + + insinto /usr/share/pymol/examples + doins -r examples || die "Failed to install docs." + + dodoc DEVELOPERS README || die "Failed to install docs." + + if ! use apbs; then + rm "${D}"$(python_get_sitedir)/pmg_tk/startup/apbs_tools.py + fi +} + +pkg_postinst(){ + distutils_pkg_postinst + + # The apbs ebuild was just corrected and not bumped #213616 + if use apbs; then + [ -e /usr/share/apbs-0.5* ] && \ + ewarn "You need to reemerge sci-chemistry/apbs!" + fi +} -- cgit v1.2.3-65-gdbad