mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
media-libs/leptonica: Version bump to 1.78.0
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST leptonica-1.74.4.tar.gz 12349877 BLAKE2B 5c4a71c1c4f44b617f16b1b1029455badee268dc1ac459f1c7ffe6af5b8dbe702bdbaa6e5564af6e41d0881c59e1aa43dc40d5164f618f13ca2a563b2aa3bd0e SHA512 e74732c10218430463ca01f15e19d329dceb938e315586ed100c634c4d50809824f1d9bf7eeaf91654caf42ed78a5ae5de7c08e7a1d8884c580c536121627891
|
||||
DIST leptonica-1.76.0.tar.gz 12436958 BLAKE2B 3cbb581340531762090f009393b21252d6f7ecbe3dd7c30043f42e8a437f6ae16d3e95229fedcf6845ca47e4323a35ab3e72e349c6fae35f0587c21b44461ef8 SHA512 83c77bebbf739cecab997ee08f7c9abf3ca884019c559b8f77c292ea2676c464cbf9b6812d7f12aefceef86c19d04bb3bc85119de298647a641b984dcdf3b111
|
||||
DIST leptonica-1.77.0.tar.gz 12888756 BLAKE2B a1de6ff8d886c4e302faa362ad5c18ece727771e5cdbe62b33c34c950d1af9e0e97418e59485568a6386eb2a7e51fd42ffb2fd01f16591c5bc668961640f1f4d SHA512 3cf764c76d5acb6d5982c44e78c02d7a7c3b5e79937c41df193e71dd8a02dbbf965d34a2ecdf0444e907cb73c06bdb8bcae4ceafbf5ee1483c022659e897015b
|
||||
DIST leptonica-1.78.0.tar.gz 12905925 BLAKE2B 6a7b74e8aa78a3e4fa6429bbf180001e7d362ebd37d4fd179ba90df7a41993e52d708813ea5a2b30dc90516b7bec83e5386735025993d73f279ab595c39f6c9c SHA512 f059ccc8e7b5ff2c796aeb4ab18bd25e133ec4f38c36b9e2ee203db35a1e68cf45b8baf78ebc4acba4e3607328d1374ea0e8425f35cbe06c6c5728a1ec8c3f50
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/prog/reg_wrapper.sh b/prog/reg_wrapper.sh
|
||||
index cee1f54..f16d980 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[12]|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]|projection|rankbin|rankhisto|wordboxes)
|
||||
GNUPLOT=$(type -P gnuplot || type -P wgnuplot)
|
||||
|
||||
if [ -z "${GNUPLOT}" ] || ! "${GNUPLOT}" -e "set terminal png" 2>/dev/null ; then
|
||||
@@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
DESCRIPTION="C library for image processing and analysis"
|
||||
HOMEPAGE="http://www.leptonica.org/"
|
||||
SRC_URI="https://github.com/DanBloomberg/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/5"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
|
||||
IUSE="gif jpeg jpeg2k png static-libs test tiff utils webp zlib"
|
||||
|
||||
# N.B. Tests need some features enabled:
|
||||
REQUIRED_USE="test? ( jpeg png tiff zlib )"
|
||||
|
||||
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}] )
|
||||
tiff? ( media-libs/tiff:0=[${MULTILIB_USEDEP}] )
|
||||
webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
|
||||
zlib? ( sys-libs/zlib:=[${MULTILIB_USEDEP}] )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( media-libs/tiff:0[zlib] )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PV}-gnuplot.patch
|
||||
)
|
||||
|
||||
ECONF_SOURCE="${S}"
|
||||
DOCS=( README version-notes )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# unhtmlize docs
|
||||
local X
|
||||
for X in ${DOCS[@]}; do
|
||||
awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \
|
||||
"${X}.html" > "${X}" || die 'awk failed'
|
||||
rm -f -- "${X}.html"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
econf \
|
||||
--enable-shared \
|
||||
$(use_with gif giflib) \
|
||||
$(use_with jpeg) \
|
||||
$(use_with jpeg2k libopenjpeg) \
|
||||
$(use_with png libpng) \
|
||||
$(use_with tiff libtiff) \
|
||||
$(use_with webp libwebp) \
|
||||
$(use_with zlib) \
|
||||
$(use_enable static-libs static) \
|
||||
$(multilib_native_use_enable utils programs)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
default
|
||||
|
||||
# ${TMPDIR} is not respected. It used to be but it lead to issues
|
||||
# and there have been long debates with upstream about it. :(
|
||||
rm -rf /tmp/lept/ || die
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
# libtool archives covered by pkg-config.
|
||||
find "${D}" -name "*.la" -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user