pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

uzbl-git: Port auth.py to Python 3



Module Name:	pkgsrc-wip
Committed By:	Mateusz Poszwa <old4%o2.pl@localhost>
Pushed By:	f8l
Date:		Tue Feb 21 23:04:14 2017 +0100
Changeset:	2d3b6db3efe3803ef17d1ab6e50f655373fdf2cb

Modified Files:
	uzbl-git/Makefile
	uzbl-git/distinfo
Added Files:
	uzbl-git/patches/patch-examples_data_scripts_auth.py

Log Message:
uzbl-git: Port auth.py to Python 3

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2d3b6db3efe3803ef17d1ab6e50f655373fdf2cb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 uzbl-git/Makefile                                    |  7 +++++--
 uzbl-git/distinfo                                    |  1 +
 uzbl-git/patches/patch-examples_data_scripts_auth.py | 20 ++++++++++++++++++++
 3 files changed, 26 insertions(+), 2 deletions(-)

diffs:
diff --git a/uzbl-git/Makefile b/uzbl-git/Makefile
index 360c69018a..3055934e1b 100644
--- a/uzbl-git/Makefile
+++ b/uzbl-git/Makefile
@@ -50,11 +50,14 @@ PLIST_SUBST+=	EGG_FILE=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
 PRINT_PLIST_AWK+=	{ gsub("${EGG_NAME}-py${PYVERSSUFFIX}.egg-info", \
 				"$${EGG_FILE}") }
 
+pre-configure:
+	${RM} ${WRKSRC}/examples/data/scripts/auth.py.orig
+
 BUILD_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 # for uzbl-browser
 DEPENDS+=	${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
-# for uzbl-tabbed with GTK+ 2
-#DEPENDS+=	${PYPKGPREFIX}-gtk2-[0-9]*:../../x11/py-gtk2
+# for auth.py
+DEPENDS+=	${PYPKGPREFIX}-gobject3-[0-9]*:../../devel/py-gobject3
 
 .include "../../www/webkit-gtk/buildlink3.mk"
 .include "../../security/gnutls/buildlink3.mk"
diff --git a/uzbl-git/distinfo b/uzbl-git/distinfo
index afc76512f4..93b9dbed8d 100644
--- a/uzbl-git/distinfo
+++ b/uzbl-git/distinfo
@@ -1,2 +1,3 @@
 $NetBSD$
 
+SHA1 (patch-examples_data_scripts_auth.py) = 29f222ebd756c617e9d26313fb229d3bec87c0cf
diff --git a/uzbl-git/patches/patch-examples_data_scripts_auth.py b/uzbl-git/patches/patch-examples_data_scripts_auth.py
new file mode 100644
index 0000000000..9742641716
--- /dev/null
+++ b/uzbl-git/patches/patch-examples_data_scripts_auth.py
@@ -0,0 +1,20 @@
+$NetBSD$
+
+Port to Python 3
+
+--- examples/data/scripts/auth.py.orig	2016-07-07 11:51:48.000000000 +0000
++++ examples/data/scripts/auth.py
+@@ -3,6 +3,13 @@
+ from __future__ import print_function
+ 
+ import os
++try:
++    import pygtkcompat
++except ImportError:
++    pygtkcompat = None
++if not (pygtkcompat is None):
++    pygtkcompat.enable()
++    pygtkcompat.enable_gtk()
+ import gtk
+ import sys
+ import argparse


Home | Main Index | Thread Index | Old Index