freebsd-ports/net/p5-WebService-Dropbox/Makefile
Ben Woods d5e7755858 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@cs.nctu.edu.tw> (maintainer timeout), adamw (mentor)
Differential Revision:	https://reviews.freebsd.org/D7377
2016-08-03 15:31:16 +00:00

40 lines
990 B
Makefile

# Created by: Lung-Pin Chang <changlp@cs.nctu.edu.tw>
# $FreeBSD$
PORTNAME= WebService-Dropbox
PORTVERSION= 2.05
CATEGORIES= net perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= woodsb02@FreeBSD.org
COMMENT= Perl interface to Dropbox API
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
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= modbuildtiny
NO_ARCH= yes
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>