View | Details | Raw Unified | Return to bug 211016 | Differences between
and this patch

Collapse All | Expand All

(-)net/p5-WebService-Dropbox/Makefile (-23 / +18 lines)
Lines 2-43 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	WebService-Dropbox
4
PORTNAME=	WebService-Dropbox
5
PORTVERSION=	1.18
5
PORTVERSION=	2.05
6
PORTREVISION=	1
7
CATEGORIES=	net perl5
6
CATEGORIES=	net perl5
8
MASTER_SITES=	CPAN
7
MASTER_SITES=	CPAN
9
MASTER_SITE_SUBDIR=	CPAN:ASKADNA
10
PKGNAMEPREFIX=	p5-
8
PKGNAMEPREFIX=	p5-
11
9
12
MAINTAINER=	changlp@cs.nctu.edu.tw
10
MAINTAINER=	woodsb02@FreeBSD.org
13
COMMENT=	Perl interface to Dropbox API
11
COMMENT=	Perl interface to Dropbox API
14
12
15
LICENSE=	ART10 GPLv1
13
LICENSE=	ART10 GPLv1
16
LICENSE_COMB=	dual
14
LICENSE_COMB=	dual
15
LICENSE_FILE=	${WRKSRC}/LICENSE
17
16
18
BUILD_DEPENDS=	p5-JSON>=2.53:converters/p5-JSON \
17
MY_DEPENDS=	p5-HTTP-Message>=6.06:www/p5-HTTP-Message \
18
		p5-JSON>=2.59:converters/p5-JSON \
19
		p5-LWP-Protocol-https>=6.04:www/p5-LWP-Protocol-https \
19
		p5-Net-OAuth>=0.28:net/p5-Net-OAuth \
20
		p5-Net-OAuth>=0.28:net/p5-Net-OAuth \
20
		p5-URI>=1.60:net/p5-URI
21
		p5-URI>=1.60:net/p5-URI \
21
RUN_DEPENDS:=	${BUILD_DEPENDS}
22
		p5-libwww>=6.05:www/p5-libwww
23
BUILD_DEPENDS=	${MY_DEPENDS}
24
RUN_DEPENDS=	${MY_DEPENDS}
22
25
23
OPTIONS_DEFINE=	LWP
26
OPTIONS_DEFINE=	FURL
24
LWP_DESC=	Use LWP instead of Furl
27
#OPTIONS_DEFAULT=FURL
28
FURL_DESC=	Use Furl instead of LWP
25
29
26
USES=		perl5
30
USES=		perl5
27
USE_PERL5=	configure
31
USE_PERL5=	modbuildtiny
32
NO_ARCH=	yes
28
33
29
.include <bsd.port.options.mk>
34
FURL_BUILD_DEPENDS=	p5-Furl>=2.19:www/p5-Furl \
35
			p5-IO-Socket-SSL>=1.954:security/p5-IO-Socket-SSL \
36
			p5-JSON-XS>=3.02:converters/p5-JSON-XS
30
37
31
.if ${PORT_OPTIONS:MLWP}
32
BUILD_DEPENDS+=	p5-LWP-Protocol-https>=6.03:www/p5-LWP-Protocol-https \
33
		p5-libwww>=6.04:www/p5-libwww
34
RUN_DEPENDS+=	p5-LWP-Protocol-https>=6.03:www/p5-LWP-Protocol-https \
35
		p5-libwww>=6.04:www/p5-libwww
36
.else
37
BUILD_DEPENDS+=	p5-Furl>=1.01:www/p5-Furl \
38
		p5-IO-Socket-SSL>=1.77:security/p5-IO-Socket-SSL
39
RUN_DEPENDS+=	p5-Furl>=1.01:www/p5-Furl \
40
		p5-IO-Socket-SSL>=1.77:security/p5-IO-Socket-SSL
