Date: Saturday, May 16, 2020 @ 12:01:20
  Author: foutrelis
Revision: 384409

archrelease: copy trunk to staging-x86_64

Added:
  libglade/repos/staging-x86_64/
  libglade/repos/staging-x86_64/PKGBUILD
    (from rev 384408, libglade/trunk/PKGBUILD)
  libglade/repos/staging-x86_64/glade.install
    (from rev 384408, libglade/trunk/glade.install)
  libglade/repos/staging-x86_64/libglade-2.0.1-nowarning.patch
    (from rev 384408, libglade/trunk/libglade-2.0.1-nowarning.patch)

--------------------------------+
 PKGBUILD                       |   37 +++++++++++++++++++++++++++++++++++++
 glade.install                  |   25 +++++++++++++++++++++++++
 libglade-2.0.1-nowarning.patch |   39 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 101 insertions(+)

Copied: libglade/repos/staging-x86_64/PKGBUILD (from rev 384408, 
libglade/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2020-05-16 12:01:20 UTC (rev 384409)
@@ -0,0 +1,37 @@
+# Maintainer: Jan de Groot <[email protected]>
+
+pkgname=libglade
+pkgver=2.6.4
+pkgrel=7
+pkgdesc="Allows you to load glade interface files in a program at runtime"
+arch=(x86_64)
+license=('LGPL')
+depends=('gtk2>=2.16.0' 'libxml2>=2.7.3')
+makedepends=('python2' 'pkgconfig')
+optdepends=('python2: libglade-convert script')
+install=glade.install
+source=(https://download.gnome.org/sources/${pkgname}/2.6/${pkgname}-${pkgver}.tar.bz2
+       libglade-2.0.1-nowarning.patch)
+url="http://www.gnome.org";
+sha256sums=('64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec'
+            '423c12af1c73442caa851a0b8db33b00fa4b778b1b422a4e8ac33d121d043008')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../libglade-2.0.1-nowarning.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  PYTHON=/usr/bin/python2 ./configure --sysconfdir=/etc --prefix=/usr 
--localstatedir=/var
+
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="${pkgdir}" install
+  install -m755 libglade-convert "${pkgdir}/usr/bin/"
+}

Copied: libglade/repos/staging-x86_64/glade.install (from rev 384408, 
libglade/trunk/glade.install)
===================================================================
--- staging-x86_64/glade.install                                (rev 0)
+++ staging-x86_64/glade.install        2020-05-16 12:01:20 UTC (rev 384409)
@@ -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
+}

Copied: libglade/repos/staging-x86_64/libglade-2.0.1-nowarning.patch (from rev 
384408, libglade/trunk/libglade-2.0.1-nowarning.patch)
===================================================================
--- staging-x86_64/libglade-2.0.1-nowarning.patch                               
(rev 0)
+++ staging-x86_64/libglade-2.0.1-nowarning.patch       2020-05-16 12:01:20 UTC 
(rev 384409)
@@ -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 {

Reply via email to