summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-09-08 12:40:26 +0000
committerobache <obache@pkgsrc.org>2013-09-08 12:40:26 +0000
commit43cf6a03c3bb1f06b8eec4fcb578bebb0966192b (patch)
treedb86fd3d10c017dac6112b24ca9d84aeaa5a78b2
parentc0450fd496cbd1ec54683d941c1b35355126f6c2 (diff)
downloadpkgsrc-43cf6a03c3bb1f06b8eec4fcb578bebb0966192b.tar.gz
Update scim-libthai to 0.1.3.
Version 0.1.3 (2012-06-09) ============= - Migrate away deprecated GTK+ APIs, fixing FTBFS.
-rw-r--r--inputmethod/scim-thai/Makefile5
-rw-r--r--inputmethod/scim-thai/distinfo9
-rw-r--r--inputmethod/scim-thai/patches/patch-src_scim__thai__imengine__setup.cpp42
3 files changed, 49 insertions, 7 deletions
diff --git a/inputmethod/scim-thai/Makefile b/inputmethod/scim-thai/Makefile
index 525112a0557..1aadb1d7d6e 100644
--- a/inputmethod/scim-thai/Makefile
+++ b/inputmethod/scim-thai/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2013/09/02 19:51:13 adam Exp $
+# $NetBSD: Makefile,v 1.23 2013/09/08 12:40:26 obache Exp $
#
-DISTNAME= scim-thai-0.1.2
-PKGREVISION= 13
+DISTNAME= scim-thai-0.1.3
CATEGORIES= inputmethod
MASTER_SITES= http://linux.thai.net/pub/thailinux/software/libthai/ \
ftp://linux.thai.net/pub/ThaiLinux/software/libthai/
diff --git a/inputmethod/scim-thai/distinfo b/inputmethod/scim-thai/distinfo
index 7e2e978fc64..9a15cc1d896 100644
--- a/inputmethod/scim-thai/distinfo
+++ b/inputmethod/scim-thai/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2011/10/07 11:56:39 obache Exp $
+$NetBSD: distinfo,v 1.3 2013/09/08 12:40:26 obache Exp $
-SHA1 (scim-thai-0.1.2.tar.gz) = 4aad0c5f2060029be3eabcfd753a87f9364e2bb4
-RMD160 (scim-thai-0.1.2.tar.gz) = f44fab1360e1a160c09a2afb1fc8ed8a7be24f73
-Size (scim-thai-0.1.2.tar.gz) = 416804 bytes
+SHA1 (scim-thai-0.1.3.tar.gz) = 2d1f87eebb0b4ea2f9b931600bf857cf148f0835
+RMD160 (scim-thai-0.1.3.tar.gz) = b02cf86957a23a89b5faeb9b909bb87292ab6184
+Size (scim-thai-0.1.3.tar.gz) = 420655 bytes
+SHA1 (patch-src_scim__thai__imengine__setup.cpp) = a043ee199f8b91a976e56431c391e2c66c778a5c
diff --git a/inputmethod/scim-thai/patches/patch-src_scim__thai__imengine__setup.cpp b/inputmethod/scim-thai/patches/patch-src_scim__thai__imengine__setup.cpp
new file mode 100644
index 00000000000..cdc63f5c313
--- /dev/null
+++ b/inputmethod/scim-thai/patches/patch-src_scim__thai__imengine__setup.cpp
@@ -0,0 +1,42 @@
+$NetBSD: patch-src_scim__thai__imengine__setup.cpp,v 1.1 2013/09/08 12:40:26 obache Exp $
+
+* restore GTK-2.0 compatibility
+
+--- src/scim_thai_imengine_setup.cpp.orig 2012-06-09 07:59:48.000000000 +0000
++++ src/scim_thai_imengine_setup.cpp
+@@ -168,7 +168,11 @@ create_setup_window ()
+ GSList* isc_radiobutton_group = NULL;
+
+ // Create the top level box.
++#if GTK_CHECK_VERSION(3,0,0)
+ window = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
++#else
++ window = gtk_vbox_new (FALSE, 0);
++#endif
+ gtk_widget_show (window);
+
+ // Keyboard Layout section
+@@ -182,7 +186,11 @@ create_setup_window ()
+ gtk_container_add (GTK_CONTAINER (window), alignment);
+ gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
+
++#if GTK_CHECK_VERSION(3,0,0)
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
++#else
++ vbox = gtk_vbox_new (FALSE, 0);
++#endif
+ gtk_widget_show (vbox);
+ gtk_container_add (GTK_CONTAINER (alignment), vbox);
+
+@@ -245,7 +253,11 @@ create_setup_window ()
+ gtk_container_add (GTK_CONTAINER (window), alignment);
+ gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
+
++#if GTK_CHECK_VERSION(3,0,0)
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
++#else
++ vbox = gtk_vbox_new (FALSE, 0);
++#endif
+ gtk_widget_show (vbox);
+ gtk_container_add (GTK_CONTAINER (alignment), vbox);
+