macvim: move the .app bundle to $out/Applications
This commit is contained in:
parent
e5e9171578
commit
c06613a3af
@ -24,7 +24,7 @@ in mkDerivation rec {
|
|||||||
patches = [ ./macvim.patch ];
|
patches = [ ./macvim.patch ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/MacVim/mvim --replace "# VIM_APP_DIR=/Applications" "VIM_APP_DIR=$out"
|
substituteInPlace src/MacVim/mvim --replace "# VIM_APP_DIR=/Applications" "VIM_APP_DIR=$out/Applications"
|
||||||
|
|
||||||
# Don't create custom icons.
|
# Don't create custom icons.
|
||||||
substituteInPlace src/MacVim/icons/Makefile --replace '$(MAKE) -C makeicns' ""
|
substituteInPlace src/MacVim/icons/Makefile --replace '$(MAKE) -C makeicns' ""
|
||||||
@ -62,7 +62,7 @@ in mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
cp -r src/MacVim/build/Release/MacVim.app $out
|
cp -r src/MacVim/build/Release/MacVim.app $out/Applications
|
||||||
|
|
||||||
rm $out/bin/{Vimdiff,Vimtutor,Vim,ex,rVim,rview,view}
|
rm $out/bin/{Vimdiff,Vimtutor,Vim,ex,rVim,rview,view}
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ in mkDerivation rec {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Fix rpaths
|
# Fix rpaths
|
||||||
exe="$out/MacVim.app/Contents/MacOS/Vim"
|
exe="$out/Applications/MacVim.app/Contents/MacOS/Vim"
|
||||||
libperl=$(dirname $(find ${perl} -name "libperl.dylib"))
|
libperl=$(dirname $(find ${perl} -name "libperl.dylib"))
|
||||||
install_name_tool -add_rpath ${luajit}/lib $exe
|
install_name_tool -add_rpath ${luajit}/lib $exe
|
||||||
install_name_tool -add_rpath ${tcl}/lib $exe
|
install_name_tool -add_rpath ${tcl}/lib $exe
|
||||||
|
Loading…
Reference in New Issue
Block a user