2008-10-16 11:26:36 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cgit
|
2014-03-21 20:22:43 +00:00
|
|
|
PORTVERSION= 0.10.1
|
2008-10-16 11:26:36 +00:00
|
|
|
CATEGORIES= devel www
|
2013-02-21 09:30:55 +00:00
|
|
|
MASTER_SITES= http://git.zx2c4.com/cgit/snapshot/:cgit \
|
2013-05-29 10:06:04 +00:00
|
|
|
GOOGLE_CODE:git
|
2009-02-02 16:38:58 +00:00
|
|
|
DISTFILES= cgit-${PORTVERSION}${EXTRACT_SUFX}:cgit \
|
2013-05-29 10:06:04 +00:00
|
|
|
git-${GIT_VERSION}.tar.gz:git
|
2008-10-16 11:26:36 +00:00
|
|
|
|
2013-06-16 23:14:41 +00:00
|
|
|
MAINTAINER= kevinz5000@gmail.com
|
2014-03-21 20:22:43 +00:00
|
|
|
COMMENT= Hyperfast web frontend for Git repositories
|
2008-10-16 11:26:36 +00:00
|
|
|
|
2010-08-11 08:27:00 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-05-29 10:06:04 +00:00
|
|
|
PROJECTHOST= git-core
|
2014-03-21 20:22:43 +00:00
|
|
|
GIT_VERSION= 1.9.0
|
|
|
|
USES= gmake iconv shebangfix tar:bzip2
|
2013-05-29 10:23:22 +00:00
|
|
|
SHEBANG_FILES= filters/html-converters/resources/markdown.pl
|
2014-03-21 20:22:43 +00:00
|
|
|
|
2013-06-16 23:14:41 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2013-09-23 21:36:09 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
|
2014-03-21 20:22:43 +00:00
|
|
|
MAKE_ARGS+= CGIT_SCRIPT_PATH=${WWWDIR} CGIT_CONFIG=${PREFIX}/etc/cgitrc \
|
|
|
|
prefix=${PREFIX} NO_GETTEXT=1 NO_LUA=1
|
2008-10-16 11:26:36 +00:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2011-04-04 09:37:24 +00:00
|
|
|
SUB_LIST+= PORTNAME=${PORTNAME}
|
2013-06-16 23:14:41 +00:00
|
|
|
PLIST_SUB+= PORTNAME=${PORTNAME} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
2008-10-16 11:26:36 +00:00
|
|
|
|
2014-03-21 20:22:43 +00:00
|
|
|
PORTDOCS= ${PORTNAME}rc.5.txt
|
2013-10-27 20:39:56 +00:00
|
|
|
|
2014-03-21 20:22:43 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2012-12-31 11:51:35 +00:00
|
|
|
|
2009-02-02 16:38:58 +00:00
|
|
|
post-extract:
|
|
|
|
@${RMDIR} ${WRKSRC}/git
|
|
|
|
@${MV} ${WRKDIR}/git-${GIT_VERSION} ${WRKSRC}/git
|
|
|
|
|
|
|
|
post-patch:
|
2014-03-21 20:22:43 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/-liconv/${ICONV_LIB}/' ${WRKSRC}/git/Makefile
|
2009-02-02 16:38:58 +00:00
|
|
|
|
2008-10-16 11:26:36 +00:00
|
|
|
post-install:
|
2013-10-27 20:39:56 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}rc.5.txt ${STAGEDIR}/${DOCSDIR}/
|
2014-03-21 20:22:43 +00:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${WWWDIR}/cgit.cgi
|
2008-10-16 11:26:36 +00:00
|
|
|
|
2014-03-21 20:22:43 +00:00
|
|
|
.include <bsd.port.mk>
|