Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: x11-misc/colord/
Date: Tue, 12 Jul 2011 04:40:04
Message-Id: 7d719c43822108382a28568dc85a9c092ceb5007.tetromino@gentoo
1 commit: 7d719c43822108382a28568dc85a9c092ceb5007
2 Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 12 04:30:30 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Tue Jul 12 04:35:38 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=7d719c43
7
8 x11-misc/colord: 0.1.9 → 0.1.10 + live ebuild
9
10 Version bump. Add doc and examples USE flags. Add a live ebuild (which
11 has optional introspection and vala support).
12
13 ---
14 x11-misc/colord/colord-0.1.10.ebuild | 84 ++++++++++++++++++++++++++++++
15 x11-misc/colord/colord-0.1.9.ebuild | 54 --------------------
16 x11-misc/colord/colord-9999.ebuild | 93 ++++++++++++++++++++++++++++++++++
17 3 files changed, 177 insertions(+), 54 deletions(-)
18
19 diff --git a/x11-misc/colord/colord-0.1.10.ebuild b/x11-misc/colord/colord-0.1.10.ebuild
20 new file mode 100644
21 index 0000000..8f6a168
22 --- /dev/null
23 +++ b/x11-misc/colord/colord-0.1.10.ebuild
24 @@ -0,0 +1,84 @@
25 +# Copyright 1999-2011 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Header: $
28 +
29 +EAPI="4"
30 +
31 +inherit base
32 +if [[ ${PV} = 9999 ]]; then
33 + GCONF_DEBUG="no"
34 + inherit gnome2-live # need all the hacks from gnome2-live_src_prepare
35 +fi
36 +
37 +DESCRIPTION="System service to accurately color manage input and output devices"
38 +HOMEPAGE="http://colord.hughsie.com/"
39 +if [[ ${PV} = 9999 ]]; then
40 + EGIT_REPO_URI="git://gitorious.org/colord/master.git"
41 +else
42 + SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz"
43 +fi
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +if [[ ${PV} = 9999 ]]; then
48 + KEYWORDS=""
49 +else
50 + KEYWORDS="~amd64 ~x86"
51 +fi
52 +IUSE="doc examples scanner +udev"
53 +
54 +# XXX: raise to libusb-1.0.9:1 when available
55 +COMMON_DEPEND="
56 + dev-db/sqlite:3
57 + >=dev-libs/glib-2.28.0:2
58 + >=dev-libs/libusb-1.0.8:1
59 + >=media-libs/lcms-2.2:2
60 + >=sys-auth/polkit-0.97
61 + scanner? ( media-gfx/sane-backends )
62 + udev? ( || ( sys-fs/udev[gudev] sys-fs/udev[extras] ) )
63 +"
64 +RDEPEND="${COMMON_DEPEND}
65 + media-gfx/shared-color-profiles"
66 +DEPEND="${COMMON_DEPEND}
67 + app-text/docbook-sgml-utils
68 + dev-libs/libxslt
69 + >=dev-util/intltool-0.35
70 + dev-util/pkgconfig
71 + >=sys-devel/gettext-0.17
72 + doc? (
73 + app-text/docbook-xml-dtd:4.1.2
74 + >=dev-util/gtk-doc-1.9
75 + )
76 +"
77 +
78 +# FIXME: needs pre-installed dbus service files
79 +RESTRICT="test"
80 +
81 +DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO)
82 +
83 +src_configure() {
84 + econf \
85 + --disable-examples \
86 + --disable-static \
87 + --enable-polkit \
88 + --enable-reverse \
89 + $(use_enable doc gtk-doc) \
90 + $(use_enable scanner sane) \
91 + $(use_enable udev gudev)
92 + # parallel make fails in doc/api
93 + use doc && MAKEOPTS=-j1
94 +}
95 +
96 +src_install() {
97 + base_src_install
98 +
99 + # additional documentation files not included in tarball releases
100 + [[ ${PV} = 9999 ]] && use doc && dodoc doc/*.txt doc/*.svg
101 +
102 + if use examples; then
103 + insinto /usr/share/doc/${PF}/examples
104 + doins examples/*.c
105 + fi
106 +
107 + find "${D}" -name "*.la" -delete
108 +}
109
110 diff --git a/x11-misc/colord/colord-0.1.9.ebuild b/x11-misc/colord/colord-0.1.9.ebuild
111 deleted file mode 100644
112 index 1863ef0..0000000
113 --- a/x11-misc/colord/colord-0.1.9.ebuild
114 +++ /dev/null
115 @@ -1,54 +0,0 @@
116 -# Copyright 1999-2011 Gentoo Foundation
117 -# Distributed under the terms of the GNU General Public License v2
118 -# $Header: $
119 -
120 -EAPI="3"
121 -
122 -inherit base
123 -
124 -DESCRIPTION="System service to accurately color manage input and output devices"
125 -HOMEPAGE="http://colord.hughsie.com/"
126 -SRC_URI="http://people.freedesktop.org/~hughsient/releases/${P}.tar.xz"
127 -
128 -LICENSE="GPL-2"
129 -SLOT="0"
130 -KEYWORDS="~amd64 ~x86"
131 -IUSE="scanner +udev"
132 -
133 -# XXX: raise to libusb-1.0.9:1 when available
134 -RDEPEND="
135 - dev-db/sqlite:3
136 - >=dev-libs/glib-2.28.0:2
137 - >=dev-libs/libusb-1.0.8:1
138 - >=media-libs/lcms-2.2:2
139 - >=sys-auth/polkit-0.97
140 - scanner? ( media-gfx/sane-backends )
141 - udev? ( || ( sys-fs/udev[gudev] sys-fs/udev[extras] ) )
142 -"
143 -DEPEND="${RDEPEND}
144 - app-text/docbook-sgml-utils
145 - dev-libs/libxslt
146 - >=dev-util/intltool-0.35
147 - dev-util/pkgconfig
148 - >=sys-devel/gettext-0.17
149 -"
150 -
151 -# FIXME: needs pre-installed dbus service files
152 -RESTRICT="test"
153 -
154 -DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO)
155 -
156 -src_configure() {
157 - econf \
158 - --disable-examples \
159 - --disable-static \
160 - --enable-polkit \
161 - --enable-reverse \
162 - $(use_enable scanner sane) \
163 - $(use_enable udev gudev)
164 -}
165 -
166 -src_install() {
167 - base_src_install
168 - find "${D}" -name "*.la" -delete
169 -}
170
171 diff --git a/x11-misc/colord/colord-9999.ebuild b/x11-misc/colord/colord-9999.ebuild
172 new file mode 100644
173 index 0000000..5acd534
174 --- /dev/null
175 +++ b/x11-misc/colord/colord-9999.ebuild
176 @@ -0,0 +1,93 @@
177 +# Copyright 1999-2011 Gentoo Foundation
178 +# Distributed under the terms of the GNU General Public License v2
179 +# $Header: $
180 +
181 +EAPI="4"
182 +
183 +inherit base
184 +if [[ ${PV} = 9999 ]]; then
185 + GCONF_DEBUG="no"
186 + inherit gnome2-live # need all the hacks from gnome2-live_src_prepare
187 +fi
188 +
189 +DESCRIPTION="System service to accurately color manage input and output devices"
190 +HOMEPAGE="http://colord.hughsie.com/"
191 +if [[ ${PV} = 9999 ]]; then
192 + EGIT_REPO_URI="git://gitorious.org/colord/master.git"
193 +else
194 + SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz"
195 +fi
196 +
197 +LICENSE="GPL-2"
198 +SLOT="0"
199 +if [[ ${PV} = 9999 ]]; then
200 + KEYWORDS=""
201 +else
202 + KEYWORDS="~amd64 ~x86"
203 +fi
204 +IUSE="doc examples +introspection scanner +udev vala"
205 +
206 +# XXX: raise to libusb-1.0.9:1 when available
207 +COMMON_DEPEND="
208 + dev-db/sqlite:3
209 + >=dev-libs/glib-2.28.0:2
210 + >=dev-libs/libusb-1.0.8:1
211 + >=media-libs/lcms-2.2:2
212 + >=sys-auth/polkit-0.97
213 + introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
214 + scanner? ( media-gfx/sane-backends )
215 + udev? ( || ( sys-fs/udev[gudev] sys-fs/udev[extras] ) )
216 +"
217 +RDEPEND="${COMMON_DEPEND}
218 + media-gfx/shared-color-profiles"
219 +DEPEND="${COMMON_DEPEND}
220 + app-text/docbook-sgml-utils
221 + dev-libs/libxslt
222 + >=dev-util/intltool-0.35
223 + dev-util/pkgconfig
224 + >=sys-devel/gettext-0.17
225 + doc? (
226 + app-text/docbook-xml-dtd:4.1.2
227 + >=dev-util/gtk-doc-1.9
228 + )
229 + vala? ( dev-lang/vala:0.12 )
230 +"
231 +
232 +# FIXME: needs pre-installed dbus service files
233 +RESTRICT="test"
234 +
235 +DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO)
236 +
237 +src_configure() {
238 + if use vala; then
239 + if use introspection; then
240 + export VAPIGEN=$(type -p vapigen-0.12)
241 + else
242 + ewarn "Vala bindings cannot be built because the introspection USE flag is disabled"
243 + fi
244 + fi
245 + econf \
246 + --disable-examples \
247 + --disable-static \
248 + --enable-polkit \
249 + --enable-reverse \
250 + $(use_enable doc gtk-doc) \
251 + $(use_enable scanner sane) \
252 + $(use_enable udev gudev)
253 + # parallel make fails in doc/api
254 + use doc && MAKEOPTS=-j1
255 +}
256 +
257 +src_install() {
258 + base_src_install
259 +
260 + # additional documentation files not included in tarball releases
261 + [[ ${PV} = 9999 ]] && use doc && dodoc doc/*.txt doc/*.svg
262 +
263 + if use examples; then
264 + insinto /usr/share/doc/${PF}/examples
265 + doins examples/*.c
266 + fi
267 +
268 + find "${D}" -name "*.la" -delete
269 +}