From: | "James Le Cuirot (chewi)" <chewi@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-libs/leptonica: leptonica-1.72-r1.ebuild ChangeLog leptonica-1.72.ebuild |
Date: | Sat, 02 May 2015 15:59:14 |
Message-Id: | 20150502155906.6328A9AB@oystercatcher.gentoo.org |
1 | chewi 15/05/02 15:59:06 |
2 | |
3 | Modified: ChangeLog |
4 | Added: leptonica-1.72-r1.ebuild |
5 | Removed: leptonica-1.72.ebuild |
6 | Log: |
7 | Add SLOT restrictions to some dependencies following an enlightening |
8 | discussion on IRC. |
9 | |
10 | (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4) |
11 | |
12 | Revision Changes Path |
13 | 1.37 media-libs/leptonica/ChangeLog |
14 | |
15 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/ChangeLog?rev=1.37&view=markup |
16 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/ChangeLog?rev=1.37&content-type=text/plain |
17 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/ChangeLog?r1=1.36&r2=1.37 |
18 | |
19 | Index: ChangeLog |
20 | =================================================================== |
21 | RCS file: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v |
22 | retrieving revision 1.36 |
23 | retrieving revision 1.37 |
24 | diff -u -r1.36 -r1.37 |
25 | --- ChangeLog 1 May 2015 23:24:02 -0000 1.36 |
26 | +++ ChangeLog 2 May 2015 15:59:06 -0000 1.37 |
27 | @@ -1,6 +1,13 @@ |
28 | # ChangeLog for media-libs/leptonica |
29 | # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
30 | -# $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v 1.36 2015/05/01 23:24:02 chewi Exp $ |
31 | +# $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/ChangeLog,v 1.37 2015/05/02 15:59:06 chewi Exp $ |
32 | + |
33 | +*leptonica-1.72-r1 (02 May 2015) |
34 | + |
35 | + 02 May 2015; James Le Cuirot <chewi@g.o> +leptonica-1.72-r1.ebuild, |
36 | + -leptonica-1.72.ebuild: |
37 | + Add SLOT restrictions to some dependencies following an enlightening |
38 | + discussion on IRC. |
39 | |
40 | *leptonica-1.72 (01 May 2015) |
41 | |
42 | |
43 | |
44 | |
45 | 1.1 media-libs/leptonica/leptonica-1.72-r1.ebuild |
46 | |
47 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/leptonica-1.72-r1.ebuild?rev=1.1&view=markup |
48 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/leptonica-1.72-r1.ebuild?rev=1.1&content-type=text/plain |
49 | |
50 | Index: leptonica-1.72-r1.ebuild |
51 | =================================================================== |
52 | # Copyright 1999-2015 Gentoo Foundation |
53 | # Distributed under the terms of the GNU General Public License v2 |
54 | # $Header: /var/cvsroot/gentoo-x86/media-libs/leptonica/leptonica-1.72-r1.ebuild,v 1.1 2015/05/02 15:59:06 chewi Exp $ |
55 | |
56 | EAPI=5 |
57 | |
58 | inherit autotools-multilib |
59 | |
60 | DESCRIPTION="C library for image processing and analysis" |
61 | HOMEPAGE="http://code.google.com/p/leptonica/" |
62 | SRC_URI="http://www.leptonica.com/source/${P}.tar.gz" |
63 | |
64 | LICENSE="Apache-2.0" |
65 | SLOT="0" |
66 | KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" |
67 | IUSE="gif jpeg jpeg2k png static-libs test tiff utils webp zlib" |
68 | |
69 | # N.B. Tests need some features enabled: |
70 | REQUIRED_USE="test? ( jpeg png tiff )" |
71 | |
72 | DEPEND="gif? ( media-libs/giflib:=[${MULTILIB_USEDEP}] ) |
73 | jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] ) |
74 | jpeg2k? ( media-libs/openjpeg:2=[${MULTILIB_USEDEP}] ) |
75 | png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] |
76 | sys-libs/zlib:=[${MULTILIB_USEDEP}] ) |
77 | tiff? ( media-libs/tiff:0=[${MULTILIB_USEDEP}] ) |
78 | webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] ) |
79 | zlib? ( sys-libs/zlib:=[${MULTILIB_USEDEP}] )" |
80 | RDEPEND="${DEPEND}" |
81 | |
82 | DOCS=( README version-notes ) |
83 | |
84 | src_prepare() { |
85 | # unhtmlize docs |
86 | local X |
87 | for X in ${DOCS[@]}; do |
88 | awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \ |
89 | "${X}.html" > "${X}" || die 'awk failed' |
90 | rm -f -- "${X}.html" |
91 | done |
92 | |
93 | # Don't spam /tmp. |
94 | sed -i -r 's/(#define\s+ADD_LEPTONICA_SUBDIR\s+)0/\11/' \ |
95 | src/environ.h || die |
96 | |
97 | autotools-utils_src_prepare |
98 | } |
99 | |
100 | multilib_src_configure() { |
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_with webp libwebp) |
108 | $(use_with zlib) |
109 | $(use_enable static-libs static) |
110 | $(multilib_native_use_enable utils programs) |
111 | ) |
112 | autotools-utils_src_configure |
113 | } |