New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #11294 (closed enhancement: fixed)

Opened 6 years ago

Last modified 4 years ago

Add cscope to editors/vim

Reported by: chris@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: ports Version: 1.3.2
Keywords: cscope Cc: raimue@…
Port: vim

Description

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

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

Change History

Changed 6 years ago by chris@…

Patch to enable vim's cscope functionality.

comment:1 Changed 6 years ago by pipping@…

  • Status changed from new to closed
  • Resolution set to fixed

fixed in r21874.

comment:2 Changed 4 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 4 years ago by devans@…

  • Cc raimue@… added
  • Keywords vim removed
  • Port set to vim
  • Milestone set to Port Bugs

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 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.