From 1e2b2f3c504115c832a5d254f9d2653757bb0f3f Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 15 Sep 2008 22:18:39 +0200 Subject: Add fixed ctags --- dev-util/ctags/files/ctags-5.6-ebuilds.patch | 22 ++++++++++++++++ .../ctags-5.7-python-vars-starting-with-def.patch | 11 ++++++++ dev-util/ctags/files/ctags-ada.patch | 30 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 dev-util/ctags/files/ctags-5.6-ebuilds.patch create mode 100644 dev-util/ctags/files/ctags-5.7-python-vars-starting-with-def.patch create mode 100644 dev-util/ctags/files/ctags-ada.patch (limited to 'dev-util/ctags/files') diff --git a/dev-util/ctags/files/ctags-5.6-ebuilds.patch b/dev-util/ctags/files/ctags-5.6-ebuilds.patch new file mode 100644 index 0000000..5b0de66 --- /dev/null +++ b/dev-util/ctags/files/ctags-5.6-ebuilds.patch @@ -0,0 +1,22 @@ +diff -ur ctags-5.6/sh.c ctags-5.6-ebuild/sh.c +--- ctags-5.6/sh.c 2006-05-30 00:37:13.000000000 -0400 ++++ ctags-5.6-ebuild/sh.c 2006-10-07 17:37:31.000000000 -0400 +@@ -7,7 +7,8 @@ + * GNU General Public License. + * + * This module contains functions for generating tags for scripts for the +-* Bourne shell (and its derivatives, the Korn and Z shells). ++* Bourne shell (and its derivatives, the Korn and Z shells), along with some ++* specialised kinds of shell scripts (Gentoo ebuilds and eclasses). + */ + + /* +@@ -102,7 +103,7 @@ + extern parserDefinition* ShParser (void) + { + static const char *const extensions [] = { +- "sh", "SH", "bsh", "bash", "ksh", "zsh", NULL ++ "sh", "SH", "bsh", "bash", "ksh", "zsh", "ebuild", "eclass", NULL + }; + parserDefinition* def = parserNew ("Sh"); + def->kinds = ShKinds; diff --git a/dev-util/ctags/files/ctags-5.7-python-vars-starting-with-def.patch b/dev-util/ctags/files/ctags-5.7-python-vars-starting-with-def.patch new file mode 100644 index 0000000..a20007a --- /dev/null +++ b/dev-util/ctags/files/ctags-5.7-python-vars-starting-with-def.patch @@ -0,0 +1,11 @@ +--- python.c 2008-03-26 20:31:26.000000000 +0200 ++++ python.c 2008-03-26 20:31:35.000000000 +0200 +@@ -185,7 +185,7 @@ + while (*cp) + { + cp = skipEverything (cp); +- if (!strncmp(cp, "def", 3) || !strncmp(cp, "class", 5)) ++ if (!strncmp(cp, "def ", 4) || !strncmp(cp, "class ", 6)) + { + return cp; + } diff --git a/dev-util/ctags/files/ctags-ada.patch b/dev-util/ctags/files/ctags-ada.patch new file mode 100644 index 0000000..b130fb9 --- /dev/null +++ b/dev-util/ctags/files/ctags-ada.patch @@ -0,0 +1,30 @@ +diff -ru ctags-5.6-orig/parsers.h ctags-5.6/parsers.h +--- ctags-5.6-orig/parsers.h 2006-05-30 06:37:12.000000000 +0200 ++++ ctags-5.6/parsers.h 2007-06-16 18:38:31.000000000 +0200 +@@ -16,6 +16,7 @@ + + /* Add the name of any new parser definition function here */ + #define PARSER_LIST \ ++ AdaParser, \ + AsmParser, \ + AspParser, \ + AwkParser, \ +diff -ru ctags-5.6-orig/source.mak ctags-5.6/source.mak +--- ctags-5.6-orig/source.mak 2004-06-10 05:01:17.000000000 +0200 ++++ ctags-5.6/source.mak 2007-06-16 18:37:40.000000000 +0200 +@@ -8,6 +8,7 @@ + strlist.h vstring.h + + SOURCES = \ ++ ada.c \ + args.c \ + asm.c \ + asp.c \ +@@ -58,6 +59,7 @@ + argproc.c mac.c qdos.c + + OBJECTS = \ ++ ada.$(OBJEXT) \ + args.$(OBJEXT) \ + asm.$(OBJEXT) \ + asp.$(OBJEXT) \ -- cgit v1.2.3-54-g00ecf