Files
haikuports/dev-tex/opendetex/opendetex-2.8.11.recipe
2024-09-02 21:16:24 +02:00

55 lines
1.1 KiB
Bash

SUMMARY="Tool for extracting plain text from TeX and LaTeX sources"
DESCRIPTION="OpenDetex is a program to remove TeX constructs from a text file. It recognizes the \
\\input command.
This program assumes it is dealing with LaTeX input if it sees the string \"\\begin{document}\" \
in the text. It recognizes the \\include and \\includeonly commands."
HOMEPAGE="https://github.com/pkubowicz/opendetex"
COPYRIGHT="1986-2007 Purdue University"
LICENSE="NCSA"
REVISION="1"
SOURCE_URI="https://github.com/pkubowicz/opendetex/releases/download/v$portVersion/opendetex-$portVersion.tar.bz2"
CHECKSUM_SHA256="f5771afc607134f65d502d733552cbc79ef06eee44601ae8077b79d852daa05f"
SOURCE_DIR=""
PATCHES="opendetex-$portVersion.patchset"
ARCHITECTURES="all"
PROVIDES="
opendetex = $portVersion
cmd:detex = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
devel:libfl
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:make
"
defineDebugInfoPackage opendetex \
$binDir/detex
BUILD()
{
make $jobArgs
}
INSTALL()
{
mkdir -p $binDir $manDir/man1
make install PREFIX=$prefix MANDIR=$manDir
}
TEST()
{
# Tests aren't included in the release tarball
#make test
true
}