diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-07 02:56:17 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-07 02:56:17 +0800 |
commit | 8ca1c76f2e7ff72fa00b4b240348f3a041cf3ead (patch) | |
tree | 0ac239ea3ca74eb6796cdc24a7372c2882a1a646 /devel/anjuta/files | |
parent | b9bfea9387bce1eea646103de69f1c589f3d487b (diff) | |
download | marcuscom-ports-8ca1c76f2e7ff72fa00b4b240348f3a041cf3ead.tar marcuscom-ports-8ca1c76f2e7ff72fa00b4b240348f3a041cf3ead.tar.gz marcuscom-ports-8ca1c76f2e7ff72fa00b4b240348f3a041cf3ead.tar.bz2 marcuscom-ports-8ca1c76f2e7ff72fa00b4b240348f3a041cf3ead.tar.lz marcuscom-ports-8ca1c76f2e7ff72fa00b4b240348f3a041cf3ead.tar.xz marcuscom-ports-8ca1c76f2e7ff72fa00b4b240348f3a041cf3ead.tar.zst marcuscom-ports-8ca1c76f2e7ff72fa00b4b240348f3a041cf3ead.zip |
share/gnome -> share
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8838 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/anjuta/files')
-rw-r--r-- | devel/anjuta/files/anjuta | 6 | ||||
-rw-r--r-- | devel/anjuta/files/patch-Makefile.in | 25 | ||||
-rw-r--r-- | devel/anjuta/files/patch-data::Makefile.in | 11 | ||||
-rw-r--r-- | devel/anjuta/files/patch-doc::Makefile.in | 25 | ||||
-rw-r--r-- | devel/anjuta/files/patch-scripts::anjuta_import.sh.in | 8 | ||||
-rw-r--r-- | devel/anjuta/files/patch-src::launcher.c | 14 | ||||
-rw-r--r-- | devel/anjuta/files/patch-src_anjuta-encodings.c | 40 | ||||
-rw-r--r-- | devel/anjuta/files/patch-src_commands.c | 10 | ||||
-rw-r--r-- | devel/anjuta/files/patch-src_executer.c | 20 | ||||
-rw-r--r-- | devel/anjuta/files/patch-src_getline.c | 173 |
10 files changed, 332 insertions, 0 deletions
diff --git a/devel/anjuta/files/anjuta b/devel/anjuta/files/anjuta new file mode 100644 index 000000000..4c64959d2 --- /dev/null +++ b/devel/anjuta/files/anjuta @@ -0,0 +1,6 @@ +#!/bin/sh + +export PATH=%%LOCALBASE%%/gnu-autotools/bin:${PATH} +export ACLOCAL_FLAGS="-I %%LOCALBASE%%/share/aclocal ${ACLOCAL_FLAGS}" + +exec "%%PREFIX%%/bin/anjuta-bin" "$@" diff --git a/devel/anjuta/files/patch-Makefile.in b/devel/anjuta/files/patch-Makefile.in new file mode 100644 index 000000000..1b5fe700a --- /dev/null +++ b/devel/anjuta/files/patch-Makefile.in @@ -0,0 +1,25 @@ +--- Makefile.in.orig Wed Aug 17 02:27:09 2005 ++++ Makefile.in Wed Aug 17 02:27:33 2005 +@@ -395,14 +395,14 @@ + rm -f "$(DESTDIR)$(anjuta_glade_filedir)/$$f"; \ + done + install-anjutadocDATA: $(anjutadoc_DATA) +- @$(NORMAL_INSTALL) +- test -z "$(anjutadocdir)" || $(mkdir_p) "$(DESTDIR)$(anjutadocdir)" +- @list='$(anjutadoc_DATA)'; for p in $$list; do \ +- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ +- f=$(am__strip_dir) \ +- echo " $(anjutadocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(anjutadocdir)/$$f'"; \ +- $(anjutadocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(anjutadocdir)/$$f"; \ +- done ++# @$(NORMAL_INSTALL) ++# test -z "$(anjutadocdir)" || $(mkdir_p) "$(DESTDIR)$(anjutadocdir)" ++# @list='$(anjutadoc_DATA)'; for p in $$list; do \ ++# if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ ++# f=$(am__strip_dir) \ ++# echo " $(anjutadocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(anjutadocdir)/$$f'"; \ ++# $(anjutadocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(anjutadocdir)/$$f"; \ ++# done + + uninstall-anjutadocDATA: + @$(NORMAL_UNINSTALL) diff --git a/devel/anjuta/files/patch-data::Makefile.in b/devel/anjuta/files/patch-data::Makefile.in new file mode 100644 index 000000000..c7712e95c --- /dev/null +++ b/devel/anjuta/files/patch-data::Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Sun May 6 14:54:32 2007 ++++ Makefile.in Sun May 6 14:54:32 2007 +@@ -273,7 +273,7 @@ anjuta_data_DATA = \ + anjuta_mimedir = $(prefix)/share/mime-info + anjuta_mime_DATA = anjuta.mime + anjuta_mimelnkdir = $(prefix)/share/mimelnk/application +-anjuta_mimelnk_DATA = x-anjuta-project.desktop ++anjuta_mimelnk_DATA = + EXTRA_DIST = $(anjuta_data_DATA) $(anjuta_mime_DATA) $(anjuta_mimelnk_DATA) + all: all-recursive + diff --git a/devel/anjuta/files/patch-doc::Makefile.in b/devel/anjuta/files/patch-doc::Makefile.in new file mode 100644 index 000000000..525553c21 --- /dev/null +++ b/devel/anjuta/files/patch-doc::Makefile.in @@ -0,0 +1,25 @@ +--- doc/Makefile.in.orig Wed Aug 17 02:31:26 2005 ++++ doc/Makefile.in Wed Aug 17 02:31:56 2005 +@@ -352,14 +352,14 @@ + rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ + done + install-anjuta_docDATA: $(anjuta_doc_DATA) +- @$(NORMAL_INSTALL) +- test -z "$(anjuta_docdir)" || $(mkdir_p) "$(DESTDIR)$(anjuta_docdir)" +- @list='$(anjuta_doc_DATA)'; for p in $$list; do \ +- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ +- f=$(am__strip_dir) \ +- echo " $(anjuta_docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(anjuta_docdir)/$$f'"; \ +- $(anjuta_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(anjuta_docdir)/$$f"; \ +- done ++# @$(NORMAL_INSTALL) ++# test -z "$(anjuta_docdir)" || $(mkdir_p) "$(DESTDIR)$(anjuta_docdir)" ++# @list='$(anjuta_doc_DATA)'; for p in $$list; do \ ++# if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ ++# f=$(am__strip_dir) \ ++# echo " $(anjuta_docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(anjuta_docdir)/$$f'"; \ ++# $(anjuta_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(anjuta_docdir)/$$f"; \ ++# done + + uninstall-anjuta_docDATA: + @$(NORMAL_UNINSTALL) diff --git a/devel/anjuta/files/patch-scripts::anjuta_import.sh.in b/devel/anjuta/files/patch-scripts::anjuta_import.sh.in new file mode 100644 index 000000000..94b1413d6 --- /dev/null +++ b/devel/anjuta/files/patch-scripts::anjuta_import.sh.in @@ -0,0 +1,8 @@ +--- scripts/anjuta_import.sh.in.orig Wed May 14 16:09:42 2003 ++++ scripts/anjuta_import.sh.in Wed May 14 16:11:15 2003 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # + # Shell script to automatically create an Anjuta 1.x project file + # Copyright: Biswapesh Chattopadhyay (biswapesh_chatterjee@tcscal.co.in) 2001-2002 diff --git a/devel/anjuta/files/patch-src::launcher.c b/devel/anjuta/files/patch-src::launcher.c new file mode 100644 index 000000000..5783dc99e --- /dev/null +++ b/devel/anjuta/files/patch-src::launcher.c @@ -0,0 +1,14 @@ +--- src/launcher.c.orig Sun Apr 24 09:28:02 2005 ++++ src/launcher.c Wed Aug 17 02:33:34 2005 +@@ -1130,9 +1130,9 @@ anjuta_launcher_fork (AnjutaLauncher *la + /* Set no delays for the write pipes (non_buffered) so + that we get all the outputs immidiately */ + if ((md = fcntl (stdout_pipe[1], F_GETFL)) != -1) +- fcntl (stdout_pipe[1], F_SETFL, O_SYNC | md); ++ fcntl (stdout_pipe[1], F_SETFL, O_FSYNC | md); + if ((md = fcntl (stderr_pipe[1], F_GETFL)) != -1) +- fcntl (stderr_pipe[1], F_SETFL, O_SYNC | md); ++ fcntl (stderr_pipe[1], F_SETFL, O_FSYNC | md); + + execvp (args[0], args); + g_warning (_("Cannot execute command: \"%s\""), args[0]); diff --git a/devel/anjuta/files/patch-src_anjuta-encodings.c b/devel/anjuta/files/patch-src_anjuta-encodings.c new file mode 100644 index 000000000..e86b8c915 --- /dev/null +++ b/devel/anjuta/files/patch-src_anjuta-encodings.c @@ -0,0 +1,40 @@ +--- src/anjuta-encodings.c.orig 2005-12-15 18:50:55.000000000 +0100 ++++ src/anjuta-encodings.c 2005-12-15 18:51:38.000000000 +0100 +@@ -707,15 +707,15 @@ + gtk_tree_view_set_search_column (GTK_TREE_VIEW (stock_treeview), + COLUMN_ENCODING_NAME); + selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (stock_treeview)); + g_return_if_fail (selection != NULL); + gtk_tree_selection_set_mode (selection, GTK_SELECTION_MULTIPLE); +- g_signal_connect (G_OBJECT (selection), "changed", +- G_CALLBACK (on_stock_selection_changed), NULL); + + model = create_encodings_treeview_model (); + gtk_tree_view_set_model (GTK_TREE_VIEW (stock_treeview), model); ++ g_signal_connect (G_OBJECT (selection), "changed", ++ G_CALLBACK (on_stock_selection_changed), NULL); + g_object_unref (model); + + /* Add the encoding column for supported treeview*/ + cell = gtk_cell_renderer_text_new (); + column = gtk_tree_view_column_new_with_attributes (_("Supported Encodings"), +@@ -726,17 +726,17 @@ + gtk_tree_view_set_search_column (GTK_TREE_VIEW (supported_treeview), + COLUMN_ENCODING_NAME); + selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (supported_treeview)); + g_return_if_fail (selection != NULL); + gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE); +- g_signal_connect (G_OBJECT (selection), "changed", +- G_CALLBACK (on_supported_selection_changed), NULL); + + /* create list store */ + model = GTK_TREE_MODEL (gtk_list_store_new (SUPPORTED_ENCODING_NUM_COLS, + G_TYPE_STRING, G_TYPE_POINTER)); + gtk_tree_view_set_model (GTK_TREE_VIEW (supported_treeview), model); ++ g_signal_connect (G_OBJECT (selection), "changed", ++ G_CALLBACK (on_supported_selection_changed), NULL); + g_object_unref (model); + + anjuta_preferences_register_property_custom (pref, supported_treeview, + SUPPORTED_ENCODINGS, + "ISO-8859-15", diff --git a/devel/anjuta/files/patch-src_commands.c b/devel/anjuta/files/patch-src_commands.c new file mode 100644 index 000000000..89e481307 --- /dev/null +++ b/devel/anjuta/files/patch-src_commands.c @@ -0,0 +1,10 @@ +--- src/commands.c.orig Tue Aug 31 00:41:32 2004 ++++ src/commands.c Tue Aug 31 00:41:56 2004 +@@ -102,6 +102,7 @@ + /* Ditto */ + static gchar * + term_commands[] = { ++ "gnome-terminal -e '$(anjuta.current.command)'", + "gnome-terminal -e \"$(anjuta.current.command)\"", + "gnome-terminal -x sh -c \"$(anjuta.current.command)\"", + "gnome-terminal --command=\"sh -c \\\"$(anjuta.current.command); read x\\\"\"", diff --git a/devel/anjuta/files/patch-src_executer.c b/devel/anjuta/files/patch-src_executer.c new file mode 100644 index 000000000..dd5907d73 --- /dev/null +++ b/devel/anjuta/files/patch-src_executer.c @@ -0,0 +1,20 @@ +--- src/executer.c.orig Tue Aug 31 00:40:58 2004 ++++ src/executer.c Tue Aug 31 00:41:25 2004 +@@ -154,7 +154,7 @@ + if(e->terminal) + { + gchar* escaped_cmd; +- escaped_cmd = anjuta_util_escape_quotes(command); ++ escaped_cmd = command; + prop_set_with_key (e->props, "anjuta.current.command", escaped_cmd); + + #ifdef DEBUG +@@ -162,7 +162,7 @@ + #endif + + cmd = command_editor_get_command (app->command_editor, COMMAND_TERMINAL); +- g_free(escaped_cmd); ++ /*g_free(escaped_cmd);*/ + } + else + { diff --git a/devel/anjuta/files/patch-src_getline.c b/devel/anjuta/files/patch-src_getline.c new file mode 100644 index 000000000..d72401d3e --- /dev/null +++ b/devel/anjuta/files/patch-src_getline.c @@ -0,0 +1,173 @@ +--- src/getline.c.orig Sun Aug 21 02:07:44 2005 ++++ src/getline.c Sun Aug 21 02:23:37 2005 +@@ -1,70 +1,112 @@ +-/* +- * getline.c Copyright (C) 2003 Alexander Nedotsukov +- * +- * This program is free software; you can redistribute it and/or modify it +- * under the terms of the GNU General Public License as published by the Free +- * Software Foundation; either version 2 of the License, or (at your option) +- * any later version. +- * +- * This program is distributed in the hope that it will be useful, but +- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +- * for more details. +- * You should have received a copy of the GNU General Public License along +- * with this program; if not, write to the Free Software Foundation, Inc., 59 +- * Temple Place, Suite 330, Boston, MA 02111-1307 USA +- */ ++#include "config.h" + +-#include <config.h> +- +-// #ifdef FREEBSD + #ifndef HAVE_GETLINE + ++#undef _GNU_SOURCE ++ ++#include <sys/types.h> + #include <stdio.h> +-#include <string.h> +-#include <stdlib.h> +-#include <errno.h> + +-/* GNU libc getline() compatibility */ ++#ifdef HAVE_STRINGS_H ++# include <strings.h> ++#else ++# include <string.h> ++#endif /* HAVE_STRINGS_H */ ++ ++#ifdef HAVE_STDLIB_H ++# include <stdlib.h> ++#endif /* HAVE_STDLIB_H */ ++ ++#ifdef HAVE_UNISTD_H ++# include <unistd.h> ++#endif /* HAVE_UNISTD_H */ ++ ++#include <limits.h> ++#include <errno.h> + +-int +-getline(char** line, size_t* size, FILE* fp) ++/* Read up to (and including) a '\n' from STREAM into *LINEPTR ++ (and null-terminate it). *LINEPTR is a pointer returned from malloc (or ++ NULL), pointing to *N characters of space. It is realloc'd as ++ necessary. Returns the number of characters read (not including the ++ null terminator), or -1 on error or EOF. */ ++ ++size_t ++getline (lineptr, n, stream) ++ char **lineptr; ++ size_t *n; ++ FILE *stream; + { +- static const size_t line_grow_by = 80; /* in most texts line fits console */ +- int ch; +- size_t i; +- +- if (line == NULL || size == NULL || fp == NULL) { /* illegal call */ +- errno = EINVAL; +- return -1; +- } +- if (*line == NULL && *size) { /* logically incorrect */ +- errno = EINVAL; +- return -1; +- } ++ char *line, *p; ++ long size, copy; + +- i = 0; +- while (1) { +- ch = fgetc(fp); +- if (ch == EOF) +- break; +- /* ensure bufer still large enough for ch and trailing null */ +- if ((*size - i) <= 1) { +- *line = (char*)realloc(*line, *size += line_grow_by); +- if (*line == NULL) { +- errno = ENOMEM; +- return -1; +- } +- } +- *(*line + i++) = (char)ch; +- if (ch == '\n') +- break; ++ if (lineptr == NULL || n == NULL) ++ { ++ errno = EINVAL; ++ return (size_t) -1; ++ } ++ ++ if (ferror (stream)) ++ return (size_t) -1; ++ ++ /* Make sure we have a line buffer to start with. */ ++ if (*lineptr == NULL || *n < 2) /* !seen and no buf yet need 2 chars. */ ++ { ++#ifndef MAX_CANON ++#define MAX_CANON 256 ++#endif ++ if (!*lineptr) ++ line = (char *) malloc (MAX_CANON); ++ else ++ line = (char *) realloc (*lineptr, MAX_CANON); ++ if (line == NULL) ++ return (size_t) -1; ++ *lineptr = line; ++ *n = MAX_CANON; ++ } ++ ++ line = *lineptr; ++ size = *n; ++ ++ copy = size; ++ p = line; ++ ++ while (1) ++ { ++ long len; ++ ++ while (--copy > 0) ++ { ++ register int c = getc (stream); ++ if (c == EOF) ++ goto lose; ++ else if ((*p++ = c) == '\n') ++ goto win; + } +- +- *(*line + i) = 0; +- +- return ferror(fp) ? -1 : i; ++ ++ /* Need to enlarge the line buffer. */ ++ len = p - line; ++ size *= 2; ++ line = (char *) realloc (line, size); ++ if (line == NULL) ++ goto lose; ++ *lineptr = line; ++ *n = size; ++ p = line + len; ++ copy = size - len; ++ } ++ ++ lose: ++ if (p == *lineptr) ++ return (size_t) -1; ++ ++ /* Return a partial line since we got an error in the middle. */ ++ win: ++#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(MSDOS) || defined(__EMX__) ++ if (p - 2 >= *lineptr && p[-2] == '\r') ++ p[-2] = p[-1], --p; ++#endif ++ *p = '\0'; ++ return p - *lineptr; + } + + #endif +- |