summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print/dviselect/Makefile8
-rw-r--r--print/dviselect/files/patch-aa19
-rw-r--r--print/dviselect/files/patch-ab40
-rw-r--r--print/dviselect/files/patch-ac14
-rw-r--r--print/dviselect/files/patch-ad36
-rw-r--r--print/dviselect/pkg-comment1
-rw-r--r--print/dviselect/pkg-descr11
-rw-r--r--print/dviselect/pkg-plist6
-rw-r--r--print/dviselect/scripts/configure9
9 files changed, 144 insertions, 0 deletions
diff --git a/print/dviselect/Makefile b/print/dviselect/Makefile
new file mode 100644
index 000000000000..ea007a8979dc
--- /dev/null
+++ b/print/dviselect/Makefile
@@ -0,0 +1,8 @@
+DISTNAME= dviselect
+MASTER_SITES= ftp://ftp.cs.umn.edu/pub/latex/software/
+
+pre-install:
+ @mkdir -p ${PREFIX}/man/man1
+ @mkdir -p ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/print/dviselect/files/patch-aa b/print/dviselect/files/patch-aa
new file mode 100644
index 000000000000..36d026b772c4
--- /dev/null
+++ b/print/dviselect/files/patch-aa
@@ -0,0 +1,19 @@
+*** dviselect.c~ Tue Nov 27 08:53:14 1990
+--- dviselect.c Thu Oct 6 22:01:13 1994
+***************
+*** 122,128 ****
+ /* save some string space: we use this a lot */
+ char writeerr[] = "error writing DVI file";
+
+! char *malloc(), *realloc(), *sprintf();
+
+ /*
+ * lint gets rather confused with the current definitions of getc and putc,
+--- 122,128 ----
+ /* save some string space: we use this a lot */
+ char writeerr[] = "error writing DVI file";
+
+! char *malloc(), *realloc();
+
+ /*
+ * lint gets rather confused with the current definitions of getc and putc,
diff --git a/print/dviselect/files/patch-ab b/print/dviselect/files/patch-ab
new file mode 100644
index 000000000000..9e70371e22f4
--- /dev/null
+++ b/print/dviselect/files/patch-ab
@@ -0,0 +1,40 @@
+*** lib/error.c.orig Mon Nov 26 23:53:19 1990
+--- lib/error.c Thu Oct 6 14:26:04 1994
+***************
+*** 16,22 ****
+ * OR _doprnt. It should work properly under System V using vprintf.
+ * (If you have vprintf, define HAVE_VPRINTF.)
+ */
+!
+ #include <stdio.h>
+ #include <varargs.h>
+
+--- 16,22 ----
+ * OR _doprnt. It should work properly under System V using vprintf.
+ * (If you have vprintf, define HAVE_VPRINTF.)
+ */
+! #define HAVE_VPRINTF
+ #include <stdio.h>
+ #include <varargs.h>
+
+***************
+*** 32,40 ****
+
+ extern char *ProgName;
+ extern int errno;
+! extern char *sys_errlist[];
+! extern int sys_nerr;
+!
+ error(va_alist)
+ va_dcl
+ {
+--- 32,40 ----
+
+ extern char *ProgName;
+ extern int errno;
+! /* extern char *sys_errlist[];
+! extern int sys_nerr;
+! */
+ error(va_alist)
+ va_dcl
+ {
diff --git a/print/dviselect/files/patch-ac b/print/dviselect/files/patch-ac
new file mode 100644
index 000000000000..aad465fe4806
--- /dev/null
+++ b/print/dviselect/files/patch-ac
@@ -0,0 +1,14 @@
+*** lib/font.c~ Tue Nov 27 08:53:20 1990
+--- lib/font.c Thu Oct 6 22:02:07 1994
+***************
+*** 67,75 ****
+ */
+ extern int errno;
+ char *getenv(), *malloc(), *strsave();
+- #ifndef sys5
+- char *sprintf();
+- #endif
+
+ static readconf();
+ static setfont();
+--- 67,72 ----
diff --git a/print/dviselect/files/patch-ad b/print/dviselect/files/patch-ad
new file mode 100644
index 000000000000..a745d9172895
--- /dev/null
+++ b/print/dviselect/files/patch-ad
@@ -0,0 +1,36 @@
+*** lib/seek.c~ Mon Nov 26 23:53:23 1990
+--- lib/seek.c Thu Oct 6 14:28:14 1994
+***************
+*** 25,31 ****
+ #include <sys/file.h>
+ #include <sys/stat.h>
+
+! long lseek();
+ char *getenv();
+
+ int
+--- 25,31 ----
+ #include <sys/file.h>
+ #include <sys/stat.h>
+
+! off_t lseek();
+ char *getenv();
+
+ int
+***************
+*** 33,39 ****
+ int fd;
+ {
+
+! return (lseek(fd, 0L, 1) >= 0 && !isatty(fd));
+ }
+
+ /*
+--- 33,39 ----
+ int fd;
+ {
+
+! return (lseek(fd, (off_t) 0, 1) >= 0 && !isatty(fd));
+ }
+
+ /*
diff --git a/print/dviselect/pkg-comment b/print/dviselect/pkg-comment
new file mode 100644
index 000000000000..dfc1838e1aae
--- /dev/null
+++ b/print/dviselect/pkg-comment
@@ -0,0 +1 @@
+dviselect - extract pages from DVI files
diff --git a/print/dviselect/pkg-descr b/print/dviselect/pkg-descr
new file mode 100644
index 000000000000..f38be263b4d3
--- /dev/null
+++ b/print/dviselect/pkg-descr
@@ -0,0 +1,11 @@
+Dviselect selects pages from a DVI file produced by TeX, creating a
+new DVI file usable by any of TeX's conversion program, or even by
+dviselect itself.
+
+
+
+
+
+ 2
+
+
diff --git a/print/dviselect/pkg-plist b/print/dviselect/pkg-plist
new file mode 100644
index 000000000000..00d15f77c2cb
--- /dev/null
+++ b/print/dviselect/pkg-plist
@@ -0,0 +1,6 @@
+@cd /usr/local
+@owner bin
+@mode 755
+bin/dviselect
+@mode 444
+man/man1/dviselect.1
diff --git a/print/dviselect/scripts/configure b/print/dviselect/scripts/configure
new file mode 100644
index 000000000000..08b5a6d80fbd
--- /dev/null
+++ b/print/dviselect/scripts/configure
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+PREFIX=${PREFIX:-/usr/local}
+
+echo "BINDIR = $PREFIX/bin" >> $WRKSRC/Makefile || exit 1;
+echo "MANDIR = $PREFIX/man" >> $WRKSRC/Makefile || exit 1;
+echo "all: default" >> $WRKSRC/Makefile || exit 1;
+echo "install: inst-dviselect" >> $WRKSRC/Makefile || exit 1;
+exit 0; \ No newline at end of file