Magellan Linux

Contents of /trunk/extras/libglade/libglade-2.6.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id