mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
vim: force ncurses6.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,151 +0,0 @@
|
||||
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-2017 Bram Moleenar et al."
|
||||
LICENSE="Vim"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/vim/vim/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="943cee58fb8aee1803decdca4fb4c9b3b96ce15eac36b84a03c570921e65715e"
|
||||
SOURCE_FILENAME="vim-$portVersion.tar.gz"
|
||||
PATCHES="vim-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
vim = $portVersion
|
||||
cmd:ex = $portVersion
|
||||
cmd:gview = $portVersion
|
||||
cmd:gvim = $portVersion
|
||||
cmd:gvimdiff = $portVersion
|
||||
cmd:rgview = $portVersion
|
||||
cmd:rgvim = $portVersion
|
||||
cmd:rview = $portVersion
|
||||
cmd:rvim = $portVersion
|
||||
cmd:vi = $portVersion
|
||||
cmd:view = $portVersion
|
||||
cmd:vim = $portVersion
|
||||
cmd:vimdiff = $portVersion
|
||||
cmd:vimtutor = $portVersion
|
||||
cmd:xxd = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libiconv
|
||||
lib:libintl
|
||||
lib:libncurses
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libiconv
|
||||
devel:libintl
|
||||
# devel:liblua
|
||||
devel:libncurses
|
||||
devel:libtclstub8.5
|
||||
"
|
||||
|
||||
if [ $effectiveTargetArchitecture != "x86_gcc2" ] ; then
|
||||
BUILD_REQUIRES+="
|
||||
devel:libruby
|
||||
"
|
||||
fi
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:find
|
||||
cmd:gcc
|
||||
cmd:gettext
|
||||
cmd:grep
|
||||
cmd:make
|
||||
# cmd:perl
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python2
|
||||
# cmd:python3
|
||||
cmd:ruby
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
|
||||
# Global ----------------------------------------
|
||||
|
||||
cd src
|
||||
autoconf
|
||||
|
||||
export CFLAGS="\
|
||||
`pkg-config --cflags python2` \
|
||||
-fPIC"
|
||||
|
||||
# CLI -------------------------------------------
|
||||
|
||||
runConfigure ./configure \
|
||||
--disable-gui \
|
||||
--with-features=big \
|
||||
--enable-cscope \
|
||||
--enable-multibyte \
|
||||
--enable-pythoninterp=dynamic \
|
||||
--enable-rubyinterp=dynamic \
|
||||
--enable-tclinterp=dynamic \
|
||||
--with-compiledby=Haikuports
|
||||
# --enable-luainterp=dynamic
|
||||
# --enable-python3interp=dynamic currently broken
|
||||
# --enable-perlinterp=dynamic not dynamic yet
|
||||
|
||||
|
||||
make $jobArgs
|
||||
cp vim vim.con # preserve gui-less executable
|
||||
rm objects/*.o
|
||||
|
||||
# GUI -------------------------------------------
|
||||
|
||||
MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
sed -i "s|@MAJOR@|$MAJOR|" os_haiku.rdef
|
||||
sed -i "s|@MIDDLE@|$MIDDLE|" os_haiku.rdef
|
||||
sed -i "s|@MINOR@|$MINOR|" os_haiku.rdef
|
||||
|
||||
runConfigure ./configure \
|
||||
--with-features=big \
|
||||
--enable-cscope \
|
||||
--enable-multibyte \
|
||||
--enable-pythoninterp=dynamic \
|
||||
--enable-rubyinterp=dynamic \
|
||||
--enable-tclinterp==dynamic \
|
||||
--with-compiledby=Haikuports
|
||||
# --enable-luainterp=dynamic
|
||||
# --enable-python3interp=dynamic currently broken
|
||||
# --enable-perlinterp=dynamic not dynamic yet
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
cat << EOF > $dataDir/vim/vimrc
|
||||
" Workaround to get the themes and plugins work
|
||||
execute "set runtimepath+=" . substitute(system("finddir B_USER_SETTINGS_DIRECTORY"), '\n\+$', '', '') . "/vim"
|
||||
EOF
|
||||
|
||||
ln -s vim $binDir/vi
|
||||
|
||||
addAppDeskbarSymlink $binDir/gvim Vim
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd src
|
||||
make check
|
||||
}
|
||||
@@ -12,7 +12,7 @@ way, called evim or Easy Vim."
|
||||
HOMEPAGE="https://www.vim.org/"
|
||||
COPYRIGHT="1991-2019 Bram Moleenar et al."
|
||||
LICENSE="Vim"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/vim/vim/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3bfb6b0de36e96862933e49df93412a46a0914356ec16dd60a5ccbd5cdc46d25"
|
||||
SOURCE_FILENAME="vim-$portVersion.tar.gz"
|
||||
@@ -41,7 +41,7 @@ REQUIRES="
|
||||
haiku
|
||||
lib:libiconv
|
||||
lib:libintl
|
||||
lib:libncurses
|
||||
lib:libncurses >= 6
|
||||
"
|
||||
|
||||
if [ $effectiveTargetArchitecture != "x86_gcc2" ] ; then
|
||||
@@ -55,7 +55,7 @@ BUILD_REQUIRES="
|
||||
devel:libiconv
|
||||
devel:libintl
|
||||
# devel:liblua
|
||||
devel:libncurses
|
||||
devel:libncurses >= 6
|
||||
devel:libtclstub8.5
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user