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> |