aboutsummaryrefslogtreecommitdiff
path: root/devel/gitphp/Makefile
blob: eaf381f5b0c6c470f8adff0e3698ab293e2405d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $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 php:web tar:bzip2
USE_PHP=	bz2 fileinfo mbstring memcache posix simplexml spl zlib
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>