diff options
Diffstat (limited to 'system/info2man')
-rw-r--r-- | system/info2man/README | 5 | ||||
-rw-r--r-- | system/info2man/flush.pl | 32 | ||||
-rw-r--r-- | system/info2man/info2man.SlackBuild | 63 | ||||
-rw-r--r-- | system/info2man/info2man.info | 10 | ||||
-rw-r--r-- | system/info2man/slack-desc | 19 |
5 files changed, 129 insertions, 0 deletions
diff --git a/system/info2man/README b/system/info2man/README new file mode 100644 index 0000000000..7573dd917c --- /dev/null +++ b/system/info2man/README @@ -0,0 +1,5 @@ +info2man (convert GNU info files into man pages) + +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. diff --git a/system/info2man/flush.pl b/system/info2man/flush.pl new file mode 100644 index 0000000000..8aa6d5580c --- /dev/null +++ b/system/info2man/flush.pl @@ -0,0 +1,32 @@ +# +# This library is no longer being maintained, and is included for backward +# compatibility with Perl 4 programs which may require it. +# +# In particular, this should not be used as an example of modern Perl +# programming techniques. +# +# Suggested alternative: IO::Handle +# +;# Usage: &flush(FILEHANDLE) +;# flushes the named filehandle + +;# Usage: &printflush(FILEHANDLE, "prompt: ") +;# prints arguments and flushes filehandle + +sub flush { + local($old) = select(shift); + $| = 1; + print ""; + $| = 0; + select($old); +} + +sub printflush { + local($old) = select(shift); + $| = 1; + print @_; + $| = 0; + select($old); +} + +1; diff --git a/system/info2man/info2man.SlackBuild b/system/info2man/info2man.SlackBuild new file mode 100644 index 0000000000..1f714d7c7b --- /dev/null +++ b/system/info2man/info2man.SlackBuild @@ -0,0 +1,63 @@ +#!/bin/sh + +# Slackware build script for info2man + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# The version number below is the modification time of the newest file +# in the source tarball. + +PRGNAM=info2man +VERSION=${VERSION:-20040717} +ARCH=noarch +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +PERLMODDIR=/usr/share/info2pod + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM.tar.gz +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# make the script use its own private perl module dir, so we don't +# pollute /usr/lib/perl5. +sed -i -e '2iuse lib "'$PERLMODDIR'";' info2pod + +# this uses an ancient Perl 4 module called flush.pl. The damn thing is less +# than 1KB in size, so I included it in the SlackBuild tarball. It came from +# here: http://www.opensource.apple.com/source/perl/perl-21/perl/lib/flush.pl + +mkdir -p $PKG/usr/bin $PKG/$PERLMODDIR +install -m0755 -oroot -groot $PRGNAM $PKG/usr/bin +install -m0755 -oroot -groot info2pod $PKG/usr/bin +install -m0644 -oroot -groot $CWD/flush.pl $PKG/$PERLMODDIR +cp -r cs $PKG/$PERLMODDIR/cs + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/system/info2man/info2man.info b/system/info2man/info2man.info new file mode 100644 index 0000000000..a263adb64f --- /dev/null +++ b/system/info2man/info2man.info @@ -0,0 +1,10 @@ +PRGNAM="info2man" +VERSION="20040717" +HOMEPAGE="http://www.cskk.ezoshosting.com/cs/css/info2pod.html" +DOWNLOAD="http://www.cskk.ezoshosting.com/cs/css/info2man.tar.gz" +MD5SUM="303b9bf313e88558ff577806398f6c4c" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/system/info2man/slack-desc b/system/info2man/slack-desc new file mode 100644 index 0000000000..ca19640db6 --- /dev/null +++ b/system/info2man/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +info2man: info2man (convert GNU info files into man pages) +info2man: +info2man: info2pod converts GNU info data to POD format for easy transcription +info2man: to various formats like HTML. info2man is a wrapper for info2pod to +info2man: convert info files into nroff -man format. +info2man: +info2man: +info2man: +info2man: +info2man: +info2man: |