diff options
author | James Le Cuirot <chewi@gentoo.org> | 2019-01-14 20:49:10 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2019-01-14 20:50:06 +0000 |
commit | 2edc2a7914a5175332d2b3bdf713477ee9061a85 (patch) | |
tree | 6d7023b9c9abdb3b5a9631d24194fabe1f364a49 /media-libs/leptonica | |
parent | app-arch/lzip: Version bump (v1.21) (diff) | |
download | gentoo-2edc2a7914a5175332d2b3bdf713477ee9061a85.tar.gz gentoo-2edc2a7914a5175332d2b3bdf713477ee9061a85.tar.bz2 gentoo-2edc2a7914a5175332d2b3bdf713477ee9061a85.zip |
media-libs/leptonica: Version bump to 1.77.0, EAPI 7
Package-Manager: Portage-2.3.55, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'media-libs/leptonica')
-rw-r--r-- | media-libs/leptonica/Manifest | 1 | ||||
-rw-r--r-- | media-libs/leptonica/files/1.77.0-gnuplot.patch | 25 | ||||
-rw-r--r-- | media-libs/leptonica/leptonica-1.77.0.ebuild | 75 |
3 files changed, 101 insertions, 0 deletions
diff --git a/media-libs/leptonica/Manifest b/media-libs/leptonica/Manifest index f41ecb5fcdf2..74485e4a7d98 100644 --- a/media-libs/leptonica/Manifest +++ b/media-libs/leptonica/Manifest @@ -1,2 +1,3 @@ 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 diff --git a/media-libs/leptonica/files/1.77.0-gnuplot.patch b/media-libs/leptonica/files/1.77.0-gnuplot.patch new file mode 100644 index 000000000000..0d6b0e3cb153 --- /dev/null +++ b/media-libs/leptonica/files/1.77.0-gnuplot.patch @@ -0,0 +1,25 @@ +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/leptonica-1.77.0.ebuild b/media-libs/leptonica/leptonica-1.77.0.ebuild new file mode 100644 index 000000000000..1e8f7a678d8b --- /dev/null +++ b/media-libs/leptonica/leptonica-1.77.0.ebuild @@ -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 +} |