diff options
author | James Le Cuirot <chewi@gentoo.org> | 2017-01-07 14:19:46 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2017-01-07 14:20:29 +0000 |
commit | 13204d5f6555a60e563d2098ec0223e6cc61a2bf (patch) | |
tree | f95a7a19ae5e56c13534ca3bacb6961c12fe2e52 /media-libs/leptonica | |
parent | dev-php/PEAR-Net_Socket: fix LICENSE and add upstream metadata. (diff) | |
download | gentoo-13204d5f6555a60e563d2098ec0223e6cc61a2bf.tar.gz gentoo-13204d5f6555a60e563d2098ec0223e6cc61a2bf.tar.bz2 gentoo-13204d5f6555a60e563d2098ec0223e6cc61a2bf.zip |
media-libs/leptonica: Version bump to 1.74.1
This release is mostly just making the versioning consistent.
Package-Manager: portage-2.3.3
Diffstat (limited to 'media-libs/leptonica')
-rw-r--r-- | media-libs/leptonica/Manifest | 1 | ||||
-rw-r--r-- | media-libs/leptonica/leptonica-1.74.1.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/media-libs/leptonica/Manifest b/media-libs/leptonica/Manifest index 894700750429..24eb3d767c31 100644 --- a/media-libs/leptonica/Manifest +++ b/media-libs/leptonica/Manifest @@ -1,2 +1,3 @@ DIST leptonica-1.71.tar.gz 10212309 SHA256 cc5d736e81496eb25e195f380f553537e0410c3f7151a778b2a546e35c7eb848 SHA512 fd02eec19a442d767ba39ce01132ef1304a977e038bdbf64ec5e763607d51adf1c06aaa687fc3ec542854e535618b6da2042f10709286c2e1d236e43d77efd51 WHIRLPOOL 5a3d57735e8e36785dea9a481a602b0f812c08bab5e42ebaac2e3fa2d42a0c8c697a61351ec1122a14fd9f471945c200a1c75015bd35b043fd208a1cad079733 +DIST leptonica-1.74.1.tar.gz 11707064 SHA256 746a517a47a3bd2a90bc8d581ca6464c10f30e91a60209735efe45b3778bec62 SHA512 c6f08458d288997283aa56258932a79f4ecef10bf3fb95c91749b8b6fbe2a1573774371d969a43c2b73eb6fd67c1d6a3d07db465c29e5055bd42fc0ac22a5b47 WHIRLPOOL 6ff724464e4a2522c3a5f10854562e9f20800fd43ee4c4957cf5afdf979e5b90b1fdf6ed75ca0a14f1d5eedc1795d37e491020ca476c3917c718c381e0339752 DIST leptonica-1.74.tar.gz 11624575 SHA256 e170f8a3f79e7f1742aff975ad5bb0c4a124df1532e6e38d9d71aaa5111de5a2 SHA512 6c563a8f30faf7dc0ad321aa58a012a0d03fc3fba7eb3c3e7b69be8bf2e71cc5f13420ded9cc08b232a780b78234e10bbdbe6a77ef26c5af330c6c6eac477f77 WHIRLPOOL 1ae8f107a7c7b5068307aea5687ee3d38169c8c18da0dd8aa1d7c1fe613adab6bc8ccb58bb54bd8ab09576594444d4fdaa03fc35f3d90c25f3431aa9bbbef0fc diff --git a/media-libs/leptonica/leptonica-1.74.1.ebuild b/media-libs/leptonica/leptonica-1.74.1.ebuild new file mode 100644 index 000000000000..671a71525a8e --- /dev/null +++ b/media-libs/leptonica/leptonica-1.74.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils multilib-minimal + +DESCRIPTION="C library for image processing and analysis" +HOMEPAGE="http://www.leptonica.org/" +SRC_URI="http://www.leptonica.org/source/${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~arm ~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 )" + +DEPEND="gif? ( media-libs/giflib:=[${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}] )" +RDEPEND="${DEPEND}" + +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) +} + +src_install() { + multilib-minimal_src_install + prune_libtool_files +} |