summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-12-31 10:48:43 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-12-31 16:37:49 +0000
commit0ee4d70c3a0ae94b17b7366398df667ab5b04e56 (patch)
tree23368bbef485cde1173614087bc394f8aa806648 /media-libs
parentdev-util/abi-dumper: bump to 0.99.19 (diff)
downloadgentoo-0ee4d70c3a0ae94b17b7366398df667ab5b04e56.tar.gz
gentoo-0ee4d70c3a0ae94b17b7366398df667ab5b04e56.tar.bz2
gentoo-0ee4d70c3a0ae94b17b7366398df667ab5b04e56.zip
media-libs/leptonica: Version bump to 1.74
There is some versioning inconsistency upstream as this is referred to as 1.74.0 in places. I have asked upstream to straighten this out. Package-Manager: portage-2.3.3
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/leptonica/Manifest1
-rw-r--r--media-libs/leptonica/leptonica-1.74.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/media-libs/leptonica/Manifest b/media-libs/leptonica/Manifest
index 39555f934c49..b6eb97449ffd 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.73.tar.gz 10894175 SHA256 19e4335c674e7b78af9338d5382cc5266f34a62d4ce533d860af48eaa859afc1 SHA512 4808474d5941a91fbf542a22fed26ddc33f9c4baf2699096acf5e894b7e4e84889d165373b7d1df391a68cda8176113cf122f15203a9e38d3059e17140efc575 WHIRLPOOL b7ff93ecf5c8f66b4c85b64d6db16c18303bdcfe4a8c62735f79bd2e8f1260ad4e4c8b8f4a398cfbd001f2f5af3ff6a720eea83c25a38472b3222e4d2fd5dea9
+DIST leptonica-1.74.tar.gz 11624575 SHA256 e170f8a3f79e7f1742aff975ad5bb0c4a124df1532e6e38d9d71aaa5111de5a2 SHA512 6c563a8f30faf7dc0ad321aa58a012a0d03fc3fba7eb3c3e7b69be8bf2e71cc5f13420ded9cc08b232a780b78234e10bbdbe6a77ef26c5af330c6c6eac477f77 WHIRLPOOL 1ae8f107a7c7b5068307aea5687ee3d38169c8c18da0dd8aa1d7c1fe613adab6bc8ccb58bb54bd8ab09576594444d4fdaa03fc35f3d90c25f3431aa9bbbef0fc
diff --git a/media-libs/leptonica/leptonica-1.74.ebuild b/media-libs/leptonica/leptonica-1.74.ebuild
new file mode 100644
index 000000000000..260e2d91a33f
--- /dev/null
+++ b/media-libs/leptonica/leptonica-1.74.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 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
+}