Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Apr 2018 17:04:29 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r467401 - head/devel/cgit
Message-ID:  <201804151704.w3FH4Taf092915@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Sun Apr 15 17:04:29 2018
New Revision: 467401
URL: https://svnweb.freebsd.org/changeset/ports/467401

Log:
  Add an option (defaulting to on) to build and install the cgitrc(5)
  manpage.
  
  Submitter becomes maintainer.
  
  PR:		227304
  Submitted by:	Marko Turk

Modified:
  head/devel/cgit/Makefile
  head/devel/cgit/pkg-plist

Modified: head/devel/cgit/Makefile
==============================================================================
--- head/devel/cgit/Makefile	Sun Apr 15 17:00:10 2018	(r467400)
+++ head/devel/cgit/Makefile	Sun Apr 15 17:04:29 2018	(r467401)
@@ -2,14 +2,14 @@
 
 PORTNAME=	cgit
 PORTVERSION=	1.1
-PORTREVISION=	17
+PORTREVISION=	18
 CATEGORIES=	devel www
 MASTER_SITES=	http://git.zx2c4.com/cgit/snapshot/:cgit \
 		https://www.kernel.org/pub/software/scm/git/:git
 DISTFILES=	cgit-${PORTVERSION}${EXTRACT_SUFX}:cgit \
 		git-${GIT_VERSION}${EXTRACT_SUFX}:git
 
-MAINTAINER=	adamw@FreeBSD.org
+MAINTAINER=	mt@markoturk.info
 COMMENT=	Fast, lightweight web frontend for Git repositories
 
 LICENSE=	GPLv2
@@ -35,8 +35,13 @@ SUB_FILES=	pkg-message
 
 PORTDOCS=	${PORTNAME}rc.5.txt
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DOCS ASCIIDOC
+OPTIONS_DEFAULT=	DOCS ASCIIDOC
+OPTIONS_SUB=	yes
 
+ASCIIDOC_DESC=	Use asciidoc to preprocess man page
+ASCIIDOC_BUILD_DEPENDS=	a2x:textproc/asciidoc
+
 post-extract:
 	@${RMDIR} ${WRKSRC}/git
 	@${MV} ${WRKDIR}/git-${GIT_VERSION} ${WRKSRC}/git
@@ -56,5 +61,9 @@ post-install:
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+post-install-ASCIIDOC-on:
+	a2x --doctype manpage --format manpage ${WRKSRC}/cgitrc.5.txt
+	${INSTALL_MAN} ${WRKSRC}/cgitrc.5 ${STAGEDIR}${PREFIX}/man/man5
 
 .include <bsd.port.mk>

Modified: head/devel/cgit/pkg-plist
==============================================================================
--- head/devel/cgit/pkg-plist	Sun Apr 15 17:00:10 2018	(r467400)
+++ head/devel/cgit/pkg-plist	Sun Apr 15 17:04:29 2018	(r467401)
@@ -12,6 +12,7 @@ lib/cgit/filters/owner-example.lua
 lib/cgit/filters/simple-authentication.lua
 lib/cgit/filters/syntax-highlighting.py
 lib/cgit/filters/syntax-highlighting.sh
+%%ASCIIDOC%%man/man5/cgitrc.5.gz
 %%WWWDIR%%/cgit.cgi
 %%WWWDIR%%/cgit.css
 %%WWWDIR%%/cgit.png



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804151704.w3FH4Taf092915>