aboutsummaryrefslogtreecommitdiff
path: root/x11/libxklavier
diff options
context:
space:
mode:
Diffstat (limited to 'x11/libxklavier')
-rw-r--r--x11/libxklavier/Makefile7
-rw-r--r--x11/libxklavier/distinfo6
-rw-r--r--x11/libxklavier/files/patch-libxklavier_xkl-enum-types.c27
-rw-r--r--x11/libxklavier/files/patch-libxklavier_xklavier_props.c15
-rw-r--r--x11/libxklavier/pkg-plist1
5 files changed, 35 insertions, 21 deletions
diff --git a/x11/libxklavier/Makefile b/x11/libxklavier/Makefile
index c09671f32c05..83f7314db54a 100644
--- a/x11/libxklavier/Makefile
+++ b/x11/libxklavier/Makefile
@@ -3,14 +3,15 @@
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/x11/libxklavier/Makefile,v 1.47 2009/03/21 04:28:11 marcus Exp $
+# $MCom: ports/x11/libxklavier/Makefile,v 1.51 2009/07/21 22:14:28 marcus Exp $
#
PORTNAME= libxklavier
-PORTVERSION= 3.9
+PORTVERSION= 4.0
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= x11 gnome
-MASTER_SITES= SF/gswitchit/${PORTNAME}/${PORTVERSION}
+MASTER_SITES= GNOME
MAINTAINER= gnome@FreeBSD.org
COMMENT= An utility library to make XKB stuff easier
diff --git a/x11/libxklavier/distinfo b/x11/libxklavier/distinfo
index b5b0fc861e4d..be4bcb007ebc 100644
--- a/x11/libxklavier/distinfo
+++ b/x11/libxklavier/distinfo
@@ -1,3 +1,3 @@
-MD5 (libxklavier-3.9.tar.bz2) = c8ff3ba6daf899be7ec2a626894852b9
-SHA256 (libxklavier-3.9.tar.bz2) = 462a4e427f201a23de194f824dce70c84867464956f2f6c8dd4a5e07f1f4a554
-SIZE (libxklavier-3.9.tar.bz2) = 339409
+MD5 (libxklavier-4.0.tar.bz2) = 1b714ba04835fb49511f9e1444a5ea4c
+SHA256 (libxklavier-4.0.tar.bz2) = 210ed5803109a8cef3b2ab1195bc73fe3385a97a8749d01673e020642d8e5a71
+SIZE (libxklavier-4.0.tar.bz2) = 354149
diff --git a/x11/libxklavier/files/patch-libxklavier_xkl-enum-types.c b/x11/libxklavier/files/patch-libxklavier_xkl-enum-types.c
new file mode 100644
index 000000000000..f749303176a8
--- /dev/null
+++ b/x11/libxklavier/files/patch-libxklavier_xkl-enum-types.c
@@ -0,0 +1,27 @@
+--- libxklavier/xkl-enum-types.c.orig 2009-07-21 18:10:01.000000000 -0400
++++ libxklavier/xkl-enum-types.c 2009-07-21 18:10:04.000000000 -0400
+@@ -21,9 +21,9 @@ xkl_engine_state_change_get_type (void)
+ GType
+ xkl_engine_features_get_type (void)
+ {
+- static GType etype = 0;
+- if (etype == 0) {
+- static const GEnumValue values[] = {
++ static GType ftype = 0;
++ if (ftype == 0) {
++ static const GFlagsValue values[] = {
+ { XKLF_CAN_TOGGLE_INDICATORS, "XKLF_CAN_TOGGLE_INDICATORS", "can-toggle-indicators" },
+ { XKLF_CAN_OUTPUT_CONFIG_AS_ASCII, "XKLF_CAN_OUTPUT_CONFIG_AS_ASCII", "can-output-config-as-ascii" },
+ { XKLF_CAN_OUTPUT_CONFIG_AS_BINARY, "XKLF_CAN_OUTPUT_CONFIG_AS_BINARY", "can-output-config-as-binary" },
+@@ -32,9 +32,9 @@ xkl_engine_features_get_type (void)
+ { XKLF_DEVICE_DISCOVERY, "XKLF_DEVICE_DISCOVERY", "device-discovery" },
+ { 0, NULL, NULL }
+ };
+- etype = g_enum_register_static ("XklEngineFeatures", values);
++ ftype = g_flags_register_static ("XklEngineFeatures", values);
+ }
+- return etype;
++ return ftype;
+ }
+ GType
+ xkl_engine_listen_modes_get_type (void)
diff --git a/x11/libxklavier/files/patch-libxklavier_xklavier_props.c b/x11/libxklavier/files/patch-libxklavier_xklavier_props.c
deleted file mode 100644
index a56ec7896810..000000000000
--- a/x11/libxklavier/files/patch-libxklavier_xklavier_props.c
+++ /dev/null
@@ -1,15 +0,0 @@
---- libxklavier/xklavier_props.c.orig Sun Apr 16 20:51:36 2006
-+++ libxklavier/xklavier_props.c Tue Jun 13 00:11:24 2006
-@@ -355,10 +355,8 @@ xkl_config_rec_get_from_root_window_prop
- --varlen);
- var[varlen] = '\0';
- /* Resize the original layout */
-- ((char *)
-- g_realloc(*layout,
-- laylen + 1))[laylen] =
-- '\0';
-+ *layout = g_realloc(*layout, laylen + 1);
-+ (*layout)[laylen] = '\0';
- }
- }
- layout++;
diff --git a/x11/libxklavier/pkg-plist b/x11/libxklavier/pkg-plist
index 98b5565758cd..56aa8de30942 100644
--- a/x11/libxklavier/pkg-plist
+++ b/x11/libxklavier/pkg-plist
@@ -3,6 +3,7 @@ include/libxklavier/xkl_config_rec.h
include/libxklavier/xkl_config_registry.h
include/libxklavier/xkl_engine.h
include/libxklavier/xkl_engine_marshal.h
+include/libxklavier/xkl-enum-types.h
include/libxklavier/xklavier.h
lib/libxklavier.a
lib/libxklavier.la