Gentoo Archives: gentoo-commits

From: "Thomas Kahle (tomka)" <tomka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/leptonica: leptonica-1.71-r1.ebuild ChangeLog
Date: Mon, 01 Sep 2014 09:29:33
Message-Id: 20140901092928.CF46F46B7@oystercatcher.gentoo.org
1 tomka 14/09/01 09:29:28
2
3 Modified: ChangeLog
4 Added: leptonica-1.71-r1.ebuild
5 Log:
6 EAPI bump, fix bug 518540 for real
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 565C32BC)
9
10 Revision Changes Path
11 1.23 media-libs/leptonica/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/ChangeLog?rev=1.23&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/ChangeLog?rev=1.23&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/ChangeLog?r1=1.22&r2=1.23
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v
20 retrieving revision 1.22
21 retrieving revision 1.23
22 diff -u -r1.22 -r1.23
23 --- ChangeLog 30 Aug 2014 17:54:58 -0000 1.22
24 +++ ChangeLog 1 Sep 2014 09:29:28 -0000 1.23
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-libs/leptonica
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v 1.22 2014/08/30 17:54:58 nimiux Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v 1.23 2014/09/01 09:29:28 tomka Exp $
30 +
31 +*leptonica-1.71-r1 (01 Sep 2014)
32 +
33 + 01 Sep 2014; Thomas Kahle <tomka@g.o>
34 + +files/leptonica-1.71-fix-openjpeg-test.patch, +leptonica-1.71-r1.ebuild:
35 + EAPI bump, fix bug 518540 for real
36
37 30 Aug 2014; Chema Alonso <nimiux@g.o> leptonica-1.70.ebuild:
38 Stable for amd64 wrt bug #513376
39
40
41
42 1.1 media-libs/leptonica/leptonica-1.71-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/leptonica-1.71-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/leptonica-1.71-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: leptonica-1.71-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/leptonica-1.71-r1.ebuild,v 1.1 2014/09/01 09:29:28 tomka Exp $
52
53 EAPI=5
54
55 AUTOTOOLS_AUTORECONF="1"
56 inherit eutils autotools-utils
57
58 DESCRIPTION="C library for image processing and analysis"
59 HOMEPAGE="http://code.google.com/p/leptonica/"
60 SRC_URI="http://www.leptonica.com/source/${P}.tar.gz"
61
62 LICENSE="Apache-2.0"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
65 IUSE="gif jpeg jpeg2k png tiff webp utils zlib static-libs"
66
67 # N.b. Tests need at least tiff, jpeg and maybe others to work
68 DEPEND="gif? ( media-libs/giflib )
69 jpeg? ( virtual/jpeg )
70 jpeg2k? ( media-libs/openjpeg:2= )
71 png? ( media-libs/libpng
72 sys-libs/zlib
73 )
74 tiff? ( media-libs/tiff )
75 webp? ( media-libs/libwebp )
76 zlib? ( sys-libs/zlib )"
77 RDEPEND="${DEPEND}"
78
79 DOCS=( README version-notes )
80 PATCHES=( "${FILESDIR}"/"${P}"-fix-openjpeg-test.patch )
81
82 src_prepare() {
83 if has_version "<media-libs/openjpeg-2.1" ; then
84 epatch "${FILESDIR}"/"${P}"-openjpeg-2.0.patch
85 fi
86
87 # unhtmlize docs
88 local X
89 for X in ${DOCS[@]}; do
90 awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \
91 "${X}.html" > "${X}" || die 'awk failed'
92 rm -f -- "${X}.html"
93 done
94 autotools-utils_src_prepare
95 }
96
97 src_configure() {
98 # $(use_with webp libwebp) -> unknown
99 # so use-flag just for pulling dependencies
100 # zlib handling see bug 454890
101 local myeconfargs=(
102 $(use_with gif giflib)
103 $(use_with jpeg)
104 $(use_with jpeg2k libopenjpeg)
105 $(use_with png libpng)
106 $(use_with tiff libtiff)
107 $(use_enable utils programs)
108 $(use_enable static-libs static)
109 )
110 # libpng requires zlib:
111 if use png && ! use zlib ; then
112 # Ignore users non-sensical choice of -zlib
113 myeconfargs+=("--with-zlib")
114 else
115 myeconfargs+=( $(use_with zlib) )
116 fi
117 autotools-utils_src_configure
118 }