Opened 17 years ago

Closed 17 years ago

Last modified 8 years ago

#11294 closed enhancement (fixed)

Add cscope to editors/vim

Reported by: chris@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: ports Version: 1.3.2
Keywords: Cc: raimue (Rainer Müller)
Port: vim

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Vim can drive a cscope database, allowing you to jump around as if you had a tags file, and also allowing you to do searches without ever leaving vim. It is really quite wonderful, and this simple patch to the Portfile will accomplish it:

--- Portfile.orig       2007-01-25 17:45:22.000000000 -0500
+++ Portfile    2007-01-25 17:47:11.000000000 -0500
@@ -112,6 +112,11 @@
        configure.args-append   --enable-gui=gtk2 --with-x --disable-darwin
        depends_lib-append              lib:libgtk.2:gtk2
 }
+
+variant cscope {
+    configure.args-append   --enable-cscope
+}
+
 #variant gnome {
 #      configure.args-delete   --enable-gui=no --without-x
 #      configure.args-append   --enable-gui=gnome --with-x --disable-darwin

Attachments (1)

Portfile.patch (446 bytes) - added by chris@… 17 years ago.
Patch to enable vim's cscope functionality.

Download all attachments as: .zip

Change History (6)

Changed 17 years ago by chris@…

Attachment: Portfile.patch added

Patch to enable vim's cscope functionality.

comment:1 Changed 17 years ago by pipping@…

Resolution: fixed
Status: newclosed

fixed in r21874.

comment:2 Changed 15 years ago by jcduell@…

The cscope that ships with OSX has --enable-cscope on by default, but macport's does not. Forcing users to figure out that macport's version has it off, but that there's a way to build a "variant" with it on is confusing, and most users will never figure it out. --enable-cscope is also turned on in every Linux distro I know.

I suggest you turn on --enable-cscope by default. It does not modify vim in any way other than allow cscope to work, it does not take up significant memory resources, and everyone else is doing it.

Cheers,

Jason Duell Mozilla

comment:3 Changed 15 years ago by dbevans (David B. Evans)

Cc: raimue@… added
Keywords: vim removed
Milestone: Port Bugs
Port: vim added

Since this ticket was closed long ago, it probably would be a good idea to file a new ticket with your enhancement request. Ccing current maintainer of this port.

comment:4 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: cscope removed
Note: See TracTickets for help on using tickets.