mirror of
https://github.com/TrentSPalmer/aur-packages.git
synced 2024-11-22 03:11:30 -08:00
version bump 1 commits vim-youcompleteme-git
This commit is contained in:
parent
32a7d263f3
commit
4e3de42faa
@ -1,6 +1,6 @@
|
|||||||
pkgbase = vim-youcompleteme-git
|
pkgbase = vim-youcompleteme-git
|
||||||
pkgdesc = A code-completion engine for Vim
|
pkgdesc = A code-completion engine for Vim
|
||||||
pkgver = r2537.fa92f40d
|
pkgver = r2538.afa2ea03
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/Valloric/YouCompleteMe
|
url = https://github.com/Valloric/YouCompleteMe
|
||||||
install = install
|
install = install
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
#=========================================================================================================#
|
#=========================================================================================================#
|
||||||
# _omnisharp="y" # OmniSharpServer deleted
|
# _omnisharp="y" # OmniSharpServer deleted
|
||||||
_gocode="y"
|
_gocode="y"
|
||||||
# _rust="y" # racerd deleted
|
|
||||||
_rust="y"
|
_rust="y"
|
||||||
_javascript="y"
|
_tern="y"
|
||||||
|
_typescript="y"
|
||||||
_java="n"
|
_java="n"
|
||||||
_docs="n"
|
_docs="n"
|
||||||
_tests="n"
|
_tests="n"
|
||||||
@ -44,7 +44,7 @@ _neovim="$NEOVIM_YOUCOMPLETEME"
|
|||||||
# Default PKGBUILD Configuration #
|
# Default PKGBUILD Configuration #
|
||||||
#=========================================================================================================#
|
#=========================================================================================================#
|
||||||
pkgname=vim-youcompleteme-git
|
pkgname=vim-youcompleteme-git
|
||||||
pkgver=r2537.fa92f40d
|
pkgver=r2538.afa2ea03
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "YouCompleteMe" || exit
|
cd "YouCompleteMe" || exit
|
||||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
@ -107,7 +107,7 @@ if [[ "$_rust" == "y" ]];then
|
|||||||
depends+=('rustup')
|
depends+=('rustup')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$_javascript" == "y" ]]; then
|
if [[ "$_tern" == "y" ]]; then
|
||||||
# ycmd
|
# ycmd
|
||||||
makedepends+=('npm')
|
makedepends+=('npm')
|
||||||
fi
|
fi
|
||||||
@ -245,8 +245,8 @@ build() {
|
|||||||
if [[ "$_rust" == "y" ]]; then
|
if [[ "$_rust" == "y" ]]; then
|
||||||
mkdir -p "$srcdir/rls_build"
|
mkdir -p "$srcdir/rls_build"
|
||||||
export RUSTUP_HOME="$srcdir/rls_build"
|
export RUSTUP_HOME="$srcdir/rls_build"
|
||||||
rustup toolchain install nightly
|
rustup toolchain install nightly-2019-07-18
|
||||||
rustup default nightly
|
rustup default nightly-2019-07-18
|
||||||
rustup component add rls rust-analysis rust-src
|
rustup component add rls rust-analysis rust-src
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -259,17 +259,7 @@ build() {
|
|||||||
msg2 'Skipping Gocode completer...'
|
msg2 'Skipping Gocode completer...'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$_javascript" == "y" ]]; then
|
if [[ "$_typescript" == "y" ]]; then
|
||||||
|
|
||||||
msg2 'Building Tern completer...' # SetUpTern()
|
|
||||||
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/tern_runtime" || exit
|
|
||||||
|
|
||||||
if [[ "$_use_python2" == "ON" ]]; then
|
|
||||||
npm install --production --python=python2
|
|
||||||
else
|
|
||||||
npm install --production --python=python3
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd "$srcdir/YouCompleteMe/third_party/ycmd" || exit
|
cd "$srcdir/YouCompleteMe/third_party/ycmd" || exit
|
||||||
mkdir -p "third_party/tsserver" || exit
|
mkdir -p "third_party/tsserver" || exit
|
||||||
|
|
||||||
@ -278,10 +268,25 @@ build() {
|
|||||||
else
|
else
|
||||||
npm install -g --prefix third_party/tsserver typescript --python=python3
|
npm install -g --prefix third_party/tsserver typescript --python=python3
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
msg2 'Skipping typescript completer...'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$_tern" == "y" ]]; then
|
||||||
|
msg2 'Building Tern completer...' # SetUpTern()
|
||||||
|
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/tern_runtime" || exit
|
||||||
|
|
||||||
|
if [[ "$_use_python2" == "ON" ]]; then
|
||||||
|
npm install --production --python=python2
|
||||||
|
else
|
||||||
|
npm install --production --python=python3
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
msg2 'Skipping Tern completer...'
|
msg2 'Skipping Tern completer...'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ "$_java" == "y" ]]; then
|
if [[ "$_java" == "y" ]]; then
|
||||||
# Remove stale java completer data if any
|
# Remove stale java completer data if any
|
||||||
rm -rf "$srcdir/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository"
|
rm -rf "$srcdir/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository"
|
||||||
@ -354,8 +359,13 @@ package() {
|
|||||||
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/golang.org/x/tools/cmd/gopls/gopls"
|
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/golang.org/x/tools/cmd/gopls/gopls"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$_javascript" == "y" ]]; then
|
if [[ "$_tern" == "y" ]]; then
|
||||||
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/"{tern_runtime,tsserver} \
|
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/tern_runtime" \
|
||||||
|
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$_typescript" == "y" ]]; then
|
||||||
|
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/tsserver" \
|
||||||
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party"
|
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user