41
.endif
42
43
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)net/p5-WebService-Dropbox/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (WebService-Dropbox-1.18.tar.gz) = 0ebeadd23afa7da5266be08eef99e7618bb35f4151898bb0fbacf40edcba7033
1
TIMESTAMP = 1468267938
2
SIZE (WebService-Dropbox-1.18.tar.gz) = 69669
2
SHA256 (WebService-Dropbox-2.05.tar.gz) = 2383ab9030e238bc3bfdf3765c817819cb2efc0f261a3d8f1473d06e529a8afc
3
SIZE (WebService-Dropbox-2.05.tar.gz) = 92109
(-)net/p5-WebService-Dropbox/pkg-descr (-1 / +6 lines)
Lines 1-3 Link Here
1
WebService::Dropbox is Perl interface to Dropbox API
1
WebService::Dropbox is Perl interface to Dropbox API
2
2
3
WWW: http://search.cpan.org/dist/WebService-Dropbox/
3
It includes the following features:
4
- Supports Dropbox v2 REST API
5
- Supports Furl (Fast!!!)
6
- Streaming IO (Low Memory)
7
8
WWW: https://metacpan.org/pod/WebService::Dropbox
(-)net/p5-WebService-Dropbox/pkg-plist (+14 lines)
Lines 1-2 Link Here
1
%%SITE_PERL%%/WebService/Dropbox.pm
1
%%SITE_PERL%%/WebService/Dropbox.pm
2
%%SITE_PERL%%/WebService/Dropbox/Auth.pm
3
%%SITE_PERL%%/WebService/Dropbox/Files.pm
4
%%SITE_PERL%%/WebService/Dropbox/Files/CopyReference.pm
5
%%SITE_PERL%%/WebService/Dropbox/Files/ListFolder.pm
6
%%SITE_PERL%%/WebService/Dropbox/Files/UploadSession.pm
7
%%SITE_PERL%%/WebService/Dropbox/TokenFromOAuth1.pm
8
%%SITE_PERL%%/WebService/Dropbox/Users.pm
2
%%PERL5_MAN3%%/WebService::Dropbox.3.gz
9
%%PERL5_MAN3%%/WebService::Dropbox.3.gz
10
%%PERL5_MAN3%%/WebService::Dropbox::Auth.3.gz
11
%%PERL5_MAN3%%/WebService::Dropbox::Files.3.gz
12
%%PERL5_MAN3%%/WebService::Dropbox::Files::CopyReference.3.gz
13
%%PERL5_MAN3%%/WebService::Dropbox::Files::ListFolder.3.gz
14
%%PERL5_MAN3%%/WebService::Dropbox::Files::UploadSession.3.gz
15
%%PERL5_MAN3%%/WebService::Dropbox::TokenFromOAuth1.3.gz
16
%%PERL5_MAN3%%/WebService::Dropbox::Users.3.gz
(-)net/dropbox-api-command/Makefile (-26 / +13 lines)
Lines 2-45 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	dropbox-api-command
4
PORTNAME=	dropbox-api-command
5
PORTVERSION=	1.13
5
PORTVERSION=	2.09
6
PORTEPOCH=	1
6
PORTEPOCH=	1
7
CATEGORIES=	net
7
CATEGORIES=	net perl5
8
8
9
MAINTAINER=	changlp@cs.nctu.edu.tw
9
MAINTAINER=	woodsb02@FreeBSD.org
10
COMMENT=	Dropbox API wrapper command
10
COMMENT=	Dropbox API wrapper command
11
11
12
LICENSE=	MIT
12
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
14
BUILD_DEPENDS=	p5-DateTime-Format-Strptime>=0:devel/p5-DateTime-Format-Strptime \
15
MY_DEPENDS=	p5-DateTime-Format-Strptime>=0:devel/p5-DateTime-Format-Strptime \
15
		p5-Encode-Locale>=0:converters/p5-Encode-Locale \
16
		p5-Encode-Locale>=0:converters/p5-Encode-Locale \
16
		p5-JSON>=0:converters/p5-JSON \
