Changeset View
Changeset View
Standalone View
Standalone View
devel/arcanist-lib/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= arcanist | PORTNAME?= arcanist | ||||
PORTVERSION= 20181231 | PORTVERSION?= 20181231 | ||||
PORTREVISION= 1 | PORTREVISION?= 2 | ||||
CATEGORIES= devel | CATEGORIES?= devel | ||||
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} | PKGNAMESUFFIX= ${SLAVE_PKGNAMESUFFIX}${PHP_PKGNAMESUFFIX} | ||||
MAINTAINER= grembo@FreeBSD.org | MAINTAINER= grembo@FreeBSD.org | ||||
COMMENT= Command line interface for Phabricator | COMMENT?= Libraries for the command line interface for Phabricator | ||||
SLAVEPORT?= lib | |||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
RUN_DEPENDS= ${PHP_PKGNAMEPREFIX}libphutil>0:devel/libphutil@${PHP_FLAVOR} | RUN_DEPENDS= ${PHP_PKGNAMEPREFIX}libphutil>0:devel/libphutil@${PHP_FLAVOR} | ||||
CONFLICTS= arc-* | |||||
PHP_DESTDIR= lib/php/arcanist | PHP_DESTDIR= lib/php/arcanist | ||||
USES= php:flavors python:2.7,env shebangfix | USES= php:flavors python:2.7,env shebangfix | ||||
SHEBANG_FILES= scripts/breakout.py | SHEBANG_FILES= scripts/breakout.py | ||||
USE_PHP= curl dom hash json simplexml zlib | USE_PHP= curl dom hash json simplexml zlib | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
GH_ACCOUNT= phacility | GH_ACCOUNT= phacility | ||||
GH_TAGNAME= 25c2381 | GH_TAGNAME= 25c2381 | ||||
PLIST= ${.CURDIR}/pkg-plist | |||||
.if ${SLAVEPORT} == lib | |||||
SLAVE_PKGNAMESUFFIX= -${SLAVEPORT} | |||||
OPTIONS_DEFINE= ENCODINGS | OPTIONS_DEFINE= ENCODINGS | ||||
OPTIONS_DEFAULT=ENCODINGS | OPTIONS_DEFAULT=ENCODINGS | ||||
ENCODINGS_DESC= Support for encodings other than utf-8 | ENCODINGS_DESC= Support for encodings other than utf-8 | ||||
ENCODINGS_USE= PHP=mbstring | ENCODINGS_USE= PHP=mbstring | ||||
.else # link only | |||||
RUN_DEPENDS= arcanist-lib${PHP_PKGNAMESUFFIX}>0:devel/arcanist-lib@${PHP_FLAVOR} | |||||
NO_BUILD= yes | |||||
CONFLICTS= arc | |||||
PLIST_FILES= bin/arc | |||||
mat: Instead of this, globally set:
```
PLIST= ${.CURDIR}/pkg-plist
``` | |||||
.endif | |||||
do-install: | do-install: | ||||
.if ${SLAVEPORT} == bin | |||||
${RLN} ../${PHP_DESTDIR}/scripts/arcanist.php ${STAGEDIR}${PREFIX}/bin/arc | |||||
Not Done Inline ActionsCould you please use ${RLN} instead of ${LN} -sf. mat: Could you please use `${RLN}` instead of `${LN} -sf`. | |||||
.else | |||||
@${MKDIR} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR} | @${MKDIR} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR} | ||||
cd ${WRKSRC} ; ${PAX} -rw * ${STAGEDIR}${PREFIX}/${PHP_DESTDIR} | cd ${WRKSRC} ; ${PAX} -rw * ${STAGEDIR}${PREFIX}/${PHP_DESTDIR} | ||||
${LN} -sf ../${PHP_DESTDIR}/scripts/arcanist.php ${STAGEDIR}${PREFIX}/bin/arc | |||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions/ | @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions/ | ||||
${RLN} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/resources/shell/bash-completion ${STAGEDIR}${PREFIX}/share/bash-completion/completions/arc | ${RLN} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/resources/shell/bash-completion ${STAGEDIR}${PREFIX}/share/bash-completion/completions/arc | ||||
.endif | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Instead of this, globally set: