Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/colord: ChangeLog colord-0.1.14.ebuild colord-0.1.11.ebuild
Date: Wed, 02 Nov 2011 04:08:42
Message-Id: 20111102040830.9ED892004B@flycatcher.gentoo.org
1 tetromino 11/11/02 04:08:30
2
3 Modified: ChangeLog
4 Added: colord-0.1.14.ebuild
5 Removed: colord-0.1.11.ebuild
6 Log:
7 Bump. Notable changes: better colorimeter hardware support. Re-add automagic vala patch that somehow got lost at the 0.1.12 bump. Drop old.
8
9 (Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.6 x11-misc/colord/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?rev=1.6&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?rev=1.6&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?r1=1.5&r2=1.6
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v
21 retrieving revision 1.5
22 retrieving revision 1.6
23 diff -u -r1.5 -r1.6
24 --- ChangeLog 25 Oct 2011 13:24:15 -0000 1.5
25 +++ ChangeLog 2 Nov 2011 04:08:30 -0000 1.6
26 @@ -1,6 +1,13 @@
27 # ChangeLog for x11-misc/colord
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.5 2011/10/25 13:24:15 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.6 2011/11/02 04:08:30 tetromino Exp $
31 +
32 +*colord-0.1.14 (02 Nov 2011)
33 +
34 + 02 Nov 2011; Alexandre Rostovtsev <tetromino@g.o>
35 + -colord-0.1.11.ebuild, +colord-0.1.14.ebuild:
36 + Bump. Notable changes: better colorimeter hardware support. Re-add automagic
37 + vala patch that somehow got lost at the 0.1.12 bump. Drop old.
38
39 25 Oct 2011; Jeroen Roovers <jer@g.o> colord-0.1.13.ebuild:
40 Marked ~hppa (bug #387959).
41
42
43
44 1.1 x11-misc/colord/colord-0.1.14.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/colord-0.1.14.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/colord-0.1.14.ebuild?rev=1.1&content-type=text/plain
48
49 Index: colord-0.1.14.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/colord-0.1.14.ebuild,v 1.1 2011/11/02 04:08:30 tetromino Exp $
54
55 EAPI="4"
56
57 inherit autotools eutils base
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"
65 KEYWORDS="~amd64 ~hppa ~x86"
66 IUSE="doc examples +introspection scanner +udev vala"
67
68 # FIXME: raise to libusb-1.0.9:1 when available
69 COMMON_DEPEND="
70 dev-db/sqlite:3
71 >=dev-libs/glib-2.28.0:2
72 >=dev-libs/libusb-1.0.8:1
73 >=media-libs/lcms-2.2:2
74 introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
75 scanner? ( media-gfx/sane-backends )
76 udev? ( || ( sys-fs/udev[gudev] sys-fs/udev[extras] ) )
77 "
78 RDEPEND="${COMMON_DEPEND}
79 media-gfx/shared-color-profiles"
80 DEPEND="${COMMON_DEPEND}
81 dev-libs/libxslt
82 >=dev-util/intltool-0.35
83 dev-util/pkgconfig
84 >=sys-devel/gettext-0.17
85 doc? (
86 app-text/docbook-xml-dtd:4.1.2
87 >=dev-util/gtk-doc-1.9
88 )
89 vala? ( dev-lang/vala:0.14[vapigen] )
90 "
91
92 # FIXME: needs pre-installed dbus service files
93 RESTRICT="test"
94
95 DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO)
96
97 pkg_setup() {
98 enewgroup colord
99 enewuser colord -1 -1 /var/lib/colord colord
100 }
101
102 src_prepare() {
103 # Ubuntu patch to allow root and at_console to access colord without polkit;
104 # this behavior matches upstream default polkit settings.
105 epatch "${FILESDIR}/${PN}-0.1.13-use-dbus-security-for-permissions.patch"
106
107 epatch "${FILESDIR}/${PN}-0.1.11-fix-automagic-vala.patch"
108 eautoreconf
109 }
110
111 src_configure() {
112 # Disable polkit to allow registering devices when colord is running as
113 # non-root; https://bugs.launchpad.net/ubuntu/+source/colord/+bug/837851
114 econf \
115 --disable-examples \
116 --disable-static \
117 --disable-polkit \
118 --enable-reverse \
119 --disable-volume-search \
120 --with-daemon-user=colord \
121 --localstatedir="${EPREFIX}"/var \
122 $(use_enable doc gtk-doc) \
123 $(use_enable introspection) \
124 $(use_enable scanner sane) \
125 $(use_enable udev gudev) \
126 $(use_enable vala) \
127 VAPIGEN=$(type -p vapigen-0.14)
128 # parallel make fails in doc/api
129 use doc && MAKEOPTS=-j1
130 }
131
132 src_install() {
133 base_src_install
134
135 # Ensure config and profile directories exist and are writable
136 local d
137 for d in /var/lib/{color,colord}; do
138 keepdir "${d}"
139 fowners colord:colord "${d}"
140 done
141
142 if use examples; then
143 insinto /usr/share/doc/${PF}/examples
144 doins examples/*.c
145 fi
146
147 find "${D}" -name "*.la" -delete || die
148 }
149
150 pkg_postinst() {
151 # <=colord-0.1.11 ran as root and used /var/lib/lib/colord to store
152 # configuration files and /var/lib/lib/color for custom color profiles.
153 local old_dir="${EROOT}var/lib/lib/colord"
154 local new_dir="${EROOT}var/lib/colord"
155
156 if [[ -e "${old_dir}/mapping.db" || -e "${old_dir}/storage.db" ]] && \
157 ! [[ -e "${new_dir}/mapping.db" || -e "${new_dir}/storage.db" ]]; then
158 elog "Old colord configuration files are present in ${old_dir}. If you"
159 elog "are upgrading from colord-0.1.11 or older and had previously"
160 elog "customized your color management settings, you will need to copy"
161 elog "these files to ${new_dir} and then change the file ownership"
162 elog "to colord:colord :"
163 elog
164 elog " # cp ${old_dir}/*.db ${new_dir}"
165 elog " # chown colord:colord ${new_dir}/*.db"
166 elog
167 fi
168 old_dir="${EROOT}var/lib/lib/color"
169 new_dir="${EROOT}var/lib/color"
170 if [[ -e "${old_dir}/icc" && ! -e "${new_dir}/icc" ]]; then
171 elog "Old custom color profiles are present in ${old_dir}. If you are"
172 elog "upgrading from colord-0.1.11 or older, you will need to copy them"
173 elog "to ${new_dir} and then change the ownership to colord:colord :"
174 elog
175 elog " # cp -r ${old_dir}/icc ${new_dir}"
176 elog " # chown -R colord:colord ${new_dir}/icc"
177 elog
178 fi
179 }