1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

devel/arcanist: Split into arcanist-lib and arcanist.

The arcanist port has always conflicted with archivers/arc, but
if the port is installed without the symlink in PREFIX/bin, there
is no issue.

A user expecting to be able to use arcanist in this way can alias
arcanist in their .cshrc or similar and only install the -lib port.

Approved by:	grembo (maintainer)
Differential Revision:	https://reviews.freebsd.org/D19920
This commit is contained in:
Chris Rees 2019-05-15 20:53:15 +00:00
parent 8d9646bc03
commit 0801fd92a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=501749
8 changed files with 65 additions and 34 deletions

View File

@ -126,6 +126,7 @@
SUBDIR += apr2
SUBDIR += arachne-pnr
SUBDIR += arcanist
SUBDIR += arcanist-lib
SUBDIR += arduino
SUBDIR += arduino-avrdude
SUBDIR += arduino-bsd-mk

View File

@ -0,0 +1,60 @@
# $FreeBSD$
PORTNAME?= arcanist
PORTVERSION?= 20181231
PORTREVISION?= 2
CATEGORIES?= devel
PKGNAMESUFFIX= ${SLAVE_PKGNAMESUFFIX}${PHP_PKGNAMESUFFIX}
MAINTAINER= grembo@FreeBSD.org
COMMENT?= Libraries for the command line interface for Phabricator
SLAVEPORT?= lib
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PHP_PKGNAMEPREFIX}libphutil>0:devel/libphutil@${PHP_FLAVOR}
PHP_DESTDIR= lib/php/arcanist
USES= php:flavors python:2.7,env shebangfix
SHEBANG_FILES= scripts/breakout.py
USE_PHP= curl dom hash json simplexml zlib
USE_GITHUB= yes
NO_BUILD= yes
NO_ARCH= yes
GH_ACCOUNT= phacility
GH_TAGNAME= 25c2381
PLIST= ${.CURDIR}/pkg-plist
.if ${SLAVEPORT} == lib
SLAVE_PKGNAMESUFFIX= -${SLAVEPORT}
OPTIONS_DEFINE= ENCODINGS
OPTIONS_DEFAULT=ENCODINGS
ENCODINGS_DESC= Support for encodings other than utf-8
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
.endif
do-install:
.if ${SLAVEPORT} == bin
${RLN} ../${PHP_DESTDIR}/scripts/arcanist.php ${STAGEDIR}${PREFIX}/bin/arc
.else
@${MKDIR} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}
cd ${WRKSRC} ; ${PAX} -rw * ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions/
${RLN} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/resources/shell/bash-completion ${STAGEDIR}${PREFIX}/share/bash-completion/completions/arc
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,3 @@
bin/arc
lib/php/arcanist/LICENSE
lib/php/arcanist/NOTICE
lib/php/arcanist/README.md

View File

@ -1,41 +1,12 @@
# $FreeBSD$
PORTNAME= arcanist
PORTVERSION= 20181231
PORTREVISION= 1
CATEGORIES= devel
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= grembo@FreeBSD.org
COMMENT= Command line interface for Phabricator
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
SLAVEPORT= bin
RUN_DEPENDS= ${PHP_PKGNAMEPREFIX}libphutil>0:devel/libphutil@${PHP_FLAVOR}
MASTERDIR= ${.CURDIR}/../arcanist-lib
CONFLICTS= arc-*
PHP_DESTDIR= lib/php/arcanist
USES= php:flavors python:2.7,env shebangfix
SHEBANG_FILES= scripts/breakout.py
USE_PHP= curl dom hash json simplexml zlib
USE_GITHUB= yes
NO_BUILD= yes
NO_ARCH= yes
GH_ACCOUNT= phacility
GH_TAGNAME= 25c2381
OPTIONS_DEFINE= ENCODINGS
OPTIONS_DEFAULT=ENCODINGS
ENCODINGS_DESC= Support for encodings other than utf-8
ENCODINGS_USE= PHP=mbstring
do-install:
@${MKDIR} ${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/
${RLN} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/resources/shell/bash-completion ${STAGEDIR}${PREFIX}/share/bash-completion/completions/arc
.include <bsd.port.mk>
.include "${MASTERDIR}/Makefile"

View File

@ -12,7 +12,7 @@ LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PHP_PKGNAMEPREFIX}libphutil>0:devel/libphutil@${PHP_FLAVOR} \
arcanist${PHP_PKGNAMESUFFIX}>0:devel/arcanist@${PHP_FLAVOR} \
arcanist-lib${PHP_PKGNAMESUFFIX}>0:devel/arcanist-lib@${PHP_FLAVOR} \
git:devel/git
OPTIONS_DEFINE= GD OPCACHE