From 5c92c51f6defe2e5e76b9030eab0a139b3f40421 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sat, 1 Oct 1994 00:00:16 +0000 Subject: [PATCH] Jean-Marc Zucconi's xdvi port. Submitted by: jmz --- print/xdvi/Makefile | 22 +++++++++++++++++ print/xdvi/pkg-comment | 1 + print/xdvi/pkg-descr | 9 +++++++ print/xdvi/pkg-plist | 7 ++++++ print/xdvi/scripts/configure | 46 ++++++++++++++++++++++++++++++++++++ 5 files changed, 85 insertions(+) create mode 100644 print/xdvi/Makefile create mode 100644 print/xdvi/pkg-comment create mode 100644 print/xdvi/pkg-descr create mode 100644 print/xdvi/pkg-plist create mode 100644 print/xdvi/scripts/configure diff --git a/print/xdvi/Makefile b/print/xdvi/Makefile new file mode 100644 index 000000000000..1ada50b4a504 --- /dev/null +++ b/print/xdvi/Makefile @@ -0,0 +1,22 @@ +DISTFILES= xdvi.tar.Z +DISTNAME= xdvi +MASTER_SITES= ftp://ftp.x.org/contrib/applications/ +USE_IMAKE= yes +USE_GMAKE= yes + +DEST=/usr/local + +#gnu make required for 'make Makefiles' +MAKE= ${GMAKE} + +install: + @echo "===> Installing for ${DISTNAME}" + @mkdir -p /usr/local/man/man1 + @mkdir -p /usr/local/bin + @(cd ${WRKSRC}; ${GMAKE} install.man \ + MANDIR=${DEST}/man/man1 MANSUFFIX=1) + @(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} xdvi.man) + @(cd ${WRKSRC}; ${GMAKE} -f Makefile install BINDIR=${DEST}/bin) + @(cd ${WRKSRC}; install -c -m 755 -o bin MakeTeXPK ${DEST}/bin) + +.include diff --git a/print/xdvi/pkg-comment b/print/xdvi/pkg-comment new file mode 100644 index 000000000000..b4505832abc9 --- /dev/null +++ b/print/xdvi/pkg-comment @@ -0,0 +1 @@ +xdvi: a DVI Previewer for the X Window System. Patchlevel 18 diff --git a/print/xdvi/pkg-descr b/print/xdvi/pkg-descr new file mode 100644 index 000000000000..9b0d5365d536 --- /dev/null +++ b/print/xdvi/pkg-descr @@ -0,0 +1,9 @@ +xdvi is a program which runs under the X window system. It is used to +preview files, such as are produced by TeX. This program has the +capability of showing the file shrunken by various (integer) factors, +and also has a ``magnifying glass'' which allows one to see a small +part of the unshrunk image momentarily. In addition to using +keystrokes to move within the file, xdvi provides buttons on the right +side of the window, which are synonymous with various sequences of +keystrokes. xdvi is also able to show PostScript specials if +Ghostscript is installed on your system. diff --git a/print/xdvi/pkg-plist b/print/xdvi/pkg-plist new file mode 100644 index 000000000000..d17bb066d6c1 --- /dev/null +++ b/print/xdvi/pkg-plist @@ -0,0 +1,7 @@ +@cd /usr/local +@owner bin +@mode 644 +man/man1/xdvi.1 +@mode 755 +bin/xdvi +bin/MakeTeXPK diff --git a/print/xdvi/scripts/configure b/print/xdvi/scripts/configure new file mode 100644 index 000000000000..8a19b3a88239 --- /dev/null +++ b/print/xdvi/scripts/configure @@ -0,0 +1,46 @@ +#!/bin/sh + +if [ $# != 3 ]; then exit 1; fi + +SRCDIR=$3 + +# paper size, default is no nor A4 +A4=n +#default font cache directory: must be world writable +CACHE=/tmp + + +if [ ! -f $SRCDIR/MakeTeXPK.orig ]; then + mv $SRCDIR/MakeTeXPK $SRCDIR/MakeTeXPK.orig || exit 1 +fi +#find the resolutions +RES=`awk '{if(/test $BDPI/) printf "%s ",$5}' < $SRCDIR/MakeTeXPK.orig` +# and the corresponding modes +MODES=`awk -F= '{if(/MODE=[a-zA-Z]/) print $2}' < $SRCDIR/MakeTeXPK.orig` +set $MODES +echo "I need to set the mode of our printing/output device for the resolutions" +echo "$RES dpi. (the mode must be in your modes.mf file)" +SUBST= +for i in $RES; do + echo -n "mode for $i dpi [$1]: "; + read answ; if [ "$answ" = "" ]; then answ=$1; fi + SUBST="$SUBST -e s/MODE=$1/MODE=$answ/" + shift +done + +echo "Choose a font cache directory for automatic font generation" +echo -n "(this directory must be world writable) [$CACHE]: " +read answ; if [ "$answ" != "" ]; then CACHE=$answ; fi + +sed -e s:/usr/lib/tex:/usr/local/lib/texmf: \ + -e s:/LocalLibrary/Fonts/TeXFonts:$CACHE: \ + $SUBST <$SRCDIR/MakeTeXPK.orig >$SRCDIR/MakeTeXPK + + +# Imakefile +chmod +w $SRCDIR/Imakefile +echo "OSDEFS=" >> $SRCDIR/Imakefile || exit 1; +echo "OPTIONDEFS=-DUSE_PK -DGREY -DPS_GS -DMAKEPK -DBUTTONS" >> $SRCDIR/Imakefile +echo "DEFAULT_FONT_PATH=/usr/local/lib/texmf/fonts/pk:$CACHE/pk" >> $SRCDIR/Imakefile +echo "DEFAULT_VF_PATH=/usr/local/lib/texmf/fonts/vf" >> $SRCDIR/Imakefile +exit 0;