summaryrefslogtreecommitdiffstats
path: root/development/txt2man
diff options
context:
space:
mode:
Diffstat (limited to 'development/txt2man')
-rw-r--r--development/txt2man/README11
-rw-r--r--development/txt2man/slack-desc19
-rw-r--r--development/txt2man/txt2man.SlackBuild53
-rw-r--r--development/txt2man/txt2man.info10
4 files changed, 93 insertions, 0 deletions
diff --git a/development/txt2man/README b/development/txt2man/README
new file mode 100644
index 0000000000..63f0565426
--- /dev/null
+++ b/development/txt2man/README
@@ -0,0 +1,11 @@
+txt2man (create man pages from plain text)
+
+txt2man converts the input text into nroff/troff standard man(7)
+macros used to format Unix manual pages. Nice pages can be generated
+specially for commands (section 1 or 8) or for C functions reference
+(sections 2, 3), with the ability to recognize and format command and
+function names, flags, types and arguments.
+
+txt2man is also able to recognize and format sections, paragraphs,
+lists (standard, numbered, description, nested), cross references and
+literal display blocks.
diff --git a/development/txt2man/slack-desc b/development/txt2man/slack-desc
new file mode 100644
index 0000000000..c1ed4c00ea
--- /dev/null
+++ b/development/txt2man/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+txt2man: txt2man (create man pages from plain text)
+txt2man:
+txt2man: txt2man converts the input text into nroff/troff standard man(7)
+txt2man: macros used to format Unix manual pages. Nice pages can be generated
+txt2man: specially for commands (section 1 or 8) or for C functions reference
+txt2man: (sections 2, 3), with the ability to recognize and format command and
+txt2man: function names, flags, types and arguments.
+txt2man:
+txt2man:
+txt2man:
+txt2man:
diff --git a/development/txt2man/txt2man.SlackBuild b/development/txt2man/txt2man.SlackBuild
new file mode 100644
index 0000000000..714b180dab
--- /dev/null
+++ b/development/txt2man/txt2man.SlackBuild
@@ -0,0 +1,53 @@
+#!/bin/bash
+
+# Slackware build script for txt2man
+
+# Written by B. Watson (urchlay@slackware.uk)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=txt2man
+VERSION=${VERSION:-1.7.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+ARCH=noarch
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$PRGNAM-$VERSION
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
+
+sed -i 's,/share/man,/man,' Makefile
+mkdir -p $PKG/usr/{bin,man/man1}
+make install prefix=$PKG/usr
+gzip -9 $PKG/usr/man/man*/*
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a COPYING* Change* README* $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$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.$PKGTYPE
diff --git a/development/txt2man/txt2man.info b/development/txt2man/txt2man.info
new file mode 100644
index 0000000000..359cd4d9a9
--- /dev/null
+++ b/development/txt2man/txt2man.info
@@ -0,0 +1,10 @@
+PRGNAM="txt2man"
+VERSION="1.7.1"
+HOMEPAGE="https://github.com/mvertes/txt2man"
+DOWNLOAD="https://github.com/mvertes/txt2man/archive/txt2man-1.7.1/txt2man-txt2man-1.7.1.tar.gz"
+MD5SUM="0c587fda9780ade673ccbfc6d5b98fc9"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"