17
		p5-JSON>=0:converters/p5-JSON \
17
		p5-WebService-Dropbox>=1.17:net/p5-WebService-Dropbox \
18
		p5-Path-Class>=0.26:devel/p5-Path-Class \
18
		p5-Path-Class>=0.26:devel/p5-Path-Class
19
		p5-WebService-Dropbox>=2.05:net/p5-WebService-Dropbox
19
RUN_DEPENDS:=	${BUILD_DEPENDS}
20
BUILD_DEPENDS=	${MY_DEPENDS}
21
RUN_DEPENDS=	${MY_DEPENDS}
20
22
21
USE_GITHUB=	yes
23
USE_GITHUB=	yes
22
GH_ACCOUNT=	s-aska
24
GH_ACCOUNT=	s-aska
23
25
24
NO_ARCH=	yes
26
NO_ARCH=	yes
25
USES=		perl5
27
USES=		perl5 shebangfix
26
USE_PERL5=	configure
28
USE_PERL5=	modbuildtiny
29
bash_CMD=	${SH}
30
SHEBANG_FILES=	script/upload-to-dropbox
27
31
28
# There is documentation contained in an otherwise empty library
29
# (App::dropboxapi). In post-patch copy it over to the main
30
# dropbox-api script so the perl build process makes a dropbox-api.1,
31
# and override do-install to only copy the useful parts, i.e., not the
32
# empty library.
33
34
PLIST_FILES=	bin/dropbox-api bin/upload-to-dropbox man/man1/dropbox-api.1.gz
35
36
post-patch:
37
	${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' ${WRKSRC}/upload-to-dropbox
38
	${TAIL} +3 ${WRKSRC}/lib/App/dropboxapi.pm >> ${WRKSRC}/dropbox-api
39
40
do-install:
41
	${INSTALL_MAN}    ${WRKSRC}/blib/man1/dropbox-api.1 ${STAGEDIR}${PREFIX}/man/man1/
42
	${INSTALL_SCRIPT} ${WRKSRC}/blib/script/dropbox-api ${STAGEDIR}${PREFIX}/bin/
43
	${INSTALL_SCRIPT} ${WRKSRC}/upload-to-dropbox       ${STAGEDIR}${PREFIX}/bin/
44
45
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)net/dropbox-api-command/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (s-aska-dropbox-api-command-1.13_GH0.tar.gz) = 8ffb0efc200a381cb834bfab7a77f35c4d47f749ed31c95da839171023d04df8
1
TIMESTAMP = 1468846405
2
SIZE (s-aska-dropbox-api-command-1.13_GH0.tar.gz) = 11326
2
SHA256 (s-aska-dropbox-api-command-2.09_GH0.tar.gz) = 2d733294af7a318a4fa972509205c4840559c5e0aeb5133d587f703c12f21007
3
SIZE (s-aska-dropbox-api-command-2.09_GH0.tar.gz) = 15292
(-)net/dropbox-api-command/pkg-descr (-3 / +13 lines)
Lines 1-5 Link Here
1
Dropbox's API commands from the shell.
1
dropbox-api is a command line interface to access Dropbox API.
2
2
3
Including sub-commands like sync, find, etc.
3
It includes the following commands:
4
- ls
5
- find
6
- du
7
- sync
8
- cp
9
- mv
10
- rm
11
- mkdir
12
- get
13
- put
4
14
5
WWW: https://github.com/s-aska/dropbox-api-command
15
WWW: https://metacpan.org/pod/App::dropboxapi
(-)net/dropbox-api-command/pkg-plist (+6 lines)
Line 0 Link Here
1
bin/dropbox-api
2
bin/upload-to-dropbox
3
%%SITE_PERL%%/App/dropboxapi.pm
4
%%PERL5_MAN1%%/dropbox-api.1.gz
5
%%PERL5_MAN1%%/upload-to-dropbox.1.gz
6
%%PERL5_MAN3%%/App::dropboxapi.3.gz

Return to bug 211016