Index: devel/arcanist/Makefile =================================================================== --- devel/arcanist/Makefile +++ devel/arcanist/Makefile @@ -2,7 +2,7 @@ PORTNAME= arcanist PORTVERSION= 20181231 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} @@ -14,8 +14,18 @@ RUN_DEPENDS= ${PHP_PKGNAMEPREFIX}libphutil>0:devel/libphutil@${PHP_FLAVOR} -CONFLICTS= arc-* +FLAVORS= default nosymlink +FLAVOR?= ${FLAVORS:[1]} +default_CONFLICTS_INSTALL= arc + +nosymlink_PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}-nosymlink +.if ${FLAVOR:Mnosymlink} +PLIST_SUB+= SYMLINK="@comment " +.else +PLIST_SUB+= SYMLINK="" +.endif + PHP_DESTDIR= lib/php/arcanist USES= php:flavors python:2.7,env shebangfix SHEBANG_FILES= scripts/breakout.py @@ -34,7 +44,9 @@ do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR} cd ${WRKSRC} ; ${PAX} -rw * ${STAGEDIR}${PREFIX}/${PHP_DESTDIR} +.if ! ${FLAVOR:Mnosymlink} ${LN} -sf ../${PHP_DESTDIR}/scripts/arcanist.php ${STAGEDIR}${PREFIX}/bin/arc +.endif @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions/ ${RLN} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/resources/shell/bash-completion ${STAGEDIR}${PREFIX}/share/bash-completion/completions/arc Index: devel/arcanist/pkg-plist =================================================================== --- devel/arcanist/pkg-plist +++ devel/arcanist/pkg-plist @@ -1,4 +1,4 @@ -bin/arc +%%SYMLINK%%bin/arc lib/php/arcanist/LICENSE lib/php/arcanist/NOTICE lib/php/arcanist/README.md