Contents of /branches/R11-stable/extras/colord/colord-0.1.26-r1.smage2
Parent Directory | Revision Log
Revision 15089 -
(show annotations)
(download)
Wed Jan 2 10:41:01 2013 UTC (11 years, 8 months ago) by niro
File size: 1900 byte(s)
Wed Jan 2 10:41:01 2013 UTC (11 years, 8 months ago) by niro
File size: 1900 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="colord" |
4 | PVER="0.1.26" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="x11-misc" |
8 | |
9 | DESCRIPTION="System service to accurately color manage input and output devices." |
10 | HOMEPAGE="http://www.freedesktop.org/software/colord/" |
11 | |
12 | DEPEND=">= dev-libs/glib2-2.34 |
13 | >= dev-db/sqlite-3.7 |
14 | >= media-libs/lcms2-2.3 |
15 | >= sys-fs/udev-181 |
16 | >= sys-apps/polkit-0.104 |
17 | >= dev-libs/libgusb-0.1.3 |
18 | >= media-gfx/sane-backends-1.0.22 |
19 | >= media-gfx/shared-color-profiles-0.1.5" |
20 | |
21 | SDEPEND=">= dev-libs/libxslt-1.1.26 |
22 | >= dev-util/intltool-0.50 |
23 | >= dev-util/pkgconfig-0.25 |
24 | >= dev-lang/vala-0.18 |
25 | >= sys-dev/gettext-0.18 |
26 | >= sys-dev/autoconf-4 |
27 | >= sys-dev/automake-3 |
28 | >= dev-libs/gobject-introspection-1.34" |
29 | |
30 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
31 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
32 | |
33 | sminclude multilib mtools |
34 | msetfeature "!check" |
35 | |
36 | SRC_URI=( |
37 | http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} |
38 | mirror://${PNAME}/${SRCFILE} |
39 | ) |
40 | |
41 | UP2DATE="updatecmd '${HOMEPAGE}/releases/?C=M;O=A' | lasttarball xz" |
42 | |
43 | src_prepare() |
44 | { |
45 | munpack ${SRCFILE} || die |
46 | |
47 | # fix udev dir location |
48 | all-abis 'sed -i "s:^\(udevrulesdir =\).*:\1 /usr/lib/udev:" rules/Makefile.{am,in} || die' |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | mconfigure \ |
54 | --libexecdir=/usr/'$(mlibdir)'/${PNAME} \ |
55 | --with-daemon-user=colord \ |
56 | --with-systemdsystemunitdir=/usr/lib/systemd/system \ |
57 | --enable-polkit \ |
58 | --enable-gusb \ |
59 | --enable-reverse \ |
60 | --enable-introspection \ |
61 | --enable-sane \ |
62 | --enable-gudev \ |
63 | --enable-vala \ |
64 | --disable-schemas-compile \ |
65 | --disable-examples \ |
66 | --disable-volume-search \ |
67 | --disable-rpath \ |
68 | --disable-gtk-doc \ |
69 | || die |
70 | |
71 | # fixme |
72 | mmake VAPIGENFLAGS="--girdir=$(pkg-config --variable=girdir gobject-introspection-1.0)" || die |
73 | } |
74 | |
75 | preinstall() |
76 | { |
77 | # adding ssh user |
78 | ${MLIBDIR}/mgroupadd colord |
79 | ${MLIBDIR}/museradd -o "-g colord -d /var/lib/colord -s /bin/false" colord |
80 | } |
81 | |
82 | postinstall() |
83 | { |
84 | mstartunit colord.service |
85 | } |
86 | |
87 | postremove() |
88 | { |
89 | mstopunit colord.service |
90 | } |