diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-06-08 14:26:05 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-06-08 14:26:05 +0100 |
commit | bba6f9df3fc024ae114d6b1854d68c1e9377d6ef (patch) | |
tree | 32f36e60fd2c4ed98732f177db6b1e4bf1560ce7 /media-libs/leptonica | |
parent | dev-lang/scala-bin: correct LICENSE to Apache-2.0. (diff) | |
download | gentoo-bba6f9df3fc024ae114d6b1854d68c1e9377d6ef.tar.gz gentoo-bba6f9df3fc024ae114d6b1854d68c1e9377d6ef.tar.bz2 gentoo-bba6f9df3fc024ae114d6b1854d68c1e9377d6ef.zip |
media-libs/leptonica: Version bump to 1.81.0
Package-Manager: Portage-3.0.19, Repoman-3.0.3
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/leptonica-1.81.0.ebuild | 77 |
2 files changed, 78 insertions, 0 deletions
diff --git a/media-libs/leptonica/Manifest b/media-libs/leptonica/Manifest index 600d0be76e7b..2230a008b60f 100644 --- a/media-libs/leptonica/Manifest +++ b/media-libs/leptonica/Manifest @@ -1 +1,2 @@ DIST leptonica-1.80.0.tar.gz 13926793 BLAKE2B 1c8916acbea7411038c27ad422f7ac8d5769680ae0554a50da332676de4abdd3c6dfab69dfa4abc3525f3aa298062f4f2315548bda9d120e91abf6ffb5b41e1c SHA512 f8062a169b7ac558c8818615e534c0dcb5db48924af4d3106d0e0929e9b2f03347bdeaae45f80bded0b2aed135bb133f775244c8c752891ca4948b5d6b21e147 +DIST leptonica-1.81.0.tar.gz 14056128 BLAKE2B 21a6be10d8579746855b6c12785ecd75ce475cc24601ddd2b71ac79aee1a82dd96d26a0b779feae6b0a4028fca4556accd6a208525999c457250a6fcd0e0a5cf SHA512 e6e530a490337941018393ffc69ca45a92fecdee290c6de63f7656207228c19e474ec2e9291591cee85c782edbc46d51d69692871e425ed2367a7dd679dc7771 diff --git a/media-libs/leptonica/leptonica-1.81.0.ebuild b/media-libs/leptonica/leptonica-1.81.0.ebuild new file mode 100644 index 000000000000..cc3881a79ba7 --- /dev/null +++ b/media-libs/leptonica/leptonica-1.81.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit libtool 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 )" +RESTRICT="!test? ( test )" + +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] )" + +DOCS=( README version-notes ) + +src_prepare() { + default + elibtoolize + + # 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_SOURCE="${S}" 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 webp libwebpmux) \ + $(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() { + einstalldocs + + # libtool archives covered by pkg-config + find "${ED}" -name '*.la' -delete || die +} |