[22045] trunk/dports/editors/vim/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Thu Feb 15 13:54:20 PST 2007
Revision: 22045
http://trac.macosforge.org/projects/macports/changeset/22045
Author: pipping at macports.org
Date: 2007-02-15 13:54:19 -0800 (Thu, 15 Feb 2007)
Log Message:
-----------
* complete rewrite of destroot stage for variant aqua
Modified Paths:
--------------
trunk/dports/editors/vim/Portfile
Modified: trunk/dports/editors/vim/Portfile
===================================================================
--- trunk/dports/editors/vim/Portfile 2007-02-15 21:19:34 UTC (rev 22044)
+++ trunk/dports/editors/vim/Portfile 2007-02-15 21:54:19 UTC (rev 22045)
@@ -5,7 +5,7 @@
set vim_version 7.0
set vim_patchlevel 195
version ${vim_version}.${vim_patchlevel}
-revision 1
+revision 2
categories editors
maintainers pipping at macports.org
description Vi "workalike" with many additional features
@@ -91,7 +91,7 @@
http://www.douglas.stebila.ca/files/code/vim/doc/:doc_aqua
distfiles-append app-bm.tar.gz:app_aqua \
doc.tar.gz:doc_aqua
- set appPath "/Applications/MacPorts"
+ set appPath "/Applications/MacPorts/"
configure.pre_args --prefix=${appPath}/Vim
configure.args-delete --enable-gui=no
configure.args-append --enable-gui=carbon
@@ -99,35 +99,48 @@
system "gnutar xvfz ${distpath}/app-bm.tar.gz -C ${workpath}"
system "gnutar xvfz ${distpath}/doc.tar.gz -C ${workpath}"
}
- pre-destroot {
- set appPath "/Applications/MacPorts"
- xinstall -d -m 755 ${destroot}${appPath}
- xinstall -d -m 755 ${destroot}${appPath}/Vim
- }
- post-destroot {
- set appPath "/Applications/MacPorts"
- xinstall -d ${destroot}${appPath}/Vim/Vim.app/Contents/Resources/vim
- system "cp -R ${worksrcpath}/runtime \
- ${destroot}${appPath}/Vim/Vim.app/Contents/Resources/vim/"
- delete ${destroot}${prefix}/var
- system "ln -f ${destroot}${appPath}/Vim/Vim.app/Contents/MacOS/Vim \
- ${destroot}/${prefix}/bin/vim"
+ destroot {
+ set appPath "/Applications/MacPorts/"
+ # create the required directories
+ xinstall -d -m 755 ${destroot}${appPath}Vim
+ xinstall -d -m 755 ${destroot}${prefix}/bin
+ # copy Vim.app
+ file copy ${worksrcpath}/src/Vim.app ${destroot}${appPath}Vim
+ xinstall -m 644 ${filespath}/vimrc ${filespath}/gvimrc \
+ ${destroot}${appPath}Vim/Vim.app
+ xinstall -m 644 ${workpath}/doc-txt.icns \
+ ${destroot}${appPath}/Vim/Vim.app/Contents/Resources
+ xinstall -m 644 ${workpath}/app.icns \
+ ${destroot}${appPath}Vim/Vim.app/Contents/Resources/gui_mac.icns
+ # remove the broken link to 'runtime', copy the folder instead
+ file delete \
+ ${destroot}${appPath}Vim/Vim.app/Contents/Resources/vim/runtime
+ file copy \
+ ${worksrcpath}/runtime \
+ ${destroot}${appPath}Vim/Vim.app/Contents/Resources/vim/runtime
+ # create a link to the executable
+ file link -hard ${destroot}${prefix}/bin/vim \
+ ${destroot}${appPath}Vim/Vim.app/Contents/MacOS/Vim
+
+ # copy vimtutor
+ xinstall -m 755 ${worksrcpath}/src/vimtutor \
+ ${destroot}${prefix}/bin/
+ # install documentation
+ xinstall -d ${destroot}/${prefix}/share/man/man1
+ cd ${destroot}${appPath}Vim/Vim.app/Contents/Resources/vim/runtime/doc
+ foreach manPage [glob *.1] {
+ file link -hard ${destroot}${prefix}/share/man/man1/${manPage} \
+ ./${manPage}
+ }
+ # copy GVim.app (ppc only)
if {![variant_isset darwin_i386]} {
system "gnutar xvfz ${filespath}/GVim_app.tar.gz -C \
${destroot}${appPath}"
xinstall -m 755 ${filespath}/gvim.sh \
${destroot}/${prefix}/bin/gvim
xinstall -m 644 ${workpath}/app.icns \
- ${destroot}${appPath}/GVim.app/Contents/Resources/appIcon.icns
+ ${destroot}${appPath}GVim.app/Contents/Resources/appIcon.icns
}
- xinstall -m 644 ${filespath}/gvimrc \
- ${destroot}${appPath}/Vim/Vim.app/
- xinstall -m 644 ${filespath}/vimrc \
- ${destroot}${appPath}/Vim/Vim.app/
- xinstall -m 644 ${workpath}/doc-txt.icns \
- ${destroot}${appPath}/Vim/Vim.app/Contents/Resources/
- xinstall -m 644 ${workpath}/app.icns \
- ${destroot}${appPath}/Vim/Vim.app/Contents/Resources/gui_mac.icns
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070215/4ae2038b/attachment.html
More information about the macports-changes
mailing list