pkgsrc/www/gitweb/Makefile
adam 7e964a6677 Fixes since v1.9.3
------------------

 * Commands that take pathspecs on the command line misbehaved when
   the pathspec is given as an absolute pathname (which is a
   practice not particularly encouraged) that points at a symbolic
   link in the working tree.

 * An earlier fix to the shell prompt script (in contrib/) for using
   the PROMPT_COMMAND interface did not correctly check if the extra
   code path needs to trigger, causing the branch name not to appear
   when 'promptvars' option is disabled in bash or PROMPT_SUBST is
   unset in zsh.
2014-06-02 16:32:36 +00:00

47 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2014/06/02 16:32:36 adam Exp $
.include "../../devel/git/Makefile.common"
PKGNAME= ${DISTNAME:S/git/gitweb/}
CATEGORIES= www
COMMENT= Web interface for GIT repositories
#DEPENDS+= apache{,2,22}-[0-9]*:../../www/apache22
DEPENDS+= git-base>=${GIT_VERSION}:../../devel/git-base
DEPENDS+= {perl>=5.15.8,p5-Time-HiRes>=1.9725}:../../time/p5-Time-HiRes
USE_TOOLS+= perl:run
BUILD_DIRS= gitweb
BUILD_TARGET= gitweb.cgi
MAKE_FLAGS= prefix=${PREFIX}
MAKE_FLAGS+= GITWEB_FAVICON=/gitweb/git-favicon.png
MAKE_FLAGS+= GITWEB_CONFIG=${GITWEB_CONFIG}
MAKE_FLAGS+= GITWEB_CSS=/gitweb/gitweb.css
MAKE_FLAGS+= GITWEB_HOMETEXT=${GITWEB_HTDOCS}/indextext.html
MAKE_FLAGS+= GITWEB_LOGO=/gitweb/git-logo.png
MAKE_FLAGS+= PERL_PATH=${PERL5:Q}
GITWEB_CONFIG= ${PKG_SYSCONFDIR}/gitweb.conf
GITWEB_CGIBIN= ${PREFIX}/libexec/cgi-bin
# Apache wants files in ${PREFIX}/share/httpd/htdocs/gitweb
GITWEB_HTDOCS= ${PREFIX}/share/examples/gitweb/htdocs
GITWEB_EGDIR= ${PREFIX}/share/examples/gitweb
CONF_FILES= ${GITWEB_EGDIR}/gitweb.conf ${PKG_SYSCONFDIR}/gitweb.conf
MESSAGE_SUBST+= CONFFILE=${PKG_SYSCONFDIR}/gitweb.conf
INSTALLATION_DIRS= libexec/cgi-bin share/doc/gitweb \
${GITWEB_EGDIR} ${GITWEB_HTDOCS}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/gitweb/gitweb.cgi ${DESTDIR}${GITWEB_CGIBIN}
.for f in git-favicon.png git-logo.png gitweb.css
${INSTALL_DATA} ${WRKSRC}/gitweb/static/${f} ${DESTDIR}${GITWEB_HTDOCS}
.endfor
${INSTALL_DATA} ${WRKSRC}/gitweb/README \
${DESTDIR}${PREFIX}/share/doc/gitweb
${INSTALL_DATA} ${FILESDIR}/gitweb.conf ${DESTDIR}${GITWEB_EGDIR}
.include "../../mk/bsd.pkg.mk"