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

Contents of /x11-misc/colord/colord-0.1.21-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Aug 10 17:46:05 2012 UTC (2 years, 9 months ago) by ssuominen
Branch: MAIN
Changes since 1.2: +4 -4 lines
typo

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 ssuominen 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/colord-0.1.21-r1.ebuild,v 1.2 2012/08/10 17:11:37 ssuominen Exp $
4 ssuominen 1.1
5     EAPI="4"
6    
7 ssuominen 1.2 inherit autotools bash-completion-r1 eutils user systemd base toolchain-funcs
8 ssuominen 1.1
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 ~hppa ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
16     IUSE="doc examples gtk +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     gtk? (
24     x11-libs/gdk-pixbuf:2[introspection?]
25     x11-libs/gtk+:3[introspection?] )
26     gusb? ( >=dev-libs/libgusb-0.1.1 )
27     introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
28     scanner? ( media-gfx/sane-backends )
29     udev? ( || ( sys-fs/udev[gudev] sys-fs/udev[extras] ) )
30     "
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     virtual/pkgconfig
37     >=sys-devel/gettext-0.17
38     doc? (
39     app-text/docbook-xml-dtd:4.1.2
40     >=dev-util/gtk-doc-1.9
41     )
42     vala? ( dev-lang/vala:0.14[vapigen] )
43     "
44    
45     # FIXME: needs pre-installed dbus service files
46     RESTRICT="test"
47    
48     DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO)
49    
50     pkg_setup() {
51     enewgroup colord
52     enewuser colord -1 -1 /var/lib/colord colord
53     }
54    
55     src_prepare() {
56     epatch "${FILESDIR}/${PN}-0.1.11-fix-automagic-vala.patch"
57     epatch "${FILESDIR}/${PN}-0.1.15-fix-automagic-libgusb.patch"
58    
59     eautoreconf
60     }
61    
62     src_configure() {
63     # Reverse tools require gusb
64     econf \
65     --disable-examples \
66     --disable-static \
67     --enable-polkit \
68     --disable-volume-search \
69     --with-daemon-user=colord \
70     --localstatedir="${EPREFIX}"/var \
71     $(use_enable doc gtk-doc) \
72     $(use_enable gtk) \
73     $(use_enable gusb) \
74     $(use_enable gusb reverse) \
75     $(use_enable introspection) \
76     $(use_enable scanner sane) \
77     $(use_enable udev gudev) \
78     $(use_enable vala) \
79     "$(systemd_with_unitdir)" \
80     VAPIGEN=$(type -p vapigen-0.14)
81     # parallel make fails in doc/api
82     use doc && MAKEOPTS="${MAKEOPTS} -j1"
83     }
84    
85     src_install() {
86 ssuominen 1.3 local udevdir=/lib/udev
87     use udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
88 ssuominen 1.1
89 ssuominen 1.3 base_src_install udevrulesdir="${udevdir}"/rules.d
90 ssuominen 1.1
91     newbashcomp client/colormgr-completion.bash colormgr
92     rm -vr "${ED}etc/bash_completion.d"
93    
94     # Ensure config and profile directories exist and /var/lib/colord/*
95     # is writable by colord user
96     keepdir /var/lib/color{,d}/icc
97     fowners colord:colord /var/lib/colord{,/icc}
98    
99     if use examples; then
100     insinto /usr/share/doc/${PF}/examples
101     doins examples/*.c
102     fi
103    
104     prune_libtool_files
105     }

  ViewVC Help
Powered by ViewVC 1.1.20