pkgsrc-Changes archive

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

CVS commit: pkgsrc/converters



Module Name:    pkgsrc
Committed By:   nikita
Date:           Sun Apr 30 14:07:04 UTC 2023

Modified Files:
        pkgsrc/converters: Makefile
Added Files:
        pkgsrc/converters/info2man: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/converters/info2man/patches: patch-cs_Misc.pm patch-cs_Sink.pm

Log Message:
import info2man as info2man version 1.1

packaged in wip by francksys.

info2pod converts GNU info data to POD format for easy transcription to
various formats like HTML. info2man is a wrapper for info2pod to convert
info files into nroff -man format.


To generate a diff of this commit:
cvs rdiff -u -r1.204 -r1.205 pkgsrc/converters/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/converters/info2man/DESCR \
    pkgsrc/converters/info2man/Makefile pkgsrc/converters/info2man/PLIST \
    pkgsrc/converters/info2man/buildlink3.mk \
    pkgsrc/converters/info2man/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/converters/info2man/patches/patch-cs_Misc.pm \
    pkgsrc/converters/info2man/patches/patch-cs_Sink.pm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/converters/Makefile
diff -u pkgsrc/converters/Makefile:1.204 pkgsrc/converters/Makefile:1.205
--- pkgsrc/converters/Makefile:1.204    Thu Mar 30 17:46:09 2023
+++ pkgsrc/converters/Makefile  Sun Apr 30 14:07:04 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.204 2023/03/30 17:46:09 wiz Exp $
+# $NetBSD: Makefile,v 1.205 2023/04/30 14:07:04 nikita Exp $
 #
 
 COMMENT=       Document format and character code converters
@@ -49,6 +49,7 @@ SUBDIR+=      hs-pandoc-server
 SUBDIR+=       hs-string-conversions
 SUBDIR+=       hs-text-conversions
 SUBDIR+=       hztty
+SUBDIR+=       info2man
 SUBDIR+=       ish
 SUBDIR+=       ja-dvi2tty
 SUBDIR+=       jcode-perl

Added files:

Index: pkgsrc/converters/info2man/DESCR
diff -u /dev/null pkgsrc/converters/info2man/DESCR:1.1
--- /dev/null   Sun Apr 30 14:07:04 2023
+++ pkgsrc/converters/info2man/DESCR    Sun Apr 30 14:07:04 2023
@@ -0,0 +1,3 @@
+info2pod converts GNU info data to POD format for easy transcription to
+various formats like HTML. info2man is a wrapper for info2pod to convert
+info files into nroff -man format.
Index: pkgsrc/converters/info2man/Makefile
diff -u /dev/null pkgsrc/converters/info2man/Makefile:1.1
--- /dev/null   Sun Apr 30 14:07:04 2023
+++ pkgsrc/converters/info2man/Makefile Sun Apr 30 14:07:04 2023
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1 2023/04/30 14:07:04 nikita Exp $
+
+DISTNAME=      info2man_1.1.orig
+PKGNAME=       ${DISTNAME:S,_1.1.orig,-1.1,}
+CATEGORIES=    converters
+MASTER_SITES=  https://deb.debian.org/debian/pool/main/i/info2man/
+DIST_SUBDIR=   info2man
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://web.archive.org/web/20040625210730/http://www.cskk.ezoshosting.com/cs/css/info2pod.html
+COMMENT=       Wrapper for info2pod to convert info files in man format
+LICENSE=       original-bsd # no license
+
+NO_BUILD=              yes
+WRKSRC=                        ${WRKDIR}/${PKGNAME_NOREV}
+
+INSTALLATION_DIRS=     bin
+INFO2MAN_PM+=          Pathname.pm Misc.pm Math.pm
+INFO2MAN_PM+=          Sink.pm IO.pm GNUInfo.pm Source.pm
+INFO2MAN_PM+=          Object.pm DEBUG.pm
+REPLACE_PERL=          info2pod
+REPLACE_PERL+=         cs/*.pm
+REPLACE_PERL+=         cs/*/*.pm
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/info2man ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKSRC}/info2pod ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_SCRIPT_DIR} ${DESTDIR}${PERL5_INSTALLVENDORLIB}/cs
+       ${INSTALL_SCRIPT_DIR} ${DESTDIR}${PERL5_INSTALLVENDORLIB}/cs/GNUInfo/
+
+       cd ${WRKSRC}/cs && for file in ${INFO2MAN_PM}; do \
+               ${INSTALL_SCRIPT} "$${file}" ${DESTDIR}${PERL5_INSTALLVENDORLIB}/cs; \
+       done
+
+       ${INSTALL_SCRIPT} ${WRKSRC}/cs/GNUInfo/Node.pm ${DESTDIR}${PERL5_INSTALLVENDORLIB}/cs/GNUInfo
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/converters/info2man/PLIST
diff -u /dev/null pkgsrc/converters/info2man/PLIST:1.1
--- /dev/null   Sun Apr 30 14:07:04 2023
+++ pkgsrc/converters/info2man/PLIST    Sun Apr 30 14:07:04 2023
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2023/04/30 14:07:04 nikita Exp $
+bin/info2man
+bin/info2pod
+${PERL5_SUB_INSTALLVENDORLIB}/cs/Pathname.pm
+${PERL5_SUB_INSTALLVENDORLIB}/cs/Misc.pm
+${PERL5_SUB_INSTALLVENDORLIB}/cs/Math.pm
+${PERL5_SUB_INSTALLVENDORLIB}/cs/Sink.pm
+${PERL5_SUB_INSTALLVENDORLIB}/cs/IO.pm
+${PERL5_SUB_INSTALLVENDORLIB}/cs/GNUInfo/Node.pm
+${PERL5_SUB_INSTALLVENDORLIB}/cs/GNUInfo.pm
+${PERL5_SUB_INSTALLVENDORLIB}/cs/Source.pm
+${PERL5_SUB_INSTALLVENDORLIB}/cs/Object.pm
+${PERL5_SUB_INSTALLVENDORLIB}/cs/DEBUG.pm
Index: pkgsrc/converters/info2man/buildlink3.mk
diff -u /dev/null pkgsrc/converters/info2man/buildlink3.mk:1.1
--- /dev/null   Sun Apr 30 14:07:04 2023
+++ pkgsrc/converters/info2man/buildlink3.mk    Sun Apr 30 14:07:04 2023
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2023/04/30 14:07:04 nikita Exp $
+
+BUILDLINK_TREE+=       info2man
+
+.if !defined(INFO2MAN_BUILDLINK3_MK)
+INFO2MAN_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.info2man+=       info2man>=1.1
+BUILDLINK_PKGSRCDIR.info2man?=         ../../converters/info2man
+.endif # INFO2MAN_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -info2man
Index: pkgsrc/converters/info2man/distinfo
diff -u /dev/null pkgsrc/converters/info2man/distinfo:1.1
--- /dev/null   Sun Apr 30 14:07:04 2023
+++ pkgsrc/converters/info2man/distinfo Sun Apr 30 14:07:04 2023
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2023/04/30 14:07:04 nikita Exp $
+
+BLAKE2s (info2man/info2man_1.1.orig.tar.gz) = 5eecb118bb082206cba961ab4d9ed46fc9737c4e669bc223f501546f2f2b627b
+SHA512 (info2man/info2man_1.1.orig.tar.gz) = a4774e1c9d8b320c9ab92348e1e7bd3e62a4457683dc4712c1df975bc4de1e17c11e42923fb28651b5441f04ebf9d677f693aa8c4883a8382e6b6af47470cce5
+Size (info2man/info2man_1.1.orig.tar.gz) = 68573 bytes
+SHA1 (patch-cs_Misc.pm) = 0c4b7a79532f53180a5eacff1543d1c49157807e
+SHA1 (patch-cs_Sink.pm) = 07190c33785095bf54abc09a58d7e8b5010817cf

