diff options
author | wiz <wiz> | 2009-01-17 20:43:27 +0000 |
---|---|---|
committer | wiz <wiz> | 2009-01-17 20:43:27 +0000 |
commit | 6f67a73523f66f516c8d10bd0fc641bc64b15246 (patch) | |
tree | 497a38605771faf5f55ba89ea81bd5aceb67c0be /converters/help2man | |
parent | cd0b53c0c320b7abd7eb7b8469a070d666699750 (diff) | |
download | pkgsrc-6f67a73523f66f516c8d10bd0fc641bc64b15246.tar.gz |
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 (limited to 'converters/help2man')
-rw-r--r-- | converters/help2man/DESCR | 9 | ||||
-rw-r--r-- | converters/help2man/Makefile | 23 | ||||
-rw-r--r-- | converters/help2man/PLIST | 15 | ||||
-rw-r--r-- | converters/help2man/distinfo | 8 | ||||
-rw-r--r-- | converters/help2man/patches/patch-aa | 51 | ||||
-rw-r--r-- | converters/help2man/patches/patch-ab | 26 | ||||
-rw-r--r-- | converters/help2man/patches/patch-ac | 15 |
7 files changed, 147 insertions, 0 deletions
diff --git a/converters/help2man/DESCR b/converters/help2man/DESCR new file mode 100644 index 00000000000..b3ccbc906d8 --- /dev/null +++ b/converters/help2man/DESCR @@ -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 --git a/converters/help2man/Makefile b/converters/help2man/Makefile new file mode 100644 index 00000000000..5748be3aeaa --- /dev/null +++ b/converters/help2man/Makefile @@ -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 +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 --git a/converters/help2man/PLIST b/converters/help2man/PLIST new file mode 100644 index 00000000000..056957303bd --- /dev/null +++ b/converters/help2man/PLIST @@ -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 --git a/converters/help2man/distinfo b/converters/help2man/distinfo new file mode 100644 index 00000000000..5451b910757 --- /dev/null +++ b/converters/help2man/distinfo @@ -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 --git a/converters/help2man/patches/patch-aa b/converters/help2man/patches/patch-aa new file mode 100644 index 00000000000..9c4e9ce1624 --- /dev/null +++ b/converters/help2man/patches/patch-aa @@ -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 --git a/converters/help2man/patches/patch-ab b/converters/help2man/patches/patch-ab new file mode 100644 index 00000000000..41b0deb36f2 --- /dev/null +++ b/converters/help2man/patches/patch-ab @@ -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 --git a/converters/help2man/patches/patch-ac b/converters/help2man/patches/patch-ac new file mode 100644 index 00000000000..018e7e7f1b3 --- /dev/null +++ b/converters/help2man/patches/patch-ac @@ -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' |