Ticket #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: | 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
Change History
Changed 6 years ago by chris@…
- Attachment Portfile.patch added
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


Patch to enable vim's cscope functionality.