# $FreeBSD: branches/RELEASE_8_4_0/devel/gitphp/Makefile 306344 2012-10-24 14:37:27Z tabthorpe $

PORTNAME=	gitphp
PORTVERSION=	0.2.8
CATEGORIES=	devel www
MASTER_SITES=	http://www.gitphp.org/attachments/download/47/

MAINTAINER=	tabthorpe@FreeBSD.org
COMMENT=	A web based git repository browser written in PHP

LICENSE=	GPLv2

USE_BZIP2=	yes
USE_GETTEXT=	yes
USE_PHP=	bz2 fileinfo mbstring memcache posix simplexml spl zlib
WANT_PHP_WEB=	yes
NO_BUILD=	yes

SUB_FILES=	pkg-message

RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdiff.so:${PORTSDIR}/textproc/pecl-xdiff

do-install:
	${MKDIR} ${WWWDIR}
	(cd ${WRKSRC} \
		 && ${COPYTREE_SHARE} \* ${WWWDIR})
	${CHOWN} -R www:www ${WWWDIR}
	${FIND} ${WWWDIR} -type f -exec ${CHMOD} 644 '{}' +

.if !defined(BATCH)
	@ ${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>
