1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Jean-Marc Zucconi's dviselect port.

Submitted by:	jmz
This commit is contained in:
Jordan K. Hubbard 1994-10-12 02:59:31 +00:00
parent df725a748f
commit b7d4486e8c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216
9 changed files with 144 additions and 0 deletions

8
print/dviselect/Makefile Normal file
View File

@ -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>

View File

@ -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,

View File

@ -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
{

View File

@ -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 ----

View File

@ -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));
}
/*

View File

@ -0,0 +1 @@
dviselect - extract pages from DVI files

11
print/dviselect/pkg-descr Normal file
View File

@ -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

View File

@ -0,0 +1,6 @@
@cd /usr/local
@owner bin
@mode 755
bin/dviselect
@mode 444
man/man1/dviselect.1

9
print/dviselect/scripts/configure vendored Normal file
View File

@ -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;