Magellan Linux

Contents of /trunk/extras/colord/colord-0.1.17-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11489 - (show annotations) (download)
Sat Mar 10 22:30:35 2012 UTC (12 years, 3 months ago) by niro
File size: 1863 byte(s)
-fixed package post/pre processing
1 # $Id$
2
3 PNAME="colord"
4 PVER="0.1.17"
5 PBUILD="r2"
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.30
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.14
25 >= sys-dev/gettext-0.18
26 >= sys-dev/autoconf-4
27 >= sys-dev/automake-3
28 >= dev-libs/gobject-introspection-1.30"
29
30 SRCFILE="${PNAME}-${PVER}.tar.xz"
31 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
32
33 sminclude mbuild mtools
34 msetfeature "!check"
35
36 SRC_URI=(
37 http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE}
38 mirror://${PNAME}/${SRCFILE}
39 mirror://${PNAME}/${PNAME}-${PVER}-build.patch
40 )
41
42 UP2DATE="updatecmd '${HOMEPAGE}/releases/?C=M;O=A' | lasttarball xz"
43
44 src_prepare()
45 {
46 munpack ${SRCFILE} || die
47 cd ${SRCDIR}
48
49 # fix compilation against <glib-2.31
50 mpatch ${PNAME}-${PVER}-build.patch || die
51 }
52
53 src_compile()
54 {
55 cd ${SRCDIR}
56
57 mconfigure \
58 --with-daemon-user=colord \
59 --with-systemdsystemunitdir=/usr/lib/systemd/system \
60 --enable-polkit \
61 --enable-gusb \
62 --enable-reverse \
63 --enable-introspection \
64 --enable-sane \
65 --enable-gudev \
66 --enable-vala \
67 --disable-schemas-compile \
68 --disable-examples \
69 --disable-volume-search \
70 --disable-rpath \
71 --disable-gtk-doc \
72 || die
73
74 # fixme
75 mmake VAPIGENFLAGS='--girdir="$(INTROSPECTION_GIRDIR)"' || die
76 }
77
78 preinstall()
79 {
80 # adding ssh user
81 ${MLIBDIR}/mgroupadd colord
82 ${MLIBDIR}/museradd -o "-g colord -d /var/lib/colord -s /bin/false" colord
83 }
84
85 postinstall()
86 {
87 mstartunit colord.service
88 }
89
90 postremove()
91 {
92 mstopunit colord.service
93 }