media-gfx/gscan2pdf: drop old

Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/45025
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Chris Mayo 2025-12-14 19:24:32 +00:00 committed by Joonas Niilola
parent bb58955e1e
commit c1ef521940
No known key found for this signature in database
GPG Key ID: 7383942B8DC06962
7 changed files with 0 additions and 319 deletions

View File

@ -1,3 +1 @@
DIST gscan2pdf-2.13.2.tar.xz 507244 BLAKE2B 66ac15ddcf74ed2b04f231e24a663afa7494bd5df04ecb190b68b9822382e01953d97949174f3d6280fabc9d0a2ea1cc270c0aa333cf9992cfa2f58f645df156 SHA512 882b707b11df26310136ed72428eab6ec8e2c6cf34686675eee3b14181622f85d21be0e05cab411961f2a2441ad948e7b56c7fe24eecb558eae7a7ac6b4db9d1
DIST gscan2pdf-2.13.4.tar.xz 510300 BLAKE2B 1a6721df5bc037abeed877a55ba5e4e1d3a6c559786a79f1196842819fa48ecf06715e29a7662db9a19e40b22d62fc69c5786213ae46b456e3252920dc2549af SHA512 19bd71b08c3be0a239e4018a50e1327b74b07cc64b03546e573ccbcbf89f3de3443ca9735740b070162c6c9f0adc7655fc81319fc082bd15a47f5e90baee6537
DIST gscan2pdf-2.13.5.tar.xz 526768 BLAKE2B d5418716451dd1e046e7d68026d6529344067ee22b3e2e79fde6b9d4bbd2fc9231baba74f0c813abe67325b770068176356d84f0865735ba9a7b81ef011a87c6 SHA512 cb213e553e7e399e995cc92b8854eda9a5782c427843dec0b0ca3752ff12d7b3860559d823197557261433e9c2a797f4d9e9e2a1796845bd3bd53ceeb72616cc DIST gscan2pdf-2.13.5.tar.xz 526768 BLAKE2B d5418716451dd1e046e7d68026d6529344067ee22b3e2e79fde6b9d4bbd2fc9231baba74f0c813abe67325b770068176356d84f0865735ba9a7b81ef011a87c6 SHA512 cb213e553e7e399e995cc92b8854eda9a5782c427843dec0b0ca3752ff12d7b3860559d823197557261433e9c2a797f4d9e9e2a1796845bd3bd53ceeb72616cc

View File

