Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/colord: colord-1.2.11.ebuild ChangeLog
Date: Sun, 05 Jul 2015 08:43:54
Message-Id: 20150705084340.176D7753@oystercatcher.gentoo.org
1 pacho 15/07/05 08:43:40
2
3 Modified: ChangeLog
4 Added: colord-1.2.11.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.103 x11-misc/colord/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?rev=1.103&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?rev=1.103&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?r1=1.102&r2=1.103
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v
20 retrieving revision 1.102
21 retrieving revision 1.103
22 diff -u -r1.102 -r1.103
23 --- ChangeLog 26 Jun 2015 09:24:25 -0000 1.102
24 +++ ChangeLog 5 Jul 2015 08:43:40 -0000 1.103
25 @@ -1,6 +1,11 @@
26 # ChangeLog for x11-misc/colord
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.102 2015/06/26 09:24:25 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.103 2015/07/05 08:43:40 pacho Exp $
30 +
31 +*colord-1.2.11 (05 Jul 2015)
32 +
33 + 05 Jul 2015; Pacho Ramos <pacho@g.o> +colord-1.2.11.ebuild:
34 + Version bump
35
36 26 Jun 2015; Agostino Sarubbo <ago@g.o> colord-1.2.10.ebuild:
37 Stable for x86, wrt bug #551814
38
39
40
41 1.1 x11-misc/colord/colord-1.2.11.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/colord-1.2.11.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/colord-1.2.11.ebuild?rev=1.1&content-type=text/plain
45
46 Index: colord-1.2.11.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/colord-1.2.11.ebuild,v 1.1 2015/07/05 08:43:40 pacho Exp $
51
52 EAPI="5"
53 GCONF_DEBUG="no"
54 GNOME2_LA_PUNT="yes"
55 VALA_USE_DEPEND="vapigen"
56
57 inherit autotools bash-completion-r1 check-reqs eutils gnome2 user systemd udev vala multilib-minimal
58
59 DESCRIPTION="System service to accurately color manage input and output devices"
60 HOMEPAGE="http://www.freedesktop.org/software/colord/"
61 SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz"
62
63 LICENSE="GPL-2+"
64 SLOT="0/2" # subslot = libcolord soname version
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
66
67 # We prefer policykit enabled by default, bug #448058
68 IUSE="argyllcms examples extra-print-profiles +gusb +introspection +policykit scanner systemd +udev vala"
69 REQUIRED_USE="
70 gusb? ( udev )
71 scanner? ( udev )
72 vala? ( introspection )
73 "
74
75 COMMON_DEPEND="
76 dev-db/sqlite:3=
77 >=dev-libs/glib-2.36:2[${MULTILIB_USEDEP}]
78 >=media-libs/lcms-2.6:2=[${MULTILIB_USEDEP}]
79 argyllcms? ( media-gfx/argyllcms )
80 gusb? ( >=dev-libs/libgusb-0.2.2[introspection?,${MULTILIB_USEDEP}] )
81 introspection? ( >=dev-libs/gobject-introspection-0.9.8:= )
82 policykit? ( >=sys-auth/polkit-0.103 )
83 scanner? (
84 media-gfx/sane-backends
85 sys-apps/dbus )
86 systemd? ( >=sys-apps/systemd-44:0= )
87 udev? (
88 virtual/udev
89 virtual/libgudev:=
90 virtual/libudev:=[${MULTILIB_USEDEP}]
91 )
92 "
93 RDEPEND="${COMMON_DEPEND}
94 !media-gfx/shared-color-profiles
95 !<=media-gfx/colorhug-client-0.1.13
96 "
97 DEPEND="${COMMON_DEPEND}
98 dev-libs/libxslt
99 >=dev-util/gtk-doc-am-1.9
100 >=dev-util/intltool-0.35
101 >=sys-devel/gettext-0.17
102 virtual/pkgconfig[${MULTILIB_USEDEP}]
103 extra-print-profiles? ( media-gfx/argyllcms )
104 vala? ( $(vala_depend) )
105 "
106
107 # FIXME: needs pre-installed dbus service files
108 RESTRICT="test"
109
110 # According to upstream comment in colord.spec.in, building the extra print
111 # profiles requires >=4G of memory
112 CHECKREQS_MEMORY="4G"
113
114 pkg_pretend() {
115 use extra-print-profiles && check-reqs_pkg_pretend
116 }
117
118 pkg_setup() {
119 use extra-print-profiles && check-reqs_pkg_setup
120 enewgroup colord
121 enewuser colord -1 -1 /var/lib/colord colord
122 }
123
124 src_prepare() {
125 # Adapt to Gentoo paths
126 sed -i -e 's/spotread/argyll-spotread/' \
127 src/sensors/cd-sensor-argyll.c \
128 configure.ac || die
129
130 eautoreconf
131 use vala && vala_src_prepare
132 gnome2_src_prepare
133 }
134
135 multilib_src_configure() {
136 # Reverse tools require gusb
137 # bash-completion test does not work on gentoo
138 local myconf=(
139 --disable-bash-completion
140 --disable-examples
141 --disable-static
142 --enable-libcolordcompat
143 --with-daemon-user=colord
144 --localstatedir="${EPREFIX}"/var
145 $(multilib_native_use_enable argyllcms argyllcms-sensor)
146 $(multilib_native_use_enable extra-print-profiles print-profiles)
147 $(multilib_native_usex extra-print-profiles COLPROF="$(type -P argyll-colprof)" "")
148 $(use_enable gusb)
149 $(multilib_native_use_enable gusb reverse)
150 $(multilib_native_use_enable introspection)
151 $(multilib_native_use_enable policykit polkit)
152 $(multilib_native_use_enable scanner sane)
153 $(multilib_native_use_enable systemd systemd-login)
154 $(use_enable udev)
155 --with-udevrulesdir="$(get_udevdir)"/rules.d
156 $(multilib_native_use_enable vala)
157 "$(systemd_with_unitdir)"
158 )
159
160 if ! multilib_is_native_abi; then
161 # disable some extraneous checks
162 myconf+=(
163 SQLITE_{CFLAGS,LIBS}=' '
164 GUDEV_{CFLAGS,LIBS}=' '
165 )
166 fi
167
168 ECONF_SOURCE=${S} \
169 gnome2_src_configure "${myconf[@]}"
170 }
171
172 multilib_src_compile() {
173 if multilib_is_native_abi; then
174 gnome2_src_compile
175 else
176 emake -C lib/colord
177 use gusb && emake -C lib/colorhug
178 emake -C lib/compat
179 fi
180 }
181
182 multilib_src_test() {
183 if multilib_is_native_abi; then
184 default
185 else
186 emake -C lib/colord check
187 use gusb && emake -C lib/colorhug check
188 emake -C lib/compat check
189 fi
190 }
191
192 multilib_src_install() {
193 if multilib_is_native_abi; then
194 gnome2_src_install
195 else
196 gnome2_src_install -C lib/colord
197 use gusb && gnome2_src_install -C lib/colorhug
198 gnome2_src_install -C lib/compat
199 gnome2_src_install -C contrib/session-helper install-libcolord_includeHEADERS
200 fi
201 }
202
203 multilib_src_install_all() {
204 DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README.md TODO"
205 einstalldocs
206
207 newbashcomp data/colormgr colormgr
208
209 # Ensure config and profile directories exist and /var/lib/colord/*
210 # is writable by colord user
211 keepdir /var/lib/color{,d}/icc
212 fowners colord:colord /var/lib/colord{,/icc}
213
214 if use examples; then
215 docinto examples
216 dodoc examples/*.c
217 fi
218 }