summary refs log tree commit diff
path: root/OpenBSD/www/cgit-pink/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-02-14 02:53:47 +0000
committerJune McEnroe <june@causal.agency>2022-02-14 02:53:47 +0000
commitadc960cfafb8a1b0b06cda60563bbbacad06792f (patch)
treef30f6fc5bb5ea5726ade103a648ba6684c037d30 /OpenBSD/www/cgit-pink/Makefile
parentOpenBSD: Update pounce to 3.0 (diff)
downloadports-adc960cfafb8a1b0b06cda60563bbbacad06792f.tar.gz
ports-adc960cfafb8a1b0b06cda60563bbbacad06792f.zip
OpenBSD: Add port for cgit-pink
Diffstat (limited to 'OpenBSD/www/cgit-pink/Makefile')
-rw-r--r--OpenBSD/www/cgit-pink/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/OpenBSD/www/cgit-pink/Makefile b/OpenBSD/www/cgit-pink/Makefile
new file mode 100644
index 0000000..845c0f9
--- /dev/null
+++ b/OpenBSD/www/cgit-pink/Makefile
@@ -0,0 +1,39 @@
+# $OpenBSD: Makefile,v 1.27 2020/04/04 19:28:31 kn Exp $
+
+COMMENT =	web frontend for git repositories
+
+DISTNAME =	cgit-pink-1.3.0
+CATEGORIES =	www devel
+
+DISTFILES =	${DISTNAME}.tar.gz:0 \
+		git-2.35.1.tar.gz:1
+
+MASTER_SITES0 =		https://git.causal.agency/cgit-pink/snapshot/
+MASTER_SITES1 =		https://www.kernel.org/pub/software/scm/git/
+HOMEPAGE =		https://git.causal.agency/cgit-pink/about/
+
+# GPLv2
+PERMIT_PACKAGE =	Yes
+
+USE_GMAKE =	yes
+
+BUILD_DEPENDS =	textproc/asciidoc
+LIB_DEPENDS =	converters/libiconv
+
+PREFIX =	${VARBASE}/www
+MAKE_FLAGS +=	V=1 NO_GETTEXT=1 EXTRA_GIT_TARGETS='git git-http-backend' LDFLAGS+='${STATIC} -L${LOCALBASE}/lib'
+
+ALL_TARGET =	all doc-man
+
+post-extract:
+	rmdir ${WRKSRC}/git
+	mv ${WRKDIR}/git-* ${WRKSRC}/git
+
+post-install:
+	mv ${PREFIX}/htdocs ${PREFIX}/cgit
+	${INSTALL_MAN} ${WRKBUILD}/cgitrc.5 ${WRKINST}${LOCALBASE}/man/man5
+	${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKBUILD}/git/git ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKBUILD}/git/git-http-backend ${PREFIX}/cgi-bin
+
+.include <bsd.port.mk>