aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-27 06:47:37 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-29 15:55:32 +0000
commitaaebd10e3a3225c2720dad72e6481c9646b2beb4 (patch)
treea376bc92c3651aa102e64b48afa1987e3c56c050 /community
parente5c3881cb1745dfe693372d7d372f15205225d51 (diff)
downloadaports-aaebd10e3a3225c2720dad72e6481c9646b2beb4.tar.gz
aports-aaebd10e3a3225c2720dad72e6481c9646b2beb4.tar.bz2
aports-aaebd10e3a3225c2720dad72e6481c9646b2beb4.tar.xz
community/libglade: move from main
Diffstat (limited to 'community')
-rw-r--r--community/libglade/APKBUILD47
-rw-r--r--community/libglade/libglade-2.0.1-nowarning.patch39
-rw-r--r--community/libglade/libglade-gmodule.patch12
-rw-r--r--community/libglade/libglade.post-deinstall6
-rw-r--r--community/libglade/libglade.post-install13
l---------community/libglade/libglade.post-upgrade1
l---------community/libglade/libglade.pre-upgrade1
7 files changed, 119 insertions, 0 deletions
diff --git a/community/libglade/APKBUILD b/community/libglade/APKBUILD
new file mode 100644
index 0000000000..8f0dfec2b4
--- /dev/null
+++ b/community/libglade/APKBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libglade
+pkgver=2.6.4
+pkgrel=15
+pkgdesc="Allows you to load glade interface files in a program at runtime"
+url="http://www.gnome.org"
+arch="all"
+license="LGPL-2.0-or-later"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="libxml2-utils"
+depends_dev="gtk+2.0-dev libxml2-dev"
+makedepends="$depends_dev autoconf automake libtool"
+install="$pkgname.post-install $pkgname.pre-upgrade $pkgname.post-upgrade
+ $pkgname.post-deinstall"
+source="https://download.gnome.org/sources/libglade/2.6/libglade-$pkgver.tar.bz2
+ $pkgname-2.0.1-nowarning.patch
+ libglade-gmodule.patch
+ "
+
+
+prepare() {
+ default_prepare
+ update_config_sub
+ libtoolize --force && aclocal && autoheader && autoconf \
+ && automake --add-missing
+}
+
+build() {
+ sed -i '/DG_DISABLE_DEPRECATED/d' glade/Makefile.in
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --sysconfdir=/etc \
+ --prefix=/usr \
+ --disable-static \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ install -m755 libglade-convert "$pkgdir"/usr/bin/
+}
+
+sha512sums="b725842febaf4c1f0d305a629ae1c61ea2de24dd6f41937e806c078fada2cea483195ef40f5238ce2045e47130c92559e984f677de667b840dd7fff0f8559735 libglade-2.6.4.tar.bz2
+5ab9dfb85938fb7e9ec637a9d68f3db961f3986e1eb9eec0d684af4ce2361c83d6998283b2bd5b4e1bd7950ca456cc3ea7fae567ac52ae391f6c9d5456c6dd2e libglade-2.0.1-nowarning.patch
+8ab898ca484ebcf2fbb39a9f6e59f214f8c378f1b50c9abd1553a8dfb1e087f4bd7c90d74b5a02d2f92994707fcb3c351203669193b6511c493486e676023224 libglade-gmodule.patch"
diff --git a/community/libglade/libglade-2.0.1-nowarning.patch b/community/libglade/libglade-2.0.1-nowarning.patch
new file mode 100644
index 0000000000..fd071215fa
--- /dev/null
+++ b/community/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 {
diff --git a/community/libglade/libglade-gmodule.patch b/community/libglade/libglade-gmodule.patch
new file mode 100644
index 0000000000..2bf5e37243
--- /dev/null
+++ b/community/libglade/libglade-gmodule.patch
@@ -0,0 +1,12 @@
+--- a/configure.in 2009-03-17 07:19:01.000000000 -0700
++++ b/configure.in 2013-02-20 14:27:10.000000000 -0800
+@@ -46,7 +46,8 @@
+ libxml-2.0 >= required_libxml_version dnl
+ atk >= required_atk_version dnl
+ gtk+-2.0 >= required_gtk_version dnl
+- glib-2.0 >= required_glib_version])
++ glib-2.0 >= required_glib_version dnl
++ gmodule-2.0])
+
+ AC_MSG_CHECKING([for native Win32])
+ case "$host" in
diff --git a/community/libglade/libglade.post-deinstall b/community/libglade/libglade.post-deinstall
new file mode 100644
index 0000000000..bb4b3039a0
--- /dev/null
+++ b/community/libglade/libglade.post-deinstall
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+xmlcatalog --noout --del \
+ /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog
+
+exit 0
diff --git a/community/libglade/libglade.post-install b/community/libglade/libglade.post-install
new file mode 100644
index 0000000000..82e58a85fe
--- /dev/null
+++ b/community/libglade/libglade.post-install
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+mkdir -p etc/xml
+
+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
+
+exit 0
diff --git a/community/libglade/libglade.post-upgrade b/community/libglade/libglade.post-upgrade
new file mode 120000
index 0000000000..25d67c626e
--- /dev/null
+++ b/community/libglade/libglade.post-upgrade
@@ -0,0 +1 @@
+libglade.post-install \ No newline at end of file
diff --git a/community/libglade/libglade.pre-upgrade b/community/libglade/libglade.pre-upgrade
new file mode 120000
index 0000000000..06b72fb37b
--- /dev/null
+++ b/community/libglade/libglade.pre-upgrade
@@ -0,0 +1 @@
+libglade.post-deinstall \ No newline at end of file