Hi,
Update to latest version and remove maintainer per his request.
This is required by the anki update (sent separately).
OK?
f.-
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/py-httplib2/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile 3 Dec 2012 13:08:08 -0000 1.8
+++ Makefile 23 Dec 2012 16:09:39 -0000
@@ -2,17 +2,14 @@
COMMENT = Python HTTP client library
-MODPY_EGG_VERSION = 0.6.0
+MODPY_EGG_VERSION = 0.7.7
DISTNAME = httplib2-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
-REVISION = 2
CATEGORIES = www net
HOMEPAGE = http://code.google.com/p/httplib2/
-MAINTAINER = Benoit Chesneau <[email protected]>
-
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
@@ -23,11 +20,17 @@ MASTER_SITES = http://httplib2.googleco
MODULES = lang/python
+MODPY_SETUPTOOLS = Yes
+
+pre-patch:
+ @perl -pi -e 's|\r\n|\n|g' ${WRKDIST}/python3/httplib2test.py
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-httplib2
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/py-httplib2
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}httplib2
+ ${INSTALL_DATA} ${WRKSRC}/README \
+ ${PREFIX}/share/doc/${MODPY_PY_PREFIX}httplib2
do-regress:
- ${MODPY_BIN} ${WRKSRC}/lib/httplib2/iri2uri.py
+ ${MODPY_BIN} ${WRKSRC}/python${MODPY_MAJOR_VERSION}/httplib2test.py
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/py-httplib2/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo 23 Nov 2010 15:08:16 -0000 1.2
+++ distinfo 23 Dec 2012 16:09:39 -0000
@@ -1,5 +1,2 @@
-MD5 (httplib2-0.6.0.tar.gz) = BPc+KWwCyc1xUdszomcbfA==
-RMD160 (httplib2-0.6.0.tar.gz) = v7p6WGvTsiNMjMvxXyzFZAvU9mQ=
-SHA1 (httplib2-0.6.0.tar.gz) = mVNEsnBIJswNYaJm6ZWzKNkkRaU=
-SHA256 (httplib2-0.6.0.tar.gz) = WN4Gjlr1ZhxWaruHGnUTPMgpfmRz/z8V6YB51X2jl4w=
-SIZE (httplib2-0.6.0.tar.gz) = 53800
+SHA256 (httplib2-0.7.7.tar.gz) = LizhgJLDLR7FT4pEfhTjNYXjDyQLiDv+7KZfErO8+vY=
+SIZE (httplib2-0.7.7.tar.gz) = 144020
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/www/py-httplib2/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST 23 Nov 2010 15:08:16 -0000 1.2
+++ pkg/PLIST 23 Dec 2012 16:09:40 -0000
@@ -1,9 +1,16 @@
@comment $OpenBSD: PLIST,v 1.2 2010/11/23 15:08:16 fgsch Exp $
lib/python${MODPY_VERSION}/site-packages/httplib2/
-lib/python${MODPY_VERSION}/site-packages/httplib2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
+lib/python${MODPY_VERSION}/site-packages/httplib2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
+lib/python${MODPY_VERSION}/site-packages/httplib2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
+lib/python${MODPY_VERSION}/site-packages/httplib2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
+lib/python${MODPY_VERSION}/site-packages/httplib2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
+lib/python${MODPY_VERSION}/site-packages/httplib2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/httplib2/__init__.py
lib/python${MODPY_VERSION}/site-packages/httplib2/__init__.pyc
+lib/python${MODPY_VERSION}/site-packages/httplib2/cacerts.txt
lib/python${MODPY_VERSION}/site-packages/httplib2/iri2uri.py
lib/python${MODPY_VERSION}/site-packages/httplib2/iri2uri.pyc
-share/doc/py-httplib2/
-share/doc/py-httplib2/README
+lib/python${MODPY_VERSION}/site-packages/httplib2/socks.py
+lib/python${MODPY_VERSION}/site-packages/httplib2/socks.pyc
+share/doc/${MODPY_PY_PREFIX}httplib2/
+share/doc/${MODPY_PY_PREFIX}httplib2/README
Index: patches/patch-python2_httplib2test_py
===================================================================
RCS file: patches/patch-python2_httplib2test_py
diff -N patches/patch-python2_httplib2test_py
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-python2_httplib2test_py 23 Dec 2012 16:09:53 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- python2/httplib2test.py.orig Fri Nov 16 13:20:22 2012
++++ python2/httplib2test.py Sun Dec 23 16:04:06 2012
+@@ -40,7 +40,7 @@ if not hasattr(unittest.TestCase, 'assertTrue'):
+ # The test resources base uri
+ base = 'http://bitworking.org/projects/httplib2/test/'
+ #base = 'http://localhost/projects/httplib2/test/'
+-cacheDirName = ".cache"
++cacheDirName = os.path.join(os.path.dirname(os.path.abspath(__file__)),
".cache")
+
+
+ class CredentialsTest(unittest.TestCase):
+@@ -247,7 +247,7 @@ class HttpTest(unittest.TestCase):
+ # since httplib blocks response.read() for HEAD requests.
+ # Oddly enough this doesn't appear as a problem when doing HEAD
requests
+ # against Apache servers.
+- uri = "http://www.google.com/"
++ uri = "http://www.google.co.uk/"
+ (response, content) = self.http.request(uri, "HEAD")
+ self.assertEqual(response.status, 200)
+ self.assertEqual(content, "")
Index: patches/patch-python3_httplib2test_py
===================================================================
RCS file: patches/patch-python3_httplib2test_py
diff -N patches/patch-python3_httplib2test_py
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-python3_httplib2test_py 23 Dec 2012 16:09:53 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- python3/httplib2test.py.orig Sun Dec 23 16:05:17 2012
++++ python3/httplib2test.py Sun Dec 23 16:05:51 2012
+@@ -30,7 +30,7 @@ import urllib.parse
+ # The test resources base uri
+ base = 'http://bitworking.org/projects/httplib2/test/'
+ #base = 'http://localhost/projects/httplib2/test/'
+-cacheDirName = ".cache"
++cacheDirName = os.path.join(os.path.dirname(os.path.abspath(__file__)),
".cache")
+
+
+ class CredentialsTest(unittest.TestCase):
+@@ -227,7 +227,7 @@ class HttpTest(unittest.TestCase):
+ # since httplib blocks response.read() for HEAD requests.
+ # Oddly enough this doesn't appear as a problem when doing HEAD
requests
+ # against Apache servers.
+- uri = "http://www.google.com/"
++ uri = "http://www.google.co.uk/"
+ (response, content) = self.http.request(uri, "HEAD")
+ self.assertEqual(response.status, 200)
+ self.assertEqual(content, b"")