[27546] trunk/dports/editors/vim/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 7 12:01:47 PDT 2007
Revision: 27546
http://trac.macosforge.org/projects/macports/changeset/27546
Author: nox at macports.org
Date: 2007-08-07 12:01:47 -0700 (Tue, 07 Aug 2007)
Log Message:
-----------
* Quotes in description are now escaped.
* Make it use ${name} variable and suffix procedure.
* Tiny, small, big and huge now conflict each other.
* vim will now search for a vimrc file in ${prefix}/etc.
Modified Paths:
--------------
trunk/dports/editors/vim/Portfile
Modified: trunk/dports/editors/vim/Portfile
===================================================================
--- trunk/dports/editors/vim/Portfile 2007-08-07 18:14:27 UTC (rev 27545)
+++ trunk/dports/editors/vim/Portfile 2007-08-07 19:01:47 UTC (rev 27546)
@@ -10,7 +10,7 @@
pipping at macports.org \
raimue at macports.org \
openmaintainer at macports.org
-description Vi "workalike" with many additional features
+description Vi \"workalike\" with many additional features
long_description \
Vim is an advanced text editor that seeks to provide the power of the \
de-facto Unix editor 'Vi', with a more complete feature set.
@@ -21,11 +21,11 @@
use_bzip2 yes
distfiles \
- ${name}-${vim_version}${extract.suffix}:vim \
+ [suffix ${name}-${vim_version}] \
${name}-${vim_version}-extra.tar.gz:extra \
${name}-${vim_version}-lang.tar.gz:extra
checksums \
- ${name}-${vim_version}${extract.suffix} \
+ [suffix ${name}-${vim_version}] \
md5 44c6b4914f38d6f9aa959640b89da329 \
sha1 981e1acecc4d8f15680b6e160de84aed038d857d \
rmd160 470775e0d0219cafe7e04dd91199ed7441882456 \
@@ -38,8 +38,8 @@
sha1 7c1e2f498e1f8304879e73b88562f9036801c7ee \
rmd160 ac38dde9b2e497687f9d046786b3ce1e45f45020
-dist_subdir vim
-distname vim[strsed ${vim_version} {g/\.//}]
+dist_subdir ${name}
+distname ${name}[strsed ${vim_version} {g/\.//}]
depends_lib port:ncurses
configure.args --enable-gui=no \
@@ -49,7 +49,7 @@
--mandir=${prefix}/share/man \
--with-tlib=ncurses
-extract.only ${name}-${vim_version}${extract.suffix}
+extract.only [suffix ${name}-${vim_version}]
post-extract {
system "gnutar xvfz ${distpath}/${name}-${vim_version}-extra.tar.gz -C \
${workpath}"
@@ -80,12 +80,12 @@
depends_lib-append port:openmotif
}
-variant tiny { configure.args-append --with-features=tiny }
-variant small { configure.args-append --with-features=small }
-variant big { configure.args-append --with-features=big }
-variant huge { configure.args-append --with-features=huge }
-variant multibyte { configure.args-append --enable-multibyte }
-variant xim { configure.args-append --with-xim }
+variant tiny { configure.args-append --with-features=tiny }
+variant small conflicts tiny { configure.args-append --with-features=small }
+variant big conflicts tiny small { configure.args-append --with-features=big }
+variant huge conflicts tiny small big { configure.args-append --with-features=huge }
+variant multibyte { configure.args-append --enable-multibyte }
+variant xim { configure.args-append --with-xim }
variant perl {
configure.args-append --enable-perlinterp
@@ -116,6 +116,12 @@
include serverlist
include patchlist
+post-patch {
+ set features [open ${worksrcpath}/src/feature.h a+]
+ puts $features "#define SYS_VIMRC_FILE \"${prefix}/etc/vimrc\""
+ close $features
+}
+
livecheck.check regex
livecheck.url http://ftp.vim.org/pub/${name}/patches/${vim_version}/?O=D
livecheck.regex (${vim_version}\\\\.\\\\d+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070807/7e542da0/attachment.html
More information about the macports-changes
mailing list