1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/devel/gitlist/Makefile
Bartek Rutkowski 9053462df9 devel/gitlist: NEW PORT - Web based Git repository browser written in PHP
GitList is a web based git repository browser written in PHP similar to GitHub

WWW: http://gitlist.org

PR:		198063
Submitted by:	Andre Rikkert de Koe <andre@ark-ict.nl>
2015-09-09 11:00:46 +00:00

49 lines
1.1 KiB
Makefile

# Created by: Andre Rikkert de Koe - ARK-ICT <andre@ark-ict.nl>
# $FreeBSD$
PORTNAME= gitlist
PORTVERSION= 0.5.0
CATEGORIES= devel www
MASTER_SITES= https://s3.amazonaws.com/gitlist/ \
http://freebsd.ark-ict.nl/ports/
MAINTAINER= andre@ark-ict.nl
COMMENT= Web based Git repository browser written in PHP
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= git:${PORTSDIR}/devel/git
PLIST= ${WRKDIR}/plist
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
WANT_PHP_WEB= yes
USERS?= ${WWWOWN}
GROUPS?= ${WWWGRP}
SUB_FILES= pkg-message
post-patch:
${MKDIR} ${WRKSRC}/cache
cd ${WRKSRC}; \
${REINPLACE_CMD} -e 's|/usr/bin/git|/usr/local/bin/git|g' config.ini-example; \
${FIND} . ! -type d | ${SORT} | ${SED} -e "s,^\.,%%WWWDIR%%," > ${PLIST};
${ECHO} "@dir %%WWWDIR%%/vendor/phpmd/phpmd/setup" >> ${PLIST}
${ECHO} "@dir(${WWWOWN},${WWWGRP},) %%WWWDIR%%/cache" >> ${PLIST}
do-install:
cd ${WRKSRC}; \
IFS="$$(printf '\n\t')"; \
for src in $$( ${FIND} . ); do \
dst="${STAGEDIR}${WWWDIR}$${src#.}"; \
if ${TEST} -d "$$src"; then \
${MKDIR} "$$dst"; \
else \
${INSTALL_DATA} "$$src" "$$dst"; \
fi \
done
.include <bsd.port.mk>