/[gentoo-x86]/x11-misc/colord/colord-0.1.18.ebuild
Gentoo

Contents of /x11-misc/colord/colord-0.1.18.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Thu Dec 20 05:29:30 2012 UTC (19 months, 1 week ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Version bump, with various improvements and systemd logind support. Scanners are now always supported via udev. Drop old. Update license and switch to global introspection flag.

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/colord-0.1.18.ebuild,v 1.10 2012/11/28 10:30:04 ssuominen Exp $
4
5 EAPI="4"
6
7 inherit autotools eutils user systemd base
8
9 DESCRIPTION="System service to accurately color manage input and output devices"
10 HOMEPAGE="http://www.freedesktop.org/software/colord/"
11 SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 arm ~mips ~ppc ~ppc64 x86 ~x86-fbsd"
16 IUSE="doc examples +gusb +introspection scanner +udev vala"
17
18 COMMON_DEPEND="
19 dev-db/sqlite:3
20 >=dev-libs/glib-2.28.0:2
21 >=media-libs/lcms-2.2:2
22 >=sys-auth/polkit-0.103
23 gusb? ( >=dev-libs/libgusb-0.1.1 )
24 introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
25 scanner? ( media-gfx/sane-backends )
26 udev? ( virtual/udev[gudev] )
27 "
28 RDEPEND="${COMMON_DEPEND}
29 media-gfx/shared-color-profiles"
30 DEPEND="${COMMON_DEPEND}
31 dev-libs/libxslt
32 >=dev-util/intltool-0.35
33 virtual/pkgconfig
34 >=sys-devel/gettext-0.17
35 doc? (
36 app-text/docbook-xml-dtd:4.1.2
37 >=dev-util/gtk-doc-1.9
38 )
39 vala? ( dev-lang/vala:0.14[vapigen] )
40 "
41
42 # FIXME: needs pre-installed dbus service files
43 RESTRICT="test"
44
45 DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO)
46
47 pkg_setup() {
48 enewgroup colord
49 enewuser colord -1 -1 /var/lib/colord colord
50 }
51
52 src_prepare() {
53 epatch "${FILESDIR}/${PN}-0.1.11-fix-automagic-vala.patch"
54 epatch "${FILESDIR}/${PN}-0.1.15-fix-automagic-libgusb.patch"
55
56 eautoreconf
57 }
58
59 src_configure() {
60 # Reverse tools require gusb
61 econf \
62 --disable-examples \
63 --disable-static \
64 --enable-polkit \
65 --disable-volume-search \
66 --with-daemon-user=colord \
67 --localstatedir="${EPREFIX}"/var \
68 $(use_enable doc gtk-doc) \
69 $(use_enable gusb) \
70 $(use_enable gusb reverse) \
71 $(use_enable introspection) \
72 $(use_enable scanner sane) \
73 $(use_enable udev gudev) \
74 $(use_enable vala) \
75 $(systemd_with_unitdir) \
76 VAPIGEN=$(type -p vapigen-0.14)
77 # parallel make fails in doc/api
78 use doc && MAKEOPTS="${MAKEOPTS} -j1"
79 }
80
81 src_install() {
82 base_src_install
83
84 # Ensure config and profile directories exist and /var/lib/colord/*
85 # is writable by colord user
86 keepdir /var/lib/color{,d}/icc
87 fowners colord:colord /var/lib/colord{,/icc}
88
89 if use examples; then
90 insinto /usr/share/doc/${PF}/examples
91 doins examples/*.c
92 fi
93
94 find "${D}" -name "*.la" -delete || die
95 }

  ViewVC Help
Powered by ViewVC 1.1.20