summaryrefslogtreecommitdiff
path: root/media-libs/leptonica
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
commit623ee73d661e5ed8475cb264511f683407d87365 (patch)
tree993eb27c93ec7a2d2d19550300d888fc1fed9e69 /media-libs/leptonica
parentceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff)
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'media-libs/leptonica')
-rw-r--r--media-libs/leptonica/Manifest6
-rw-r--r--media-libs/leptonica/files/1.77.0-gnuplot.patch25
-rw-r--r--media-libs/leptonica/files/1.79.0-tests.patch299
-rw-r--r--media-libs/leptonica/leptonica-1.79.0-r1.ebuild (renamed from media-libs/leptonica/leptonica-1.77.0.ebuild)10
4 files changed, 308 insertions, 32 deletions
diff --git a/media-libs/leptonica/Manifest b/media-libs/leptonica/Manifest
index 75fa1ef6e956..7b620bde3ca0 100644
--- a/media-libs/leptonica/Manifest
+++ b/media-libs/leptonica/Manifest
@@ -1,10 +1,10 @@
-AUX 1.77.0-gnuplot.patch 987 BLAKE2B 51f1fa225cb124fd3b078ed895234fb343ea78c06dd5d763dee71f37a0826c5c2dcb2c845cd1b47a2e6a855075ddf806cfa3ea5895077163bce2209acffe5851 SHA512 36d996202de66ffd0b241b813779c62830d688c42bc21670d277f370243636c6c0658067d806b6be3f765aa1527a4ebd4bac3fe6e0188fc5381f599f14239b51
AUX 1.78.0-gnuplot.patch 672 BLAKE2B 85058c0eab02b289df011f3e4462d91c43e9780591c0991206523d55ce91f02fab85ff47c235522614862e14f078d5e0879fd89b88e70607167f91d57f7b63c0 SHA512 846d5488667b3a21dea81a7059505cdfd2916eff51053dadda978f1520a250ce8ebfdf7b5a820e11630dee4dfb9c0b78340aed9dc109f6fd119e01b855c16554
+AUX 1.79.0-tests.patch 15489 BLAKE2B 8fcc6224c055f24d9ac794f4d18be756e8c15f2a789964a1b5795d0c78411fc946d0ed230be7760d543055bfdf2de1fb63c9dda62613146b46b4036b3c734c32 SHA512 b10137bd865c23a74bd0eac79b97adf6d394bb5e651d524df3dd8cb000bd762230d391212e53f40343863743d52a59e45298b8855b39fc2befb507a3972fc181
AUX baseline_reg.patch 847 BLAKE2B d45b93ba00abffca157438b6140e329de2cafe95be97fafcfc60272fa821fb847984838179cff186babf8931f79decdccb1bfa0a724abc6de675b1551ff0684e SHA512 a35f518aaf384ed35130cbd509e2ae16efc1878a3528d174156105af6d6259a094d205c47084f068b1f42e07ab87e750d6b82113376e00e041e81fedf90dd541
DIST leptonica-1.74.4.tar.gz 12349877 BLAKE2B 5c4a71c1c4f44b617f16b1b1029455badee268dc1ac459f1c7ffe6af5b8dbe702bdbaa6e5564af6e41d0881c59e1aa43dc40d5164f618f13ca2a563b2aa3bd0e SHA512 e74732c10218430463ca01f15e19d329dceb938e315586ed100c634c4d50809824f1d9bf7eeaf91654caf42ed78a5ae5de7c08e7a1d8884c580c536121627891
-DIST leptonica-1.77.0.tar.gz 12888756 BLAKE2B a1de6ff8d886c4e302faa362ad5c18ece727771e5cdbe62b33c34c950d1af9e0e97418e59485568a6386eb2a7e51fd42ffb2fd01f16591c5bc668961640f1f4d SHA512 3cf764c76d5acb6d5982c44e78c02d7a7c3b5e79937c41df193e71dd8a02dbbf965d34a2ecdf0444e907cb73c06bdb8bcae4ceafbf5ee1483c022659e897015b
DIST leptonica-1.78.0.tar.gz 12905925 BLAKE2B 6a7b74e8aa78a3e4fa6429bbf180001e7d362ebd37d4fd179ba90df7a41993e52d708813ea5a2b30dc90516b7bec83e5386735025993d73f279ab595c39f6c9c SHA512 f059ccc8e7b5ff2c796aeb4ab18bd25e133ec4f38c36b9e2ee203db35a1e68cf45b8baf78ebc4acba4e3607328d1374ea0e8425f35cbe06c6c5728a1ec8c3f50
+DIST leptonica-1.79.0.tar.gz 13438669 BLAKE2B 59c126c0bc4690cf48937171f818637f420b4e4c56ebf866ca4c0d2a9a8f2ae2653f6ef7650340138fb1dd2ca2d3826e0f844d44afddb14856e31daf10f41c41 SHA512 4d0830683757004bb47752a17985d80c6758b97c0fd6ec64d23bbf43c9c68b04bee751831574afa4c25f5d5030c0c9f7fc22d9fc8ef932aa990401344f588ba5
EBUILD leptonica-1.74.4.ebuild 1746 BLAKE2B 3db9bed04781b057ad93acca2d0a1a8ba26627c992e7dd1907a6efc9ce05447378a26efb7062f4b26c3966dcda8b01f63fa8ff4c4ab7b9f14c92ecb4881030ed SHA512 aec17f1f1f49dbee29efca27c2d89d1674a8a5c3de87e77b24fd2708a94debc6c7eda3d3fb721d67468c455457dfa9b7fdaf7291fd6f5142da596c85f757c600
-EBUILD leptonica-1.77.0.ebuild 2022 BLAKE2B c85beb7d51ead3f8d623b3f827960f30be744daad608248c99cb4d26c726b1096d24019b1bdeadf55ce706c4f93d5a18d636f7fa7fd74396948d33ca6c0f45d5 SHA512 963f0a3e72ad715442aee66f6aa4b0f3e1c8efccb1718da3f1799319278afab2e99b12463204ea2a4d99d735063ed069c39d94cf4fe989da1d3bcf3991c59ecc
EBUILD leptonica-1.78.0.ebuild 2022 BLAKE2B c85beb7d51ead3f8d623b3f827960f30be744daad608248c99cb4d26c726b1096d24019b1bdeadf55ce706c4f93d5a18d636f7fa7fd74396948d33ca6c0f45d5 SHA512 963f0a3e72ad715442aee66f6aa4b0f3e1c8efccb1718da3f1799319278afab2e99b12463204ea2a4d99d735063ed069c39d94cf4fe989da1d3bcf3991c59ecc
+EBUILD leptonica-1.79.0-r1.ebuild 2070 BLAKE2B 495d494ba3b2a5d13d5f0c61952d184f3813670e69b9f5988c433251ef88e2f8074c0276603035aceb6883ad1f738fb5e677c505f4a8052b581c06c3ffae25cd SHA512 90efb38a2a75f903842b571c647759f2833a8b7e4160805607c51d517119d8024b6c62afa937f8603bb9505ccda44764af081ee546560b5bfc3299a48f251287
MISC metadata.xml 518 BLAKE2B 59db99ac81e5c10275950d5c67e1c85c61c48f9eef84d533606a26beb1f3b6b3c1eb844a163687376a74dcd9561dfc91f6b85df4202a20ecf3c58f8e1201b88e SHA512 2a34197102a9d9d90faa90aa2f19e78e8a848e779ad3ad0f1bdb7d3d9d91572749ce2351c402403a0281019af1b59e0fd19c4e1809bd00836cede17647391773
diff --git a/media-libs/leptonica/files/1.77.0-gnuplot.patch b/media-libs/leptonica/files/1.77.0-gnuplot.patch
deleted file mode 100644
index 0d6b0e3cb153..000000000000
--- a/media-libs/leptonica/files/1.77.0-gnuplot.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 5204b5453fe8035d77e34add80f8ebb1f36b9350 Mon Sep 17 00:00:00 2001
-From: James Le Cuirot <chewi@aura-online.co.uk>
-Date: Mon, 14 Jan 2019 20:26:14 +0000
-Subject: [PATCH] Add boxa2_reg and numa[12]_reg to gnuplot-dependent test list
-
----
- prog/reg_wrapper.sh | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/prog/reg_wrapper.sh b/prog/reg_wrapper.sh
-index 5568c8e..ff9264d 100755
---- a/prog/reg_wrapper.sh
-+++ b/prog/reg_wrapper.sh
-@@ -31,7 +31,7 @@ TEST_NAME="${TEST##*/}"
- TEST_NAME="${TEST_NAME%_reg*}"
-
- case "${TEST_NAME}" in
-- baseline|boxa1|colormask|colorspace|dna|enhance|extrema|fpix1|italic|kernel|nearline|projection|rankbin|rankhisto|wordboxes)
-+ baseline|boxa[12]|colormask|colorspace|dna|enhance|extrema|fpix1|italic|kernel|nearline|numa[12]|projection|rankbin|rankhisto|wordboxes)
- GNUPLOT=$(type -P gnuplot || type -P wgnuplot)
-
- if [ -z "${GNUPLOT}" ] || ! "${GNUPLOT}" -e "set terminal png" 2>/dev/null ; then
---
-2.19.2
-
diff --git a/media-libs/leptonica/files/1.79.0-tests.patch b/media-libs/leptonica/files/1.79.0-tests.patch
new file mode 100644
index 000000000000..eb794240dbd1
--- /dev/null
+++ b/media-libs/leptonica/files/1.79.0-tests.patch
@@ -0,0 +1,299 @@
+From b4cdb9256934c8f35cad558bf7288567211a792f Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@aura-online.co.uk>
+Date: Tue, 24 Mar 2020 20:59:17 +0000
+Subject: [PATCH] Fix parallel running of tests by using unique directories
+
+diff --git a/prog/pdfio2_reg.c b/prog/pdfio2_reg.c
+index 3f2090d..19da5a3 100644
+--- a/prog/pdfio2_reg.c
++++ b/prog/pdfio2_reg.c
+@@ -55,7 +55,7 @@ L_REGPARAMS *rp;
+ return 1;
+
+ l_pdfSetDateAndVersion(0);
+- lept_mkdir("lept/pdf");
++ lept_mkdir("lept/pdf2");
+
+ /* ---------- pdf convert segmented with image regions ---------- */
+ fprintf(stderr, "\n*** Writing segmented images with image regions\n");
+@@ -65,6 +65,12 @@ L_REGPARAMS *rp;
+ * small bogus regions at the top, but we'll keep them for
+ * the demonstration. */
+ pix1 = pixRead("rabi.png");
++ pix2 = pixScaleToGray2(pix1);
++ pixWrite("/tmp/lept/pdf2/rabi8.jpg", pix2, IFF_JFIF_JPEG);
++ pix3 = pixThresholdTo4bpp(pix2, 16, 1);
++ pixWrite("/tmp/lept/pdf2/rabi4.png", pix3, IFF_PNG);
++ pixDestroy(&pix2);
++ pixDestroy(&pix3);
+ pixSetResolution(pix1, 300, 300);
+ pixGetDimensions(pix1, &w, &h, NULL);
+ pix2 = pixGenerateHalftoneMask(pix1, NULL, NULL, NULL);
+@@ -77,41 +83,41 @@ L_REGPARAMS *rp;
+
+ /* 1 bpp input */
+ convertToPdfSegmented("rabi.png", 300, L_G4_ENCODE, 128, boxa1,
+- 0, 0.25, NULL, "/tmp/lept/pdf/file00.pdf");
++ 0, 0.25, NULL, "/tmp/lept/pdf2/file00.pdf");
+ convertToPdfSegmented("rabi.png", 300, L_JPEG_ENCODE, 128, boxa1,
+- 0, 0.25, NULL, "/tmp/lept/pdf/file01.pdf");
++ 0, 0.25, NULL, "/tmp/lept/pdf2/file01.pdf");
+ convertToPdfSegmented("rabi.png", 300, L_FLATE_ENCODE, 128, boxa1,
+- 0, 0.25, NULL, "/tmp/lept/pdf/file02.pdf");
++ 0, 0.25, NULL, "/tmp/lept/pdf2/file02.pdf");
+
+ /* 8 bpp input, no cmap */
+- convertToPdfSegmented("/tmp/lept/pdf/rabi8.jpg", 150, L_G4_ENCODE, 128,
+- boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file03.pdf");
+- convertToPdfSegmented("/tmp/lept/pdf/rabi8.jpg", 150, L_JPEG_ENCODE, 128,
+- boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file04.pdf");
+- convertToPdfSegmented("/tmp/lept/pdf/rabi8.jpg", 150, L_FLATE_ENCODE, 128,
+- boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file05.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/rabi8.jpg", 150, L_G4_ENCODE, 128,
++ boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file03.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/rabi8.jpg", 150, L_JPEG_ENCODE, 128,
++ boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file04.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/rabi8.jpg", 150, L_FLATE_ENCODE, 128,
++ boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file05.pdf");
+
+ /* 4 bpp input, cmap */
+- convertToPdfSegmented("/tmp/lept/pdf/rabi4.png", 150, L_G4_ENCODE, 128,
+- boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file06.pdf");
+- convertToPdfSegmented("/tmp/lept/pdf/rabi4.png", 150, L_JPEG_ENCODE, 128,
+- boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file07.pdf");
+- convertToPdfSegmented("/tmp/lept/pdf/rabi4.png", 150, L_FLATE_ENCODE, 128,
+- boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file08.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/rabi4.png", 150, L_G4_ENCODE, 128,
++ boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file06.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/rabi4.png", 150, L_JPEG_ENCODE, 128,
++ boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file07.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/rabi4.png", 150, L_FLATE_ENCODE, 128,
++ boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file08.pdf");
+
+ /* 4 bpp input, cmap, data output */
+ data = NULL;
+- convertToPdfDataSegmented("/tmp/lept/pdf/rabi4.png", 150, L_G4_ENCODE,
++ convertToPdfDataSegmented("/tmp/lept/pdf2/rabi4.png", 150, L_G4_ENCODE,
+ 128, boxa2, 0, 0.5, NULL, &data, &nbytes);
+- l_binaryWrite("/tmp/lept/pdf/file09.pdf", "w", data, nbytes);
++ l_binaryWrite("/tmp/lept/pdf2/file09.pdf", "w", data, nbytes);
+ lept_free(data);
+- convertToPdfDataSegmented("/tmp/lept/pdf/rabi4.png", 150, L_JPEG_ENCODE,
++ convertToPdfDataSegmented("/tmp/lept/pdf2/rabi4.png", 150, L_JPEG_ENCODE,
+ 128, boxa2, 0, 0.5, NULL, &data, &nbytes);
+- l_binaryWrite("/tmp/lept/pdf/file10.pdf", "w", data, nbytes);
++ l_binaryWrite("/tmp/lept/pdf2/file10.pdf", "w", data, nbytes);
+ lept_free(data);
+- convertToPdfDataSegmented("/tmp/lept/pdf/rabi4.png", 150, L_FLATE_ENCODE,
++ convertToPdfDataSegmented("/tmp/lept/pdf2/rabi4.png", 150, L_FLATE_ENCODE,
+ 128, boxa2, 0, 0.5, NULL, &data, &nbytes);
+- l_binaryWrite("/tmp/lept/pdf/file11.pdf", "w", data, nbytes);
++ l_binaryWrite("/tmp/lept/pdf2/file11.pdf", "w", data, nbytes);
+ lept_free(data);
+ fprintf(stderr, "Segmented images time: %7.3f\n", stopTimer());
+
+@@ -125,17 +131,17 @@ L_REGPARAMS *rp;
+
+ pix1 = pixRead("candelabrum.011.jpg");
+ pix2 = pixScale(pix1, 3.0, 3.0);
+- pixWrite("/tmp/lept/pdf/candelabrum3.jpg", pix2, IFF_JFIF_JPEG);
+- GetImageMask(pix2, 200, &boxa1, rp, "/tmp/lept/pdf/seg1.jpg");
+- convertToPdfSegmented("/tmp/lept/pdf/candelabrum3.jpg", 200, L_G4_ENCODE,
++ pixWrite("/tmp/lept/pdf2/candelabrum3.jpg", pix2, IFF_JFIF_JPEG);
++ GetImageMask(pix2, 200, &boxa1, rp, "/tmp/lept/pdf2/seg1.jpg");
++ convertToPdfSegmented("/tmp/lept/pdf2/candelabrum3.jpg", 200, L_G4_ENCODE,
+ 100, boxa1, 0, 0.25, NULL,
+- "/tmp/lept/pdf/file12.pdf");
+- convertToPdfSegmented("/tmp/lept/pdf/candelabrum3.jpg", 200, L_JPEG_ENCODE,
++ "/tmp/lept/pdf2/file12.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/candelabrum3.jpg", 200, L_JPEG_ENCODE,
+ 100, boxa1, 0, 0.25, NULL,
+- "/tmp/lept/pdf/file13.pdf");
+- convertToPdfSegmented("/tmp/lept/pdf/candelabrum3.jpg", 200, L_FLATE_ENCODE,
++ "/tmp/lept/pdf2/file13.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/candelabrum3.jpg", 200, L_FLATE_ENCODE,
+ 100, boxa1, 0, 0.25, NULL,
+- "/tmp/lept/pdf/file14.pdf");
++ "/tmp/lept/pdf2/file14.pdf");
+
+ pixDestroy(&pix1);
+ pixDestroy(&pix2);
+@@ -143,25 +149,25 @@ L_REGPARAMS *rp;
+
+ pix1 = pixRead("lion-page.00016.jpg");
+ pix2 = pixScale(pix1, 3.0, 3.0);
+- pixWrite("/tmp/lept/pdf/lion16.jpg", pix2, IFF_JFIF_JPEG);
++ pixWrite("/tmp/lept/pdf2/lion16.jpg", pix2, IFF_JFIF_JPEG);
+ pix3 = pixRead("lion-mask.00016.tif");
+ boxa1 = pixConnComp(pix3, NULL, 8);
+ boxa2 = boxaTransform(boxa1, 0, 0, 3.0, 3.0);
+- convertToPdfSegmented("/tmp/lept/pdf/lion16.jpg", 200, L_G4_ENCODE,
+- 190, boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file15.pdf");
+- convertToPdfSegmented("/tmp/lept/pdf/lion16.jpg", 200, L_JPEG_ENCODE,
+- 190, boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file16.pdf");
+- convertToPdfSegmented("/tmp/lept/pdf/lion16.jpg", 200, L_FLATE_ENCODE,
+- 190, boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file17.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/lion16.jpg", 200, L_G4_ENCODE,
++ 190, boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file15.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/lion16.jpg", 200, L_JPEG_ENCODE,
++ 190, boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file16.pdf");
++ convertToPdfSegmented("/tmp/lept/pdf2/lion16.jpg", 200, L_FLATE_ENCODE,
++ 190, boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file17.pdf");
+
+ /* Quantize the non-image part and flate encode.
+ * This is useful because it results in a smaller file than
+ * when you flate-encode the un-quantized non-image regions. */
+ pix4 = pixScale(pix3, 3.0, 3.0); /* higher res mask, for combining */
+ pix5 = QuantizeNonImageRegion(pix2, pix4, 12);
+- pixWrite("/tmp/lept/pdf/lion16-quant.png", pix5, IFF_PNG);
+- convertToPdfSegmented("/tmp/lept/pdf/lion16-quant.png", 200, L_FLATE_ENCODE,
+- 190, boxa2, 0, 0.5, NULL, "/tmp/lept/pdf/file18.pdf");
++ pixWrite("/tmp/lept/pdf2/lion16-quant.png", pix5, IFF_PNG);
++ convertToPdfSegmented("/tmp/lept/pdf2/lion16-quant.png", 200, L_FLATE_ENCODE,
++ 190, boxa2, 0, 0.5, NULL, "/tmp/lept/pdf2/file18.pdf");
+ fprintf(stderr, "Color segmented images time: %7.3f\n", stopTimer());
+
+ pixDestroy(&pix1);
+@@ -197,8 +203,8 @@ L_REGPARAMS *rp;
+
+ startTimer();
+ convertFilesToPdf("/tmp/lept/image", "file", 100, 0.8, 0, 75, "4 file test",
+- "/tmp/lept/pdf/file19.pdf");
+- fprintf(stderr, "4-page pdf generated: /tmp/lept/pdf/file19.pdf\n"
++ "/tmp/lept/pdf2/file19.pdf");
++ fprintf(stderr, "4-page pdf generated: /tmp/lept/pdf2/file19.pdf\n"
+ "Multi-page gen time: %7.3f\n", stopTimer());
+ pixDestroy(&pix1);
+ pixDestroy(&pix2);
+@@ -208,26 +214,26 @@ L_REGPARAMS *rp;
+ pixDestroy(&pix6);
+ #endif
+
+- regTestCheckFile(rp, "/tmp/lept/pdf/file00.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file01.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file02.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file03.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file04.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file05.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file06.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file07.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file08.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file09.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file10.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file11.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file12.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file13.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file14.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file15.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file16.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file17.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file18.pdf");
+- regTestCheckFile(rp, "/tmp/lept/pdf/file19.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file00.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file01.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file02.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file03.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file04.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file05.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file06.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file07.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file08.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file09.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file10.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file11.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file12.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file13.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file14.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file15.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file16.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file17.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file18.pdf");
++ regTestCheckFile(rp, "/tmp/lept/pdf2/file19.pdf");
+
+ #if 1
+ /* ------------------ Test multipage pdf generation ----------------- */
+@@ -235,9 +241,9 @@ L_REGPARAMS *rp;
+
+ /* Generate a multi-page pdf from all these files */
+ startTimer();
+- concatenatePdf("/tmp/lept/pdf", "file", "/tmp/lept/pdf/cat_lept.pdf");
++ concatenatePdf("/tmp/lept/pdf2", "file", "/tmp/lept/pdf2/cat_lept.pdf");
+ fprintf(stderr,
+- "All files have been concatenated: /tmp/lept/pdf/cat_lept.pdf\n"
++ "All files have been concatenated: /tmp/lept/pdf2/cat_lept.pdf\n"
+ "Concatenation time: %7.3f\n", stopTimer());
+ #endif
+
+@@ -249,7 +255,7 @@ L_REGPARAMS *rp;
+ lept_mkdir("lept/good");
+ lept_cp("testfile1.pdf", "lept/good", NULL, NULL);
+ lept_cp("testfile2.pdf", "lept/good", NULL, NULL);
+- concatenatePdf("/tmp/lept/good", "file", "/tmp/lept/pdf/good.pdf");
++ concatenatePdf("/tmp/lept/good", "file", "/tmp/lept/pdf2/good.pdf");
+
+ /* Make a bad version with the pdf id removed, so that it is not
+ * recognized as a pdf */
+@@ -273,8 +279,8 @@ L_REGPARAMS *rp;
+ fprintf(stderr, "\nWe attempt to build from a bad directory\n");
+ fprintf(stderr, "The next 3 error messages are intentional\n");
+ lept_cp("testfile1.pdf", "lept/bad", NULL, NULL);
+- concatenatePdf("/tmp/lept/bad", "file", "/tmp/lept/pdf/bad.pdf");
+- filesAreIdentical("/tmp/lept/pdf/good.pdf", "/tmp/lept/pdf/bad.pdf", &same);
++ concatenatePdf("/tmp/lept/bad", "file", "/tmp/lept/pdf2/bad.pdf");
++ filesAreIdentical("/tmp/lept/pdf/good.pdf", "/tmp/lept/pdf2/bad.pdf", &same);
+ if (same)
+ fprintf(stderr, "Fixed: files are the same\n"
+ "Attempt succeeded\n");
+@@ -290,8 +296,8 @@ L_REGPARAMS *rp;
+ l_int32 ret;
+
+ fprintf(stderr, "\n*** pdftk writes multipage pdfs from images\n");
+- tempfile1 = genPathname("/tmp/lept/pdf", "file*.pdf");
+- tempfile2 = genPathname("/tmp/lept/pdf", "cat_pdftk.pdf");
++ tempfile1 = genPathname("/tmp/lept/pdf2", "file*.pdf");
++ tempfile2 = genPathname("/tmp/lept/pdf2", "cat_pdftk.pdf");
+ snprintf(buffer, sizeof(buffer), "pdftk %s output %s",
+ tempfile1, tempfile2);
+ ret = system(buffer); /* pdftk */
+diff --git a/prog/webpanimio_reg.c b/prog/webpanimio_reg.c
+index 8f61aab..3938e16 100644
+--- a/prog/webpanimio_reg.c
++++ b/prog/webpanimio_reg.c
+@@ -75,8 +75,8 @@ L_REGPARAMS *rp;
+ return 0;
+ #endif /* abort */
+
+- lept_rmdir("lept/webp");
+- lept_mkdir("lept/webp");
++ lept_rmdir("lept/webpanim");
++ lept_mkdir("lept/webpanim");
+
+ niters = 5;
+ duration = 250; /* ms */
+@@ -85,9 +85,9 @@ L_REGPARAMS *rp;
+ pixa = pixaCreate(6);
+ pixaAddPix(pixa, pix1, L_COPY);
+ pixaAddPix(pixa, pix2, L_COPY);
+- pixaWriteWebPAnim("/tmp/lept/webp/margeanim.webp", pixa, niters,
++ pixaWriteWebPAnim("/tmp/lept/webpanim/margeanim.webp", pixa, niters,
+ duration, 80, 0);
+- regTestCheckFile(rp, "/tmp/lept/webp/margeanim.webp");
++ regTestCheckFile(rp, "/tmp/lept/webpanim/margeanim.webp");
+ pixaDestroy(&pixa);
+ pixDestroy(&pix1);
+ pixDestroy(&pix2);
+diff --git a/prog/reg_wrapper.sh b/prog/reg_wrapper.sh
+index 94a6fa3..804954c 100755
+--- a/prog/reg_wrapper.sh
++++ b/prog/reg_wrapper.sh
+@@ -31,7 +31,7 @@ TEST_NAME="${TEST##*/}"
+ TEST_NAME="${TEST_NAME%_reg*}"
+
+ case "${TEST_NAME}" in
+- baseline|boxa[1234]|colormask|colorspace|dna|enhance|extrema|fpix1|italic|kernel|nearline|numa[12]|projection|rankbin|rankhisto|wordboxes)
++ baseline|boxa[1234]|colormask|colorspace|dna|enhance|extrema|fpix1|italic|kernel|nearline|numa[12]|pixa1|projection|rankbin|rankhisto|wordboxes)
+ GNUPLOT=$(which gnuplot || which wgnuplot)
+
+ if [ -z "${GNUPLOT}" ] || ! "${GNUPLOT}" -e "set terminal png" 2>/dev/null ; then
+--
+2.25.1
diff --git a/media-libs/leptonica/leptonica-1.77.0.ebuild b/media-libs/leptonica/leptonica-1.79.0-r1.ebuild
index 12157b1bdd76..52aa41650f9f 100644
--- a/media-libs/leptonica/leptonica-1.77.0.ebuild
+++ b/media-libs/leptonica/leptonica-1.79.0-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit multilib-minimal
+inherit libtool multilib-minimal
DESCRIPTION="C library for image processing and analysis"
HOMEPAGE="http://www.leptonica.org/"
@@ -21,7 +21,7 @@ RDEPEND="gif? ( >=media-libs/giflib-5.1.3:=[${MULTILIB_USEDEP}] )
jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
jpeg2k? ( media-libs/openjpeg:2=[${MULTILIB_USEDEP}] )
png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}]
- sys-libs/zlib:=[${MULTILIB_USEDEP}] )
+ sys-libs/zlib:=[${MULTILIB_USEDEP}] )
tiff? ( media-libs/tiff:0=[${MULTILIB_USEDEP}] )
webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
zlib? ( sys-libs/zlib:=[${MULTILIB_USEDEP}] )"
@@ -30,7 +30,7 @@ DEPEND="${RDEPEND}
test? ( media-libs/tiff:0[zlib] )"
PATCHES=(
- "${FILESDIR}"/${PV}-gnuplot.patch
+ "${FILESDIR}"/${PV}-tests.patch
)
ECONF_SOURCE="${S}"
@@ -38,6 +38,7 @@ DOCS=( README version-notes )
src_prepare() {
default
+ elibtoolize
# unhtmlize docs
local X
@@ -57,6 +58,7 @@ multilib_src_configure() {
$(use_with png libpng) \
$(use_with tiff libtiff) \
$(use_with webp libwebp) \
+ $(use_with webp libwebpmux) \
$(use_with zlib) \
$(use_enable static-libs static) \
$(multilib_native_use_enable utils programs)