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-0.1.12.ebuild ChangeLog
Date: Wed, 28 Sep 2011 11:40:53
Message-Id: 20110928114040.D023520036@flycatcher.gentoo.org
1 pacho 11/09/28 11:40:40
2
3 Modified: ChangeLog
4 Added: colord-0.1.12.ebuild
5 Log:
6 Version bump that also runs as a different user than root. Thanks a lot to Alexandre Rostovtsev for doing all the work (bug #384607).
7
8 (Portage version: 2.1.10.19/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.2 x11-misc/colord/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?r1=1.1&r2=1.2
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- ChangeLog 14 Aug 2011 13:48:22 -0000 1.1
24 +++ ChangeLog 28 Sep 2011 11:40:40 -0000 1.2
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-misc/colord
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.1 2011/08/14 13:48:22 nirbheek Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.2 2011/09/28 11:40:40 pacho Exp $
30 +
31 +*colord-0.1.12 (28 Sep 2011)
32 +
33 + 28 Sep 2011; Pacho Ramos <pacho@g.o> +colord-0.1.12.ebuild:
34 + Version bump that also runs as a different user than root. Thanks a lot to
35 + Alexandre Rostovtsev for doing all the work (bug #384607).
36
37 *colord-0.1.11 (14 Aug 2011)
38
39
40
41
42 1.1 x11-misc/colord/colord-0.1.12.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/colord-0.1.12.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/colord-0.1.12.ebuild?rev=1.1&content-type=text/plain
46
47 Index: colord-0.1.12.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/colord-0.1.12.ebuild,v 1.1 2011/09/28 11:40:40 pacho Exp $
52
53 EAPI="4"
54
55 inherit eutils base
56
57 DESCRIPTION="System service to accurately color manage input and output devices"
58 HOMEPAGE="http://www.freedesktop.org/software/colord/"
59 SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="doc examples +introspection scanner +udev"
65
66 # FIXME: raise to libusb-1.0.9:1 when available
67 COMMON_DEPEND="
68 dev-db/sqlite:3
69 >=dev-libs/glib-2.28.0:2
70 >=dev-libs/libusb-1.0.8:1
71 >=media-libs/lcms-2.2:2
72 >=sys-auth/polkit-0.97
73 introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
74 scanner? ( media-gfx/sane-backends )
75 udev? ( || ( sys-fs/udev[gudev] sys-fs/udev[extras] ) )
76 "
77 RDEPEND="${COMMON_DEPEND}
78 media-gfx/shared-color-profiles"
79 # Automagic build-time vala dependency if USE=introspection
80 DEPEND="${COMMON_DEPEND}
81 app-text/docbook-sgml-utils
82 dev-libs/libxslt
83 >=dev-util/intltool-0.35
84 dev-util/pkgconfig
85 >=sys-devel/gettext-0.17
86 doc? (
87 app-text/docbook-xml-dtd:4.1.2
88 >=dev-util/gtk-doc-1.9
89 )
90 introspection? ( dev-lang/vala:0.14 )
91 "
92
93 # FIXME: needs pre-installed dbus service files
94 RESTRICT="test"
95
96 DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO)
97
98 pkg_setup() {
99 enewgroup colord
100 enewuser colord -1 -1 /var/lib/colord colord
101 }
102
103 src_configure() {
104 econf \
105 --disable-examples \
106 --disable-static \
107 --enable-polkit \
108 --enable-reverse \
109 --disable-volume-search \
110 --with-daemon-user=colord \
111 --localstatedir="${EPREFIX}"/var \
112 $(use_enable doc gtk-doc) \
113 $(use_enable introspection) \
114 $(use_enable scanner sane) \
115 $(use_enable udev gudev) \
116 VAPIGEN=$(type -p vapigen-0.14)
117 # parallel make fails in doc/api
118 use doc && MAKEOPTS=-j1
119 }
120
121 src_install() {
122 base_src_install
123
124 # Ensure config and profile directories exist and are writable
125 local d
126 for d in /var/lib/{color,colord}; do
127 keepdir "${d}"
128 fowners colord:colord "${d}"
129 done
130
131 if use examples; then
132 insinto /usr/share/doc/${PF}/examples
133 doins examples/*.c
134 fi
135
136 find "${D}" -name "*.la" -delete
137 }
138
139 pkg_postinst() {
140 # <=colord-0.1.11 ran as root and used /var/lib/lib/colord to store
141 # configuration files and /var/lib/lib/color for custom color profiles.
142 local old_dir="${EROOT}var/lib/lib/colord"
143 local new_dir="${EROOT}var/lib/colord"
144
145 if [[ -e "${old_dir}/mapping.db" || -e "${old_dir}/storage.db" ]] && \
146 ! [[ -e "${new_dir}/mapping.db" || -e "${new_dir}/storage.db" ]]; then
147 elog "Old colord configuration files are present in ${old_dir}. If you"
148 elog "are upgrading from colord-0.1.11 or older and had previously"
149 elog "customized your color management settings, you will need to copy"
150 elog "these files to ${new_dir} and then change the file ownership"
151 elog "to colord:colord :"
152 elog
153 elog " # cp ${old_dir}/*.db ${new_dir}"
154 elog " # chown colord:colord ${new_dir}/*.db"
155 elog
156 fi
157 old_dir="${EROOT}var/lib/lib/color"
158 new_dir="${EROOT}var/lib/color"
159 if [[ -e "${old_dir}/icc" && ! -e "${new_dir}/icc" ]]; then
160 elog "Old custom color profiles are present in ${old_dir}. If you are"
161 elog "upgrading from colord-0.1.11 or older, you will need to copy them"
162 elog "to ${new_dir} and then change the ownership to colord:colord :"
163 elog
164 elog " # cp -r ${old_dir}/icc ${new_dir}"
165 elog " # chown -R colord:colord ${new_dir}/icc"
166 elog
167 fi
168 }