From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/libglade/PKGBUILD | 28 +++++++++++++++++++ extra/libglade/glade.install | 25 +++++++++++++++++ extra/libglade/libglade-2.0.1-nowarning.patch | 39 +++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 extra/libglade/PKGBUILD create mode 100644 extra/libglade/glade.install create mode 100644 extra/libglade/libglade-2.0.1-nowarning.patch (limited to 'extra/libglade') diff --git a/extra/libglade/PKGBUILD b/extra/libglade/PKGBUILD new file mode 100644 index 000000000..b5a6d14f4 --- /dev/null +++ b/extra/libglade/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 104896 2011-01-05 14:08:38Z ibiru $ +# Maintainer: Jan de Groot + +pkgname=libglade +pkgver=2.6.4 +pkgrel=2 +pkgdesc="Allows you to load glade interface files in a program at runtime" +arch=(i686 x86_64) +license=('LGPL') +depends=('gtk2>=2.16.0' 'libxml2>=2.7.3') +makedepends=('python2' 'pkgconfig') +optdepends=('python2: libglade-convert script') +options=('!libtool') +install=glade.install +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.6/${pkgname}-${pkgver}.tar.bz2 + libglade-2.0.1-nowarning.patch) +url="http://www.gnome.org" +md5sums=('d1776b40f4e166b5e9c107f1c8fe4139' + '4f879c0ce550004905aa0fb24f25c353') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/libglade-2.0.1-nowarning.patch" + PYTHON=python2 ./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var + make + make DESTDIR="${pkgdir}" install + install -m755 libglade-convert "${pkgdir}/usr/bin/" +} diff --git a/extra/libglade/glade.install b/extra/libglade/glade.install new file mode 100644 index 000000000..a7f05c5de --- /dev/null +++ b/extra/libglade/glade.install @@ -0,0 +1,25 @@ +post_install() { + if [ ! -d etc/xml ]; then + mkdir -p etc/xml + fi + if [ ! -e etc/xml/catalog ]; then + xmlcatalog --noout --create etc/xml/catalog + fi + xmlcatalog --noout --add "system" \ + "http://glade.gnome.org/glade-2.0.dtd" \ + /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog +} + +pre_upgrade() { + post_remove +} + +post_upgrade() { + post_install $1 +} + +# arg 1: the old package version +post_remove() { + xmlcatalog --noout --del \ + /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog +} diff --git a/extra/libglade/libglade-2.0.1-nowarning.patch b/extra/libglade/libglade-2.0.1-nowarning.patch new file mode 100644 index 000000000..fd071215f --- /dev/null +++ b/extra/libglade/libglade-2.0.1-nowarning.patch @@ -0,0 +1,39 @@ +--- libglade-2.0.1/glade/glade-gtk.c.nowarning 2003-08-29 14:50:10.000000000 -0400 ++++ libglade-2.0.1/glade/glade-gtk.c 2003-08-29 14:58:41.000000000 -0400 +@@ -639,9 +639,8 @@ + if (!strcmp (childinfo->properties[j].name, "label")) { + label = childinfo->properties[j].value; + break; +- } else { +- g_warning ("Unknown CList child property: %s", childinfo->properties[j].name); + } ++ /* Ignore all other properties */ + } + + if (label) { +@@ -683,6 +682,7 @@ + char *icon = NULL; + gboolean use_stock = FALSE, active = FALSE, new_group = FALSE; + gboolean use_underline = FALSE; ++ gboolean sensitive = TRUE; + GtkWidget *iconw = NULL; + int j; + +@@ -708,6 +708,8 @@ + group_name = value; + } else if (!strcmp (name, "new_group")) { + new_group = BOOL (value); ++ } else if (!strcmp (name, "sensitive")) { ++ sensitive = BOOL (value); + } else if (!strcmp (name, "visible")) { + /* ignore for now */ + } else if (!strcmp (name, "tooltip")) { +@@ -785,6 +787,8 @@ + gtk_label_set_use_underline (GTK_LABEL (toolbar_child->label), + TRUE); + } ++ ++ gtk_widget_set_sensitive (child, sensitive); + + glade_xml_set_common_params (xml, child, childinfo->child); + } else { -- cgit v1.2.3-54-g00ecf