Magellan Linux

Annotation of /branches/R11-unstable/extras/upower/upower-0.99.7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30304 - (hide annotations) (download)
Wed Nov 29 13:28:48 2017 UTC (6 years, 5 months ago) by niro
Original Path: trunk/extras/upower/upower-0.99.7-r1.smage2
File size: 1669 byte(s)
auto added: ver bump to 0.99.7-r1
1 niro 30304 # $Id$
2    
3     PNAME="upower"
4     PVER="0.99.7"
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.54
13     >= sys-apps/dbus-1.10
14     >= dev-libs/dbus-glib-0.108
15     >= sys-fs/udev-230
16     >= sys-apps/polkit-0.113
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.54
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     src_prepare()
41     {
42     munpack ${SRCFILE} || die
43     cd ${SRCDIR}
44    
45     sed -i -e '/DISABLE_DEPRECATED/d' configure || die
46     # fix udev dir location
47     sed -i "s:^\(udevrulesdir =\).*:\1 $(mget-udev-rules-dir):" rules/Makefile.{am,in} || die
48     }
49    
50     src_compile()
51     {
52     cd ${SRCDIR}
53    
54     mconfigure \
55     --libexecdir=/usr/$(mlibdir)/${PNAME} \
56     --localstatedir=/var \
57     --with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \
58     --with-backend=linux \
59     --disable-verbose-mode \
60     --enable-man-pages \
61     --enable-introspection \
62     --disable-gtk-doc \
63     --disable-tests \
64     --enable-deprecated \
65     || die
66    
67     mmake || die
68     }
69    
70     src_install()
71     {
72     cd ${SRCDIR}
73     mmake DESTDIR=${BINDIR} install || die
74     minstalldocs COPYING ChangeLog NEWS README TODO || die
75     }
76    
77     preinstall()
78     {
79     # adds plugdev group
80     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
81     }