Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

16
textproc/unroff/DESCR Normal file
View File

@@ -0,0 +1,16 @@
Unroff is a Scheme-based, programmable, extensible troff translator
with a back-end for the Hypertext Markup Language.
Unroff reads and parses UNIX troff documents and translates the embedded
markup into a different format. Neither the actual output format nor
any knowledge about particular troff macro sets (-man, -ms, etc.) are
hard-wired into unroff. Instead, the translation process is controlled
by a set of user-supplied procedures written in the Scheme programming
language.
Translation rules for new output formats and troff macro packages can
be added easily by providing a corresponding set of Scheme procedures
(a `back-end'). Version 1.0 of unroff includes back-ends for translating
documents using the `man' and `ms' macros into the Hypertext Markup
Language (HTML) version 2.0. Additional requests facilitate use of
arbitrary hypertext links in troff documents.

39
textproc/unroff/Makefile Normal file
View File

@@ -0,0 +1,39 @@
# $NetBSD: Makefile,v 1.31 2012/10/25 06:57:05 asau Exp $
DISTNAME= unroff-1.0
PKGNAME= unroff-1.0.2
PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www-rn.informatik.uni-bremen.de/software/unroff/dist/
PATCHFILES= me-misc-patch misc-patch-2
PATCH_DIST_STRIP= -p1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www-rn.informatik.uni-bremen.de/software/unroff/
COMMENT= Programmable troff translator with backend for HTML
DIST_SUBDIR= unroff
USE_TOOLS+= pax
CFLAGS+= -DBSD
BUILD_DIRS= src
post-patch:
@(cd ${WRKSRC} && ${FIND} . -name '*.orig' -print | ${XARGS} ${RM} -f)
@(cd ${WRKSRC} && ${FIND} . -name '*.orig_dist' -print | ${XARGS} ${RM} -f)
LIBDIR= ${PREFIX}/share/unroff
INSTALLATION_DIRS= bin ${LIBDIR}/doc ${LIBDIR}/misc ${PKGMANDIR}/man1
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} src/unroff ${DESTDIR}${PREFIX}/bin/unroff
cd ${WRKSRC} && pax -wr scm ${DESTDIR}${LIBDIR}
cd ${WRKSRC} && ${INSTALL_DATA} doc/manual.ms ${DESTDIR}${LIBDIR}/doc
cd ${WRKSRC} && ${INSTALL_DATA} doc/tmac.hyper misc/sample.unroff ${DESTDIR}${LIBDIR}/misc
cd ${WRKSRC} && ${INSTALL_MAN} doc/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../lang/elk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

17
textproc/unroff/PLIST Normal file
View File

@@ -0,0 +1,17 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:17:33 joerg Exp $
bin/unroff
man/man1/unroff.1
man/man1/unroff-html.1
man/man1/unroff-html-man.1
man/man1/unroff-html-ms.1
man/man1/unroff-html-me.1
share/unroff/doc/manual.ms
share/unroff/misc/sample.unroff
share/unroff/misc/tmac.hyper
share/unroff/scm/troff.scm
share/unroff/scm/html/common.scm
share/unroff/scm/html/m.scm
share/unroff/scm/html/man.scm
share/unroff/scm/html/me.scm
share/unroff/scm/html/ms.scm
share/unroff/scm/misc/hyper.scm

14
textproc/unroff/distinfo Normal file
View File

@@ -0,0 +1,14 @@
$NetBSD: distinfo,v 1.7 2006/06/25 07:57:22 rillig Exp $
SHA1 (unroff/unroff-1.0.tar.gz) = bc8159ec7862de9f50666e79a538f46fdec4314c
RMD160 (unroff/unroff-1.0.tar.gz) = 038567c4f767029dd2e6df8c33b5dad3309cb810
Size (unroff/unroff-1.0.tar.gz) = 83202 bytes
SHA1 (unroff/me-misc-patch) = cd3c47c6b3fd45342b1f6cd56387c98f067dbeb9
RMD160 (unroff/me-misc-patch) = 6a99e9cd74e4d449ec31ac4ee84ba9ceb0e98db4
Size (unroff/me-misc-patch) = 39278 bytes
SHA1 (unroff/misc-patch-2) = be14aea8569e30efdc25047f9c2497cb2c7ca96a
RMD160 (unroff/misc-patch-2) = 394547f1d77b38c3cfd50101c70f796a0773de2f
Size (unroff/misc-patch-2) = 78714 bytes
SHA1 (patch-aa) = 16c33c3df99779f5c6cfa8011a541281dad95409
SHA1 (patch-ab) = 82eaf69d8df0098a1ae4fe64e533b34f0b51d3a6
SHA1 (patch-ad) = 76276cb4f590ffaf835952eb6f2fae16358c0b90

View File

@@ -0,0 +1,48 @@
$NetBSD: patch-aa,v 1.2 2006/01/10 16:34:09 joerg Exp $
--- src/Makefile.orig 1995-08-23 12:12:48.000000000 +0000
+++ src/Makefile
@@ -2,16 +2,16 @@
### You need a C compiler that compiles ANSI C code.
-CC = gcc
-CFLAGS = -Wall -pedantic -O
+#CC = gcc
+#CFLAGS = -Wall -pedantic -O
### If you need additional linker flags add them here.
-LDFLAGS =
+LDFLAGS = -s
### The directory where the Elk installation resides on your system.
-ELKDIR = /usr/elk
+ELKDIR = ${PREFIX}/lib/elk
### Additional libraries. You may want to insert the output of the
### shell-script $(ELKDIR)/lib/ldflags here.
-LIBS = -lm
+LIBS = ${COMPILER_RPATH_FLAG}${PREFIX}/lib -lelk -lm
### The makedepend program (it's usually installed with the X11 binaries).
@@ -19,5 +19,5 @@ MAKEDEP = makedepend
### The directory under which you will install the Scheme files.
-DIR = /usr/local/lib/unroff
+DIR = ${PREFIX}/share/unroff
### The default output format.
@@ -31,5 +31,5 @@ FORMAT = html
SHELL = /bin/sh
-INCLUDE = -I$(ELKDIR)/include
+INCLUDE = -I${PREFIX}/include/elk
ELK = $(ELKDIR)/lib/module.o
DEFS = -DDEFAULT_DIR=\"$(DIR)\" -DDEFAULT_FORMAT=\"$(FORMAT)\"
@@ -68,6 +68,5 @@ OBJECTS = \
subst.o\
table.o\
- unroff.o\
- $(ELK)
+ unroff.o
ALL = unroff

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ab,v 1.2 2004/07/10 14:38:08 wiz Exp $
--- src/error.c.orig 1995-06-02 15:16:00.000000000 +0200
+++ src/error.c
@@ -38,8 +38,10 @@ void fatal_error(char *fmt, ...) {
}
static char *strerr(void) {
+#ifndef BSD
extern int sys_nerr;
extern char *sys_errlist[];
+#endif
return errno > 0 && errno < sys_nerr ?
sys_errlist[errno] : "unknown error";

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ad,v 1.1 2006/01/10 16:34:09 joerg Exp $
--- src/error.h.orig 2006-01-10 16:20:51.000000000 +0000
+++ src/error.h
@@ -12,9 +12,5 @@ void read_error(char *) NORETURN;
void write_error(char *) NORETURN;
void open_error(char *) NORETURN;
-/* Redefined to add NORETURN
- */
-extern Primitive_Error() NORETURN;
-
char *printable_string(char *, int);
char *printable_char(char);