ports/devel/gitphp/Makefile
Mathieu Arnold a1993564e0 Introduce PHP flavors.
Ports using USES=php:phpize, php:ext, php:zend, and php:pecl are now
  flavored.  They will automatically get flavors (php56, php70, php71, php72)
  depending of the versions they support (set with IGNORE_WITH_PHP).  As a
  consequence, ports using USES=pear and USES=horde are also flavored.

PR:		226242
Submitted by:	mat
Exp-run by:	antoine
Approved by:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D14208
2018-03-08 19:48:41 +00:00

31 lines
757 B
Makefile

# $FreeBSD$
PORTNAME= gitphp
PORTVERSION= 0.2.8
PORTREVISION= 1
CATEGORIES= devel www
MASTER_SITES= https://github.com/xiphux/gitphp/releases/download/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Web based git repository browser written in PHP
LICENSE= GPLv2
USES= gettext tar:bzip2
USE_PHP= bz2 fileinfo mbstring memcache posix simplexml spl zlib
WANT_PHP_WEB= yes
NO_BUILD= yes
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
SUB_FILES= pkg-message
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdiff.so:textproc/pecl-xdiff@${PHP_FLAVOR}
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC} \
&& ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 644 {} +
.include <bsd.port.mk>