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 | eb34f40a10e7c2d367d115b041fd619ea41dedbe (patch) | |
tree | 7b0ed63724eafa7b9b9aa1b61d60877f867cca33 /media-libs | |
parent | Fix HOMEPAGE by Marc Grondin (bug #403907). Tweak SRC_URI. (diff) | |
download | historical-eb34f40a10e7c2d367d115b041fd619ea41dedbe.tar.gz historical-eb34f40a10e7c2d367d115b041fd619ea41dedbe.tar.bz2 historical-eb34f40a10e7c2d367d115b041fd619ea41dedbe.zip |
initial commit, solving bug #297101.
Package-Manager: portage-2.2.0_alpha86/cvs/Linux x86_64
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/leptonica/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/leptonica/Manifest | 17 | ||||
-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, 104 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..9112e47e0e5c --- /dev/null +++ b/media-libs/leptonica/Manifest @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +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 1358 RMD160 9e4340b7d5aa6f77f2d9d974085cf3fb4a6e1323 SHA1 e96b081c7705df4c3fa07f9dd35328be6eaf6fa3 SHA256 489c2a6e60412c6f1486464d01dc241eb8b5a4a9fee5db63e63c2ab285a2b1c3 +MISC ChangeLog 424 RMD160 d4eb5210542bc45f4e486212bec9fcbc05f827cc SHA1 e8b387694586c2eab606029d1230a6ca5d2bdd88 SHA256 1c3102fb96a89929569a988722d1838f712a41970f3aff1137b2cb12321cfed1 +MISC metadata.xml 378 RMD160 4ed3740461df44c1f8cb6a2a0d6391f0d3f42421 SHA1 873295dd96f744a1643ec975c4aec3bc60a6d6ee SHA256 da48cfcf402e4db42e77afb2e0ab97855f3ae1731e230008e8cceb4e0cf507d3 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iJwEAQECAAYFAk88SKsACgkQIaLonLtsQsd+rQP/T3rRFCIGyUAY+NtPe38cIrYl +JGNnFUYaaKxZANE0i3GJvIf3BdheafroJqCtmUge8bM+uxiyl+iMP77oCY/SRm5q +2syFCAhH7sPVOoQ5pnb9u+571BfaPKwX2kQH/e/jnQ9G+VY0QAvYsfo11cToFGwt +4oxqSgIOwCbfEbPAOmU= +=114n +-----END PGP SIGNATURE----- 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> |