summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorMateusz Kwiatkowski <mateusz@serveraptor.com>2021-04-28 16:04:51 +0200
committerMateusz Piotrowski <0mp@FreeBSD.org>2021-04-28 16:13:27 +0200
commit995b8d03bb276d0ade969c8a5a634ff86336fcc7 (patch)
treedcbf2216fe7c7d2a67b641acc12a9e0f6a8a6a10 /textproc
parentx11-wm/dwm: Add new option RUGAPS (diff)
textprox/go-md2man: New port
Reviewed by: 0mp Reviewed by: Daniel Engberg <daniel.engberg.lists@pyret.net> (earlier version) Differential Revision: https://reviews.freebsd.org/D29487
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/go-md2man/Makefile23
-rw-r--r--textproc/go-md2man/distinfo7
-rw-r--r--textproc/go-md2man/pkg-descr5
4 files changed, 36 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 715568c4a47d..38a675bf649f 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -230,6 +230,7 @@
SUBDIR += gladtex
SUBDIR += gmetadom
SUBDIR += gnugrep
+ SUBDIR += go-md2man
SUBDIR += goldendict
SUBDIR += google-ctemplate
SUBDIR += google-translate-cli
diff --git a/textproc/go-md2man/Makefile b/textproc/go-md2man/Makefile
new file mode 100644
index 000000000000..8328687876ab
--- /dev/null
+++ b/textproc/go-md2man/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= go-md2man
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.0.0
+CATEGORIES= textproc
+
+MAINTAINER= mateusz@serveraptor.com
+COMMENT= Converts Markdown into roff (man pages)
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+USES= go:modules
+USE_GITHUB= yes
+
+GH_ACCOUNT= cpuguy83
+GH_SUBDIR= go-md2man
+
+GH_TUPLE= russross:blackfriday:v2.0.1:russross_blackfriday_v2/vendor/github.com/russross/blackfriday/v2 \
+ shurcooL:sanitized_anchor_name:v1.0.0:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name
+
+PLIST_FILES= bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/textproc/go-md2man/distinfo b/textproc/go-md2man/distinfo
new file mode 100644
index 000000000000..98b61c880aed
--- /dev/null
+++ b/textproc/go-md2man/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1617023117
+SHA256 (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 50537880d42fc28b9c2e9aaa36b137349d43cc73d46436a499f8c928cd2fc576
+SIZE (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 52021
+SHA256 (russross-blackfriday-v2.0.1_GH0.tar.gz) = 5a0f38a36b6f3b2d59b72d713451a895a4d3a4406b3533882483782e37797cff
+SIZE (russross-blackfriday-v2.0.1_GH0.tar.gz) = 79613
+SHA256 (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 7e11964980f9b8595c17bc8970f0174621afe464920e38df7f8d77e45058388f
+SIZE (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 2143
diff --git a/textproc/go-md2man/pkg-descr b/textproc/go-md2man/pkg-descr
new file mode 100644
index 000000000000..6439d026432d
--- /dev/null
+++ b/textproc/go-md2man/pkg-descr
@@ -0,0 +1,5 @@
+go-md2man: Converts Markdown into roff (man pages).
+
+It uses blackfriday to process Markdown.
+
+WWW: https://github.com/cpuguy83/go-md2man