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/leptonica/leptonica-1.68.ebuild | |
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/leptonica/leptonica-1.68.ebuild')
-rw-r--r-- | media-libs/leptonica/leptonica-1.68.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
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) +} |