Annotation of /branches/R11-unstable/extras/libunique1/libunique1-1.1.6-r1.smage2
Parent Directory | Revision Log
Revision 13807 -
(hide annotations)
(download)
Wed Oct 24 17:41:12 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/extras/libunique1/libunique1-1.1.6-r1.smage2
File size: 1157 byte(s)
Wed Oct 24 17:41:12 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/extras/libunique1/libunique1-1.1.6-r1.smage2
File size: 1157 byte(s)
auto added: ver bump to 1.1.6-r1
1 | niro | 13807 | # $Id:$ |
2 | |||
3 | PNAME="libunique1" | ||
4 | PVER="1.1.6" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="dev-libs" | ||
8 | |||
9 | DESCRIPTION="A library for writing single instance application." | ||
10 | HOMEPAGE="http://www.gnome.org/" | ||
11 | |||
12 | DEPEND=">= x11-libs/gtk2+-2.24 | ||
13 | >= x11-libs/libX11-1.5 | ||
14 | >= sys-apps/dbus-1.6" | ||
15 | |||
16 | SDEPEND=">= dev-util/pkgconfig-0.25 | ||
17 | >= sys-dev/gettext-0.18 | ||
18 | >= dev-libs/gobject-introspection-1.34" | ||
19 | |||
20 | SRCFILE="${PNAME/1}-${PVER}.tar.bz2" | ||
21 | SRCDIR="${BUILDDIR}/${PNAME/1}-${PVER}" | ||
22 | |||
23 | sminclude gnome2 | ||
24 | |||
25 | SRC_URI+=( | ||
26 | mirror://${PNAME/1}/${PNAME/1}-${PVER}-G_CONST_RETURN.patch | ||
27 | mirror://${PNAME/1}/${PNAME/1}-${PVER}-unique-gdbus.patch | ||
28 | ) | ||
29 | |||
30 | UP2DATE="updatecmd_gnome ${PNAME/1}" | ||
31 | |||
32 | src_prepare() | ||
33 | { | ||
34 | munpack ${SRCFILE} || die | ||
35 | cd ${SRCDIR} | ||
36 | |||
37 | # remove G_CONST_RETURN usage, now that its gone in glib | ||
38 | mpatch ${PNAME}-${PVER}-G_CONST_RETURN.patch || die | ||
39 | |||
40 | # adds a backend using gdbus, the new dbus binding in >=gio-2.25 | ||
41 | mpatch ${PNAME}-${PVER}-unique-gdbus.patch || die | ||
42 | } | ||
43 | |||
44 | src_compile() | ||
45 | { | ||
46 | cd ${SRCDIR} | ||
47 | |||
48 | # --disable-dbus means gdbus is used instead of dbus-glib | ||
49 | mconfigure \ | ||
50 | --disable-maintainer-flags \ | ||
51 | --disable-static \ | ||
52 | --enable-bacon \ | ||
53 | --enable-introspection \ | ||
54 | --disable-dbus \ | ||
55 | || die | ||
56 | |||
57 | mmake || die | ||
58 | } |