/[gentoo-x86]/media-libs/leptonica/leptonica-1.68.ebuild
Gentoo

Contents of /media-libs/leptonica/leptonica-1.68.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Jun 24 12:14:05 2012 UTC (2 years, 2 months ago) by sbriesen
Branch: MAIN
Changes since 1.1: +15 -12 lines
fixing compile-error, solving bug #423065.

(Portage version: 2.2.0_alpha111/cvs/Linux x86_64)

1 sbriesen 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 sbriesen 1.2 # $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/leptonica-1.68.ebuild,v 1.1 2012/02/16 00:06:55 sbriesen Exp $
4 sbriesen 1.1
5     EAPI=4
6    
7     inherit eutils autotools-utils
8    
9     DESCRIPTION="C library for image processing and analysis"
10     HOMEPAGE="http://code.google.com/p/leptonica/"
11     SRC_URI="http://www.leptonica.com/source/${P}.tar.gz"
12    
13     LICENSE="Apache-2.0"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE="gif jpeg png tiff webp utils zlib static-libs"
17    
18     DEPEND="gif? ( media-libs/giflib )
19     jpeg? ( virtual/jpeg )
20     png? ( media-libs/libpng )
21     tiff? ( media-libs/tiff )
22     webp? ( media-libs/libwebp )
23     zlib? ( sys-libs/zlib )"
24     RDEPEND="${DEPEND}"
25    
26     DOCS=( README version-notes )
27    
28 sbriesen 1.2 # see bug 297101, error when enabling png and zlib
29     PATCHES=( "${FILESDIR}/${P}-zlib-include.patch" )
30    
31 sbriesen 1.1 src_prepare() {
32     # unhtmlize docs
33     local X
34     for X in ${DOCS[@]}; do
35     awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \
36     "${X}.html" > "${X}" || die 'awk failed'
37 sbriesen 1.2 rm -f -- "${X}.html"
38 sbriesen 1.1 done
39 sbriesen 1.2 autotools-utils_src_prepare
40 sbriesen 1.1 }
41    
42     src_configure() {
43     # $(use_with webp libwebp) -> unknown
44     # so use-flag just for pulling dependencies
45 sbriesen 1.2 local myeconfargs=(
46     $(use_with gif giflib)
47     $(use_with jpeg)
48     $(use_with png libpng)
49     $(use_with tiff libtiff)
50     $(use_with zlib)
51     $(use_enable utils programs)
52 sbriesen 1.1 $(use_enable static-libs static)
53 sbriesen 1.2 )
54     autotools-utils_src_configure
55 sbriesen 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20