Import teTeX.

This commit is contained in:
angelos 1998-04-28 04:16:40 +00:00
parent 71462b2a02
commit 30018bf158
14 changed files with 4269 additions and 0 deletions

57
print/teTeX/Makefile Normal file
View File

@ -0,0 +1,57 @@
# OpenBSD makefile for: teTeX
# Version required: 0.4
# Date created: April 28, 1997
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1998/04/28 04:16:40 angelos Exp $
#
DISTNAME= teTeX-src-0.4
PKGNAME= teTeX-0.4
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= systems/unix/teTeX/distrib/sources
DISTFILES= ${TETEX_SRC} ${TETEX_LIB}
MAINTAINER= angelos@openbsd.org
DIST_SUBDIR= teTeX
PATCH_DIST_STRIP= -p1
NO_CONFIGURE= yes
USE_GMAKE= yes
ALL_TARGET= config clean texhash all
EXTRACT_BEFORE_ARGS= -xzpf
INSTALL_TARGET= install ini
MAN1= afm2tfm.1 allcm.1 alldc.1 allneeded.1 amslatex.1 \
amstex.1 append_db.1 bibtex.1 dvilj.1 dvips.1 \
dvired.1 dvitype.1 etex.1 fontexport.1 fontimport.1 \
gftodvi.1 gftopk.1 gftype.1 gsftopk.1 initex.1 \
lamstex.1 latex.1 mag.1 makeindex.1 mf.1 mft.1 \
mp.1 patgen.1 pfb2pfa.1 pk2bm.1 pktogf.1 pktype.1 \
pltotf.1 pooltype.1 ps2frag.1 ps2pk.1 slitex.1 \
tangle.1 tex.1 texconfig.1 texhash.1 tftopl.1 \
vftovp.1 virtex.1 vptovf.1 weave.1 xdvi.1
TETEX_SRC= teTeX-src-0.4pl7.tar.gz
TETEX_LIB= teTeX-lib-0.4pl8.tar.gz
WRKLIB= ${WRKDIR}/teTeX
INSTALL_INFO= /usr/bin/install-info
pre-install:
@${RM} -f ${PREFIX}/share/texmf/ls-R
@chown -R bin:bin ${WRKLIB}/info ${WRKLIB}/man
@${RM} -f ${WRKLIB}/info/dir ${WRKLIB}/info/localdir ${WRKLIB}/info/*.orig
@chmod 444 ${WRKLIB}/info/* ${WRKLIB}/man/man1/* ${WRKLIB}/man/man5/*
@find ${WRKLIB}/texmf/fonts -type d -perm 1755 -exec chmod 755 {} \;
@ (cd ${WRKLIB}; tar cf - info man/man1 man/man5) | (cd ${PREFIX}; tar -xpvf -)
@ (cd ${WRKLIB}; tar cf - texmf) | (cd ${PREFIX}/share; tar -xpvf -)
@${INSTALL_DATA} ${WRKLIB}/texmf.cnf ${PREFIX}/share/texmf/web2c
post-install:
${INSTALL_INFO} ${PREFIX}/info/latex ${PREFIX}/info/dir
${INSTALL_INFO} ${PREFIX}/info/kpathsea.info ${PREFIX}/info/dir
${INSTALL_INFO} ${PREFIX}/info/dvips.info ${PREFIX}/info/dir
${INSTALL_INFO} ${PREFIX}/info/fontname.info ${PREFIX}/info/dir
@${SETENV} PREFIX=${PREFIX} ${SH} files/install-note
.include <bsd.port.mk>

View File

@ -0,0 +1,20 @@
#! /bin/sh
TEXMF=$PREFIX/share/texmf
cat <<EOT
--------------------------------------------------------
Final touch:
1. Run $PREFIX/bin/texconfig
to adjust for your local environment.
2. Chmod 1777 $TEXMF/fonts/{pk,tfm}
and all subdirectories if you did not configure
font generation to use a temporary directory.
3. For further information have a look at
$TEXMF/doc/tetex/.
--------------------------------------------------------
EOT
exit 0

2
print/teTeX/files/md5 Normal file
View File

@ -0,0 +1,2 @@
MD5 (teTeX/teTeX-src-0.4pl7.tar.gz) = cd897c63e091f60e3f90e2315655d8d5
MD5 (teTeX/teTeX-lib-0.4pl8.tar.gz) = 3f959b363546191901e825e14032b060

View File

@ -0,0 +1,92 @@
--- Makefile.orig Fri Feb 14 11:58:11 1997
+++ Makefile Thu May 1 10:27:20 1997
@@ -8,10 +8,10 @@
#=========================================================================
VERSION = 0.4
PATCHLEVEL = 7
-TETEXDIR=/usr/local/teTeX
+TETEXDIR=$(PREFIX)
# the following should be best for a pentium
# -O2 -s -m486 -malign-jumps=2 -malign-loops=2 -malign-functions=2
-CFLAGS = -O2
+CFLAGS = -O2 -pipe -DHAVE_EXTERN_SYS_ERRLIST=1
# For "real" 64bit OS, e.g. Digital Unix 4.0. Irix6?, use:
# CFLAGS += -DPOINTER_IS_NOT_INT
@@ -21,7 +21,7 @@
# -s makes problems on some platforms. We run strip after "make install",
# so we really do not need -s here.
-LDFLAGS =
+LDFLAGS = -s
# The shared libXmu from OpenWindows is buggy on some SunOS 4.1.3 systems.
# If you run into this problem (when linking xdvi), set BROKEN_SUNOS_LIBXMU
@@ -70,24 +70,24 @@
# set USE_DIALOG=false if compiling dialog causes trouble on your system
# texconfig will still run in command-mode
#=========================================================================
-override USE_DIALOG=true
+USE_DIALOG=false
#=========================================================================
# set USE_NCURSES=false if you want to use your system curses instead of
# the ncurses library.
#=========================================================================
-override USE_NCURSES=true
+USE_NCURSES=false
#=========================================================================
# set HAVE_NCURSES=true if you want to use an already installed version of
# the ncurses library.
#=========================================================================
-override HAVE_NCURSES=false
+HAVE_NCURSES=true
#=========================================================================
# X stuff
#=========================================================================
-NO_X_FOR_MF = -DNO_X11WIN
+NO_X_FOR_MF =
# change the true/false definition of FOIL, if you get an error with wchar_t
FOIL = false
@@ -111,9 +111,9 @@
platform = $(shell ./config.guess | sed 's/-.*-/-/')
CWD := $(shell pwd)
INSTALL = $(CWD)/$(KPSEDIR)/bin/install -c
-override prefix = $(TETEXDIR)
-override bindir = $(prefix)/bin/$(platform)
-override TEXMF = $(TETEXDIR)/texmf
+override prefix = $(PREFIX)
+override bindir = $(PREFIX)/bin
+override TEXMF = $(PREFIX)/share/texmf
override PATH := $(bindir):$(CWD)/bin-extra:$(CWD)/$(KPSEDIR)/bin:$(PATH)
CONFDIRS = $(KPSEDIR) $(TEXIDIR)
@@ -205,7 +205,6 @@
for i in $(SUBDIRS); do \
(set -x; cd $$i; $(MAKE) $(PASSENV) $@ || exit 1); \
done
- @strip $(bindir)/* >/dev/null 2>&1 || true
rmcache:
rm -f config.cache
@@ -259,16 +258,7 @@
rm -rf tmp
$(TETEXDIR)/texmf.cnf:
- @echo
- @echo "ERROR: The file $(TETEXDIR)/texmf.cnf does not exist."
- @echo
- @echo "Do not copy it from the source-tree to this location."
- @echo "Instead, install the inputs-tree for teTeX (form"
- @echo "teTeX-lib-$(VERSION).tar.gz or base/goodies series and "
- @echo "make sure that TETEXDIR in this Makefile points to the"
- @echo "directory where the files are installed."
- @echo
- @false
+ @true
distrib: distrib-pre distrib-all distrib-install
config: warn-texmfcnf

View File

@ -0,0 +1,11 @@
--- kpse-2.6/make/paths.make,orig Fri Dec 6 08:24:08 1996
+++ kpse-2.6/make/paths.make Fri Dec 6 08:24:27 1996
@@ -43,7 +43,7 @@
# paths to sub-makes can make the arg list too long on system V.
# The root of the tree.
-texmf = $(prefix)/texmf
+texmf = $(prefix)/share/texmf
# TeX, MF, and MP source files.
texinputdir = $(texmf)/tex

View File

@ -0,0 +1,16 @@
--- kpse-2.6/kpathsea/Makefile.in,orig Tue Dec 10 09:13:33 1996
+++ kpse-2.6/kpathsea/Makefile.in Tue Dec 10 09:20:37 1996
@@ -138,10 +138,10 @@
uninstall-exec:
install-data: texmf.cnf kpathsea.info
- $(SHELL) $(top_srcdir)/../mkdirchain $(texmf) $(infodir) $(TETEXDIR)
+ $(SHELL) $(top_srcdir)/../mkdirchain $(texmf) $(infodir) $(web2cdir)
if grep 'original texmf.cnf --' $(web2cdir)/texmf.cnf >/dev/null 2>&1 \
- || test ! -r $(TETEXDIR)/texmf.cnf; then \
- $(INSTALL_DATA) texmf.cnf $(TETEXDIR)/texmf.cnf; \
+ || test ! -r $(web2cdir)/texmf.cnf; then \
+ $(INSTALL_DATA) texmf.cnf $(web2cdir)/texmf.cnf; \
else true; fi
$(INSTALL_DATA) $(srcdir)/kpathsea.info $(infodir)/kpathsea.info
uninstall-data:

View File

@ -0,0 +1,26 @@
--- kpse-2.6/dvipsk/dvips.texi.orig Sun Jan 8 18:17:04 1995
+++ kpse-2.6/dvipsk/dvips.texi Tue Jul 15 14:36:55 1997
@@ -2,6 +2,11 @@
@setfilename dvips.info
@settitle Dvips: A DVI driver
+@dircategory TeX & friends
+@direntry
+* DVIps: (dvips). DVI-to-PostScript translator.
+@end direntry
+
@set version 5.58f
@set month-year January 1995
@@ -30,11 +35,6 @@
@end titlepage
@ifinfo
-@format
-START-INFO-DIR-ENTRY
-* DVIps: (dvips). DVI-to-PostScript translator.
-END-INFO-DIR-ENTRY
-@end format
@node Top
@top Dvips

View File

@ -0,0 +1,26 @@
--- kpse-2.6/kpathsea/kpathsea.texi.orig Tue Aug 15 05:02:07 1995
+++ kpse-2.6/kpathsea/kpathsea.texi Tue Jul 15 14:38:05 1997
@@ -2,6 +2,11 @@
@setfilename kpathsea.info
@settitle Kpathsea: A library for path searching
+@dircategory TeX & friends
+@direntry
+* Kpathsea: (kpathsea). File lookup along search paths.
+@end direntry
+
@set version 2.6
@set month-year January 1995
@@ -21,11 +26,6 @@
@syncodeindex vr cp
@ifinfo
-@format
-START-INFO-DIR-ENTRY
-* Kpathsea: (kpathsea). File lookup along search paths.
-END-INFO-DIR-ENTRY
-@end format
This file documents the Kpathsea library for path searching.

View File

@ -0,0 +1,134 @@
*** texinfo-3.9/util/texindex.c.orig Thu Dec 4 20:21:10 1997
--- texinfo-3.9/util/texindex.c Thu Dec 4 20:52:04 1997
***************
*** 59,65 ****
#endif
! char *mktemp ();
#if defined (VMS)
# include <file.h>
--- 59,65 ----
#endif
! int mkstemp ();
#if defined (VMS)
# include <file.h>
***************
*** 96,101 ****
--- 96,110 ----
extern char *strerror ();
#endif
+ struct tempfiles
+ {
+ char *t_filename;
+ int t_fd;
+ struct tempfiles *t_next;
+ };
+
+ struct tempfiles *tempfileshead = NULL;
+
/* When sorting in core, this structure describes one line
and the position and length of its first keyfield. */
struct lineinfo
***************
*** 235,242 ****
decode_command (argc, argv);
- tempbase = mktemp (concat ("txiXXXXXX", "", ""));
-
/* Process input files completely, one by one. */
for (i = 0; i < num_infiles; i++)
--- 244,249 ----
***************
*** 419,427 ****
maketempname (count)
int count;
{
! char tempsuffix[10];
! sprintf (tempsuffix, "%d", count);
! return concat (tempdir, tempbase, tempsuffix);
}
/* Delete all temporary files up to TO_COUNT. */
--- 426,464 ----
maketempname (count)
int count;
{
! struct tempfiles *tmp, *tmp2;
!
! tmp = (struct tempfiles *) calloc(1, sizeof(struct tempfiles));
! if (tmp == NULL)
! return NULL;
!
! tmp->t_filename = strdup("/tmp/txiXXXXXX");
! if (tmp->t_filename == NULL)
! {
! free(tmp);
! return NULL;
! }
!
! tmp->t_fd = mkstemp(tmp->t_filename);
! if (tmp->t_fd == -1)
! {
! free(tmp->t_filename);
! free(tmp);
! return NULL;
! }
!
! close(tmp->t_fd);
!
! if (tempfileshead == NULL)
! tempfileshead = tmp;
! else
! {
! for (tmp2 = tempfileshead; tmp2->t_next != NULL; tmp2 = tmp2->t_next)
! ;
!
! tmp2->t_next = tmp;
! }
! return tmp->t_filename;
}
/* Delete all temporary files up to TO_COUNT. */
***************
*** 430,439 ****
flush_tempfiles (to_count)
int to_count;
{
if (keep_tempfiles)
return;
! while (last_deleted_tempcount < to_count)
! unlink (maketempname (++last_deleted_tempcount));
}
/* Copy the input file open on IDESC into a temporary file
--- 467,488 ----
flush_tempfiles (to_count)
int to_count;
{
+ struct tempfiles *tmp = tempfileshead;
+
if (keep_tempfiles)
return;
!
! if (tmp == NULL)
! return;
!
! while (--to_count)
! {
! last_deleted_tempcount++;
! tempfileshead = tempfileshead->t_next;
! unlink (tmp->t_filename);
! free(tmp->t_filename);
! free(tmp);
! }
}
/* Copy the input file open on IDESC into a temporary file

View File

@ -0,0 +1,59 @@
*** config.guess.orig Thu Dec 4 23:11:15 1997
--- config.guess Thu Dec 4 23:11:16 1997
***************
*** 65,70 ****
--- 65,73 ----
amiga:NetBSD:*:*)
echo m68k-cbm-netbsd${UNAME_RELEASE}
exit 0 ;;
+ amiga:OpenBSD:*:*)
+ echo m68k-cbm-openbsd${UNAME_RELEASE}
+ exit 0 ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
exit 0;;
***************
*** 102,110 ****
--- 105,122 ----
atari*:NetBSD:*:*)
echo m68k-atari-netbsd${UNAME_RELEASE}
exit 0 ;;
+ atari*:OpenBSD:*:*)
+ echo m68k-atari-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ sun3*:OpenBSD:*:*)
+ echo m68k-sun-openbsd${UNAME_RELEASE}
+ exit 0 ;;
sun3*:NetBSD:*:*)
echo m68k-sun-netbsd${UNAME_RELEASE}
exit 0 ;;
+ mac68k:OpenBSD:*:*)
+ echo m68k-apple-openbsd${UNAME_RELEASE}
+ exit 0 ;;
mac68k:NetBSD:*:*)
echo m68k-apple-netbsd${UNAME_RELEASE}
exit 0 ;;
***************
*** 303,308 ****
--- 315,323 ----
hp3[0-9][05]:NetBSD:*:*)
echo m68k-hp-netbsd${UNAME_RELEASE}
exit 0 ;;
+ hp3[0-9][05]:OpenBSD:*:*)
+ echo m68k-hp-openbsd${UNAME_RELEASE}
+ exit 0 ;;
i[34]86:BSD/386:*:* | *:BSD/OS:*:*)
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit 0 ;;
***************
*** 311,316 ****
--- 326,334 ----
exit 0 ;;
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ exit 0 ;;
+ *:OpenBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
exit 0 ;;
*:GNU:*:*)
echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`

1
print/teTeX/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
TeX distribution for UNIX compatible systems

7
print/teTeX/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
teTeX is _the_ TeX distribution for UNIX compatible systems. It
contains the latest versions of TeX & friends and nearly everything
you need for happy TeX'ing. For more information have a look at
the lengthy FEATURES file of the distribution.
-- Bernd Rosauer
br@schiele-ct.de

3722
print/teTeX/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,96 @@
#!/bin/sh
cd $WRKDIR/teTeX
patch -s <<'END-OF-INPUT'
--- texmf.cnf,orig Thu Dec 5 07:44:03 1996
+++ texmf.cnf Thu Dec 5 07:45:35 1996
@@ -15,10 +15,10 @@
% to find out which of the two is "correct" for your installation.
% The TETEXDIR normally holds this texmf.cnf file.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-TETEXDIR = $SELFAUTOPARENT
+TETEXDIR = $SELFAUTODIR
% The name of the main texmf directory. ls-R is searched there.
-TEXMF = $TETEXDIR/texmf
+TEXMF = $TETEXDIR/share/texmf
% Set this to the name of your local tree. You can have none, one or
% even more local texmf trees. Just make sure to list them in the TEXMFS
@@ -82,4 +82,4 @@
% The following line shows the compile-time default value. It does not
% make any sense to change it for run-time.
-TEXMFCNF = $SELFAUTODIR:$SELFAUTOPARENT:/.$TETEXDIR
+TEXMFCNF = .:$SELFAUTODIR/share/texmf/web2c
END-OF-INPUT
cd $WRKSRC/kpse-2.6/kpathsea
patch -s <<END-OF-INPUT
--- texmf.cnf.in.orig Mon Aug 19 23:35:35 1996
+++ texmf.cnf.in Thu Dec 5 08:06:17 1996
@@ -15,10 +15,10 @@
% to find out which of the two is "correct" for your installation.
% The TETEXDIR normally holds this texmf.cnf file.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-TETEXDIR = \$SELFAUTOPARENT
+TETEXDIR = \$SELFAUTODIR
% The name of the main texmf directory. ls-R is searched there.
-TEXMF = \$TETEXDIR/texmf
+TEXMF = \$TETEXDIR/share/texmf
% Set this to the name of your local tree. You can have none, one or
% even more local texmf trees. Just make sure to list them in the TEXMFS
@@ -82,4 +82,4 @@
% The following line shows the compile-time default value. It does not
% make any sense to change it for run-time.
-TEXMFCNF = \$SELFAUTODIR:\$SELFAUTOPARENT:/.\$TETEXDIR
+TEXMFCNF = .:\$SELFAUTODIR/share/texmf/web2c:$WRKDIR/teTeX
END-OF-INPUT
cd $WRKDIR/teTeX
patch -s <<'END-OF-INPUT'
--- info/fontname.info.orig Sun Aug 11 12:01:20 1996
+++ info/fontname.info Thu Jul 10 12:04:47 1997
@@ -1,6 +1,7 @@
This is Info file fontname.info, produced by Makeinfo-1.64 from the
input file fontname.texi.
+INFO-DIR-SECTION TeX & friends
START-INFO-DIR-ENTRY
* Naming TeX fonts: (fontname). Filenames for TeX fonts.
END-INFO-DIR-ENTRY
--- info/kpathsea.info.orig Sun Aug 11 21:26:21 1996
+++ info/kpathsea.info Thu Jul 10 12:04:51 1997
@@ -1,6 +1,7 @@
This is Info file kpathsea.info, produced by Makeinfo-1.64 from the
input file kpathsea.texi.
+INFO-DIR-SECTION TeX & friends
START-INFO-DIR-ENTRY
* Kpathsea: (kpathsea). File lookup along search paths.
END-INFO-DIR-ENTRY
--- info/latex.orig Thu Jan 2 01:33:07 1997
+++ info/latex Thu Jul 10 12:06:37 1997
@@ -36,6 +36,11 @@
Public License" may be included in a translation approved by the author
instead of in the original English.
+INFO-DIR-SECTION TeX & friends
+START-INFO-DIR-ENTRY
+* LaTeX2e: (latex). LaTeX2e, a document preparation system.
+END-INFO-DIR-ENTRY
+

Indirect:
latex-1: 1558
END-OF-INPUT
exit 0