wok-current rev 11438
libunique: patch build (thanks godane)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Dec 16 15:42:01 2011 +0100 (2011-12-16) |
parents | 11f1e3ba9ba2 |
children | 1f66719de426 |
files | libunique/receipt libunique/stuff/remove_G_CONST_RETURN.patch |
line diff
1.1 --- a/libunique/receipt Fri Dec 16 15:42:01 2011 +0100 1.2 +++ b/libunique/receipt Fri Dec 16 15:42:01 2011 +0100 1.3 @@ -15,12 +15,10 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + patch -Np1 -i $stuff/remove_G_CONST_RETURN.patch 1.8 ./configure \ 1.9 - --prefix=/usr \ 1.10 - --infodir=/usr/share/info \ 1.11 - --mandir=/usr/share/man \ 1.12 $CONFIGURE_ARGS && 1.13 - make && make DESTDIR=$PWD/_pkg install 1.14 + make && make DESTDIR=$DESTDIR install 1.15 } 1.16 1.17 # Rules to gen a SliTaz package suitable for Tazpkg.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/libunique/stuff/remove_G_CONST_RETURN.patch Fri Dec 16 15:42:01 2011 +0100 2.3 @@ -0,0 +1,117 @@ 2.4 +diff -Nur libunique-1.1.6.orig/unique/uniqueapp.c libunique-1.1.6/unique/uniqueapp.c 2.5 +--- libunique-1.1.6.orig/unique/uniqueapp.c 2011-12-01 07:38:17.748122298 +0000 2.6 ++++ libunique-1.1.6/unique/uniqueapp.c 2011-12-01 07:39:59.132319788 +0000 2.7 +@@ -781,7 +781,7 @@ 2.8 + } 2.9 + 2.10 + 2.11 +-G_CONST_RETURN gchar * 2.12 ++const gchar * 2.13 + unique_command_to_string (UniqueApp *app, 2.14 + gint command) 2.15 + { 2.16 +@@ -863,7 +863,7 @@ 2.17 + return retval; 2.18 + } 2.19 + 2.20 +-G_CONST_RETURN gchar * 2.21 ++const gchar * 2.22 + unique_response_to_string (UniqueResponse response) 2.23 + { 2.24 + GEnumClass *enum_class; 2.25 +diff -Nur libunique-1.1.6.orig/unique/uniquebackend.c libunique-1.1.6/unique/uniquebackend.c 2.26 +--- libunique-1.1.6.orig/unique/uniquebackend.c 2011-12-01 07:38:17.748122298 +0000 2.27 ++++ libunique-1.1.6/unique/uniquebackend.c 2011-12-01 07:39:24.418677950 +0000 2.28 +@@ -111,7 +111,7 @@ 2.29 + * 2.30 + * Return value: FIXME 2.31 + */ 2.32 +-G_CONST_RETURN gchar * 2.33 ++const gchar * 2.34 + unique_backend_get_name (UniqueBackend *backend) 2.35 + { 2.36 + g_return_val_if_fail (UNIQUE_IS_BACKEND (backend), NULL); 2.37 +@@ -154,7 +154,7 @@ 2.38 + * 2.39 + * Return value: FIXME 2.40 + */ 2.41 +-G_CONST_RETURN gchar * 2.42 ++const gchar * 2.43 + unique_backend_get_startup_id (UniqueBackend *backend) 2.44 + { 2.45 + g_return_val_if_fail (UNIQUE_IS_BACKEND (backend), NULL); 2.46 +diff -Nur libunique-1.1.6.orig/unique/uniquebackend.h libunique-1.1.6/unique/uniquebackend.h 2.47 +--- libunique-1.1.6.orig/unique/uniquebackend.h 2011-12-01 07:38:17.748122298 +0000 2.48 ++++ libunique-1.1.6/unique/uniquebackend.h 2011-12-01 07:42:13.833467492 +0000 2.49 +@@ -94,10 +94,10 @@ 2.50 + 2.51 + UniqueBackend * unique_backend_create (void); 2.52 + 2.53 +-G_CONST_RETURN gchar *unique_backend_get_name (UniqueBackend *backend); 2.54 ++const gchar *unique_backend_get_name (UniqueBackend *backend); 2.55 + void unique_backend_set_name (UniqueBackend *backend, 2.56 + const gchar *name); 2.57 +-G_CONST_RETURN gchar *unique_backend_get_startup_id (UniqueBackend *backend); 2.58 ++const gchar *unique_backend_get_startup_id (UniqueBackend *backend); 2.59 + void unique_backend_set_startup_id (UniqueBackend *backend, 2.60 + const gchar *startup_id); 2.61 + GdkScreen * unique_backend_get_screen (UniqueBackend *backend); 2.62 +diff -Nur libunique-1.1.6.orig/unique/uniqueinternals.h libunique-1.1.6/unique/uniqueinternals.h 2.63 +--- libunique-1.1.6.orig/unique/uniqueinternals.h 2011-12-01 07:38:17.748122298 +0000 2.64 ++++ libunique-1.1.6/unique/uniqueinternals.h 2011-12-01 07:41:17.142977914 +0000 2.65 +@@ -44,11 +44,11 @@ 2.66 + * and then back into an id 2.67 + */ 2.68 + UniqueResponse unique_response_from_string (const gchar *response); 2.69 +-G_CONST_RETURN gchar *unique_response_to_string (UniqueResponse response); 2.70 ++const gchar *unique_response_to_string (UniqueResponse response); 2.71 + 2.72 + gint unique_command_from_string (UniqueApp *app, 2.73 + const gchar *command); 2.74 +-G_CONST_RETURN gchar *unique_command_to_string (UniqueApp *app, 2.75 ++const gchar *unique_command_to_string (UniqueApp *app, 2.76 + gint command); 2.77 + 2.78 + G_END_DECLS 2.79 +diff -Nur libunique-1.1.6.orig/unique/uniquemessage.c libunique-1.1.6/unique/uniquemessage.c 2.80 +--- libunique-1.1.6.orig/unique/uniquemessage.c 2011-12-01 07:38:17.748122298 +0000 2.81 ++++ libunique-1.1.6/unique/uniquemessage.c 2011-12-01 07:41:45.743225713 +0000 2.82 +@@ -185,7 +185,7 @@ 2.83 + * 2.84 + * Since: 1.0.2 2.85 + */ 2.86 +-G_CONST_RETURN guchar * 2.87 ++const guchar * 2.88 + unique_message_data_get (UniqueMessageData *message_data, 2.89 + gsize *length) 2.90 + { 2.91 +@@ -525,7 +525,7 @@ 2.92 + * owned by the #UniqueMessageData structure and should not be 2.93 + * modified or freed 2.94 + */ 2.95 +-G_CONST_RETURN gchar * 2.96 ++const gchar * 2.97 + unique_message_data_get_startup_id (UniqueMessageData *message_data) 2.98 + { 2.99 + g_return_val_if_fail (message_data != NULL, NULL); 2.100 +diff -Nur libunique-1.1.6.orig/unique/uniquemessage.h libunique-1.1.6/unique/uniquemessage.h 2.101 +--- libunique-1.1.6.orig/unique/uniquemessage.h 2011-12-01 07:38:17.748122298 +0000 2.102 ++++ libunique-1.1.6/unique/uniquemessage.h 2011-12-01 07:40:47.576064565 +0000 2.103 +@@ -48,7 +48,7 @@ 2.104 + void unique_message_data_set (UniqueMessageData *message_data, 2.105 + const guchar *data, 2.106 + gsize length); 2.107 +-G_CONST_RETURN guchar *unique_message_data_get (UniqueMessageData *message_data, 2.108 ++const guchar *unique_message_data_get (UniqueMessageData *message_data, 2.109 + gsize *length); 2.110 + 2.111 + gboolean unique_message_data_set_text (UniqueMessageData *message_data, 2.112 +@@ -63,7 +63,7 @@ 2.113 + gchar * unique_message_data_get_filename (UniqueMessageData *message_data); 2.114 + 2.115 + GdkScreen * unique_message_data_get_screen (UniqueMessageData *message_data); 2.116 +-G_CONST_RETURN gchar * unique_message_data_get_startup_id (UniqueMessageData *message_data); 2.117 ++const gchar * unique_message_data_get_startup_id (UniqueMessageData *message_data); 2.118 + guint unique_message_data_get_workspace (UniqueMessageData *message_data); 2.119 + 2.120 + G_END_DECLS