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

Collapse All | Expand All

(-)net/p5-WebService-Dropbox/Makefile (-17 / +11 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
8
MASTER_SITE_SUBDIR=	CPAN:ASKADNA
10
PKGNAMEPREFIX=	p5-
9
PKGNAMEPREFIX=	p5-
11
10
12
MAINTAINER=	changlp@cs.nctu.edu.tw
11
MAINTAINER=	woodsb02@FreeBSD.org
13
COMMENT=	Perl interface to Dropbox API
12
COMMENT=	Perl interface to Dropbox API
14
13
15
LICENSE=	ART10 GPLv1
14
LICENSE=	ART10 GPLv1
16
LICENSE_COMB=	dual
15
LICENSE_COMB=	dual
16
LICENSE_FILE=	${WRKSRC}/LICENSE
17
17
18
BUILD_DEPENDS=	p5-JSON>=2.53:converters/p5-JSON \
18
MY_DEPENDS=	p5-JSON>=2.53:converters/p5-JSON \
19
		p5-Net-OAuth>=0.28:net/p5-Net-OAuth \
19
		p5-Net-OAuth>=0.28:net/p5-Net-OAuth \
20
		p5-URI>=1.60:net/p5-URI
20
		p5-URI>=1.60:net/p5-URI
21
RUN_DEPENDS:=	${BUILD_DEPENDS}
21
BUILD_DEPENDS=	${MY_DEPENDS}
22
RUN_DEPENDS=	${MY_DEPENDS}
22
23
23
OPTIONS_DEFINE=	LWP
24
OPTIONS_DEFINE=	LWP
24
LWP_DESC=	Use LWP instead of Furl
25
LWP_DESC=	Use LWP instead of Furl
25
26
26
USES=		perl5
27
USES=		perl5
27
USE_PERL5=	configure
28
USE_PERL5=	modbuildtiny
29
NO_ARCH=	yes
28
30
29
.include <bsd.port.options.mk>
31
LWP_VARS=	my_depends+=p5-LWP-Protocol-https>=6.03:www/p5-LWP-Protocol-https \
32
		p5-libwww>=6.04:www/p5-libwww
30
33
31
.if ${PORT_OPTIONS:MLWP}
34
LWP_VARS_OFF=	my_depends+=p5-Furl>=1.01:www/p5-Furl \
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
35
		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
36
43
.include <bsd.port.mk>
37
.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 (+5 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
It includes the following features:
4
- Supports Dropbox v2 REST API
5
- Supports Furl (Fast!!!)
6
- Streaming IO (Low Memory)
7
3
WWW: http://search.cpan.org/dist/WebService-Dropbox/
8
WWW: http://search.cpan.org/dist/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 (-20 / +9 lines)
Lines 2-22 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.03
6
PORTEPOCH=	1
6
PORTEPOCH=	1
7
CATEGORIES=	net
7
CATEGORIES=	net
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-WebService-Dropbox>=1.17:net/p5-WebService-Dropbox \
18
		p5-Path-Class>=0.26:devel/p5-Path-Class
19
		p5-Path-Class>=0.26:devel/p5-Path-Class
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
Lines 23-45 Link Here
23
25
24
NO_ARCH=	yes
26
NO_ARCH=	yes
25
USES=		perl5
27
USES=		perl5
26
USE_PERL5=	configure
28
USE_PERL5=	modbuildtiny
27
29
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:
30
post-patch:
37
	${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' ${WRKSRC}/upload-to-dropbox
31
	${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' ${WRKSRC}/script/upload-to-dropbox
38
	${TAIL} +3 ${WRKSRC}/lib/App/dropboxapi.pm >> ${WRKSRC}/dropbox-api
32
	${RM} ${WRKSRC}/script/upload-to-dropbox.bak
39
33
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>
34
.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 = 1468269362
2
SIZE (s-aska-dropbox-api-command-1.13_GH0.tar.gz) = 11326
2
SHA256 (s-aska-dropbox-api-command-2.03_GH0.tar.gz) = 6d0005193c5eeaa050ad01d3fe755b0af71afc9b08e70ba901fc7b88658163b0
3
SIZE (s-aska-dropbox-api-command-2.03_GH0.tar.gz) = 13859
(-)net/dropbox-api-command/pkg-descr (-2 / +11 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
- sync
7
- cp
8
- mv
9
- rm
10
- mkdir
11
- get
12
- put
4
13
5
WWW: https://github.com/s-aska/dropbox-api-command
14
WWW: https://github.com/s-aska/dropbox-api-command
(-)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