Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] img2pdf: update to 0.4.3.
@ 2021-10-27 11:36 oynqr
  2021-10-28  4:10 ` [PR PATCH] [Merged]: " ericonr
  0 siblings, 1 reply; 2+ messages in thread
From: oynqr @ 2021-10-27 11:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]

There is a new pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages img2pdf
https://github.com/void-linux/void-packages/pull/33784

img2pdf: update to 0.4.3.
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/33784.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-img2pdf-33784.patch --]
[-- Type: text/x-diff, Size: 3932 bytes --]

From a784e5036e6d5a4dd40da8e0606ea11aa5f7c045 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
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 000000000000..009eee3c2981
--- /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 cfbbb6f54b09..000000000000
--- 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 4d285b15e821..a24ea1f1b610 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 <pd@3b.pm>"
 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: img2pdf: update to 0.4.3.
  2021-10-27 11:36 [PR PATCH] img2pdf: update to 0.4.3 oynqr
@ 2021-10-28  4:10 ` ericonr
  0 siblings, 0 replies; 2+ messages in thread
From: ericonr @ 2021-10-28  4:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1436 bytes --]

There's a merged pull request on the void-packages repository

img2pdf: update to 0.4.3.
https://github.com/void-linux/void-packages/pull/33784

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-28  4:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 11:36 [PR PATCH] img2pdf: update to 0.4.3 oynqr
2021-10-28  4:10 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).