mystuff/cgit-vargit/Makefile in openbsd-ports

at master

1COMMENT = web frontend for git repositories
2
3V = 1.2.3
4DISTNAME = cgit-${V}
5CATEGORIES = mystuff www devel
6FULLPKGNAME = cgit-vargit-${V}
7PKGPATH = mystuff/cgit-vargit
8
9# upstream has git 2.25.1 called out as the specific version to build against
10# https://git.zx2c4.com/cgit/commit/?id=fde897b8171ed2e925b44ec6f69590ec07241017
11DISTFILES = ${DISTNAME}.tar.xz:0 \
12 git-2.25.1.tar.gz:1
13
14MASTER_SITES0 = https://git.zx2c4.com/cgit/snapshot/
15MASTER_SITES1 = https://www.kernel.org/pub/software/scm/git/
16HOMEPAGE = https://git.zx2c4.com/cgit/about/
17
18# GPLv2
19PERMIT_PACKAGE = Yes
20
21USE_GMAKE = yes
22
23BUILD_DEPENDS = textproc/asciidoc
24LIB_DEPENDS = converters/libiconv
25
26PREFIX = ${VARBASE}
27MAKE_FLAGS += V=1 NO_GETTEXT=1 NO_LUA=1 LDFLAGS+='${STATIC} -L${LOCALBASE}/lib'
28
29ALL_TARGET = all doc-man
30
31post-extract:
32 rmdir ${WRKSRC}/git
33 mv ${WRKDIR}/git-* ${WRKSRC}/git
34
35post-install:
36 mv ${PREFIX}/www/htdocs ${PREFIX}/www/cgit
37 ${INSTALL_MAN} ${WRKBUILD}/cgitrc.5 ${WRKINST}${LOCALBASE}/man/man5
38
39.include <bsd.port.mk>