Magellan Linux

Contents of /branches/magellan-next/core/upower/upower-0.9.12-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8345 - (show annotations) (download)
Fri Jul 15 00:24:14 2011 UTC (12 years, 9 months ago) by niro
File size: 1302 byte(s)
-fixed libexecdir
1 # $Id$
2
3 PNAME="upower"
4 PVER="0.9.12"
5 PBUILD="r2"
6
7 PCATEGORIE="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.28
13 >= sys-apps/dbus-1.4
14 >= dev-libs/dbus-glib-0.92
15 >= sys-fs/udev-171
16 >= sys-apps/polkit-0.101
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.41
23 >= dev-libs/libxslt-1.1.26
24 >= dev-libs/gobject-introspection-0.10
25 >= app-text/docbook-xsl-stylesheets-1.75"
26
27 SRCFILE="${PNAME}-${PVER}.tar.xz"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 sminclude mtools mbuild
31
32 SRC_URI=(
33 http://upower.freedesktop.org/releases/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 )
36
37 UP2DATE="updatecmd_freedesktop ${PNAME} xz"
38
39 src_prepare()
40 {
41 munpack ${SRCFILE} || die
42 cd ${SRCDIR}
43
44 sed -i -e '/DISABLE_DEPRECATED/d' configure || die
45 }
46
47 src_compile()
48 {
49 cd ${SRCDIR}
50
51 mconfigure \
52 --libexecdir=/usr/$(mlibdir)/${PNAME} \
53 --localstatedir=/var \
54 --with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \
55 --with-backend=linux \
56 --disable-static \
57 --disable-verbose-mode \
58 --enable-man-pages \
59 --enable-introspection \
60 --disable-gtk-doc \
61 --disable-tests \
62 || die
63
64 mmake || die
65 }