diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-01 07:19:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-01 07:19:57 +0000 |
commit | b3e4776fedd103c4bb4dda6fb5a6ed55b651efc8 (patch) | |
tree | 679b039e1b1376b8e458dfdc0126cc2164dc785c /main/nautilus | |
parent | ad66d5ee866451bbd91880b4a7e79c696bd0bbd1 (diff) | |
download | aports-b3e4776fedd103c4bb4dda6fb5a6ed55b651efc8.tar.bz2 aports-b3e4776fedd103c4bb4dda6fb5a6ed55b651efc8.tar.xz |
main/nautilus: rebuild against mesa-8.0
Diffstat (limited to 'main/nautilus')
-rw-r--r-- | main/nautilus/APKBUILD | 12 | ||||
-rw-r--r-- | main/nautilus/g_const_return.patch | 191 |
2 files changed, 198 insertions, 5 deletions
diff --git a/main/nautilus/APKBUILD b/main/nautilus/APKBUILD index 90df7a7469..4f7593f6b8 100644 --- a/main/nautilus/APKBUILD +++ b/main/nautilus/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=nautilus pkgver=2.32.2 -pkgrel=2 +pkgrel=3 pkgdesc="GNOME file manager" url="http://projects.gnome.org/nautilus" arch="all" @@ -27,8 +27,9 @@ depends_dev="gtk+-dev libxcb-dev" makedepends="$depends_dev intltool gobject-introspection-dev" install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade" -subpackages="$pkgname-dev" -source="ftp://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2" +subpackages="$pkgname-dev $pkgname-lang" +source="ftp://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 + g_const_return.patch" _builddir="${srcdir}/${pkgname}-${pkgver}" prepare() { @@ -45,7 +46,7 @@ build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + || return 1 make || return 1 } @@ -59,4 +60,5 @@ package() { find "$pkgdir" -name '*.la' -delete } -md5sums="51565aa10d1625dff56e381228346911 nautilus-2.32.2.tar.bz2" +md5sums="51565aa10d1625dff56e381228346911 nautilus-2.32.2.tar.bz2 +69329cf155b211d6143fcdc68a8695bf g_const_return.patch" diff --git a/main/nautilus/g_const_return.patch b/main/nautilus/g_const_return.patch new file mode 100644 index 0000000000..330ae0b22a --- /dev/null +++ b/main/nautilus/g_const_return.patch @@ -0,0 +1,191 @@ +diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c +index b21bfea..63a3ccf 100644 +--- a/eel/eel-editable-label.c ++++ b/eel/eel-editable-label.c +@@ -682,7 +682,7 @@ eel_editable_label_set_text (EelEditableLabel *label, + * Return value: the text in the label widget. This is the internal + * string used by the label, and must not be modified. + **/ +-G_CONST_RETURN gchar * ++const gchar * + eel_editable_label_get_text (EelEditableLabel *label) + { + g_return_val_if_fail (EEL_IS_EDITABLE_LABEL (label), NULL); +@@ -4292,7 +4292,7 @@ eel_editable_label_accessible_initialize (AtkObject *accessible, + atk_object_set_role (accessible, ATK_ROLE_TEXT); + } + +-static G_CONST_RETURN gchar* ++static const gchar* + eel_editable_label_accessible_get_name (AtkObject *accessible) + { + if (accessible->name != NULL) +diff --git a/eel/eel-editable-label.h b/eel/eel-editable-label.h +index 30069dc..b0adaec 100644 +--- a/eel/eel-editable-label.h ++++ b/eel/eel-editable-label.h +@@ -112,7 +112,7 @@ GType eel_editable_label_get_type (void) G_GNUC_CONST; + GtkWidget* eel_editable_label_new (const char *str); + void eel_editable_label_set_text (EelEditableLabel *label, + const char *str); +-G_CONST_RETURN gchar* eel_editable_label_get_text (EelEditableLabel *label); ++const gchar* eel_editable_label_get_text (EelEditableLabel *label); + void eel_editable_label_set_justify (EelEditableLabel *label, + GtkJustification jtype); + GtkJustification eel_editable_label_get_justify (EelEditableLabel *label); +diff --git a/eel/eel-i18n.c b/eel/eel-i18n.c +index 83f9fec..98e36c5 100644 +--- a/eel/eel-i18n.c ++++ b/eel/eel-i18n.c +@@ -32,7 +32,7 @@ + + + +-G_CONST_RETURN char * ++const char * + _eel_gettext (const char *str) + { + static gboolean _eel_gettext_initialized = FALSE; +diff --git a/eel/eel-i18n.h b/eel/eel-i18n.h +index b455689..6db832b 100644 +--- a/eel/eel-i18n.h ++++ b/eel/eel-i18n.h +@@ -28,7 +28,7 @@ + #ifdef ENABLE_NLS + #include <glib.h> + +-G_CONST_RETURN char * ++const char * + _eel_gettext (const char *str) G_GNUC_FORMAT (1); + + #include <libintl.h> +diff --git a/eel/eel-labeled-image.c b/eel/eel-labeled-image.c +index 90df383..a56e952 100644 +--- a/eel/eel-labeled-image.c ++++ b/eel/eel-labeled-image.c +@@ -2140,7 +2140,7 @@ get_image (gpointer object) + return EEL_LABELED_IMAGE (widget); + } + +-static G_CONST_RETURN gchar * ++static const gchar * + eel_labeled_image_accessible_get_name (AtkObject *accessible) + { + EelLabeledImage *labeled_image; +diff --git a/libnautilus-private/nautilus-icon-canvas-item.c b/libnautilus-private/nautilus-icon-canvas-item.c +index a31623a..1aece5a 100644 +--- a/libnautilus-private/nautilus-icon-canvas-item.c ++++ b/libnautilus-private/nautilus-icon-canvas-item.c +@@ -2878,7 +2878,7 @@ nautilus_icon_canvas_item_accessible_action_interface_init (AtkActionIface *ifac + iface->set_description = nautilus_icon_canvas_item_accessible_action_set_description; + } + +-static G_CONST_RETURN gchar * ++static const gchar * + nautilus_icon_canvas_item_accessible_get_name (AtkObject *accessible) + { + NautilusIconCanvasItem *item; +@@ -2894,7 +2894,7 @@ nautilus_icon_canvas_item_accessible_get_name (AtkObject *accessible) + return item->details->editable_text; + } + +-static G_CONST_RETURN gchar* ++static const gchar* + nautilus_icon_canvas_item_accessible_get_description (AtkObject *accessible) + { + NautilusIconCanvasItem *item; +@@ -3055,7 +3055,7 @@ nautilus_icon_canvas_item_accessible_class_init (AtkObjectClass *klass) + } + + +-static G_CONST_RETURN gchar * ++static const gchar * + nautilus_icon_canvas_item_accessible_get_image_description + (AtkImage *image) + { +diff --git a/libnautilus-private/nautilus-icon-info.c b/libnautilus-private/nautilus-icon-info.c +index f39ad42..af023ba 100644 +--- a/libnautilus-private/nautilus-icon-info.c ++++ b/libnautilus-private/nautilus-icon-info.c +@@ -573,13 +573,13 @@ nautilus_icon_info_get_attach_points (NautilusIconInfo *icon, + return icon->n_attach_points != 0; + } + +-G_CONST_RETURN char * ++const char * + nautilus_icon_info_get_display_name (NautilusIconInfo *icon) + { + return icon->display_name; + } + +-G_CONST_RETURN char * ++const char * + nautilus_icon_info_get_used_name (NautilusIconInfo *icon) + { + return icon->icon_name; +diff --git a/libnautilus-private/nautilus-icon-info.h b/libnautilus-private/nautilus-icon-info.h +index 5ef6cd2..861abfd 100644 +--- a/libnautilus-private/nautilus-icon-info.h ++++ b/libnautilus-private/nautilus-icon-info.h +@@ -72,8 +72,8 @@ gboolean nautilus_icon_info_get_embedded_rect (NautilusI + gboolean nautilus_icon_info_get_attach_points (NautilusIconInfo *icon, + GdkPoint **points, + gint *n_points); +-G_CONST_RETURN char *nautilus_icon_info_get_display_name (NautilusIconInfo *icon); +-G_CONST_RETURN char *nautilus_icon_info_get_used_name (NautilusIconInfo *icon); ++const char *nautilus_icon_info_get_display_name (NautilusIconInfo *icon); ++const char *nautilus_icon_info_get_used_name (NautilusIconInfo *icon); + + void nautilus_icon_info_clear_caches (void); + +diff --git a/libnautilus-private/nautilus-search-engine-beagle.c b/libnautilus-private/nautilus-search-engine-beagle.c +index 930923f..1129d6c 100644 +--- a/libnautilus-private/nautilus-search-engine-beagle.c ++++ b/libnautilus-private/nautilus-search-engine-beagle.c +@@ -69,7 +69,7 @@ typedef enum { + static gboolean (*beagle_client_send_request_async) (BeagleClient *client, + BeagleRequest *request, + GError **err) = NULL; +-static G_CONST_RETURN char *(*beagle_hit_get_uri) (BeagleHit *hit) = NULL; ++static const char *(*beagle_hit_get_uri) (BeagleHit *hit) = NULL; + static GSList *(*beagle_hits_added_response_get_hits) (BeagleHitsAddedResponse *response) = NULL; + static BeagleQuery *(*beagle_query_new) (void) = NULL; + static void (*beagle_query_add_text) (BeagleQuery *query, +diff --git a/src/nautilus-zoom-control.c b/src/nautilus-zoom-control.c +index 2907cd7..2d399c3 100644 +--- a/src/nautilus-zoom-control.c ++++ b/src/nautilus-zoom-control.c +@@ -748,7 +748,7 @@ nautilus_zoom_control_accessible_get_n_actions (AtkAction *accessible) + return NUM_ACTIONS; + } + +-static G_CONST_RETURN char * ++static const char * + nautilus_zoom_control_accessible_action_get_description (AtkAction *accessible, + int i) + { +@@ -757,7 +757,7 @@ nautilus_zoom_control_accessible_action_get_description (AtkAction *accessible, + return _(nautilus_zoom_control_accessible_action_descriptions[i]); + } + +-static G_CONST_RETURN char * ++static const char * + nautilus_zoom_control_accessible_action_get_name (AtkAction *accessible, + int i) + { +@@ -884,13 +884,13 @@ nautilus_zoom_control_accessible_value_interface_init (AtkValueIface *iface) + iface->set_current_value = nautilus_zoom_control_accessible_set_current_value; + } + +-static G_CONST_RETURN char * ++static const char * + nautilus_zoom_control_accessible_get_name (AtkObject *accessible) + { + return _("Zoom"); + } + +-static G_CONST_RETURN char * ++static const char * + nautilus_zoom_control_accessible_get_description (AtkObject *accessible) + { + return _("Set the zoom level of the current view"); |