From d140888f66d0272cf0db2f2065d2d411858276af Mon Sep 17 00:00:00 2001 From: hfsfox Date: Sat, 6 Jan 2024 10:19:56 +0200 Subject: [PATCH] vim: new version (#9939) --- app-editors/vim/vim-9.1.0.recipe | 148 +++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 app-editors/vim/vim-9.1.0.recipe diff --git a/app-editors/vim/vim-9.1.0.recipe b/app-editors/vim/vim-9.1.0.recipe new file mode 100644 index 000000000..8c50e1b11 --- /dev/null +++ b/app-editors/vim/vim-9.1.0.recipe @@ -0,0 +1,148 @@ +SUMMARY="A highly configurable text editor" +DESCRIPTION="Vim is a highly configurable text editor built to enable \ +efficient text editing. It is an improved version of the vi editor \ +distributed with most UNIX systems. + +Vim is often called a \"programmer's editor,\" and so useful for programming \ +that many consider it an entire IDE. It's not just for programmers, though. \ +Vim is perfect for all kinds of text editing, from composing email to editing \ +configuration files. +Despite this, Vim can be configured to work in a very simple (Notepad-like) \ +way, called evim or Easy Vim." +HOMEPAGE="https://www.vim.org/" +COPYRIGHT="1991-2023 Bram Moleenar et al." +LICENSE="Vim" +REVISION="1" +SOURCE_URI="https://github.com/vim/vim/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="ddb435f6e386c53799a3025bdc5a3533beac735a0ee596cb27ada97366a1c725" +SOURCE_FILENAME="vim-$portVersion.tar.gz" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + vim$secondaryArchSuffix = $portVersion + cmd:ex$commandSuffix = $portVersion + cmd:gview$commandSuffix = $portVersion + cmd:gvim$commandSuffix = $portVersion + cmd:gvimdiff$commandSuffix = $portVersion + cmd:rgview$commandSuffix = $portVersion + cmd:rgvim$commandSuffix = $portVersion + cmd:rview$commandSuffix = $portVersion + cmd:rvim$commandSuffix = $portVersion + cmd:vi$commandSuffix = $portVersion + cmd:view$commandSuffix = $portVersion + cmd:vim$commandSuffix = $portVersion compat >= 9.0 + cmd:vimdiff$commandSuffix = $portVersion + cmd:vimtutor$commandSuffix = $portVersion + cmd:xxd$commandSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + cmd:python3 + lib:libiconv$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libncurses$secondaryArchSuffix >= 6 + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libiconv$secondaryArchSuffix + devel:libintl$secondaryArchSuffix +# devel:liblua$secondaryArchSuffix + devel:libncurses$secondaryArchSuffix >= 6 +# devel:libtclstub8.6 + " + +if [ $effectiveTargetArchitecture != "x86_gcc2" ] ; then + BUILD_REQUIRES+=" + devel:libruby$secondaryArchSuffix + " +fi + +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:find + cmd:gcc$secondaryArchSuffix + cmd:gettext + cmd:grep +# cmd:lua + cmd:make +# cmd:perl + cmd:pkg_config$secondaryArchSuffix + cmd:python3 + cmd:ruby + cmd:sed + " + +BUILD() +{ + +# Global ---------------------------------------- + + cd src + autoconf + + export CFLAGS="\ + `pkg-config --cflags python3` \ + -fPIC" + export LDFLAGS="-lgnu" + +# CLI ------------------------------------------- + + # Clean objects from possible previous run to avoid mixup of GUI/CLI objects + rm objects/*.o || true + + runConfigure --omit-dirs binDir ./configure \ + --bindir="$commandBinDir" \ + --disable-gui \ + --with-features=huge \ + --enable-fail-if-missing=yes \ + --enable-cscope \ + --enable-rubyinterp=dynamic \ + --with-compiledby=HaikuPorts \ + --enable-python3interp=dynamic +# --enable-luainterp=dynamic \ currently broken +# --enable-tclinterp=dynamic \ +# --enable-perlinterp=dynamic not dynamic yet + + make $jobArgs + cp vim vim.con # preserve gui-less executable + rm objects/*.o + +# GUI ------------------------------------------- + + runConfigure --omit-dirs binDir ./configure \ + --bindir="$commandBinDir" \ + --with-features=huge \ + --enable-fail-if-missing=yes \ + --enable-cscope \ + --enable-rubyinterp=dynamic \ + --with-compiledby=HaikuPorts \ + --enable-python3interp=dynamic +# --enable-luainterp=dynamic \ currently broken +# --enable-tclinterp=dynamic \ +# --enable-perlinterp=dynamic not dynamic yet + + make $jobArgs +} + +INSTALL() +{ + make install + ln -s vim $commandBinDir/vi + addAppDeskbarSymlink $commandBinDir/gvim Vim +} + +TEST() +{ + cd src + make check +}