aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-11-22 11:22:41 +0800
committerbapt <bapt@FreeBSD.org>2014-11-22 11:22:41 +0800
commit8a3becb3eb0263380bd6ee6168fe82f1d79bc6b8 (patch)
tree6f807c5c4bec7935458e5dd56076e7cde26e5043 /textproc
parentb55dd59d433d74fce1a5425295868766cc1ac867 (diff)
downloadfreebsd-ports-gnome-8a3becb3eb0263380bd6ee6168fe82f1d79bc6b8.tar.gz
freebsd-ports-gnome-8a3becb3eb0263380bd6ee6168fe82f1d79bc6b8.tar.zst
freebsd-ports-gnome-8a3becb3eb0263380bd6ee6168fe82f1d79bc6b8.zip
The docbook2mdoc utility is a converter from DocBook V4.x and v5.x XML into
mdoc. Unlike most DocBook utilities, it's a standalone ISC-licensed ISO C utility that should compile on any modern UNIX system. The only requirement is libexpat (for parsing XML), which is installed by default on most systems. WWW: http://mdocml.bsd.lv/docbook2mdoc/
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/docbook2mdoc/Makefile23
-rw-r--r--textproc/docbook2mdoc/distinfo2
-rw-r--r--textproc/docbook2mdoc/files/patch-Makefile25
-rw-r--r--textproc/docbook2mdoc/pkg-descr6
5 files changed, 57 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index de74a4f7a3ef..a1b42b5fb01f 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -109,6 +109,7 @@
SUBDIR += dixit
SUBDIR += doc-mode.el
SUBDIR += docbook
+ SUBDUR += docbook2mdoc
SUBDIR += docbook-sgml
SUBDIR += docbook-tdg
SUBDIR += docbook-to-man
diff --git a/textproc/docbook2mdoc/Makefile b/textproc/docbook2mdoc/Makefile
new file mode 100644
index 000000000000..ba302096ab14
--- /dev/null
+++ b/textproc/docbook2mdoc/Makefile
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+PORTNAME= docbook2mdoc
+PORTVERSION= 0.0.9
+CATEGORIES= textproc
+MASTER_SITES= http://mdocml.bsd.lv/docbook2mdoc/snapshots/
+
+MAINTAINER= bapt@FreeBSD.org
+COMMENT= Convert DocBook refentry to mdoc
+
+LICENSE= ISCL
+
+LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
+
+PLIST_FILES= bin/docbook2mdoc \
+ man/man1/docbook2mdoc.1.gz
+
+USES= tar:tgz
+
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+.include <bsd.port.mk>
diff --git a/textproc/docbook2mdoc/distinfo b/textproc/docbook2mdoc/distinfo
new file mode 100644
index 000000000000..fde7bbf3b6ab
--- /dev/null
+++ b/textproc/docbook2mdoc/distinfo
@@ -0,0 +1,2 @@
+SHA256 (docbook2mdoc-0.0.9.tgz) = 93320aa42cbcc2a8e43aceff3ef97af83ba65a87c6e745aa37ae27f43440341e
+SIZE (docbook2mdoc-0.0.9.tgz) = 13022
diff --git a/textproc/docbook2mdoc/files/patch-Makefile b/textproc/docbook2mdoc/files/patch-Makefile
new file mode 100644
index 000000000000..b021e35e7fae
--- /dev/null
+++ b/textproc/docbook2mdoc/files/patch-Makefile
@@ -0,0 +1,25 @@
+--- Makefile.orig 2014-04-30 13:21:35 UTC
++++ Makefile
+@@ -1,19 +1,19 @@
+ VERSION = 0.0.9
+ CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
+ WWWPREFIX = /usr/vhosts/mdocml.bsd.lv/www/htdocs/docbook2mdoc
+-PREFIX = /usr/local
++PREFIX ?= /usr/local
+
+ all: docbook2mdoc
+
+ docbook2mdoc: docbook2mdoc.o rules.o
+- $(CC) -o $@ docbook2mdoc.o rules.o -lexpat
++ $(CC) -o $@ docbook2mdoc.o rules.o ${LDFLAGS} -lexpat
+
+ www: index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz README.txt
+
+ install: all
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ mkdir -p $(DESTDIR)$(PREFIX)/man/man1
+- install -m 0755 docbook2mdoc $(DESTDIR)$(PREFIX)/bin
++ install -s -m 0755 docbook2mdoc $(DESTDIR)$(PREFIX)/bin
+ install -m 0444 docbook2mdoc.1 $(DESTDIR)$(PREFIX)/man/man1
+
+ installwww: www
diff --git a/textproc/docbook2mdoc/pkg-descr b/textproc/docbook2mdoc/pkg-descr
new file mode 100644
index 000000000000..c2486ae90cc6
--- /dev/null
+++ b/textproc/docbook2mdoc/pkg-descr
@@ -0,0 +1,6 @@
+The docbook2mdoc utility is a converter from DocBook V4.x and v5.x XML into
+mdoc. Unlike most DocBook utilities, it's a standalone ISC-licensed ISO C
+utility that should compile on any modern UNIX system. The only requirement is
+libexpat (for parsing XML), which is installed by default on most systems.
+
+WWW: http://mdocml.bsd.lv/docbook2mdoc/