Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1486 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/libglade/libglade-2.6.2-r1.smage2,v 1.1 2008/02/15 11:29:54 niro Exp $
2
3 PNAME="libglade"
4 PVER="2.6.2"
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.14
14 >= x11-libs/gtk2+-2.12
15 >= dev-libs/atk-1.20
16 >= dev-libs/libxml2-2.6.16
17 >= dev-lang/python-2.5"
18
19 SDEPEND=">= dev-util/pkgconfig-0.20"
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 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # do not install the xmlcatalog, we do it later manually
38 mpatch Makefile.in.am-2.4.2-xmlcatalog.patch || die
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44
45 mconfigure --disable-gtk-doc || die
46 mmake || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52
53 # needed directories
54 minstalldir /etc/xml || die
55 make DESTDIR=${BINDIR} install || die
56 }
57
58 postinstall()
59 {
60 # update the xml catalog
61 echo "Updating XML catalog ..."
62 ${MROOT}/usr/bin/xmlcatalog --noout --add "system" \
63 "http://glade.gnome.org/glade-2.0.dtd" \
64 ${MROOT}/usr/share/xml/libglade/glade-2.0.dtd ${MROOT}/etc/xml/catalog
65 }
66
67 postremove()
68 {
69 # remove the xml catalog
70 echo "Removing entries from the XML catalog ..."
71 ${MROOT}/usr/bin/xmlcatalog --noout --del \
72 ${MROOT}/usr/share/xml/libglade/glade-2.0.dtd ${MROOT}/etc/xml/catalog
73 }

Properties

Name Value
svn:keywords Id