Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/leptonica/, media-libs/leptonica/files/
Date: Sat, 30 Mar 2019 10:12:57
Message-Id: 1553940688.8baeb6bfce5f9af05903bf8d0a417b4db0ae81ca.chewi@gentoo
1 commit: 8baeb6bfce5f9af05903bf8d0a417b4db0ae81ca
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 30 10:11:28 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 30 10:11:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8baeb6bf
7
8 media-libs/leptonica: Version bump to 1.78.0
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 media-libs/leptonica/Manifest | 1 +
14 media-libs/leptonica/files/1.78.0-gnuplot.patch | 13 +++++
15 media-libs/leptonica/leptonica-1.78.0.ebuild | 75 +++++++++++++++++++++++++
16 3 files changed, 89 insertions(+)
17
18 diff --git a/media-libs/leptonica/Manifest b/media-libs/leptonica/Manifest
19 index 74485e4a7d9..42976f4d8cb 100644
20 --- a/media-libs/leptonica/Manifest
21 +++ b/media-libs/leptonica/Manifest
22 @@ -1,3 +1,4 @@
23 DIST leptonica-1.74.4.tar.gz 12349877 BLAKE2B 5c4a71c1c4f44b617f16b1b1029455badee268dc1ac459f1c7ffe6af5b8dbe702bdbaa6e5564af6e41d0881c59e1aa43dc40d5164f618f13ca2a563b2aa3bd0e SHA512 e74732c10218430463ca01f15e19d329dceb938e315586ed100c634c4d50809824f1d9bf7eeaf91654caf42ed78a5ae5de7c08e7a1d8884c580c536121627891
24 DIST leptonica-1.76.0.tar.gz 12436958 BLAKE2B 3cbb581340531762090f009393b21252d6f7ecbe3dd7c30043f42e8a437f6ae16d3e95229fedcf6845ca47e4323a35ab3e72e349c6fae35f0587c21b44461ef8 SHA512 83c77bebbf739cecab997ee08f7c9abf3ca884019c559b8f77c292ea2676c464cbf9b6812d7f12aefceef86c19d04bb3bc85119de298647a641b984dcdf3b111
25 DIST leptonica-1.77.0.tar.gz 12888756 BLAKE2B a1de6ff8d886c4e302faa362ad5c18ece727771e5cdbe62b33c34c950d1af9e0e97418e59485568a6386eb2a7e51fd42ffb2fd01f16591c5bc668961640f1f4d SHA512 3cf764c76d5acb6d5982c44e78c02d7a7c3b5e79937c41df193e71dd8a02dbbf965d34a2ecdf0444e907cb73c06bdb8bcae4ceafbf5ee1483c022659e897015b
26 +DIST leptonica-1.78.0.tar.gz 12905925 BLAKE2B 6a7b74e8aa78a3e4fa6429bbf180001e7d362ebd37d4fd179ba90df7a41993e52d708813ea5a2b30dc90516b7bec83e5386735025993d73f279ab595c39f6c9c SHA512 f059ccc8e7b5ff2c796aeb4ab18bd25e133ec4f38c36b9e2ee203db35a1e68cf45b8baf78ebc4acba4e3607328d1374ea0e8425f35cbe06c6c5728a1ec8c3f50
27
28 diff --git a/media-libs/leptonica/files/1.78.0-gnuplot.patch b/media-libs/leptonica/files/1.78.0-gnuplot.patch
29 new file mode 100644
30 index 00000000000..758b78258dd
31 --- /dev/null
32 +++ b/media-libs/leptonica/files/1.78.0-gnuplot.patch
33 @@ -0,0 +1,13 @@
34 +diff --git a/prog/reg_wrapper.sh b/prog/reg_wrapper.sh
35 +index cee1f54..f16d980 100755
36 +--- a/prog/reg_wrapper.sh
37 ++++ b/prog/reg_wrapper.sh
38 +@@ -31,7 +31,7 @@ TEST_NAME="${TEST##*/}"
39 + TEST_NAME="${TEST_NAME%_reg*}"
40 +
41 + case "${TEST_NAME}" in
42 +- baseline|boxa[12]|colormask|colorspace|dna|enhance|extrema|fpix1|italic|kernel|nearline|numa[12]|projection|rankbin|rankhisto|wordboxes)
43 ++ baseline|boxa[1234]|colormask|colorspace|dna|enhance|extrema|fpix1|italic|kernel|nearline|numa[12]|projection|rankbin|rankhisto|wordboxes)
44 + GNUPLOT=$(type -P gnuplot || type -P wgnuplot)
45 +
46 + if [ -z "${GNUPLOT}" ] || ! "${GNUPLOT}" -e "set terminal png" 2>/dev/null ; then
47
48 diff --git a/media-libs/leptonica/leptonica-1.78.0.ebuild b/media-libs/leptonica/leptonica-1.78.0.ebuild
49 new file mode 100644
50 index 00000000000..1e8f7a678d8
51 --- /dev/null
52 +++ b/media-libs/leptonica/leptonica-1.78.0.ebuild
53 @@ -0,0 +1,75 @@
54 +# Copyright 1999-2019 Gentoo Authors
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=7
58 +
59 +inherit multilib-minimal
60 +
61 +DESCRIPTION="C library for image processing and analysis"
62 +HOMEPAGE="http://www.leptonica.org/"
63 +SRC_URI="https://github.com/DanBloomberg/${PN}/releases/download/${PV}/${P}.tar.gz"
64 +LICENSE="Apache-2.0"
65 +SLOT="0/5"
66 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
67 +IUSE="gif jpeg jpeg2k png static-libs test tiff utils webp zlib"
68 +
69 +# N.B. Tests need some features enabled:
70 +REQUIRED_USE="test? ( jpeg png tiff zlib )"
71 +
72 +RDEPEND="gif? ( >=media-libs/giflib-5.1.3:=[${MULTILIB_USEDEP}] )
73 + jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
74 + jpeg2k? ( media-libs/openjpeg:2=[${MULTILIB_USEDEP}] )
75 + png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}]
76 + sys-libs/zlib:=[${MULTILIB_USEDEP}] )
77 + tiff? ( media-libs/tiff:0=[${MULTILIB_USEDEP}] )
78 + webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
79 + zlib? ( sys-libs/zlib:=[${MULTILIB_USEDEP}] )"
80 +
81 +DEPEND="${RDEPEND}
82 + test? ( media-libs/tiff:0[zlib] )"
83 +
84 +PATCHES=(
85 + "${FILESDIR}"/${PV}-gnuplot.patch
86 +)
87 +
88 +ECONF_SOURCE="${S}"
89 +DOCS=( README version-notes )
90 +
91 +src_prepare() {
92 + default
93 +
94 + # unhtmlize docs
95 + local X
96 + for X in ${DOCS[@]}; do
97 + awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \
98 + "${X}.html" > "${X}" || die 'awk failed'
99 + rm -f -- "${X}.html"
100 + done
101 +}
102 +
103 +multilib_src_configure() {
104 + econf \
105 + --enable-shared \
106 + $(use_with gif giflib) \
107 + $(use_with jpeg) \
108 + $(use_with jpeg2k libopenjpeg) \
109 + $(use_with png libpng) \
110 + $(use_with tiff libtiff) \
111 + $(use_with webp libwebp) \
112 + $(use_with zlib) \
113 + $(use_enable static-libs static) \
114 + $(multilib_native_use_enable utils programs)
115 +}
116 +
117 +multilib_src_test() {
118 + default
119 +
120 + # ${TMPDIR} is not respected. It used to be but it lead to issues
121 + # and there have been long debates with upstream about it. :(
122 + rm -rf /tmp/lept/ || die
123 +}
124 +
125 +multilib_src_install_all() {
126 + # libtool archives covered by pkg-config.
127 + find "${D}" -name "*.la" -delete || die
128 +}