Contents of /branches/R11-stable/extras/upower/upower-0.9.23-r1.smage2
Parent Directory | Revision Log
Revision 22828 -
(show annotations)
(download)
Tue Oct 28 08:54:25 2014 UTC (9 years, 11 months ago) by niro
File size: 1680 byte(s)
Tue Oct 28 08:54:25 2014 UTC (9 years, 11 months ago) by niro
File size: 1680 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="upower" |
4 | PVER="0.9.23" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="D-Bus abstraction for enumerating power devices and querying history and statistics." |
10 | HOMEPAGE="http://upower.freedesktop.org/" |
11 | |
12 | DEPEND=">= dev-libs/glib2-2.42 |
13 | >= sys-apps/dbus-1.8 |
14 | >= dev-libs/dbus-glib-0.102 |
15 | >= sys-fs/udev-216 |
16 | >= sys-apps/polkit-0.112 |
17 | >= dev-libs/libusb-1 |
18 | >= sys-apps/pm-utils-1.4" |
19 | |
20 | SDEPEND=">= app-arch/xz-utils-5 |
21 | >= dev-util/pkgconfig-0.25 |
22 | >= dev-util/intltool-0.50 |
23 | >= dev-libs/libxslt-1.1.26 |
24 | >= dev-libs/gobject-introspection-1.42 |
25 | >= app-text/docbook-xml-dtd41-4.1 |
26 | >= app-text/docbook-xsl-stylesheets-1.75" |
27 | |
28 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
29 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
30 | |
31 | sminclude mtools mbuild udev |
32 | |
33 | SRC_URI=( |
34 | http://upower.freedesktop.org/releases/${SRCFILE} |
35 | mirror://${PNAME}/${SRCFILE} |
36 | ) |
37 | |
38 | UP2DATE="updatecmd_freedesktop ${PNAME} xz" |
39 | |
40 | pkg_setup() |
41 | { |
42 | preinstall |
43 | } |
44 | |
45 | src_prepare() |
46 | { |
47 | munpack ${SRCFILE} || die |
48 | cd ${SRCDIR} |
49 | |
50 | sed -i -e '/DISABLE_DEPRECATED/d' configure || die |
51 | # fix udev dir location |
52 | sed -i "s:^\(udevrulesdir =\).*:\1 $(mget-udev-dir):" rules/Makefile.{am,in} || die |
53 | } |
54 | |
55 | src_compile() |
56 | { |
57 | cd ${SRCDIR} |
58 | |
59 | mconfigure \ |
60 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
61 | --localstatedir=/var \ |
62 | --with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \ |
63 | --with-backend=linux \ |
64 | --disable-verbose-mode \ |
65 | --enable-man-pages \ |
66 | --enable-introspection \ |
67 | --disable-gtk-doc \ |
68 | --disable-tests \ |
69 | --enable-deprecated \ |
70 | || die |
71 | |
72 | mmake || die |
73 | } |
74 | |
75 | src_install() |
76 | { |
77 | cd ${SRCDIR} |
78 | mmake DESTDIR=${BINDIR} install || die |
79 | minstalldocs COPYING ChangeLog NEWS README TODO || die |
80 | } |
81 | |
82 | preinstall() |
83 | { |
84 | # adds plugdev group |
85 | mgroupadd -o "-g 302" plugdev |
86 | } |