mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
psutils: unbundle from texlive_core
This commit is contained in:
84
app-text/psutils/psutils-3.3.5.recipe
Normal file
84
app-text/psutils/psutils-3.3.5.recipe
Normal file
@@ -0,0 +1,84 @@
|
||||
SUMMARY="Utilities for manipulating PostScript documents"
|
||||
DESCRIPTION="PSUtils is a suite of utilities for manipulating PDF and PostScript documents. You \
|
||||
can select and rearrange pages, including arrangement into signatures for booklet printing, \
|
||||
combine multple pages into a single page for n-up printing, and resize, flip and rotate pages.
|
||||
|
||||
PostScript files should conform to the PostScript Document Structuring Conventions (DSC); \
|
||||
however, PSUtils intentionally does not check this, as some programs produce non-conforming \
|
||||
output that can be successfully processed anyway. If PSUtils does not work for you, check whether \
|
||||
your software needs to be configured to produce DSC-conformant PostScript."
|
||||
HOMEPAGE="https://github.com/rrthomas/psutils"
|
||||
COPYRIGHT="2023 Reuben Thomas"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/rrthomas/psutils/releases/download/v$portVersion/pspdfutils-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="49d0ed8254df3fe60eb4fd74d4dc1ccaf08cc7802ea9d79d83670b45685d5e35"
|
||||
SOURCE_DIR="pspdfutils-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
psutils = $portVersion
|
||||
cmd:epsffit
|
||||
cmd:extractres
|
||||
cmd:includeres
|
||||
cmd:psbook
|
||||
cmd:psjoin
|
||||
cmd:psnup
|
||||
cmd:psresize
|
||||
cmd:psselect
|
||||
cmd:pstops
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:paper
|
||||
cmd:python3
|
||||
puremagic_python310
|
||||
pypdf_python310
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
argparse_manpage_python310
|
||||
build_python310
|
||||
installer_python310
|
||||
puremagic_python310
|
||||
pypdf_python310
|
||||
pytest_datafiles_python310
|
||||
setuptools_python310
|
||||
wand_python310
|
||||
wheel_python310
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:paper
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
# workaround for missing paperspecs config file in haikuporter chroot
|
||||
echo A4,210,297,mm > $(finddir B_SYSTEM_SETTINGS_DIRECTORY)/paperspecs
|
||||
|
||||
rm -rf build
|
||||
python3 -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
python3 -m installer -p $prefix dist/*.whl
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# workaround for missing paperspecs config file in haikuporter chroot
|
||||
# these are the paper formats that are used in tests
|
||||
cat <<- EOF > $(finddir B_SYSTEM_SETTINGS_DIRECTORY)/paperspecs
|
||||
A4,210,297,mm
|
||||
Letter,8.5,11,in
|
||||
A5,148,210,mm
|
||||
A3,297,420,mm
|
||||
Tabloid,11,17,in
|
||||
EOF
|
||||
|
||||
python3 -m pytest
|
||||
}
|
||||
@@ -135,7 +135,6 @@ PROVIDES="
|
||||
cmd:edtx2dtx
|
||||
cmd:eolang
|
||||
cmd:eplain
|
||||
cmd:epsffit
|
||||
cmd:epspdf
|
||||
cmd:epspdftk
|
||||
cmd:epstopdf
|
||||
@@ -144,7 +143,6 @@ PROVIDES="
|
||||
cmd:euptex
|
||||
cmd:exceltex
|
||||
cmd:extractbb
|
||||
cmd:extractres
|
||||
cmd:fig4latex
|
||||
cmd:findhyph
|
||||
cmd:fmtutil
|
||||
@@ -169,7 +167,6 @@ PROVIDES="
|
||||
cmd:htxelatex
|
||||
cmd:htxetex
|
||||
cmd:hyperxmp_add_bytecount
|
||||
cmd:includeres
|
||||
cmd:inimf
|
||||
cmd:initex
|
||||
cmd:installfont_tl
|
||||
@@ -329,14 +326,8 @@ PROVIDES="
|
||||
cmd:ps2frag
|
||||
cmd:ps2pk
|
||||
cmd:ps4pdf
|
||||
cmd:psbook
|
||||
cmd:psjoin
|
||||
cmd:pslatex
|
||||
cmd:psnup
|
||||
cmd:psresize
|
||||
cmd:psselect
|
||||
cmd:pst2pdf
|
||||
cmd:pstops
|
||||
cmd:ptekf
|
||||
cmd:ptex
|
||||
cmd:ptex2pdf
|
||||
@@ -569,7 +560,6 @@ defineDebugInfoPackage texlive_core$secondaryArchSuffix \
|
||||
$prefix/bin/dvispc \
|
||||
$prefix/bin/dvitodvi \
|
||||
$prefix/bin/dvitype \
|
||||
$prefix/bin/epsffit \
|
||||
$prefix/bin/eptex \
|
||||
$prefix/bin/euptex \
|
||||
$prefix/bin/gftodvi \
|
||||
@@ -619,11 +609,6 @@ defineDebugInfoPackage texlive_core$secondaryArchSuffix \
|
||||
$prefix/bin/ppltotf \
|
||||
$prefix/bin/prepmx \
|
||||
$prefix/bin/ps2pk \
|
||||
$prefix/bin/psbook \
|
||||
$prefix/bin/psnup \
|
||||
$prefix/bin/psresize \
|
||||
$prefix/bin/psselect \
|
||||
$prefix/bin/pstops \
|
||||
$prefix/bin/ptekf \
|
||||
$prefix/bin/ptex \
|
||||
$prefix/bin/ptftopl \
|
||||
@@ -837,6 +822,7 @@ BUILD()
|
||||
--disable-gsftopk \
|
||||
--disable-lcdf-typetools \
|
||||
--disable-musixtnt \
|
||||
--disable-psutils \
|
||||
--disable-t1utils \
|
||||
--build=$HOST --host=$HOST
|
||||
|
||||
|
||||
Reference in New Issue
Block a user