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:
parent
df725a748f
commit
b7d4486e8c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216
8
print/dviselect/Makefile
Normal file
8
print/dviselect/Makefile
Normal 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>
|
19
print/dviselect/files/patch-aa
Normal file
19
print/dviselect/files/patch-aa
Normal 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,
|
40
print/dviselect/files/patch-ab
Normal file
40
print/dviselect/files/patch-ab
Normal 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
|
||||
{
|
14
print/dviselect/files/patch-ac
Normal file
14
print/dviselect/files/patch-ac
Normal 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 ----
|
36
print/dviselect/files/patch-ad
Normal file
36
print/dviselect/files/patch-ad
Normal 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));
|
||||
}
|
||||
|
||||
/*
|
1
print/dviselect/pkg-comment
Normal file
1
print/dviselect/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
dviselect - extract pages from DVI files
|
11
print/dviselect/pkg-descr
Normal file
11
print/dviselect/pkg-descr
Normal 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
|
||||
|
||||
|
6
print/dviselect/pkg-plist
Normal file
6
print/dviselect/pkg-plist
Normal 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
9
print/dviselect/scripts/configure
vendored
Normal 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;
|
Loading…
Reference in New Issue
Block a user