pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/unpaper
Module Name: pkgsrc
Committed By: wiz
Date: Mon Nov 2 19:52:28 UTC 2026
Added Files:
pkgsrc/graphics/unpaper: DESCR Makefile PLIST distinfo
pkgsrc/graphics/unpaper/patches: patch-unpaper.c
Log Message:
graphics/unpaper: import unpaper-7.0.0
Packaged for wip by Kamel Ibn Aziz Derouiche, shattered@, and myself.
unpaper is a post-processing tool for scanned sheets of paper,
especially for book-pages scanned from previously created photocopies.
unpaper tries to remove dark edges, corrects the rotation ("deskew"),
and aligns the centering of pages.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/unpaper/DESCR \
pkgsrc/graphics/unpaper/Makefile pkgsrc/graphics/unpaper/PLIST \
pkgsrc/graphics/unpaper/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/unpaper/patches/patch-unpaper.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/graphics/unpaper/DESCR
diff -u /dev/null pkgsrc/graphics/unpaper/DESCR:1.1
--- /dev/null Mon Nov 2 19:52:28 2026
+++ pkgsrc/graphics/unpaper/DESCR Mon Nov 2 19:52:28 2026
@@ -0,0 +1,4 @@
+unpaper is a post-processing tool for scanned sheets of paper,
+especially for book-pages scanned from previously created photocopies.
+unpaper tries to remove dark edges, corrects the rotation ("deskew"),
+and aligns the centering of pages.
Index: pkgsrc/graphics/unpaper/Makefile
diff -u /dev/null pkgsrc/graphics/unpaper/Makefile:1.1
--- /dev/null Mon Nov 2 19:52:28 2026
+++ pkgsrc/graphics/unpaper/Makefile Mon Nov 2 19:52:28 2026
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2026/11/02 19:52:28 wiz Exp $
+
+DISTNAME= unpaper-7.0.0
+CATEGORIES= graphics textproc
+MASTER_SITES= https://www.flameeyes.eu/files/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= kamelderouiche%yahoo.com@localhost
+HOMEPAGE= https://www.flameeyes.eu/projects/unpaper
+COMMENT= Post-processing scanned and photocopied book pages
+LICENSE= gnu-gpl-v2
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
+
+USE_TOOLS+= pkg-config
+
+pre-configure:
+ ${LN} -s ${PREFIX}/bin/sphinx-build-${PYVERSSUFFIX} ${TOOLS_DIR}/bin/sphinx-build
+
+.include "../../devel/meson/build.mk"
+.include "../../lang/python/tool.mk"
+.include "../../multimedia/ffmpeg8/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/graphics/unpaper/PLIST
diff -u /dev/null pkgsrc/graphics/unpaper/PLIST:1.1
--- /dev/null Mon Nov 2 19:52:28 2026
+++ pkgsrc/graphics/unpaper/PLIST Mon Nov 2 19:52:28 2026
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2026/11/02 19:52:28 wiz Exp $
+bin/unpaper
+man/man1/unpaper.1
Index: pkgsrc/graphics/unpaper/distinfo
diff -u /dev/null pkgsrc/graphics/unpaper/distinfo:1.1
--- /dev/null Mon Nov 2 19:52:28 2026
+++ pkgsrc/graphics/unpaper/distinfo Mon Nov 2 19:52:28 2026
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2026/11/02 19:52:28 wiz Exp $
+
+BLAKE2s (unpaper-7.0.0.tar.xz) = 43744fffacaa08d2507c760c725e1918f1469110cf04984e2444cdfb50837179
+SHA512 (unpaper-7.0.0.tar.xz) = 58da969e773bf16ffee98b96f903ac5347f66d9a93c63bdb9131f5d45f4d7973c09f364ac2f27f8cb61f75de0421c6b01aa248fa9619fbdbde30fcebc76aa484
+Size (unpaper-7.0.0.tar.xz) = 4430572 bytes
+SHA1 (patch-unpaper.c) = e8b25f519ebe4da132edf35f3d203a00f4ce9e8e
Index: pkgsrc/graphics/unpaper/patches/patch-unpaper.c
diff -u /dev/null pkgsrc/graphics/unpaper/patches/patch-unpaper.c:1.1
--- /dev/null Mon Nov 2 19:52:28 2026
+++ pkgsrc/graphics/unpaper/patches/patch-unpaper.c Mon Nov 2 19:52:28 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-unpaper.c,v 1.1 2026/11/02 19:52:28 wiz Exp $
+
+NetBSD does not provide getopt_long_only.
+
+--- unpaper.c.orig 2026-10-29 16:55:42.846529708 +0000
++++ unpaper.c
+@@ -357,7 +357,7 @@ int main(int argc, char *argv[]) {
+ {"interpolate", required_argument, NULL, 0xcd},
+ {NULL, no_argument, NULL, 0}};
+
+- c = getopt_long_only(argc, argv, "hVl:S:x::n::M:s:z:p:m:W:B:w:b:Tt:qv",
++ c = getopt_long(argc, argv, "hVl:S:x::n::M:s:z:p:m:W:B:w:b:Tt:qv",
+ long_options, &option_index);
+ if (c == -1)
+ break;
Home |
Main Index |
Thread Index |
Old Index