summaryrefslogtreecommitdiff
path: root/net/stagit-gopher
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2019-06-19 11:40:51 +0000
committerleot <leot@pkgsrc.org>2019-06-19 11:40:51 +0000
commit0792c602ef67d95b430c81545e613d5990b46373 (patch)
treefa2e22e1382b44c758420c5b8786a8dc93e7d637 /net/stagit-gopher
parent0fd6d638295a576055b21c70e4d517b6d4d7057a (diff)
downloadpkgsrc-0792c602ef67d95b430c81545e613d5990b46373.tar.gz
stagit-gopher: Import stagit-gopher-0.9.2 as net/stagit-gopher
stagit generates .gph geomyidae pages for a Git repository, and supports the following features: - Log of all commits from HEAD. - Log and diffstat per commit. - Show file tree with line numbers. - Show references: local branches and tags. - Detect README and LICENSE file from HEAD and link it as a page. - Detect submodules (.gitmodules file) from HEAD and link it as a page. - Atom feed log (atom.xml). - Make index page for multiple repositories with stagit-gopher-index. - After generating the pages (relatively slow) serving the files is very fast, simple and requires little resources (because the content is static), only a geomyidae Gopher server is required.
Diffstat (limited to 'net/stagit-gopher')
-rw-r--r--net/stagit-gopher/DESCR14
-rw-r--r--net/stagit-gopher/Makefile28
-rw-r--r--net/stagit-gopher/PLIST8
-rw-r--r--net/stagit-gopher/distinfo6
4 files changed, 56 insertions, 0 deletions
diff --git a/net/stagit-gopher/DESCR b/net/stagit-gopher/DESCR
new file mode 100644
index 00000000000..c9fc8a286a7
--- /dev/null
+++ b/net/stagit-gopher/DESCR
@@ -0,0 +1,14 @@
+stagit generates .gph geomyidae pages for a Git repository, and
+supports the following features:
+
+- Log of all commits from HEAD.
+- Log and diffstat per commit.
+- Show file tree with line numbers.
+- Show references: local branches and tags.
+- Detect README and LICENSE file from HEAD and link it as a page.
+- Detect submodules (.gitmodules file) from HEAD and link it as a page.
+- Atom feed log (atom.xml).
+- Make index page for multiple repositories with stagit-gopher-index.
+- After generating the pages (relatively slow) serving the files is very fast,
+ simple and requires little resources (because the content is static), only
+ a geomyidae Gopher server is required.
diff --git a/net/stagit-gopher/Makefile b/net/stagit-gopher/Makefile
new file mode 100644
index 00000000000..2128cad0c1f
--- /dev/null
+++ b/net/stagit-gopher/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2019/06/19 11:40:51 leot Exp $
+
+DISTNAME= stagit-gopher-0.9.2
+CATEGORIES= net
+MASTER_SITES= https://codemadness.org/releases/stagit-gopher/
+
+MAINTAINER= leot@NetBSD.org
+HOMEPAGE= https://codemadness.org/git/stagit-gopher/file/README.html
+COMMENT= Static git page generator for gopher
+LICENSE= mit
+
+USE_LANGUAGES= c99
+
+SUBST_CLASSES+= makefile
+SUBST_STAGE.makefile= pre-configure
+SUBST_MESSAGE.makefile= Adjust config.mk
+SUBST_FILES.makefile= config.mk
+SUBST_SED.makefile+= -e '/^CFLAGS/ s,-O2,,'
+SUBST_SED.makefile+= -e 's,^CFLAGS *= ,CFLAGS += ,'
+SUBST_SED.makefile+= -e 's,^LDFLAGS *= ,LDFLAGS += ,'
+
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= MANPREFIX=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+= GITINC=${PREFIX}/include
+MAKE_FLAGS+= GITLIB=${PREFIX}/lib
+
+.include "../../devel/libgit2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/stagit-gopher/PLIST b/net/stagit-gopher/PLIST
new file mode 100644
index 00000000000..673dad15eca
--- /dev/null
+++ b/net/stagit-gopher/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2019/06/19 11:40:51 leot Exp $
+bin/stagit-gopher
+bin/stagit-gopher-index
+man/man1/stagit-gopher-index.1
+man/man1/stagit-gopher.1
+share/doc/stagit-gopher/README
+share/doc/stagit-gopher/example_create.sh
+share/doc/stagit-gopher/example_post-receive.sh
diff --git a/net/stagit-gopher/distinfo b/net/stagit-gopher/distinfo
new file mode 100644
index 00000000000..cf59530a876
--- /dev/null
+++ b/net/stagit-gopher/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/06/19 11:40:51 leot Exp $
+
+SHA1 (stagit-gopher-0.9.2.tar.gz) = 292e5c7ba313d1c4de32c98c4b8e943408f76f53
+RMD160 (stagit-gopher-0.9.2.tar.gz) = 4ecaaeca5283735958c9624b32530386d5475b6e
+SHA512 (stagit-gopher-0.9.2.tar.gz) = 6b14cf6870124ed9b91ded7ba4d1d9e4c4956a899d90594c01d885eff52218c6ba7b57741cddd24cb2846377d4f077239e3f654b386cca967da2678625fc10e7
+Size (stagit-gopher-0.9.2.tar.gz) = 16907 bytes