Index: pkgsrc/converters/info2man/patches/patch-cs_Misc.pm
diff -u /dev/null pkgsrc/converters/info2man/patches/patch-cs_Misc.pm:1.1
--- /dev/null   Sun Apr 30 14:07:04 2023
+++ pkgsrc/converters/info2man/patches/patch-cs_Misc.pm Sun Apr 30 14:07:04 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-cs_Misc.pm,v 1.1 2023/04/30 14:07:04 nikita Exp $
+
+Eliminate old-fashioned call for flush.pl
+
+--- cs/Misc.pm.orig    2001-04-18 04:46:15.000000000 +0200
++++ cs/Misc.pm 2023-04-30 15:50:47.006259755 +0200
+@@ -8,7 +8,7 @@
+ 
+ BEGIN { use cs::DEBUG; cs::DEBUG::using(__FILE__); }
+ 
+-require 'flush.pl';   # for ::flush()
++# require 'flush.pl'; # for ::flush()
+ use cs::Math;
+ 
+ package cs::Misc;
Index: pkgsrc/converters/info2man/patches/patch-cs_Sink.pm
diff -u /dev/null pkgsrc/converters/info2man/patches/patch-cs_Sink.pm:1.1
--- /dev/null   Sun Apr 30 14:07:04 2023
+++ pkgsrc/converters/info2man/patches/patch-cs_Sink.pm Sun Apr 30 14:07:04 2023
@@ -0,0 +1,45 @@
+$NetBSD: patch-cs_Sink.pm,v 1.1 2023/04/30 14:07:04 nikita Exp $
+
+Eliminate old-fashioned call for flush.pl
+
+--- cs/Sink.pm.orig    2003-01-18 23:34:22.000000000 +0000
++++ cs/Sink.pm
+@@ -66,7 +66,7 @@ use strict qw(vars);
+ use cs::Misc;
+ use cs::IO;
+ 
+-require 'flush.pl';
++# require 'flush.pl';
+ 
+ package cs::Sink;
+ 
+@@ -150,7 +150,13 @@ Flushes any pending output in I<handle> 
+ 
+   if ($type eq FILE)
+   { my($FILE)=shift;
+-    ::flush($FILE);
++    # ::flush($FILE);
++    my $old_file;
++    $old_file = select($FILE);
++    $| = 1;
++    print "";
++    $| = 0;
++    select($old_file);
+     $this->{IO}=($cs::Sink::_UseIO
+                 ? new_from_fd IO::Handle (fileno($FILE),"w")
+                 : $FILE);
+@@ -448,7 +454,13 @@ sub Flush
+ 
+   if ($type eq FILE)
+   {
+-    ::flush($this->{IO});
++    # ::flush($this->{IO});
++    my $old_file;
++    $old_file = select($this->{IO});
++    $| = 1;
++    print "";
++    $| = 0;
++    select($old_file);
+   }
+   elsif ($type eq ARRAY || $type eq SCALAR)
+   {}



Home | Main Index | Thread Index | Old Index