Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2014 03:22:42 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r373031 - in head/textproc: . docbook2mdoc docbook2mdoc/files
Message-ID:  <201411220322.sAM3MgAA050954@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Nov 22 03:22:41 2014
New Revision: 373031
URL: https://svnweb.freebsd.org/changeset/ports/373031
QAT: https://qat.redports.org/buildarchive/r373031/

Log:
  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/

Added:
  head/textproc/docbook2mdoc/
  head/textproc/docbook2mdoc/Makefile   (contents, props changed)
  head/textproc/docbook2mdoc/distinfo   (contents, props changed)
  head/textproc/docbook2mdoc/files/
  head/textproc/docbook2mdoc/files/patch-Makefile   (contents, props changed)
  head/textproc/docbook2mdoc/pkg-descr   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Sat Nov 22 02:18:12 2014	(r373030)
+++ head/textproc/Makefile	Sat Nov 22 03:22:41 2014	(r373031)
@@ -109,6 +109,7 @@
     SUBDIR += dixit
     SUBDIR += doc-mode.el
     SUBDIR += docbook
+    SUBDUR += docbook2mdoc
     SUBDIR += docbook-sgml
     SUBDIR += docbook-tdg
     SUBDIR += docbook-to-man

Added: head/textproc/docbook2mdoc/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/docbook2mdoc/Makefile	Sat Nov 22 03:22:41 2014	(r373031)
@@ -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>

Added: head/textproc/docbook2mdoc/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/docbook2mdoc/distinfo	Sat Nov 22 03:22:41 2014	(r373031)
@@ -0,0 +1,2 @@
+SHA256 (docbook2mdoc-0.0.9.tgz) = 93320aa42cbcc2a8e43aceff3ef97af83ba65a87c6e745aa37ae27f43440341e
+SIZE (docbook2mdoc-0.0.9.tgz) = 13022

Added: head/textproc/docbook2mdoc/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/docbook2mdoc/files/patch-Makefile	Sat Nov 22 03:22:41 2014	(r373031)
@@ -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

Added: head/textproc/docbook2mdoc/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/docbook2mdoc/pkg-descr	Sat Nov 22 03:22:41 2014	(r373031)
@@ -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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411220322.sAM3MgAA050954>