Contents of /trunk/extras/libglade/libglade-2.6.4-r5.smage2
Parent Directory | Revision Log
Revision 13579 -
(show annotations)
(download)
Mon Oct 15 18:51:18 2012 UTC (11 years, 11 months ago) by niro
File size: 1400 byte(s)
Mon Oct 15 18:51:18 2012 UTC (11 years, 11 months ago) by niro
File size: 1400 byte(s)
-rebuild against glib-2.34
1 | # $Id$ |
2 | |
3 | PNAME="libglade" |
4 | PVER="2.6.4" |
5 | PBUILD="r5" |
6 | |
7 | PCAT="gnome-base" |
8 | |
9 | DESCRIPTION="libglade" |
10 | HOMEPAGE="http://www.gnome.org/" |
11 | |
12 | DEPEND=">= dev-libs/glib2-2.34 |
13 | >= x11-libs/gtk2+-2.24 |
14 | >= dev-libs/atk-2.6 |
15 | >= dev-libs/libxml2-2.7 |
16 | >= dev-lang/python-2.7" |
17 | |
18 | SDEPEND=">= dev-util/pkgconfig-0.25" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mtools |
24 | |
25 | SRC_URI=( |
26 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/Makefile.in.am-2.4.2-xmlcatalog.patch |
29 | ) |
30 | |
31 | UP2DATE="updatecmd_gnome ${PNAME}" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # do not install the xmlcatalog, we do it later manually |
39 | mpatch Makefile.in.am-2.4.2-xmlcatalog.patch || die |
40 | } |
41 | |
42 | src_compile() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | mconfigure --disable-gtk-doc || die |
47 | mmake || die |
48 | } |
49 | |
50 | src_install() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | # needed directories |
55 | minstalldir /etc/xml || die |
56 | make DESTDIR=${BINDIR} install || die |
57 | } |
58 | |
59 | postinstall() |
60 | { |
61 | # update the xml catalog |
62 | echo "Updating XML catalog ..." |
63 | ${MROOT}/usr/bin/xmlcatalog --noout --add "system" \ |
64 | "http://glade.gnome.org/glade-2.0.dtd" \ |
65 | ${MROOT}/usr/share/xml/libglade/glade-2.0.dtd ${MROOT}/etc/xml/catalog |
66 | } |
67 | |
68 | postremove() |
69 | { |
70 | # remove the xml catalog |
71 | echo "Removing entries from the XML catalog ..." |
72 | ${MROOT}/usr/bin/xmlcatalog --noout --del \ |
73 | ${MROOT}/usr/share/xml/libglade/glade-2.0.dtd ${MROOT}/etc/xml/catalog |
74 | } |