mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
vim: initial package
This commit is contained in:
parent
da61e204e7
commit
66404925eb
@ -0,0 +1,56 @@
|
|||||||
|
################################################################################
|
||||||
|
# This file is part of LibreELEC - http://www.libreelec.tv
|
||||||
|
# Copyright (C) 2016-present Team LibreELEC
|
||||||
|
#
|
||||||
|
# LibreELEC is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LibreELEC is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PKG_NAME="vim"
|
||||||
|
PKG_VERSION="8.0.0684"
|
||||||
|
PKG_ARCH="any"
|
||||||
|
PKG_LICENSE="VIM"
|
||||||
|
PKG_SITE="http://www.vim.org/"
|
||||||
|
PKG_URL="https://github.com/vim/vim/archive/v$PKG_VERSION.tar.gz"
|
||||||
|
PKG_DEPENDS_TARGET="toolchain netbsd-curses"
|
||||||
|
PKG_SECTION="tools"
|
||||||
|
PKG_SHORTDESC="vim: VI IMproved"
|
||||||
|
PKG_LONGDESC="Vim is a highly configurable text editor built to enable efficient text editing."
|
||||||
|
PKG_AUTORECONF="no"
|
||||||
|
|
||||||
|
PKG_CONFIGURE_OPTS_TARGET="vim_cv_getcwd_broken=no \
|
||||||
|
vim_cv_memmove_handles_overlap=yes \
|
||||||
|
vim_cv_stat_ignores_slash=yes \
|
||||||
|
vim_cv_terminfo=yes \
|
||||||
|
vim_cv_tgent=zero \
|
||||||
|
vim_cv_toupper_broken=no \
|
||||||
|
vim_cv_tty_group=world \
|
||||||
|
vim_cv_tty_mode=0620 \
|
||||||
|
ac_cv_sizeof_int=4 \
|
||||||
|
ac_cv_small_wchar_t=no \
|
||||||
|
--enable-selinux=no \
|
||||||
|
--enable-gui=no \
|
||||||
|
--with-compiledby=LibreELEC \
|
||||||
|
--with-features=huge \
|
||||||
|
--with-tlib=ncurses \
|
||||||
|
--without-x"
|
||||||
|
|
||||||
|
pre_configure_target() {
|
||||||
|
cd ..
|
||||||
|
rm -rf .$TARGET_NAME
|
||||||
|
export LIBS="-lcurses -lterminfo"
|
||||||
|
}
|
||||||
|
|
||||||
|
make_target() {
|
||||||
|
:
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
--- a/runtime/defaults.vim
|
||||||
|
+++ b/runtime/defaults.vim
|
||||||
|
@@ -66,9 +66,9 @@
|
||||||
|
|
||||||
|
" In many terminal emulators the mouse works just fine. By enabling it you
|
||||||
|
" can position the cursor, Visually select and scroll with the mouse.
|
||||||
|
-if has('mouse')
|
||||||
|
- set mouse=a
|
||||||
|
-endif
|
||||||
|
+"if has('mouse')
|
||||||
|
+" set mouse=a
|
||||||
|
+"endif
|
||||||
|
|
||||||
|
" Switch syntax highlighting on when the terminal has colors or when using the
|
||||||
|
" GUI (which always has colors).
|
@ -62,7 +62,8 @@ PKG_DEPENDS_TARGET="toolchain \
|
|||||||
screen \
|
screen \
|
||||||
strace \
|
strace \
|
||||||
unrar \
|
unrar \
|
||||||
usb-modeswitch"
|
usb-modeswitch \
|
||||||
|
vim"
|
||||||
|
|
||||||
addon() {
|
addon() {
|
||||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib/
|
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib/
|
||||||
@ -163,5 +164,8 @@ addon() {
|
|||||||
# usb-modeswitch
|
# usb-modeswitch
|
||||||
cp -P $(get_build_dir usb-modeswitch)/usb_modeswitch $ADDON_BUILD/$PKG_ADDON_ID/bin
|
cp -P $(get_build_dir usb-modeswitch)/usb_modeswitch $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
|
||||||
|
# vim
|
||||||
|
cp -P $(get_build_dir vim)/.install_pkg/usr/bin/vim $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
|
||||||
debug_strip $ADDON_BUILD/$PKG_ADDON_ID/bin
|
debug_strip $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user