Contents of /branches/magellan-next/core/upower/upower-0.9.12-r1.smage2
Parent Directory | Revision Log
Revision 8222 -
(show annotations)
(download)
Wed Jul 13 09:32:51 2011 UTC (12 years, 10 months ago) by niro
File size: 1202 byte(s)
Wed Jul 13 09:32:51 2011 UTC (12 years, 10 months ago) by niro
File size: 1202 byte(s)
~2
1 | # $Id$ |
2 | |
3 | PNAME="upower" |
4 | PVER="0.9.12" |
5 | PBUILD="r1" |
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 |
31 | |
32 | SRC_URI=( |
33 | mirror://${PNAME}/${SRCFILE} |
34 | ) |
35 | |
36 | UP2DATE="updatecmd_freedesktop ${PNAME} xz" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | sed -i -e '/DISABLE_DEPRECATED/d' configure || die |
44 | } |
45 | |
46 | src_compile() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | mconfigure \ |
51 | --localstatedir=/var \ |
52 | --with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \ |
53 | --with-backend=linux \ |
54 | --disable-static \ |
55 | --disable-verbose-mode \ |
56 | --enable-man-pages \ |
57 | --enable-introspection \ |
58 | --disable-gtk-doc \ |
59 | --disable-tests \ |
60 | || die |
61 | |
62 | mmake || die |
63 | } |