@ -1,20 +0,0 @@
--- a/lib/Gscan2pdf/Dialog/Scan/Image_Sane.pm
+++ b/lib/Gscan2pdf/Dialog/Scan/Image_Sane.pm
@@ -295,6 +295,17 @@ sub _initialise_options { ## no critic (ProhibitExcessComplexity)
if ( $opt->{constraint}{quant} ) {
$step = $opt->{constraint}{quant};
}
+ if ( $opt->{constraint}{min} > $opt->{constraint}{max} ) {
+ $logger->error(
+ sprintf __(
+"Ignoring scan option '%s', minimum range (%s) > maximum (%s)"
+ ),
+ $opt->{name},
+ $opt->{constraint}{min},
+ $opt->{constraint}{max}
+ );
+ next;
+ }
$widget =
Gtk3::SpinButton->new_with_range( $opt->{constraint}{min},
$opt->{constraint}{max}, $step );

View File

@ -1,17 +0,0 @@
--- a/t/131_save_tiff.t
+++ b/t/131_save_tiff.t
@@ -43,12 +43,12 @@ Gtk3->main;
like(
capture(qw(identify test.tif)),
- qr/test.tif TIFF 70x46 70x46\+0\+0 8-bit sRGB [7|9][.\d]+K?B/,
+ qr/test.tif TIFF 70x46 70x46\+0\+0 8-bit sRGB/,
'valid TIFF created'
);
like(
capture(qw(identify test2.png)),
- qr/test2.png PNG 70x46 70x46\+0\+0 8-bit sRGB 7[.\d]+K?B.*/,
+ qr/test2.png PNG 70x46 70x46\+0\+0 8-bit sRGB/,
'ran post-save hook'
);

View File

@ -1,39 +0,0 @@
--- a/lib/Gscan2pdf/Dialog/Save.pm
+++ b/lib/Gscan2pdf/Dialog/Save.pm
@@ -570,10 +570,6 @@ sub add_image_type {
$label = Gtk3::Label->new( __('Postscript backend') );
$hboxps->pack_start( $label, FALSE, FALSE, 0 );
my @backends = (
- [
- 'libtiff', __('LibTIFF'),
- __('Use LibTIFF (tiff2ps) to create Postscript files from TIFF.')
- ],
[
'pdf2ps',
__('Ghostscript'),
--- a/lib/Gscan2pdf/Document.pm
+++ b/lib/Gscan2pdf/Document.pm
@@ -4471,22 +4471,7 @@ sub _thread_save_tiff {
'Save file', sprintf __('Error compressing image: %s'), $error );
return;
}
- if ( defined $options{options}{ps} ) {
- $self->{message} = __('Converting to PS');
- @cmd = ( 'tiff2ps', '-3', $options{path}, '-O', $options{options}{ps} );
- ( $status, undef, $error ) = exec_command( \@cmd, $options{pidfile} );
- if ( $status or $error ) {
- $logger->info($error);
- _thread_throw_error( $self, $options{uuid}, $options{page}{uuid},
- 'Save file',
- sprintf __('Error converting TIFF to PS: %s'), $error );
- return;
- }
- _post_save_hook( $options{options}{ps}, %{ $options{options} } );
- }
- else {
- _post_save_hook( $options{path}, %{ $options{options} } );
- }
+ _post_save_hook( $options{path}, %{ $options{options} } );
$self->{return}->enqueue(
{

View File

@ -1,11 +0,0 @@
--- a/t/3722_user_defined.t
+++ b/t/3722_user_defined.t
@@ -38,7 +38,7 @@ $slist->import_files(
},
error_callback => sub {
my ( $uuid, $process, $msg ) = @_;
- is( $msg, 'error',
+ is( substr($msg, 0, 5), 'error',
'user_defined caught error injected in queue' );
},
);

View File

@ -1,116 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_TEST="do"
inherit optfeature perl-module virtualx xdg-utils
DESCRIPTION="Scan documents, perform OCR, produce PDFs and DjVus"
HOMEPAGE="http://gscan2pdf.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-perl/Config-General
dev-perl/Data-UUID
dev-perl/Date-Calc
dev-perl/Filesys-Df
dev-perl/glib-perl
dev-perl/GooCanvas2
dev-perl/Gtk3
>=dev-perl/Gtk3-ImageView-10.0.0
dev-perl/Gtk3-SimpleList
dev-perl/HTML-Parser
dev-perl/Image-Sane
dev-perl/List-MoreUtils
dev-perl/Locale-Codes
dev-perl/Locale-gettext
dev-perl/Log-Log4perl
>=dev-perl/PDF-Builder-3.23.0
dev-perl/Proc-ProcessTable
dev-perl/Readonly
dev-perl/Set-IntSpan
dev-perl/Try-Tiny
virtual/perl-Archive-Tar
virtual/perl-Carp
virtual/perl-Data-Dumper
virtual/perl-File-Temp
virtual/perl-Getopt-Long
virtual/perl-threads
media-gfx/imagemagick[png,tiff,perl]
media-gfx/sane-backends
media-libs/tiff"
BDEPEND="
test? (
${RDEPEND}
dev-perl/IPC-System-Simple
dev-perl/Sub-Override
media-libs/fontconfig
app-text/djvu[jpeg,tiff]
app-text/poppler[utils]
app-text/tesseract[-opencl(-),osd(+),png,tiff]
app-text/unpaper
media-gfx/imagemagick[djvu,jpeg,png,tiff,perl,postscript,truetype]
media-gfx/sane-backends[sane_backends_test]
media-gfx/sane-frontends
)"
PATCHES=(
"${FILESDIR}/${P}-min_max.patch"
"${FILESDIR}/${P}-tiff2ps.patch"
"${FILESDIR}/${P}-t131.patch"
"${FILESDIR}/${P}-t1161.patch"
)
PERL_RM_FILES=( t/{90_MANIFEST,91_critic,99_pod,135_save_tiff_as_ps_with_space,169_import_scan,0601_Dialog_Scan,1171_prepend_pdf,1172_append_pdf,1173_prepend_pdf_with_space,1174_prepend_pdf_with_inverted_comma,1175_append_with_timestamp,1621_import_pdf,1622_import_multipage_PDF,1623_import_multipage_PDF2,1624_import_multipage_PDF3,1625_import_pdf_bw,1626_import_PDF_with_error,1627_import_encrypted_pdf,1628_import_pdf_metadata}.t )
mydoc="History"
src_test() {
einfo "Using:"
einfo " $(best_version app-text/djvu)"
einfo " $(best_version app-text/poppler)"
einfo " $(best_version app-text/tesseract)"
einfo " $(best_version dev-perl/Gtk3-ImageView)"
einfo " $(best_version dev-perl/Image-Sane)"
einfo " $(best_version dev-perl/PDF-Builder)"
einfo " $(best_version media-gfx/imagemagick)"
einfo " $(best_version media-gfx/sane-backends)"
einfo " $(best_version media-libs/tiff)"
local confdir="${HOME}/.config/ImageMagick"
mkdir -p "${confdir}" || die
cat > "${confdir}/policy.xml" <<-EOT || die
<policymap>
<policy domain="coder" rights="read|write" pattern="PDF" />
<policy domain="coder" rights="read" pattern="PS" />
</policymap>
EOT
NO_AT_BRIDGE=1 virtx perl-module_src_test
}
pkg_postinst() {
xdg_desktop_database_update
optfeature "DjVu file support" "app-text/djvu[tiff] media-gfx/imagemagick[djvu]"
optfeature "encrypting PDFs" app-text/pdftk
optfeature "creating PostScript files from PDFs" app-text/poppler[utils]
optfeature "adding to an existing PDF" app-text/poppler[utils]
optfeature "Optical Character Recognition" app-text/tesseract[tiff]
optfeature "scan post-processing" app-text/unpaper
optfeature "automatic document feeder support" media-gfx/sane-frontends
optfeature "sending PDFs as email attachments" x11-misc/xdg-utils
}
pkg_postrm() {
xdg_desktop_database_update
}

View File

@ -1,114 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_TEST="do"
inherit optfeature perl-module virtualx xdg-utils
DESCRIPTION="Scan documents, perform OCR, produce PDFs and DjVus"
HOMEPAGE="http://gscan2pdf.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-perl/Config-General
dev-perl/Data-UUID
dev-perl/Date-Calc
dev-perl/Filesys-Df
dev-perl/glib-perl
dev-perl/GooCanvas2
dev-perl/Gtk3
>=dev-perl/Gtk3-ImageView-10.0.0
dev-perl/Gtk3-SimpleList
dev-perl/HTML-Parser
dev-perl/Image-Sane
dev-perl/List-MoreUtils
dev-perl/Locale-Codes
dev-perl/Locale-gettext
dev-perl/Log-Log4perl
>=dev-perl/PDF-Builder-3.23.0
dev-perl/Proc-ProcessTable
dev-perl/Readonly
dev-perl/Set-IntSpan
dev-perl/Try-Tiny
virtual/perl-Archive-Tar
virtual/perl-Carp
virtual/perl-Data-Dumper
virtual/perl-File-Temp
virtual/perl-Getopt-Long
virtual/perl-threads
media-gfx/imagemagick[png,tiff,perl]
media-gfx/sane-backends
>=media-libs/tiff-4.7.0"
BDEPEND="
test? (
${RDEPEND}
dev-perl/IPC-System-Simple
dev-perl/Sub-Override
media-libs/fontconfig
app-text/djvu[jpeg,tiff]
app-text/poppler[utils]
app-text/tesseract[-opencl(-),png,tiff]
app-text/unpaper
media-gfx/imagemagick[djvu,jpeg,png,tiff,perl,postscript,truetype]
media-gfx/sane-backends[sane_backends_test]
media-gfx/sane-frontends
)"
PATCHES=(
"${FILESDIR}/${PN}-2.13.2-t1161.patch"
"${FILESDIR}/${PN}-2.13.4-t3722.patch"
)
PERL_RM_FILES=( t/{90_MANIFEST,91_critic,99_pod,169_import_scan}.t )
mydoc="History"
src_test() {
einfo "Using:"
einfo " $(best_version app-text/djvu)"
einfo " $(best_version app-text/poppler)"
einfo " $(best_version app-text/tesseract)"
einfo " $(best_version dev-perl/Gtk3-ImageView)"
einfo " $(best_version dev-perl/Image-Sane)"
einfo " $(best_version dev-perl/PDF-Builder)"
einfo " $(best_version media-gfx/imagemagick)"
einfo " $(best_version media-gfx/sane-backends)"
einfo " $(best_version media-libs/tiff)"
local confdir="${HOME}/.config/ImageMagick"
mkdir -p "${confdir}" || die
cat > "${confdir}/policy.xml" <<-EOT || die
<policymap>
<policy domain="coder" rights="read|write" pattern="PDF" />
<policy domain="coder" rights="read" pattern="PS" />
</policymap>
EOT
NO_AT_BRIDGE=1 virtx perl-module_src_test
}
pkg_postinst() {
xdg_desktop_database_update
optfeature "DjVu file support" "app-text/djvu[tiff] media-gfx/imagemagick[djvu]"
optfeature "encrypting PDFs" app-text/pdftk
optfeature "creating PostScript files from PDFs" app-text/poppler[utils]
optfeature "adding to an existing PDF" app-text/poppler[utils]
optfeature "Optical Character Recognition" app-text/tesseract[tiff]
optfeature "scan post-processing" app-text/unpaper
optfeature "automatic document feeder support" media-gfx/sane-frontends
optfeature "sending PDFs as email attachments" x11-misc/xdg-utils
}
pkg_postrm() {
xdg_desktop_database_update
}