From 9f5298499e97b14fe232fa94f44a4e6897c97953 Mon Sep 17 00:00:00 2001 From: Philipp David Date: Mon, 25 Oct 2021 08:42:26 +0200 Subject: [PATCH] img2pdf: update to 0.4.3. --- .../patches/0_fix_color_profile_path.patch | 15 ++++++++ .../patches/fix_color_profile_path.patch | 35 ------------------- srcpkgs/img2pdf/template | 8 ++--- 3 files changed, 19 insertions(+), 39 deletions(-) create mode 100644 srcpkgs/img2pdf/patches/0_fix_color_profile_path.patch delete mode 100644 srcpkgs/img2pdf/patches/fix_color_profile_path.patch diff --git a/srcpkgs/img2pdf/patches/0_fix_color_profile_path.patch b/srcpkgs/img2pdf/patches/0_fix_color_profile_path.patch new file mode 100644 index 00000000000..009eee3c298 --- /dev/null +++ b/srcpkgs/img2pdf/patches/0_fix_color_profile_path.patch @@ -0,0 +1,15 @@ +--- a/src/img2pdf.py ++++ b/src/img2pdf.py +@@ -3439,10 +3439,10 @@ RGB.""", + outargs.add_argument( + "--pdfa", + nargs="?", +- const="/usr/share/color/icc/sRGB.icc", ++ const="/usr/share/color/icc/colord/sRGB.icc", + default=None, + help="Output a PDF/A-1b compliant document. By default, this will " +- "embed /usr/share/color/icc/sRGB.icc as the color profile.", ++ "embed /usr/share/color/icc/colord/sRGB.icc as the color profile.", + ) + + sizeargs = parser.add_argument_group( diff --git a/srcpkgs/img2pdf/patches/fix_color_profile_path.patch b/srcpkgs/img2pdf/patches/fix_color_profile_path.patch deleted file mode 100644 index cfbbb6f54b0..00000000000 --- a/srcpkgs/img2pdf/patches/fix_color_profile_path.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- a/src/img2pdf.py -+++ b/src/img2pdf.py -@@ -3439,10 +3439,10 @@ RGB.""", - outargs.add_argument( - "--pdfa", - nargs="?", -- const="/usr/share/color/icc/sRGB.icc", -+ const="/usr/share/color/icc/colord/sRGB.icc", - default=None, - help="Output a PDF/A-1b compliant document. By default, this will " -- "embed /usr/share/color/icc/sRGB.icc as the color profile.", -+ "embed /usr/share/color/icc/colord/sRGB.icc as the color profile.", - ) - - sizeargs = parser.add_argument_group( ---- a/src/img2pdf_test.py -+++ b/src/img2pdf_test.py -@@ -304,7 +304,7 @@ def compare(im1, im2, exact, icc, cmyk): - else: - iccargs = [] - if icc: -- iccargs = ["-profile", "/usr/share/color/icc/sRGB.icc"] -+ iccargs = ["-profile", "/usr/share/color/icc/colord/sRGB.icc"] - psnr = subprocess.run( - ["compare"] - + iccargs -@@ -424,7 +424,7 @@ def compare_pdfimages_png(tmpdir, img, pdf, exact=True, icc=False): - "PSNR", - "(", - "-profile", -- "/usr/share/color/icc/ghostscript/srgb.icc", -+ "/usr/share/color/icc/colord/sRGB.icc", - "-depth", - "8", - str(img), diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template index 4d285b15e82..a24ea1f1b61 100644 --- a/srcpkgs/img2pdf/template +++ b/srcpkgs/img2pdf/template @@ -1,7 +1,7 @@ # Template file for 'img2pdf' pkgname=img2pdf -version=0.4.1 -revision=2 +version=0.4.3 +revision=1 build_style=python3-module hostmakedepends="python3-pikepdf python3-setuptools" depends="colord python3-pdfrw python3-pikepdf python3-Pillow python3-tkinter" @@ -10,5 +10,5 @@ maintainer="Philipp David " license="GPL-3.0-or-later" homepage="https://gitlab.mister-muffin.de/josch/img2pdf" distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz" -checksum=38a1229ca84b211d7782d1d65ad7251a9781bf24f6f6497c738c755fcfed5552 -make_check=no # depends on ImageMagick6 +checksum=8e51c5043efa95d751481b516071a006f87c2a4059961a9ac43ec238915de09f +make_check=no # need to patch out some bitdepth checks