Annotation of /trunk/extras/libunique1/libunique1-1.1.6-r1.smage2
Parent Directory | Revision Log
Revision 13811 -
(hide annotations)
(download)
Wed Oct 24 17:51:36 2012 UTC (11 years, 11 months ago) by niro
File size: 1352 byte(s)
Wed Oct 24 17:51:36 2012 UTC (11 years, 11 months ago) by niro
File size: 1352 byte(s)
-fixed missing include
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 | niro | 13811 | sminclude gnome2 mtools |
24 | niro | 13807 | |
25 | niro | 13808 | SRC_URI=( |
26 | niro | 13809 | gnome://${PNAME/1}/${PVER%.*}/${SRCFILE} |
27 | niro | 13808 | mirror://${PNAME/1}/${SRCFILE} |
28 | niro | 13807 | mirror://${PNAME/1}/${PNAME/1}-${PVER}-G_CONST_RETURN.patch |
29 | mirror://${PNAME/1}/${PNAME/1}-${PVER}-unique-gdbus.patch | ||
30 | ) | ||
31 | |||
32 | UP2DATE="updatecmd_gnome ${PNAME/1}" | ||
33 | |||
34 | src_prepare() | ||
35 | { | ||
36 | munpack ${SRCFILE} || die | ||
37 | cd ${SRCDIR} | ||
38 | |||
39 | # remove G_CONST_RETURN usage, now that its gone in glib | ||
40 | niro | 13808 | mpatch ${PNAME/1}-${PVER}-G_CONST_RETURN.patch || die |
41 | niro | 13807 | |
42 | # adds a backend using gdbus, the new dbus binding in >=gio-2.25 | ||
43 | niro | 13808 | mpatch ${PNAME/1}-${PVER}-unique-gdbus.patch || die |
44 | niro | 13807 | } |
45 | |||
46 | src_compile() | ||
47 | { | ||
48 | cd ${SRCDIR} | ||
49 | |||
50 | # --disable-dbus means gdbus is used instead of dbus-glib | ||
51 | mconfigure \ | ||
52 | --disable-maintainer-flags \ | ||
53 | --disable-static \ | ||
54 | --enable-bacon \ | ||
55 | --enable-introspection \ | ||
56 | --disable-dbus \ | ||
57 | || die | ||
58 | |||
59 | mmake || die | ||
60 | } | ||
61 | niro | 13810 | |
62 | src_install() | ||
63 | { | ||
64 | gn2_src_install || die | ||
65 | |||
66 | # provided by libunique-3.x | ||
67 | mdelete -r /usr/share/gtk-doc || die | ||
68 | } |