dvi2tty: unbundle from texlive_core

This commit is contained in:
Joachim Mairböck
2024-08-20 18:16:02 +02:00
parent 188026f6c8
commit 4cae5cea09
2 changed files with 79 additions and 4 deletions

View File

@@ -99,13 +99,11 @@ PROVIDES="
cmd:devnag
cmd:diadia
cmd:digestif
cmd:disdvi
cmd:dosepsbin
cmd:dt2dv
cmd:dtxgen
cmd:dv2dt
cmd:dvi2fax
cmd:dvi2tty
cmd:dviasm
cmd:dvibook
cmd:dviconcat
@@ -573,10 +571,8 @@ defineDebugInfoPackage texlive_core$secondaryArchSuffix \
$prefix/bin/ctwill-twinx \
$prefix/bin/cweave \
$prefix/bin/devnag \
$prefix/bin/disdvi \
$prefix/bin/dt2dv \
$prefix/bin/dv2dt \
$prefix/bin/dvi2tty \
$prefix/bin/dvibook \
$prefix/bin/dviconcat \
$prefix/bin/dvicopy \
@@ -867,6 +863,7 @@ BUILD()
--disable-chktex \
--disable-cjkutils \
--disable-detex \
--disable-dvi2tty \
--disable-t1utils \
--build=$HOST --host=$HOST

View File

@@ -0,0 +1,78 @@
SUMMARY="Tool to show (La)TeX dvi files as text"
DESCRIPTION="dvitty is intended for previewing dvi-files on text-only devices (terminals and \
lineprinters). The output is not very pretty many times, but it still saves quite a lot of work, \
especially if you have a little ways to walk to a laserprinter, for example.
The program was originally written in Hedrick-Pascal, running on TOPS-20, and was later ported to \
UNIX (BSD, Berkeley-pascal).
It is not very smart in all situations, but still serves it pur- pose fairly well.
For information on how to use see the man-page.
Disdvi is a simple hack that dumps a dvi file in a more readable form. It is not a spectacular \
program but use it and improve as you wish. I'd appreciate any enhancements made, bug reports \
etc. mailed to me."
HOMEPAGE="https://github.com/t-tk/dvi2tty"
COPYRIGHT="1989-2016 many, including Marcel J.E. Mol"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/t-tk/dvi2tty/archive/refs/tags/dvi2tty-$portVersion.tar.gz"
CHECKSUM_SHA256="1386c17b8467858b2a5616cae63d811e2fba8392465548825e8ff0b9dd42bb1a"
SOURCE_DIR="dvi2tty-dvi2tty-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
dvi2tty$secondaryArchSuffix = $portVersion
cmd:disdvi
cmd:dvi2tty
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libkpathsea$secondaryArchSuffix
lib:libptexenc$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libkpathsea$secondaryArchSuffix
devel:libptexenc$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
TEST_REQUIRES="
cmd:diff
"
defineDebugInfoPackage dvi2tty$secondaryArchSuffix \
$prefix/bin/disdvi \
$prefix/bin/dvi2tty
BUILD()
{
cd source/texk/dvi2tty
runConfigure --omit-dirs "binDir" ./configure \
--bindir=$prefix/bin \
--with-system-kpathsea \
--with-system-ptexenc
make $jobArgs
}
INSTALL()
{
cd source/texk/dvi2tty
make install
}
TEST()
{
cd source/texk/dvi2tty
make check
}