svn commit: r419531 - in head/net: dropbox-api-command p5-WebService-Dropbox

Ben Woods woodsb02 at FreeBSD.org
Wed Aug 3 15:31:18 UTC 2016


Author: woodsb02
Date: Wed Aug  3 15:31:16 2016
New Revision: 419531
URL: https://svnweb.freebsd.org/changeset/ports/419531

Log:
  net/p5-WebService-Dropbox: Update to 2.05
  net/dropbox-api-command: Update to 2.09
  
  This update brings support for Dropbox APIv2.
  This is required since, according to dropbox, the API v1 will be
  disabled on 28th June 2017:
  https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/
  
  Convert LWP option (off by default) to FURL option (on by default)
  as testing has revealed that without the p5-LWP-Protocol-https pkg
  installed, the following error is given even if the FURL option in enabled.
  $ dropbox-api sync dropbox:/ ~/Dropbox
  2016-07-31T14:09:57 [WebService::Dropbox] [ERROR] https://api.dropboxapi.com/2/files/list_folder {"path":"","recursive":true} -> [501] LWP will support https URLs if the LWP::Protocol::https module is installed.
  LWP will support https URLs if the LWP::Protocol::https module is installed.
  
  PR:		211016
  Reviewed by:	mat (mentor)
  Approved by:	Lung-Pin Chang <changlp at cs.nctu.edu.tw> (maintainer timeout), adamw (mentor)
  Differential Revision:	https://reviews.freebsd.org/D7377

Added:
  head/net/dropbox-api-command/pkg-plist   (contents, props changed)
Modified:
  head/net/dropbox-api-command/Makefile
  head/net/dropbox-api-command/distinfo
  head/net/dropbox-api-command/pkg-descr
  head/net/p5-WebService-Dropbox/Makefile
  head/net/p5-WebService-Dropbox/distinfo
  head/net/p5-WebService-Dropbox/pkg-descr
  head/net/p5-WebService-Dropbox/pkg-plist

Modified: head/net/dropbox-api-command/Makefile
==============================================================================
--- head/net/dropbox-api-command/Makefile	Wed Aug  3 15:15:02 2016	(r419530)
+++ head/net/dropbox-api-command/Makefile	Wed Aug  3 15:31:16 2016	(r419531)
@@ -2,44 +2,31 @@
 # $FreeBSD$
 
 PORTNAME=	dropbox-api-command
-PORTVERSION=	1.13
+PORTVERSION=	2.09
 PORTEPOCH=	1
-CATEGORIES=	net
+CATEGORIES=	net perl5
 
-MAINTAINER=	changlp at cs.nctu.edu.tw
+MAINTAINER=	woodsb02 at FreeBSD.org
 COMMENT=	Dropbox API wrapper command
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	p5-DateTime-Format-Strptime>=0:devel/p5-DateTime-Format-Strptime \
+MY_DEPENDS=	p5-DateTime-Format-Strptime>=0:devel/p5-DateTime-Format-Strptime \
 		p5-Encode-Locale>=0:converters/p5-Encode-Locale \
 		p5-JSON>=0:converters/p5-JSON \
-		p5-WebService-Dropbox>=1.17:net/p5-WebService-Dropbox \
-		p5-Path-Class>=0.26:devel/p5-Path-Class
-RUN_DEPENDS:=	${BUILD_DEPENDS}
+		p5-Path-Class>=0.26:devel/p5-Path-Class \
+		p5-WebService-Dropbox>=2.05:net/p5-WebService-Dropbox
+BUILD_DEPENDS=	${MY_DEPENDS}
+RUN_DEPENDS=	${MY_DEPENDS}
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	s-aska
 
 NO_ARCH=	yes
