50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2016/03/05 17:11:22 youri Exp $
|
|
|
|
DISTNAME= arcanist-20160224
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=phacility/}
|
|
GITHUB_PROJECT= arcanist
|
|
GITHUB_TAG= 086f5399bfbb65513b1b0e2c5371522202a9beb7
|
|
|
|
MAINTAINER= youri@NetBSD.org
|
|
HOMEPAGE= https://github.com/phacility/arcanist/
|
|
COMMENT= Command line interface for Phabricator
|
|
LICENSE= apache-2.0
|
|
|
|
EXTRACT_USING= bsdtar
|
|
USE_TOOLS+= bash bsdtar pax
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-curl-[0-9]*:../../www/php-curl
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json
|
|
DEPENDS+= libphutil-[0-9]*:../../devel/libphutil
|
|
|
|
CONFLICTS+= arc-[0-9]*:../../archivers/arc
|
|
|
|
REPLACE_BASH+= bin/arc
|
|
|
|
SUBST_CLASSES+= php
|
|
SUBST_MESSAGE.php= Fixing PHP path
|
|
SUBST_STAGE.php= post-configure
|
|
SUBST_FILES.php= scripts/arcanist.php
|
|
SUBST_FILES.php+= scripts/hgdaemon/hgdaemon_client.php
|
|
SUBST_FILES.php+= scripts/hgdaemon/hgdaemon_server.php
|
|
SUBST_FILES.php+= src/lint/linter/xhpast/rules/__tests__/inline-html/inline-html.lint-test
|
|
SUBST_SED.php= -e 's,/usr/bin/env php,${PREFIX}/bin/php,'
|
|
|
|
REPLACE_PYTHON+= scripts/breakout.py
|
|
|
|
NO_BUILD= yes
|
|
|
|
ARCANISTDIR= share/arcanist
|
|
|
|
INSTALLATION_DIRS+= ${ARCANISTDIR} bin
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${PAX} -rw * ${DESTDIR}${PREFIX}/${ARCANISTDIR}
|
|
ln -s ${PREFIX}/${ARCANISTDIR}/bin/arc ${DESTDIR}${PREFIX}/bin/arc
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/php/phpversion.mk"
|
|
.include "${PHPPKGSRCDIR}/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|