Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 350887

Summary: Add mzscheme USE flag to app-editors/vim and app-editors/gvim
Product: Gentoo Linux Reporter: Fredrick Marsham <gentoo_bugzilla>
Component: Current packagesAssignee: Vim Maintainers <vim>
Status: RESOLVED FIXED    
Severity: enhancement CC: mattoxbeckman, scheme
Priority: Low    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://vimdoc.sourceforge.net/htmldoc/if_mzsch.html
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 324161    
Bug Blocks:    
Attachments: patches eclass/vim.eclass to add support for dev-scheme/racket

Description Fredrick Marsham 2011-01-06 21:00:49 UTC
This is a feature request to add an mzscheme USE flag to app-editors/vim and app-editors/gvim so that they can be compiled with mzscheme support.

To do so all you have to do is make sure dev-scheme/plt-scheme has been emerged and add --enable-mzschemeinterp to the flags used by ./configure


Reproducible: Always
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-01-09 22:05:07 UTC
One way or another, this will have to wait. The status of dev-scheme/plt-scheme is not very good. Firstly I have to port racket to the main tree (see bug #324161). I would resolve this as LATER, but I let the vim maintainers to take a look at what you propose first. 
Comment 2 Imran Sher Rafique 2011-04-14 03:30:10 UTC
(background note: plt-scheme has been renamed to racket, and the vim support for it has been updated to use 'racket' since vim-7.3.049)

We've been discussing this on the gentoo-lisp herd mailing list, and I have a small patch to the existing vim.eclass which enables both tcl and racket (was mzscheme) support. Its tested and works fine, with the following caveats:

1) obviously, it needs dev-scheme/racket, which is currently only available in the 'lisp' overlay (as per comment 1 above)

2) we need a fix (either upstream, or in our dev-scheme/racket ebuild) to remove the leftover /usr/bin/mzscheme binary, and link that to /usr/bin/racket instead. This issue has already being discussed in the gentoo-lisp mailing list, and has been raised upstream.

3) there is a small bug in one of the configure scripts used during the build process to detect where the existing racket scheme in installed. This is easily bypassed by specifying --with-plthome=/usr/ , which is the only place a dev-scheme/racket ebuild would install it to anyway. Its a minor workaround until this issue is fixed upstream.
Comment 3 Imran Sher Rafique 2011-04-14 03:31:57 UTC
Created attachment 269879 [details, diff]
patches eclass/vim.eclass to add support for dev-scheme/racket

This patch uses a 'racket' USE flag (not mzscheme)
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2011-05-10 15:35:23 UTC
issue 2) is fixed upstream and compatibility programs like mzscheme should now work.
Comment 5 Mattox Beckman 2012-07-18 22:25:22 UTC
Issues 1) and 3) appear to be fixed as well.  I have been able to get this working on vim-7.3.409 with no trouble.
Comment 6 Tim Harder gentoo-dev 2013-11-19 10:30:07 UTC
Added to 7.4.94.