diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2012-02-16 00:06:55 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2012-02-16 00:06:55 +0000 |
commit | ee01e41beff785b3dfc1f88a90310f65992cc40a (patch) | |
tree | f98f2c3d7b7aafa57e3ebb813c117e7088df9699 /media-libs/leptonica | |
parent | Fix HOMEPAGE by Marc Grondin (bug #403907). Tweak SRC_URI. (diff) | |
download | gentoo-2-ee01e41beff785b3dfc1f88a90310f65992cc40a.tar.gz gentoo-2-ee01e41beff785b3dfc1f88a90310f65992cc40a.tar.bz2 gentoo-2-ee01e41beff785b3dfc1f88a90310f65992cc40a.zip |
initial commit, solving bug #297101.
(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/leptonica')
-rw-r--r-- | media-libs/leptonica/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/leptonica/Manifest | 5 | ||||
-rw-r--r-- | media-libs/leptonica/files/leptonica-1.68-zlib-include.patch | 13 | ||||
-rw-r--r-- | media-libs/leptonica/leptonica-1.68.ebuild | 52 | ||||
-rw-r--r-- | media-libs/leptonica/metadata.xml | 12 |
5 files changed, 92 insertions, 0 deletions
diff --git a/media-libs/leptonica/ChangeLog b/media-libs/leptonica/ChangeLog new file mode 100644 index 000000000000..675b61fa66b0 --- /dev/null +++ b/media-libs/leptonica/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-libs/leptonica +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v 1.1 2012/02/16 00:06:55 sbriesen Exp $ + +*leptonica-1.68 (16 Feb 2012) + + 16 Feb 2012; Stefan Briesenick <sbriesen@gentoo.org> +leptonica-1.68.ebuild, + +files/leptonica-1.68-zlib-include.patch, +metadata.xml: + initial commit, solving bug #297101. + diff --git a/media-libs/leptonica/Manifest b/media-libs/leptonica/Manifest new file mode 100644 index 000000000000..2c9e1ef65d37 --- /dev/null +++ b/media-libs/leptonica/Manifest @@ -0,0 +1,5 @@ +AUX leptonica-1.68-zlib-include.patch 426 RMD160 c306cfc1eb95d85ab6c1b5bde37a28e1e2894d66 SHA1 625ed8ab4456275a98178d39c09cdb207966c330 SHA256 49e5795d29a9e9c356fa1b2cfbf477300feb78679a584acb4649becff51a0837 +DIST leptonica-1.68.tar.gz 6695020 RMD160 f1d20f0bae963b5c6753d5ceca5873d604a16e40 SHA1 a50563ac091f4195a5a3b4579c4fcc674b81c316 SHA256 acefb6c50db2913f117afdbb19a549f7409cf8fa5d9a435692cb10ff89a81f8f +EBUILD leptonica-1.68.ebuild 1252 RMD160 434cbf851beb939761c2ad8b1b97730055b1d462 SHA1 5a54575ed8b7a42e98ab1c0dfd35663045b31f3f SHA256 9e0a04c21f4bb832c6b30c4cf320c46a9f404d5ed74384ead26dab0a0126aae1 +MISC ChangeLog 330 RMD160 dc052c43830788256223fd38b41b9b3d4b017040 SHA1 67517a44d65a57ad91ca3fb107838f9b7c814e74 SHA256 23dbd893dbcc86acbef3e8d3b105ab360e9b179429290e9c6ccfcc5166838fdd +MISC metadata.xml 378 RMD160 4ed3740461df44c1f8cb6a2a0d6391f0d3f42421 SHA1 873295dd96f744a1643ec975c4aec3bc60a6d6ee SHA256 da48cfcf402e4db42e77afb2e0ab97855f3ae1731e230008e8cceb4e0cf507d3 diff --git a/media-libs/leptonica/files/leptonica-1.68-zlib-include.patch b/media-libs/leptonica/files/leptonica-1.68-zlib-include.patch new file mode 100644 index 000000000000..06c9a47c8363 --- /dev/null +++ b/media-libs/leptonica/files/leptonica-1.68-zlib-include.patch @@ -0,0 +1,13 @@ +--- leptonica-1.68.orig/src/pngio.c 2011-02-01 00:41:12.000000000 -0500 ++++ leptonica-1.68/src/pngio.c 2011-07-09 09:17:17.000000000 -0400 +@@ -108,6 +108,10 @@ + + #include "png.h" + ++#ifdef HAVE_LIBZ ++#include "zlib.h" ++#endif ++ + /* ----------------Set defaults for read/write options ----------------- */ + /* strip 16 bpp --> 8 bpp on reading png; default is for stripping */ + static l_int32 var_PNG_STRIP_16_TO_8 = 1; diff --git a/media-libs/leptonica/leptonica-1.68.ebuild b/media-libs/leptonica/leptonica-1.68.ebuild new file mode 100644 index 000000000000..eac6d0a25f83 --- /dev/null +++ b/media-libs/leptonica/leptonica-1.68.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/leptonica-1.68.ebuild,v 1.1 2012/02/16 00:06:55 sbriesen Exp $ + +EAPI=4 + +inherit eutils autotools-utils + +DESCRIPTION="C library for image processing and analysis" +HOMEPAGE="http://code.google.com/p/leptonica/" +SRC_URI="http://www.leptonica.com/source/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gif jpeg png tiff webp utils zlib static-libs" + +DEPEND="gif? ( media-libs/giflib ) + jpeg? ( virtual/jpeg ) + png? ( media-libs/libpng ) + tiff? ( media-libs/tiff ) + webp? ( media-libs/libwebp ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +DOCS=( README version-notes ) + +src_prepare() { + # 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 + + # see bug 297101, error when enabling png and zlib + epatch "${FILESDIR}/${P}-zlib-include.patch" +} + +src_configure() { + # $(use_with webp libwebp) -> unknown + # so use-flag just for pulling dependencies + econf \ + $(use_with gif giflib) \ + $(use_with jpeg) \ + $(use_with png libpng) \ + $(use_with tiff libtiff) \ + $(use_with zlib) \ + $(use_enable utils programs) \ + $(use_enable static-libs static) +} diff --git a/media-libs/leptonica/metadata.xml b/media-libs/leptonica/metadata.xml new file mode 100644 index 000000000000..428b05b17894 --- /dev/null +++ b/media-libs/leptonica/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>sbriesen@gentoo.org</email> + <name>Stefan Briesenick</name> + </maintainer> + <use> + <flag name="webp">Adds support for the WebP image format</flag> + <flag name="utils">Install command-line utilities</flag> + </use> +</pkgmetadata> |