diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2019-08-26 19:37:59 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2019-08-26 19:40:35 +1000 |
commit | d4a4cc55f5820229c7ac17fd0dba27b82b611e58 (patch) | |
tree | 5918e6621f392ad7dedf929cdf5d6a2707d2c519 | |
parent | 8b6495c6e657c17c236fdcf0c6bad514c7f7c97f (diff) | |
download | opt-d4a4cc55f5820229c7ac17fd0dba27b82b611e58.tar.gz opt-d4a4cc55f5820229c7ac17fd0dba27b82b611e58.tar.xz |
[notify] libglade-compat: initial import for pygtk
-rw-r--r-- | libglade-compat/.footprint | 25 | ||||
-rw-r--r-- | libglade-compat/.signature | 6 | ||||
-rw-r--r-- | libglade-compat/Pkgfile | 39 | ||||
-rw-r--r-- | libglade-compat/libglade-2.0.1-nowarning.patch | 39 |
4 files changed, 109 insertions, 0 deletions
diff --git a/libglade-compat/.footprint b/libglade-compat/.footprint new file mode 100644 index 000000000..7414609ed --- /dev/null +++ b/libglade-compat/.footprint @@ -0,0 +1,25 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/libglade-compat/ +drwxr-xr-x root/root usr/include/libglade-compat/libglade-2.0/ +drwxr-xr-x root/root usr/include/libglade-compat/libglade-2.0/glade/ +-rw-r--r-- root/root usr/include/libglade-compat/libglade-2.0/glade/glade-build.h +-rw-r--r-- root/root usr/include/libglade-compat/libglade-2.0/glade/glade-init.h +-rw-r--r-- root/root usr/include/libglade-compat/libglade-2.0/glade/glade-parser.h +-rw-r--r-- root/root usr/include/libglade-compat/libglade-2.0/glade/glade-xml.h +-rw-r--r-- root/root usr/include/libglade-compat/libglade-2.0/glade/glade.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/libglade-compat/ +-rw-r--r-- root/root usr/lib/libglade-compat/libglade-2.0.a +-rwxr-xr-x root/root usr/lib/libglade-compat/libglade-2.0.la +lrwxrwxrwx root/root usr/lib/libglade-compat/libglade-2.0.so -> libglade-2.0.so.0.0.7 +lrwxrwxrwx root/root usr/lib/libglade-compat/libglade-2.0.so.0 -> libglade-2.0.so.0.0.7 +-rwxr-xr-x root/root usr/lib/libglade-compat/libglade-2.0.so.0.0.7 +drwxr-xr-x root/root usr/lib/libglade-compat/pkgconfig/ +-rw-r--r-- root/root usr/lib/libglade-compat/pkgconfig/libglade-2.0.pc +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/xml/ +drwxr-xr-x root/root usr/share/xml/dtd/ +drwxr-xr-x root/root usr/share/xml/dtd/libglade/ +drwxr-xr-x root/root usr/share/xml/dtd/libglade/2.0/ diff --git a/libglade-compat/.signature b/libglade-compat/.signature new file mode 100644 index 000000000..a379bafed --- /dev/null +++ b/libglade-compat/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/opt.pub +RWSE3ohX2g5d/ZTrPGF4YPE4SRI6aHsiQQd9d9GwO10STHYDL6Ujl89ZCXTeumshmIOJwv41Q1l+OusYyEBViA0rWlqFgC/i4AI= +SHA256 (Pkgfile) = 9a73e2a23c19d84e86cc5942cf53f1a18322916d3a9c642072a0d0d3940d6d6e +SHA256 (.footprint) = 3d4728386e3c3c5ca64368a2c62a7b1bba72bed8f18938a79fceff03216d34a2 +SHA256 (libglade-2.6.4.tar.bz2) = 64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec +SHA256 (libglade-2.0.1-nowarning.patch) = 423c12af1c73442caa851a0b8db33b00fa4b778b1b422a4e8ac33d121d043008 diff --git a/libglade-compat/Pkgfile b/libglade-compat/Pkgfile new file mode 100644 index 000000000..9af184439 --- /dev/null +++ b/libglade-compat/Pkgfile @@ -0,0 +1,39 @@ +# Description: library to load glade interface files in a program at runtime +# URL: http://glade.gnome.org/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: libglade pango-compat + +name=libglade-compat +version=2.6.4 +release=1 +source=(http://download.gnome.org/sources/libglade/2.6/libglade-$version.tar.bz2 + libglade-2.0.1-nowarning.patch) + +build() { + cd libglade-$version + + sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \ + -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure + + sed -i -e "s|/etc/xml/catalog|$PKG/etc/xml/dtd/libglade/2.0/catalog|" \ + -e 's|$(datadir)/xml/libglade|$(datadir)/xml/dtd/libglade/2.0|' Makefile.in + + patch -p1 -i $SRC/libglade-2.0.1-nowarning.patch + + PKG_CONFIG_PATH+="/usr/lib/pango-compat/pkgconfig" \ + ./configure \ + --prefix=/usr \ + --includedir='/usr/include/libglade-compat' \ + --libdir='/usr/lib/libglade-compat' \ + --disable-debug \ + --disable-gtk-doc + + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share/gtk-doc + + rm \ + $PKG/usr/bin/libglade-convert \ + $PKG/usr/share/xml/dtd/libglade/2.0/glade-2.0.dtd +} diff --git a/libglade-compat/libglade-2.0.1-nowarning.patch b/libglade-compat/libglade-2.0.1-nowarning.patch new file mode 100644 index 000000000..fd071215f --- /dev/null +++ b/libglade-compat/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 { |