Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/colord/
Date: Sun, 03 Jul 2016 17:01:49
Message-Id: 1467565293.b0a3b6010f1406fe8f51d3509455640625e0d33d.pacho@gentoo
1 commit: b0a3b6010f1406fe8f51d3509455640625e0d33d
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 3 17:00:26 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 17:01:33 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0a3b601
7
8 x11-misc/colord: Version bump
9
10 Package-Manager: portage-2.3.0_rc1
11
12 x11-misc/colord/Manifest | 1 +
13 x11-misc/colord/colord-1.3.2.ebuild | 162 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 163 insertions(+)
15
16 diff --git a/x11-misc/colord/Manifest b/x11-misc/colord/Manifest
17 index 0bd482b..71e0dd5 100644
18 --- a/x11-misc/colord/Manifest
19 +++ b/x11-misc/colord/Manifest
20 @@ -1 +1,2 @@
21 DIST colord-1.2.12.tar.xz 1214992 SHA256 d5241864c16a37f9e40d38d5009255456495a67f170ce0dc9250774442d68c3a SHA512 5ce8f4fd10b92ec0cb54a05017ab050753381663a43e40d959606bb5f71ddce5456a3d67f8ce0538a2c945136834c66615f3615fdfb3e1eaaf5f5ca7a9e9c4eb WHIRLPOOL 5b04acfc8de34758252f0215371f75b9ccab8f80194a9624d6b4c3651929266032f3e9e1e05b48fb82572891e93d6082739c022b2624978b0f8ece7e323e1b48
22 +DIST colord-1.3.2.tar.xz 1235968 SHA256 d4ab3f11ec5e98d1079242fda7ad0a84a51da93572405561362a6ce2c274b8f5 SHA512 c45780a70ce71009536a2ed51fc0b063b81d31e6168e8ce42a5d0b0d2bcf596558aa909ae247b12d6d92c1cdeb3fd0d69ea497ca1dc4717bce90eb87c2dfafeb WHIRLPOOL 473365bd595d3f425a678f0b11dc198592206fdcb4781e1bd3454a3c6d5c645c145ee3f39ebaa7844b3ac56e200d758f98434f8655f260e2b6bfa81c6c2db9c7
23
24 diff --git a/x11-misc/colord/colord-1.3.2.ebuild b/x11-misc/colord/colord-1.3.2.ebuild
25 new file mode 100644
26 index 0000000..29e5e54
27 --- /dev/null
28 +++ b/x11-misc/colord/colord-1.3.2.ebuild
29 @@ -0,0 +1,162 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +GNOME2_LA_PUNT="yes"
36 +VALA_USE_DEPEND="vapigen"
37 +
38 +inherit autotools bash-completion-r1 check-reqs gnome2 user systemd udev vala multilib-minimal
39 +
40 +DESCRIPTION="System service to accurately color manage input and output devices"
41 +HOMEPAGE="https://www.freedesktop.org/software/colord/"
42 +SRC_URI="https://www.freedesktop.org/software/colord/releases/${P}.tar.xz"
43 +
44 +LICENSE="GPL-2+"
45 +SLOT="0/2" # subslot = libcolord soname version
46 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
47 +
48 +# We prefer policykit enabled by default, bug #448058
49 +IUSE="argyllcms examples extra-print-profiles +gusb +introspection +policykit scanner systemd +udev vala"
50 +REQUIRED_USE="
51 + gusb? ( udev )
52 + scanner? ( udev )
53 + vala? ( introspection )
54 +"
55 +
56 +COMMON_DEPEND="
57 + dev-db/sqlite:3=
58 + >=dev-libs/glib-2.44.0:2[${MULTILIB_USEDEP}]
59 + >=media-libs/lcms-2.6:2=[${MULTILIB_USEDEP}]
60 + argyllcms? ( media-gfx/argyllcms )
61 + gusb? ( >=dev-libs/libgusb-0.2.7[introspection?,${MULTILIB_USEDEP}] )
62 + introspection? ( >=dev-libs/gobject-introspection-0.9.8:= )
63 + policykit? ( >=sys-auth/polkit-0.103 )
64 + scanner? (
65 + media-gfx/sane-backends
66 + sys-apps/dbus )
67 + systemd? ( >=sys-apps/systemd-44:0= )
68 + udev? (
69 + virtual/udev
70 + virtual/libgudev:=[${MULTILIB_USEDEP}]
71 + virtual/libudev:=[${MULTILIB_USEDEP}]
72 + )
73 +"
74 +RDEPEND="${COMMON_DEPEND}
75 + !media-gfx/shared-color-profiles
76 + !<=media-gfx/colorhug-client-0.1.13
77 +"
78 +DEPEND="${COMMON_DEPEND}
79 + dev-libs/libxslt
80 + >=dev-util/gtk-doc-am-1.9
81 + >=dev-util/intltool-0.35
82 + >=sys-devel/gettext-0.17
83 + virtual/pkgconfig[${MULTILIB_USEDEP}]
84 + extra-print-profiles? ( media-gfx/argyllcms )
85 + vala? ( $(vala_depend) )
86 +"
87 +
88 +# FIXME: needs pre-installed dbus service files
89 +RESTRICT="test"
90 +
91 +# According to upstream comment in colord.spec.in, building the extra print
92 +# profiles requires >=4G of memory
93 +CHECKREQS_MEMORY="4G"
94 +
95 +pkg_pretend() {
96 + use extra-print-profiles && check-reqs_pkg_pretend
97 +}
98 +
99 +pkg_setup() {
100 + use extra-print-profiles && check-reqs_pkg_setup
101 + enewgroup colord
102 + enewuser colord -1 -1 /var/lib/colord colord
103 +}
104 +
105 +src_prepare() {
106 + # Adapt to Gentoo paths
107 + sed -i -e 's/spotread/argyll-spotread/' \
108 + src/sensors/cd-sensor-argyll.c \
109 + configure.ac || die
110 +
111 + eautoreconf
112 + use vala && vala_src_prepare
113 + gnome2_src_prepare
114 + multilib_copy_sources
115 +}
116 +
117 +multilib_src_configure() {
118 + # Reverse tools require gusb
119 + # bash-completion test does not work on gentoo
120 + local myconf=(
121 + --disable-bash-completion
122 + --disable-examples
123 + --disable-static
124 + --enable-libcolordcompat
125 + --with-daemon-user=colord
126 + --localstatedir="${EPREFIX}"/var
127 + $(multilib_native_use_enable argyllcms argyllcms-sensor)
128 + $(multilib_native_use_enable extra-print-profiles print-profiles)
129 + $(multilib_native_usex extra-print-profiles COLPROF="$(type -P argyll-colprof)" "")
130 + $(use_enable gusb)
131 + $(multilib_native_use_enable gusb reverse)
132 + $(multilib_native_use_enable introspection)
133 + $(multilib_native_use_enable policykit polkit)
134 + $(multilib_native_use_enable scanner sane)
135 + $(multilib_native_use_enable systemd systemd-login)
136 + $(use_enable udev)
137 + --with-udevrulesdir="$(get_udevdir)"/rules.d
138 + $(multilib_native_use_enable vala)
139 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
140 + )
141 +
142 + ECONF_SOURCE=${S} \
143 + gnome2_src_configure "${myconf[@]}"
144 +}
145 +
146 +multilib_src_compile() {
147 + if multilib_is_native_abi; then
148 + gnome2_src_compile
149 + else
150 + emake -C lib/colord
151 + use gusb && emake -C lib/colorhug
152 + emake -C lib/compat
153 + fi
154 +}
155 +
156 +multilib_src_test() {
157 + if multilib_is_native_abi; then
158 + default
159 + else
160 + emake -C lib/colord check
161 + use gusb && emake -C lib/colorhug check
162 + emake -C lib/compat check
163 + fi
164 +}
165 +
166 +multilib_src_install() {
167 + if multilib_is_native_abi; then
168 + gnome2_src_install
169 + else
170 + gnome2_src_install -j1 -C lib/colord
171 + use gusb && gnome2_src_install -j1 -C lib/colorhug
172 + gnome2_src_install -j1 -C lib/compat
173 + gnome2_src_install -j1 -C contrib/session-helper install-libcolord_includeHEADERS
174 + fi
175 +}
176 +
177 +multilib_src_install_all() {
178 + einstalldocs
179 +
180 + newbashcomp data/colormgr colormgr
181 +
182 + # Ensure config and profile directories exist and /var/lib/colord/*
183 + # is writable by colord user
184 + keepdir /var/lib/color{,d}/icc
185 + fowners colord:colord /var/lib/colord{,/icc}
186 +
187 + if use examples; then
188 + docinto examples
189 + dodoc examples/*.c
190 + fi
191 +}