Gentoo Archives: gentoo-commits

From: Dennis Lamm <expeditioneer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/colord/
Date: Fri, 08 Feb 2019 16:51:07
Message-Id: 1549644655.41203ca4f7c29d28869c40c71f0ad579ddf080b0.expeditioneer@gentoo
1 commit: 41203ca4f7c29d28869c40c71f0ad579ddf080b0
2 Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 8 16:50:33 2019 +0000
4 Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 8 16:50:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41203ca4
7
8 x11-misc/colord: version bump to 1.3.5
9
10 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 x11-misc/colord/Manifest | 1 +
14 x11-misc/colord/colord-1.3.5.ebuild | 161 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 162 insertions(+)
16
17 diff --git a/x11-misc/colord/Manifest b/x11-misc/colord/Manifest
18 index 8413f9c4242..74d5657adae 100644
19 --- a/x11-misc/colord/Manifest
20 +++ b/x11-misc/colord/Manifest
21 @@ -1 +1,2 @@
22 DIST colord-1.3.4.tar.xz 1259256 BLAKE2B 08e8ab5dfb9ed76078f8eb7191900109ccbb7dc3eec41d6baaa7e59998488de3062c34894a802d993ab76a2c3d9bdec3a5e07ceec441e5bb5333f2af3c3d3eb8 SHA512 5556cc12cc72bceefd075274a1734b884e88b1a0777f7efde15118cf5d1597aa12c44680bc814dd230f39f39c9ea2dd309bc79170b19ca782488b90cda631937
23 +DIST colord-1.3.5.tar.xz 1263488 BLAKE2B de70f3f76e81d3cec826f444e4c6a1603c03b7d97fedcd04a0b9e1977d1e487d7e1327c8b2738b3cf74e9717fb6803d543786c749d3a244faa1a6480e77e3436 SHA512 a0084ad2c08ae88c8023b8bade68f6cf25e13c77a6a37ef127b2914e86b06e6a7a783f9ab3585243d975dbbe1120d5daae13bdb586aefe519bf675458683025f
24
25 diff --git a/x11-misc/colord/colord-1.3.5.ebuild b/x11-misc/colord/colord-1.3.5.ebuild
26 new file mode 100644
27 index 00000000000..e4b2be75c42
28 --- /dev/null
29 +++ b/x11-misc/colord/colord-1.3.5.ebuild
30 @@ -0,0 +1,161 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
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 ~arm64 ~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=[${MULTILIB_USEDEP}]
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.104 )
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 +}