2
I know that one can pass ./configure some flags to install vim with clipboard support. I want to do this via Macports.
In apt, there was a way to download a package's source without first installing it, then install it using dpkg. Is there a similar thing I can do in Macports? I'd like to have Macports download the vim source for me, and then ./configure it myself, then install it, so that Macports is aware of the installation in case I want to uninstall it for some reason.
If I can't do this via Macports, can I do it with brew? I'm trying to avoid downloading the source directly so that I can have some sort of a package manager be aware of my vim install in case I want to remove it.
I was aware of the port variants. I didn't want the "huge" variant of vim because of all the extra things it came bundled with. However, you did answer the more pertinent question, so I'll accept your answer. Also, I'm assuming that there isn't a way to get a port's source without creating my own port? That's unfortunate.
As far as homebrew having the packages I need, I did double-check before migrating. :) – orryowr – 2012-05-07T00:13:15.073
Don't assume anything, read the docs: the whole
install
process can be broken up in several steps:fetch
,checksum
,configure
and so on… A simple$ sudo port fetch vim
will download the source for you to play with. But if you are ready to do the configuration yourself, why not just using the source from vim.org directly? Also, the "brew" below installs the "huge" version as well. – romainl – 2012-05-07T04:50:29.997I was thinking that I'd have macports manage my package after configuring it -- mainly for removing it later. – orryowr – 2012-05-08T06:14:27.610
That's exactly what you'do with 0.
$ sudo port fetch vim
, 1. editing the config file, 2.$ sudo port configure vim
, and 3.$ sudo port install vim
. You do the configuration yourself and let MacPorts do the management. – romainl – 2012-05-08T07:46:14.330Are you sure that +huge provides access to the clipboard? from what I see on the port file it just adds the
--with-features=huge
argument. – Raimondi – 2012-05-08T22:30:06.670romainl, thanks so much for walking me through this. I won't be switching back to MacPorts, (yet) (I like how homebrew's stuff is symlinked into /usr/local/bin/, I hated having an /opt/ directory) This will definitely come handy if I ever do switch back. – orryowr – 2012-05-09T00:34:50.873
@El Isra,
--with-features=huge
is a shortcut. It's a convenient way to skip typing a lot of configure options. – romainl – 2012-05-09T05:18:03.220