-USES=		perl5
-USE_PERL5=	configure
-
-# There is documentation contained in an otherwise empty library
-# (App::dropboxapi). In post-patch copy it over to the main
-# dropbox-api script so the perl build process makes a dropbox-api.1,
-# and override do-install to only copy the useful parts, i.e., not the
-# empty library.
-
-PLIST_FILES=	bin/dropbox-api bin/upload-to-dropbox man/man1/dropbox-api.1.gz
-
-post-patch:
-	${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' ${WRKSRC}/upload-to-dropbox
-	${TAIL} +3 ${WRKSRC}/lib/App/dropboxapi.pm >> ${WRKSRC}/dropbox-api
-
-do-install:
-	${INSTALL_MAN}    ${WRKSRC}/blib/man1/dropbox-api.1 ${STAGEDIR}${PREFIX}/man/man1/
-	${INSTALL_SCRIPT} ${WRKSRC}/blib/script/dropbox-api ${STAGEDIR}${PREFIX}/bin/
-	${INSTALL_SCRIPT} ${WRKSRC}/upload-to-dropbox       ${STAGEDIR}${PREFIX}/bin/
+USES=		perl5 shebangfix
+USE_PERL5=	modbuildtiny
+bash_CMD=	${SH}
+SHEBANG_FILES=	script/upload-to-dropbox
 
 .include <bsd.port.mk>

Modified: head/net/dropbox-api-command/distinfo
==============================================================================
--- head/net/dropbox-api-command/distinfo	Wed Aug  3 15:15:02 2016	(r419530)
+++ head/net/dropbox-api-command/distinfo	Wed Aug  3 15:31:16 2016	(r419531)
@@ -1,2 +1,3 @@
-SHA256 (s-aska-dropbox-api-command-1.13_GH0.tar.gz) = 8ffb0efc200a381cb834bfab7a77f35c4d47f749ed31c95da839171023d04df8
-SIZE (s-aska-dropbox-api-command-1.13_GH0.tar.gz) = 11326
+TIMESTAMP = 1468846405
+SHA256 (s-aska-dropbox-api-command-2.09_GH0.tar.gz) = 2d733294af7a318a4fa972509205c4840559c5e0aeb5133d587f703c12f21007
+SIZE (s-aska-dropbox-api-command-2.09_GH0.tar.gz) = 15292

Modified: head/net/dropbox-api-command/pkg-descr
==============================================================================
--- head/net/dropbox-api-command/pkg-descr	Wed Aug  3 15:15:02 2016	(r419530)
+++ head/net/dropbox-api-command/pkg-descr	Wed Aug  3 15:31:16 2016	(r419531)
@@ -1,5 +1,15 @@
-Dropbox's API commands from the shell.
+dropbox-api is a command line interface to access Dropbox API.
 
-Including sub-commands like sync, find, etc.
+It includes the following commands:
+- ls
+- find
+- du
+- sync
+- cp
+- mv
+- rm
+- mkdir
+- get
+- put
 
-WWW: https://github.com/s-aska/dropbox-api-command
+WWW: https://metacpan.org/pod/App::dropboxapi

Added: head/net/dropbox-api-command/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/dropbox-api-command/pkg-plist	Wed Aug  3 15:31:16 2016	(r419531)
@@ -0,0 +1,6 @@
+bin/dropbox-api
+bin/upload-to-dropbox
+%%SITE_PERL%%/App/dropboxapi.pm
+%%PERL5_MAN1%%/dropbox-api.1.gz
+%%PERL5_MAN1%%/upload-to-dropbox.1.gz
+%%PERL5_MAN3%%/App::dropboxapi.3.gz

Modified: head/net/p5-WebService-Dropbox/Makefile
==============================================================================
--- head/net/p5-WebService-Dropbox/Makefile	Wed Aug  3 15:15:02 2016	(r419530)
+++ head/net/p5-WebService-Dropbox/Makefile	Wed Aug  3 15:31:16 2016	(r419531)
@@ -2,42 +2,39 @@
 # $FreeBSD$
 
 PORTNAME=	WebService-Dropbox
-PORTVERSION=	1.18
-PORTREVISION=	1
+PORTVERSION=	2.05
 CATEGORIES=	net perl5
 MASTER_SITES=	CPAN
-MASTER_SITE_SUBDIR=	CPAN:ASKADNA
 PKGNAMEPREFIX=	p5-
 
-MAINTAINER=	changlp at cs.nctu.edu.tw
+MAINTAINER=	woodsb02 at FreeBSD.org
 COMMENT=	Perl interface to Dropbox API
 
 LICENSE=	ART10 GPLv1
 LICENSE_COMB=	dual
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	p5-JSON>=2.53:converters/p5-JSON \
-		p5-Net-OAuth>=0.28:net/p5-Net-OAuth \
-		p5-URI>=1.60:net/p5-URI
-RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-OPTIONS_DEFINE=	LWP
-LWP_DESC=	Use LWP instead of Furl
+MY_DEPENDS=	p5-HTTP-Message>=6.06:www/p5-HTTP-Message \
+		p5-JSON>=2.59:converters/p5-JSON \
+		p5-LWP-Protocol-https>=6.04:www/p5-LWP-Protocol-https \
+		p5-Net-OAuth>=0.28:net/p5-Net-OAuth \
+		p5-URI>=1.60:net/p5-URI \
+		p5-libwww>=6.05:www/p5-libwww
+BUILD_DEPENDS=	${MY_DEPENDS}
+RUN_DEPENDS=	${MY_DEPENDS}
+
+OPTIONS_DEFINE=	FURL
+OPTIONS_DEFAULT=FURL
+FURL_DESC=	Support the (faster) Furl HTTP client library
 
 USES=		perl5
-USE_PERL5=	configure
-
-.include <bsd.port.options.mk>
+USE_PERL5=	modbuildtiny
+NO_ARCH=	yes
 
-.if ${PORT_OPTIONS:MLWP}
-BUILD_DEPENDS+=	p5-LWP-Protocol-https>=6.03:www/p5-LWP-Protocol-https \
-		p5-libwww>=6.04:www/p5-libwww
-RUN_DEPENDS+=	p5-LWP-Protocol-https>=6.03:www/p5-LWP-Protocol-https \
-		p5-libwww>=6.04:www/p5-libwww
-.else
-BUILD_DEPENDS+=	p5-Furl>=1.01:www/p5-Furl \
-		p5-IO-Socket-SSL>=1.77:security/p5-IO-Socket-SSL
-RUN_DEPENDS+=	p5-Furl>=1.01:www/p5-Furl \
-		p5-IO-Socket-SSL>=1.77:security/p5-IO-Socket-SSL
-.endif
+FURL_BUILD_DEPENDS=	p5-Furl>=2.19:www/p5-Furl \
+			p5-IO-Socket-SSL>=1.954:security/p5-IO-Socket-SSL \
+			p5-JSON-XS>=3.02:converters/p5-JSON-XS
+FURL_RUN_DEPENDS=	${FURL_BUILD_DEPENDS}
 
 .include <bsd.port.mk>

Modified: head/net/p5-WebService-Dropbox/distinfo
==============================================================================
--- head/net/p5-WebService-Dropbox/distinfo	Wed Aug  3 15:15:02 2016	(r419530)
+++ head/net/p5-WebService-Dropbox/distinfo	Wed Aug  3 15:31:16 2016	(r419531)
@@ -1,2 +1,3 @@
-SHA256 (WebService-Dropbox-1.18.tar.gz) = 0ebeadd23afa7da5266be08eef99e7618bb35f4151898bb0fbacf40edcba7033
-SIZE (WebService-Dropbox-1.18.tar.gz) = 69669
+TIMESTAMP = 1468267938
+SHA256 (WebService-Dropbox-2.05.tar.gz) = 2383ab9030e238bc3bfdf3765c817819cb2efc0f261a3d8f1473d06e529a8afc
+SIZE (WebService-Dropbox-2.05.tar.gz) = 92109

Modified: head/net/p5-WebService-Dropbox/pkg-descr
==============================================================================
--- head/net/p5-WebService-Dropbox/pkg-descr	Wed Aug  3 15:15:02 2016	(r419530)
+++ head/net/p5-WebService-Dropbox/pkg-descr	Wed Aug  3 15:31:16 2016	(r419531)
@@ -1,3 +1,8 @@
 WebService::Dropbox is Perl interface to Dropbox API
 
-WWW: http://search.cpan.org/dist/WebService-Dropbox/
+It includes the following features:
+- Supports Dropbox v2 REST API
+- Supports Furl (Fast!!!)
+- Streaming IO (Low Memory)
+
+WWW: https://metacpan.org/pod/WebService::Dropbox

Modified: head/net/p5-WebService-Dropbox/pkg-plist
==============================================================================
--- head/net/p5-WebService-Dropbox/pkg-plist	Wed Aug  3 15:15:02 2016	(r419530)
+++ head/net/p5-WebService-Dropbox/pkg-plist	Wed Aug  3 15:31:16 2016	(r419531)
@@ -1,2 +1,16 @@
 %%SITE_PERL%%/WebService/Dropbox.pm
+%%SITE_PERL%%/WebService/Dropbox/Auth.pm
+%%SITE_PERL%%/WebService/Dropbox/Files.pm
+%%SITE_PERL%%/WebService/Dropbox/Files/CopyReference.pm
+%%SITE_PERL%%/WebService/Dropbox/Files/ListFolder.pm
+%%SITE_PERL%%/WebService/Dropbox/Files/UploadSession.pm
+%%SITE_PERL%%/WebService/Dropbox/TokenFromOAuth1.pm
+%%SITE_PERL%%/WebService/Dropbox/Users.pm
 %%PERL5_MAN3%%/WebService::Dropbox.3.gz
+%%PERL5_MAN3%%/WebService::Dropbox::Auth.3.gz
+%%PERL5_MAN3%%/WebService::Dropbox::Files.3.gz
+%%PERL5_MAN3%%/WebService::Dropbox::Files::CopyReference.3.gz
+%%PERL5_MAN3%%/WebService::Dropbox::Files::ListFolder.3.gz
+%%PERL5_MAN3%%/WebService::Dropbox::Files::UploadSession.3.gz
+%%PERL5_MAN3%%/WebService::Dropbox::TokenFromOAuth1.3.gz
+%%PERL5_MAN3%%/WebService::Dropbox::Users.3.gz


More information about the svn-ports-head mailing list