mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
ps2eps: unbundle from texlive_core
This commit is contained in:
22
app-text/ps2eps/patches/ps2eps-1.70.patchset
Normal file
22
app-text/ps2eps/patches/ps2eps-1.70.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 50f56720786699504caf5f19bc8f638acfce9287 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
|
||||
Date: Sun, 1 Sep 2024 12:11:58 +0200
|
||||
Subject: /usr/bin doesn't exist on Haiku
|
||||
|
||||
|
||||
diff --git a/src/perl/ps2eps b/src/perl/ps2eps
|
||||
index 1122a81..cae53e7 100755
|
||||
--- a/src/perl/ps2eps
|
||||
+++ b/src/perl/ps2eps
|
||||
@@ -43,7 +43,7 @@ Getopt::Long::Configure("no_ignore_case");
|
||||
|
||||
$prgname= "ps2eps";
|
||||
|
||||
-if (! -d "/usr/bin")
|
||||
+if (! -d "/bin")
|
||||
{ # we assume that we are running under native windows
|
||||
$ghostscriptname = "gswin32c";
|
||||
$NULLDEV = "nul";
|
||||
--
|
||||
2.45.2
|
||||
|
||||
60
app-text/ps2eps/ps2eps-1.70.recipe
Normal file
60
app-text/ps2eps/ps2eps-1.70.recipe
Normal file
@@ -0,0 +1,60 @@
|
||||
SUMMARY="Calculate correct bounding boxes for PostScript and PDF files"
|
||||
DESCRIPTION="ps2eps is a tool (written in Perl) to produce Encapsulated PostScript Files \
|
||||
(EPS/EPSF) from usual one-paged Postscript documents. It calculates correct Bounding Boxes for \
|
||||
those EPS files and filters some special postscript command sequences that can produce erroneous \
|
||||
results on printers. EPS files are often needed for including (scalable) graphics of high quality \
|
||||
into TeX/LaTeX (or even Word) documents. Included graphics can be clipped to their bounding box.
|
||||
|
||||
Nowadays PDF is more widely used, but the original problems described below still exist: pdfcrop \
|
||||
sometimes does not produce the correct bounding box. This program can be used together with \
|
||||
pdfcrop in order to produce reliable bounding boxes for PDF files, too.
|
||||
|
||||
Other programs like ps2epsi do not calculate the bounding box always correctly (because the \
|
||||
values are put on the postscript stack which may get corrupted by bad postscript code) or rounded \
|
||||
it off so that clipping the EPS cut off some part of the image. ps2eps uses a double precision \
|
||||
resolution of 144 dpi and appropriate rounding to get a proper bounding box. The internal bbox \
|
||||
device of ghostscript generates different values (sometimes even incorrect), so using the \
|
||||
provided bbox should be more robust. However, because normal clipping has only a resolution of \
|
||||
1/72dpi (postscript point), the clipping process may still erase parts of your EPS image. In this \
|
||||
case please use the -l option to add an additional point of white space around the tight bounding \
|
||||
box."
|
||||
HOMEPAGE="https://github.com/roland-bless/ps2eps"
|
||||
COPYRIGHT="1999–2020 Roland Bless"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/roland-bless/ps2eps/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="cd7064e3787ddb79246d78dc8f76104007a21c2f97280b1bed3e7d273af97945"
|
||||
PATCHES="ps2eps-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
|
||||
PROVIDES="
|
||||
ps2eps = $portVersion
|
||||
cmd:bbox
|
||||
cmd:ps2eps = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:gs
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd src/C
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir
|
||||
cp src/C/bbox src/perl/ps2eps $binDir
|
||||
}
|
||||
@@ -56,7 +56,6 @@ PROVIDES="
|
||||
cmd:autoinst
|
||||
cmd:axohelp
|
||||
cmd:bbl2bib
|
||||
cmd:bbox
|
||||
cmd:bib2gls
|
||||
cmd:bibcop
|
||||
cmd:bibdoiadd
|
||||
@@ -319,7 +318,6 @@ PROVIDES="
|
||||
cmd:pn2pdf
|
||||
cmd:pooltype
|
||||
cmd:ppltotf
|
||||
cmd:ps2eps
|
||||
cmd:ps2frag
|
||||
cmd:ps2pk
|
||||
cmd:ps4pdf
|
||||
@@ -525,7 +523,6 @@ defineDebugInfoPackage texlive_core$secondaryArchSuffix \
|
||||
$prefix/bin/afm2tfm \
|
||||
$prefix/bin/aleph \
|
||||
$prefix/bin/axohelp \
|
||||
$prefix/bin/bbox \
|
||||
$prefix/bin/bibtex \
|
||||
$prefix/bin/bibtex8 \
|
||||
$prefix/bin/bibtexu \
|
||||
@@ -815,6 +812,7 @@ BUILD()
|
||||
--disable-psutils \
|
||||
--disable-upmendex \
|
||||
--disable-autosp \
|
||||
--disable-ps2eps \
|
||||
--disable-t1utils \
|
||||
--build=$HOST --host=$HOST
|
||||
|
||||
|
||||
Reference in New Issue
Block a user