svn commit: r380509 - head/www/py-google-api-python-client
Nicola Vitale
nivit at FreeBSD.org
Thu Mar 5 17:00:25 UTC 2015
Author: nivit
Date: Thu Mar 5 17:00:23 2015
New Revision: 380509
URL: https://svnweb.freebsd.org/changeset/ports/380509
QAT: https://qat.redports.org/buildarchive/r380509/
Log:
- Update to 1.3.2
- Change master site to CHEESESHOP
- Sort variables
- Remove devel/py-gflags from run dependencies
- Add security/py-oauth2client to build dependencies
because setup.py checks its presence
- Remove DOCS and EXAMPLES options
- Use option helpers
- Use auto plist
Deleted:
head/www/py-google-api-python-client/pkg-plist
Modified:
head/www/py-google-api-python-client/Makefile
head/www/py-google-api-python-client/distinfo
Modified: head/www/py-google-api-python-client/Makefile
==============================================================================
--- head/www/py-google-api-python-client/Makefile Thu Mar 5 15:44:38 2015 (r380508)
+++ head/www/py-google-api-python-client/Makefile Thu Mar 5 17:00:23 2015 (r380509)
@@ -1,77 +1,35 @@
# $FreeBSD$
PORTNAME= google-api-python-client
-PORTVERSION= 1.2
+PORTVERSION= 1.3.2
#PORTREVISION= 0
CATEGORIES= www
-MASTER_SITES= GOOGLE_CODE
+MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTFILES= ${PORTNAME}-${DISTVERSION}.tar.gz
MAINTAINER= nivit at FreeBSD.org
COMMENT= Google API Client Library for Python
LICENSE= APACHE20
-RUN_DEPENDS= ${PKGNAMEPREFIX}gflags>=1.4:${PORTSDIR}/devel/py-gflags \
- ${PKGNAMEPREFIX}httplib2>=0.6.0:${PORTSDIR}/www/py-httplib2 \
- ${PKGNAMEPREFIX}oauth2>=1.5.167:${PORTSDIR}/net/py-oauth2
-
-USES= python:2
-USE_PYTHON= distutils
-
-# bypass infrastructure bug
-OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
-OPTIONS_DEFINE= DOCS DJANGO EXAMPLES GAE WEBTEST
+BUILD_DEPENDS= ${PKGNAMEPREFIX}oauth2client>=1.3:${PORTSDIR}/security/py-oauth2client
+RUN_DEPENDS= ${PKGNAMEPREFIX}httplib2>=0.6.0:${PORTSDIR}/www/py-httplib2 \
+ ${PKGNAMEPREFIX}oauth2client>=1.3:${PORTSDIR}/security/py-oauth2client \
+ ${PKGNAMEPREFIX}uritemplate>=0.6:${PORTSDIR}/net/py-uritemplate
DJANGO_DESC= Use the library with Django
+DJANGO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django>=1.3:${PORTSDIR}/www/py-django
+
GAE_DESC= Use the library with Google App Engine
-WEBTEST_DESC= Use WebTest helper to test WSGI apps (Python 2.6+)
+GAE_RUN_DEPENDS= google-appengine>=1.4.3:${PORTSDIR}/www/google-appengine
+
+OPTIONS_DEFINE= DJANGO GAE WEBTEST
-.include <bsd.port.options.mk>
+USES= python:2
+USE_PYTHON= autoplist distutils
-.if ${PORT_OPTIONS:MEXAMPLES}
-FIND_FILES= ${WRKDIR}/samples
-FIND_FILES_BAK= ${WRKDIR}/samples
-.endif
-FIND_FILES+= ${WRKSRC} -type f -and \( -name "*.py" -or -name "enable-app-engine-project" \) -print0
-FIND_FILES_BAK+= ${WRKSRC} -type f -name "*.bak"
-
-REINPLACE_ARGS= -e 's,/usr/bin/env python,&${PYTHON_VER},' \
- -e 's,/usr/bin/python.*,${PYTHON_CMD},' \
- -e 's,../google_appengine,${LOCALBASE}/share/google-appengine,1' \
- -e "s,'samples/oauth2','${EXAMPLESDIR}',1" -i.bak
-
-DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
-
-.if ${PORT_OPTIONS:MEXAMPLES}
-DISTFILES+= ${PORTNAME}-samples-${DISTVERSION}.tar.gz
-.endif
-
-.if ${PORT_OPTIONS:MGAE}
-RUN_DEPENDS+= google-appengine>=1.4.3:${PORTSDIR}/www/google-appengine
-.endif
-
-.if ${PORT_OPTIONS:MDJANGO}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}django>=1.3:${PORTSDIR}/www/py-django
-.endif
-
-post-patch:
- ${FIND} ${FIND_FILES} | ${XARGS} -0 ${REINPLACE_CMD}
- @${FIND} ${FIND_FILES_BAK} -delete
-
-post-install:
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/FAQ ${STAGEDIR}${DOCSDIR}/FAQ
-
-.if ${PORT_OPTIONS:MEXAMPLES}
- (cd ${WRKDIR}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
-.endif
-
-.if ${PORT_OPTIONS:MWEBTEST}
-RUN_DEPENDS+= ${PKGNAMEPREFIX}WebTest>=1.3.3:${PORTSDIR}/www/py-WebTest \
- ${PKGNAMEPREFIX}openssl>=0.13:${PORTSDIR}/security/py-openssl
-.endif
+WEBTEST_DESC= Use WebTest helper to test WSGI apps (Python 2.6+)
+WEBTEST_RUN_DEPENDS= ${PKGNAMEPREFIX}WebTest>=1.3.3:${PORTSDIR}/www/py-WebTest \
+ ${PKGNAMEPREFIX}openssl>=0.13:${PORTSDIR}/security/py-openssl
.include <bsd.port.mk>
Modified: head/www/py-google-api-python-client/distinfo
==============================================================================
--- head/www/py-google-api-python-client/distinfo Thu Mar 5 15:44:38 2015 (r380508)
+++ head/www/py-google-api-python-client/distinfo Thu Mar 5 17:00:23 2015 (r380509)
@@ -1,4 +1,2 @@
-SHA256 (google-api-python-client-1.2.tar.gz) = 3cb3f39c4a634950aee34f52e2a160b9a064b15210f7196ba364f670780aa675
-SIZE (google-api-python-client-1.2.tar.gz) = 74526
-SHA256 (google-api-python-client-samples-1.2.tar.gz) = 4c7a469caebe4926967b00ac3e14eadd28fbb3b10ec2672dd993028fd2add6bd
-SIZE (google-api-python-client-samples-1.2.tar.gz) = 100828
+SHA256 (google-api-python-client-1.3.2.tar.gz) = 9e9268237c9a3b55f477b972b750f1a90f218f4ec0f6a775d619893632bc0278
+SIZE (google-api-python-client-1.3.2.tar.gz) = 40359
More information about the svn-ports-head
mailing list