# $NetBSD: Makefile,v 1.6 2017/03/18 13:48:48 roy Exp $ DISTNAME= phabricator-20170316 PKGREVISION= 2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GITHUB:=phacility/} GITHUB_PROJECT= phabricator GITHUB_TAG= 6f879559707c57006a1a95d839e2e2e6c64a5ff6 MAINTAINER= youri@NetBSD.org HOMEPAGE= http://phabricator.com/ COMMENT= Open software engineering platform LICENSE= apache-2.0 USE_TOOLS+= pax bash:run EXTRACT_USING= bsdtar DEPENDS+= ${PHP_PKG_PREFIX}-curl-[0-9]*:../../www/php-curl DEPENDS+= ${PHP_PKG_PREFIX}-mbstring-[0-9]*:../../converters/php-mbstring DEPENDS+= ${PHP_PKG_PREFIX}-iconv-[0-9]*:../../converters/php-iconv DEPENDS+= ${PHP_PKG_PREFIX}-mysqli-[0-9]*:../../databases/php-mysqli DEPENDS+= ${PHP_PKG_PREFIX}-pcntl-[0-9]*:../../devel/php-pcntl DEPENDS+= ${PHP_PKG_PREFIX}-posix-[0-9]*:../../devel/php-posix DEPENDS+= ${PHP_PKG_PREFIX}-gd-[0-9]*:../../graphics/php-gd DEPENDS+= ${PHP_PKG_PREFIX}-zlib-[0-9]*:../../archivers/php-zlib DEPENDS+= ${PHP_PKG_PREFIX}-opcache-[0-9]*:../../devel/php-opcache DEPENDS+= ${PHP_PKG_PREFIX}-apcu-[0-9]*:../../www/php-apcu #DEPENDS+= :../../textproc/py-pygments? DEPENDS+= libphutil-[0-9]*:../../devel/libphutil DEPENDS+= arcanist-[0-9]*:../../devel/arcanist SUBST_CLASSES+= php SUBST_MESSAGE.php= Fixing PHP path SUBST_STAGE.php= post-configure SUBST_FILES.php= externals/httpful/build SUBST_FILES.php+= externals/restful/build-phar SUBST_SED.php= -e 's,/usr/bin/php,${PREFIX}/bin/php,' SUBST_CLASSES+= php_env SUBST_MESSAGE.php_env= Fixing PHP path SUBST_STAGE.php_env= post-configure SUBST_FILES.php_env+= scripts/almanac/manage_almanac.php \ scripts/cache/manage_cache.php \ scripts/celerity/*.php \ scripts/daemon/*.php \ scripts/diviner/diviner.php \ scripts/drydock/drydock_control.php \ scripts/fact/manage_facts.php \ scripts/files/manage_files.php \ scripts/lipsum/manage_lipsum.php \ scripts/mail/*.php \ scripts/people/manage_people.php \ scripts/repository/*.php \ scripts/search/manage_search.php \ scripts/setup/*.php \ scripts/sms/manage_sms.php \ scripts/sql/manage_storage.php \ scripts/ssh/*.php \ scripts/symbols/*.php \ scripts/user/*.php \ scripts/util/*.php \ support/aphlict/server/aphlict_launcher.php SUBST_SED.php_env= -e 's,/usr/bin/env php,${PREFIX}/bin/php,' REPLACE_BASH+= scripts/install/install_rhel-derivs.sh \ scripts/install/install_ubuntu.sh NO_BUILD= yes RCD_SCRIPTS= phd PHABRICATOR_DIR= share/phabricator INSTALLATION_DIRS+= ${PHABRICATOR_DIR} CHECK_INTERPRETER_SKIP+=${PHABRICATOR_DIR}/externals/wordlist/password.lst CHMOD_FILES= conf LICENSE NOTICE README.md externals resources src \ support webroot scripts/__init_script__.php scripts/fpm/warmup.php post-extract: cd ${WRKSRC} && \ ${FIND} ${CHMOD_FILES} -type f \ \! -name aphlict_launcher.php \ -exec ${CHMOD} -x \{\} \; do-install: cd ${WRKSRC} && \ ${PAX} -rw * -s',.*\.orig$$,,' \ ${DESTDIR}${PREFIX}/${PHABRICATOR_DIR} .include "../../lang/php/phpversion.mk" .include "../../mk/bsd.pkg.mk"