pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/help2man Initial import of help2man-1.36.4,...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e4072b4b2b06
branches:  trunk
changeset: 553218:e4072b4b2b06
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jan 17 20:43:27 2009 +0000

description:
Initial import of help2man-1.36.4, packaged for wip by arved, various fixes
by shattered and bsadewitz.

help2man is a tool for automatically generating simple manual pages from
program output.

It is intended to provide an easy way for software authors to include a
manual page in their distribution without having to maintain that document.

Given a program which produces resonably standard --help and --version
outputs, help2man will attempt to re-arrange that output into something
which resembles a manual page.

diffstat:

 converters/help2man/DESCR            |   9 ++++++
 converters/help2man/Makefile         |  23 ++++++++++++++++
 converters/help2man/PLIST            |  15 ++++++++++
 converters/help2man/distinfo         |   8 +++++
 converters/help2man/patches/patch-aa |  51 ++++++++++++++++++++++++++++++++++++
 converters/help2man/patches/patch-ab |  26 ++++++++++++++++++
 converters/help2man/patches/patch-ac |  15 ++++++++++
 7 files changed, 147 insertions(+), 0 deletions(-)

diffs (175 lines):

diff -r 2d0a1e9715c8 -r e4072b4b2b06 converters/help2man/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/help2man/DESCR Sat Jan 17 20:43:27 2009 +0000
@@ -0,0 +1,9 @@
+help2man is a tool for automatically generating simple manual pages from
+program output.
+
+It is intended to provide an easy way for software authors to include a
+manual page in their distribution without having to maintain that document.
+
+Given a program which produces resonably standard --help and --version
+outputs, help2man will attempt to re-arrange that output into something
+which resembles a manual page.
diff -r 2d0a1e9715c8 -r e4072b4b2b06 converters/help2man/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/help2man/Makefile      Sat Jan 17 20:43:27 2009 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/17 20:43:27 wiz Exp $
+#
+
+DISTNAME=              help2man-1.36.4
+CATEGORIES=            converters
+MASTER_SITES=          ${MASTER_SITE_GNU:=help2man/}
+
+MAINTAINER=            arved%arved.at@localhost
+HOMEPAGE=              http://www.gnu.org/software/help2man/
+COMMENT=               Generate simple manual pages from program output
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+DEPENDS+=              p5-gettext>=1.01:../../devel/p5-gettext
+
+WRKSRC=                        ${WRKDIR}/${PKGNAME_NOREV}
+GNU_CONFIGURE=         yes
+USE_PKGLOCALEDIR=      yes
+USE_TOOLS+=            perl:run msgfmt gmake
+
+INFO_FILES=            yes
+
+.include "../../mk/bsd.pkg.mk"
diff -r 2d0a1e9715c8 -r e4072b4b2b06 converters/help2man/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/help2man/PLIST Sat Jan 17 20:43:27 2009 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/17 20:43:27 wiz Exp $
+bin/help2man
+info/help2man.info
+lib/hacklocaledir.so
+man/fi/man1/help2man.1
+man/fr/man1/help2man.1
+man/man1/help2man.1
+man/pl/man1/help2man.1
+man/sv/man1/help2man.1
+share/locale/fi/LC_MESSAGES/help2man.mo
+share/locale/fr/LC_MESSAGES/help2man.mo
+share/locale/pl/LC_MESSAGES/help2man.mo
+share/locale/sv/LC_MESSAGES/help2man.mo
+@dirrm man/sv/man1
+@dirrm man/sv
diff -r 2d0a1e9715c8 -r e4072b4b2b06 converters/help2man/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/help2man/distinfo      Sat Jan 17 20:43:27 2009 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/17 20:43:27 wiz Exp $
+
+SHA1 (help2man-1.36.4.tar.gz) = f3ffd89d50ee158589f2d0ccdc476d2ac3ebff70
+RMD160 (help2man-1.36.4.tar.gz) = 1c2e18f86c2d689dbc4bbc1d85e60a2273308c42
+Size (help2man-1.36.4.tar.gz) = 85630 bytes
+SHA1 (patch-aa) = d285c85af63fe4477203a532814b0d22f3710191
+SHA1 (patch-ab) = 0f37b43ee53dfad50de340082c8b1684fb18b8c5
+SHA1 (patch-ac) = 71ddc4490430f972b3be44049117edfb0d314daa
diff -r 2d0a1e9715c8 -r e4072b4b2b06 converters/help2man/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/help2man/patches/patch-aa      Sat Jan 17 20:43:27 2009 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/01/17 20:43:27 wiz Exp $
+--- Makefile.in.orig   2005-10-29 02:50:33.000000000 -0400
++++ Makefile.in
+@@ -23,6 +23,7 @@ PERL = @PERL@
+ LIBS = @LIBS@
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
++INSTALL_SCRIPT = @INSTALL_SCRIPT@
+ INSTALL_DATA = @INSTALL_DATA@
+ INSTALL_INFO = @INSTALL_INFO@
+ MAKEINFO = @MAKEINFO@
+@@ -36,14 +37,14 @@ all: $(target) man info @extra_make_all@
+ 
+ install: all install_base @extra_make_install@
+ install_base:
+-      $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
+-      $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
+-      $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1
+-      $(MKINSTALLDIRS) $(DESTDIR)$(infodir)
+-
+-      $(INSTALL_PROGRAM) $(target) $(DESTDIR)$(bindir)
+-      $(INSTALL_DATA) $(srcdir)/$(target).1 $(DESTDIR)$(mandir)/man1
+-      $(INSTALL_DATA) $(srcdir)/$(target).info \
++      $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(bindir)
++      $(BSD_INSTALL_LIB_DIR) $(DESTDIR)$(libdir)
++      $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(mandir)/man1
++      $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(infodir)
++
++      $(BSD_INSTALL_SCRIPT) $(target) $(DESTDIR)$(bindir)
++      $(BSD_INSTALL_DATA) $(srcdir)/$(target).1 $(DESTDIR)$(mandir)/man1
++      $(BSD_INSTALL_DATA) $(srcdir)/$(target).info \
+           $(DESTDIR)$(infodir)/$(target).info
+ 
+       if test -f $(DESTDIR)$(infodir)/dir; \
+@@ -53,13 +54,13 @@ install_base:
+       fi
+ 
+ install_preload: preload
+-      $(INSTALL_PROGRAM) $(preload).so $(DESTDIR)$(libdir)
++      $(BSD_INSTALL_PROGRAM) $(preload).so $(DESTDIR)$(libdir)
+ 
+ install_l10n: man_l10n
+       for lang in $(LINGUAS); \
+       do \
+-          $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/$$lang/man1; \
+-          $(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
++          $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(mandir)/$$lang/man1; \
++          $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
+           $(INSTALL_DATA) $(srcdir)/$(target).$$lang.1 \
+               $(DESTDIR)$(mandir)/$$lang/man1/$(target).1; \
+           $(INSTALL_DATA) $(srcdir)/po/$$lang.gmo \
diff -r 2d0a1e9715c8 -r e4072b4b2b06 converters/help2man/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/help2man/patches/patch-ab      Sat Jan 17 20:43:27 2009 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/01/17 20:43:27 wiz Exp $
+--- hacklocaledir.c.orig       2003-07-08 10:23:53.000000000 -0400
++++ hacklocaledir.c
+@@ -40,12 +40,21 @@ int __open(char const *path, int flags, 
+     static size_t matchlen;
+     char *newpath = 0;
+     int r;
+-
++#ifdef RTLD_NEXT
+     if (!open && !(open = dlsym(RTLD_NEXT, "open")))
+     {
+       fprintf(stderr, PRELOAD ": can't find open(): %s\n", dlerror());
+       return -1;
+     }
++#else
++    void *handle = dlopen(NULL, DL_LAZY);
++    if (!open && !(open = dlsym(handle, "open")))
++    {
++        fprintf(stderr, PRELOAD ": can't find open(): %s\n", dlerror());
++        return -1;
++    }
++    dlclose(handle);
++#endif
+ 
+     if (textdomain || (textdomain = getenv("TEXTDOMAIN")))
+     {
diff -r 2d0a1e9715c8 -r e4072b4b2b06 converters/help2man/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/help2man/patches/patch-ac      Sat Jan 17 20:43:27 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/01/17 20:43:27 wiz Exp $
+
+--- configure.orig     2006-02-27 09:05:49.000000000 -0500
++++ configure
+@@ -2415,10 +2415,6 @@ echo $ECHO_N "checking for pre-loadable 
+     preload=`LD_PRELOAD="preloadable_libintl.so" sh -c 'echo yes' 2>/dev/null`
+     echo "$as_me:$LINENO: result: ${preload:=no}" >&5
+ echo "${ECHO_T}${preload:=no}" >&6
+-    test "$preload" = no && \
+-      { { echo "$as_me:$LINENO: error: libpreloadable_libintl.so required (gettext 0.12+)" >&5
+-echo "$as_me: error: libpreloadable_libintl.so required (gettext 0.12+)" >&2;}
+-   { (exit 1); exit 1; }; }
+ 
+     extra_make_all='preload man_l10n'
+     extra_make_install='install_preload install_l10n'



Home | Main Index | Thread Index | Old Index