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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Dec 20 05:29:30 2012 UTC (5 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +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.22.ebuild,v 1.4 2012/11/28 10:30:04 ssuominen Exp $
4
5 EAPI="4"
6
7 inherit autotools bash-completion-r1 eutils user systemd base toolchain-funcs
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="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
16 IUSE="doc examples +gusb +introspection scanner +udev vala"
17 REQUIRED_USE="vala? ( introspection )"
18
19 VALA_DEP="|| (
20 dev-lang/vala:0.18[vapigen]
21 >=dev-lang/vala-0.13.4:0.14[vapigen] )"
22 COMMON_DEPEND="
23 dev-db/sqlite:3
24 >=dev-libs/glib-2.28.0:2
25 >=media-libs/lcms-2.2:2
26 >=sys-auth/polkit-0.103
27 gusb? ( >=dev-libs/libgusb-0.1.1 )
28 introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
29 scanner? ( media-gfx/sane-backends )
30 udev? ( virtual/udev[gudev] )"
31 RDEPEND="${COMMON_DEPEND}
32 media-gfx/shared-color-profiles"
33 DEPEND="${COMMON_DEPEND}
34 dev-libs/libxslt
35 >=dev-util/intltool-0.35
36 >=sys-devel/gettext-0.17
37 virtual/pkgconfig
38 doc? (
39 app-text/docbook-xml-dtd:4.1.2
40 >=dev-util/gtk-doc-1.9 )
41 vala? ( ${VALA_DEP} )"
42
43 # FIXME: needs pre-installed dbus service files
44 RESTRICT="test"
45
46 DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO)
47
48 pkg_setup() {
49 enewgroup colord
50 enewuser colord -1 -1 /var/lib/colord colord
51 }
52
53 src_prepare() {
54 epatch "${FILESDIR}/${PN}-0.1.11-fix-automagic-vala.patch"
55 epatch "${FILESDIR}/${PN}-0.1.15-fix-automagic-libgusb.patch"
56
57 eautoreconf
58 }
59
60 src_configure() {
61 local vapigen
62 if has_version "dev-lang/vala:0.18"; then
63 vapigen="VAPIGEN=$(type -P vapigen-0.18)"
64 else
65 vapigen="VAPIGEN=$(type -P vapigen-0.14)"
66 fi
67
68 # Reverse tools require gusb
69 econf \
70 --disable-examples \
71 --disable-static \
72 --enable-polkit \
73 --disable-volume-search \
74 --with-daemon-user=colord \
75 --localstatedir="${EPREFIX}"/var \
76 $(use_enable doc gtk-doc) \
77 $(use_enable gusb) \
78 $(use_enable gusb reverse) \
79 $(use_enable introspection) \
80 $(use_enable scanner sane) \
81 $(use_enable udev gudev) \
82 $(use_enable vala) \
83 "$(systemd_with_unitdir)" \
84 ${vapigen}
85
86 # parallel make fails in doc/api
87 use doc && MAKEOPTS="${MAKEOPTS} -j1"
88 }
89
90 src_install() {
91 local udevdir=/lib/udev
92 use udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
93
94 base_src_install udevrulesdir="${udevdir}"/rules.d
95
96 newbashcomp client/colormgr-completion.bash colormgr
97 rm -vr "${ED}etc/bash_completion.d"
98
99 # Ensure config and profile directories exist and /var/lib/colord/*
100 # is writable by colord user
101 keepdir /var/lib/color{,d}/icc
102 fowners colord:colord /var/lib/colord{,/icc}
103
104 if use examples; then
105 insinto /usr/share/doc/${PF}/examples
106 doins examples/*.c
107 fi
108
109 prune_libtool_files
110 }

  ViewVC Help
Powered by ViewVC 1.1.13