commit:     5f7b312a1fa336fc5f4b98909502579ce5557155
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 20 18:00:45 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Oct 20 18:01:10 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=5f7b312a

sci-chemistry/pymol: Fix broken plugin listing

Package-Manager: portage-2.2.14

---
 sci-chemistry/pymol/ChangeLog                      |  4 ++++
 sci-chemistry/pymol/files/pymol-9999-listing.patch | 17 +++++++++++++++++
 sci-chemistry/pymol/pymol-9999.ebuild              |  1 +
 3 files changed, 22 insertions(+)

diff --git a/sci-chemistry/pymol/ChangeLog b/sci-chemistry/pymol/ChangeLog
index 2cce805..0364715 100644
--- a/sci-chemistry/pymol/ChangeLog
+++ b/sci-chemistry/pymol/ChangeLog
@@ -3,6 +3,10 @@
 # $Header: $
 
   20 Oct 2014; Justin Lecher <[email protected]> pymol-9999.ebuild,
+  +files/pymol-9999-listing.patch:
+  Fix broken plugin listing
+
+  20 Oct 2014; Justin Lecher <[email protected]> pymol-9999.ebuild,
   +files/pymol-9999-options.patch:
   Fix upstream buildsystem
 

diff --git a/sci-chemistry/pymol/files/pymol-9999-listing.patch 
b/sci-chemistry/pymol/files/pymol-9999-listing.patch
new file mode 100644
index 0000000..1b4039c
--- /dev/null
+++ b/sci-chemistry/pymol/files/pymol-9999-listing.patch
@@ -0,0 +1,17 @@
+ pymol/modules/pymol/plugins/repository.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/pymol/modules/pymol/plugins/repository.py 
b/pymol/modules/pymol/plugins/repository.py
+index 9697f68..9820fac 100644
+--- a/pymol/modules/pymol/plugins/repository.py
++++ b/pymol/modules/pymol/plugins/repository.py
+@@ -182,7 +182,8 @@ class GithubRepository(HttpRepository):
+ 
+     def fetchjson(self, url):
+         handle = urlopen('https://api.github.com' + url)
+-        return eval(handle.read())
++        ret = handle.read().replace("false", "False")
++        return eval(ret)
+ 
+ class LocalRepository(Repository):
+     def __init__(self, url):

diff --git a/sci-chemistry/pymol/pymol-9999.ebuild 
b/sci-chemistry/pymol/pymol-9999.ebuild
index a811e69..cbc6a4b 100644
--- a/sci-chemistry/pymol/pymol-9999.ebuild
+++ b/sci-chemistry/pymol/pymol-9999.ebuild
@@ -39,6 +39,7 @@ RDEPEND="${DEPEND}"
 
 PATCHES=(
        "${FILESDIR}"/${P}-options.patch
+       "${FILESDIR}"/${P}-listing.patch
 )
 
 src_unpack() {

Reply via email to