From d3173a0ec1605c8a947596b1d3ba00bfc0b0cef6 Mon Sep 17 00:00:00 2001 From: thierry Date: Sun, 23 Jan 2005 21:55:46 +0000 Subject: Add info2man: translate GNU info files into man pages. --- textproc/Makefile | 1 + textproc/info2man/Makefile | 33 +++++++++++++++++++++++++++++++++ textproc/info2man/distinfo | 2 ++ textproc/info2man/files/patch-info2pod | 11 +++++++++++ textproc/info2man/pkg-descr | 9 +++++++++ textproc/info2man/pkg-plist | 15 +++++++++++++++ 6 files changed, 71 insertions(+) create mode 100644 textproc/info2man/Makefile create mode 100644 textproc/info2man/distinfo create mode 100644 textproc/info2man/files/patch-info2pod create mode 100644 textproc/info2man/pkg-descr create mode 100644 textproc/info2man/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index de26b11e1a08..a1eb5cb1ff9a 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -166,6 +166,7 @@ SUBDIR += iiimf-x SUBDIR += iiimf-x-lib SUBDIR += info2html + SUBDIR += info2man SUBDIR += info_to_html SUBDIR += intltool SUBDIR += ipdf diff --git a/textproc/info2man/Makefile b/textproc/info2man/Makefile new file mode 100644 index 000000000000..df4d6b878fa0 --- /dev/null +++ b/textproc/info2man/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: info2man +# Date created: 19 January 2005 +# Whom: Thierry Thomas +# +# $FreeBSD$ +# + +PORTNAME= info2man +PORTVERSION= 20040717 +CATEGORIES= textproc +MASTER_SITES= http://www.cskk.ezoshosting.com/cs/css/ +DISTNAME= ${PORTNAME} +DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= ports@FreeBSD.org +COMMENT= Translate GNU info files into man pages + +USE_PERL5= yes +USE_REINPLACE= yes +NO_WRKSUBDIR= yes +NO_BUILD= yes + +PLSCRIPTS= info2man info2pod + +pre-configure: + @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/info2pod + +do-install: + ${INSTALL_SCRIPT} ${PLSCRIPTS:S|^|${WRKSRC}/|} ${PREFIX}/bin + ${MKDIR} ${DATADIR} + ${CP} -R ${WRKSRC}/cs ${DATADIR} + +.include diff --git a/textproc/info2man/distinfo b/textproc/info2man/distinfo new file mode 100644 index 000000000000..17b59fb5445e --- /dev/null +++ b/textproc/info2man/distinfo @@ -0,0 +1,2 @@ +MD5 (info2man-20040717/info2man.tar.gz) = 303b9bf313e88558ff577806398f6c4c +SIZE (info2man-20040717/info2man.tar.gz) = 22263 diff --git a/textproc/info2man/files/patch-info2pod b/textproc/info2man/files/patch-info2pod new file mode 100644 index 000000000000..7da050adb9f0 --- /dev/null +++ b/textproc/info2man/files/patch-info2pod @@ -0,0 +1,11 @@ +--- info2pod.orig Fri Apr 9 10:03:56 2004 ++++ info2pod Sat Jan 22 21:23:24 2005 +@@ -28,6 +28,8 @@ + + use strict qw(vars); + ++use lib '%%DATADIR%%/'; ++ + use cs::Misc; + use cs::Sink; + use cs::GNUInfo; diff --git a/textproc/info2man/pkg-descr b/textproc/info2man/pkg-descr new file mode 100644 index 000000000000..b590dd224b43 --- /dev/null +++ b/textproc/info2man/pkg-descr @@ -0,0 +1,9 @@ +info2man converts GNU info files to pod or -man formats. + +GNU info can be a pain as it demands its own special pager, it's a binary +format, it's cruder than HTML and less documented, and most GNU- authored +manual entries basically say "we like info so we don't maintain this manual +entry, thus it is probably wrong". info2man thus converts info files so that +they can be read by ordinary tools. + +WWW: http://www.cskk.ezoshosting.com/cs/css/info2pod.html diff --git a/textproc/info2man/pkg-plist b/textproc/info2man/pkg-plist new file mode 100644 index 000000000000..a2b7fa181d76 --- /dev/null +++ b/textproc/info2man/pkg-plist @@ -0,0 +1,15 @@ +bin/info2man +bin/info2pod +%%DATADIR%%/cs/DEBUG.pm +%%DATADIR%%/cs/GNUInfo.pm +%%DATADIR%%/cs/GNUInfo/Node.pm +%%DATADIR%%/cs/IO.pm +%%DATADIR%%/cs/Math.pm +%%DATADIR%%/cs/Misc.pm +%%DATADIR%%/cs/Object.pm +%%DATADIR%%/cs/Pathname.pm +%%DATADIR%%/cs/Sink.pm +%%DATADIR%%/cs/Source.pm +@dirrm %%DATADIR%%/cs/GNUInfo +@dirrm %%DATADIR%%/cs +@dirrm %%DATADIR%% -- cgit