mirror of
https://github.com/TrentSPalmer/aur-packages.git
synced 2024-11-21 19:01:31 -08:00
version bump 4 commits vim-youcompleteme-git
This commit is contained in:
parent
0f41a265b3
commit
89247b255f
@ -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 = r2659.7080933e
|
pkgver = r2663.f84dd1fb
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/Valloric/YouCompleteMe
|
url = https://github.com/Valloric/YouCompleteMe
|
||||||
install = install
|
install = install
|
||||||
@ -11,7 +11,7 @@ pkgbase = vim-youcompleteme-git
|
|||||||
makedepends = git
|
makedepends = git
|
||||||
makedepends = make
|
makedepends = make
|
||||||
makedepends = curl
|
makedepends = curl
|
||||||
makedepends = go
|
makedepends = gopls
|
||||||
makedepends = npm
|
makedepends = npm
|
||||||
depends = boost
|
depends = boost
|
||||||
depends = boost-libs
|
depends = boost-libs
|
||||||
@ -42,8 +42,6 @@ pkgbase = vim-youcompleteme-git
|
|||||||
source = git+https://github.com/gorakhargosh/watchdog
|
source = git+https://github.com/gorakhargosh/watchdog
|
||||||
source = git+https://github.com/gorakhargosh/pathtools
|
source = git+https://github.com/gorakhargosh/pathtools
|
||||||
source = git+https://github.com/mitsuhiko/flask-sphinx-themes.git
|
source = git+https://github.com/mitsuhiko/flask-sphinx-themes.git
|
||||||
source = git+https://github.com/golang/tools.git
|
|
||||||
sha256sums = SKIP
|
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
|
@ -20,7 +20,8 @@
|
|||||||
# Build Options #
|
# Build Options #
|
||||||
#=========================================================================================================#
|
#=========================================================================================================#
|
||||||
# _omnisharp="y" # OmniSharpServer deleted
|
# _omnisharp="y" # OmniSharpServer deleted
|
||||||
_gocode="y"
|
_gocode="n"
|
||||||
|
_use_system_gocode="y"
|
||||||
_rust="y"
|
_rust="y"
|
||||||
_tern="y"
|
_tern="y"
|
||||||
_typescript="y"
|
_typescript="y"
|
||||||
@ -45,7 +46,7 @@ _neovim="$NEOVIM_YOUCOMPLETEME"
|
|||||||
# Default PKGBUILD Configuration #
|
# Default PKGBUILD Configuration #
|
||||||
#=========================================================================================================#
|
#=========================================================================================================#
|
||||||
pkgname=vim-youcompleteme-git
|
pkgname=vim-youcompleteme-git
|
||||||
pkgver=r2659.7080933e
|
pkgver=r2663.f84dd1fb
|
||||||
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)"
|
||||||
@ -99,12 +100,13 @@ if [[ "$_use_OmniSharp_Roslyn" == "y" ]];then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$_gocode" == "y" ]];then
|
if [[ "$_gocode" == "y" ]];then
|
||||||
# ycmd
|
|
||||||
source+=('git+https://github.com/golang/tools.git')
|
|
||||||
sha256sums+=('SKIP')
|
|
||||||
makedepends+=('go')
|
makedepends+=('go')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$_use_system_gocode" == "y" ]];then
|
||||||
|
makedepends+=('gopls')
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$_rust" == "y" ]];then
|
if [[ "$_rust" == "y" ]];then
|
||||||
# ycmd
|
# ycmd
|
||||||
depends+=('rustup')
|
depends+=('rustup')
|
||||||
@ -228,10 +230,6 @@ prepare() {
|
|||||||
local ycmdPathtools_themes=("flask-sphinx-themes")
|
local ycmdPathtools_themes=("flask-sphinx-themes")
|
||||||
gitprepare "YouCompleteMe/third_party/ycmd/third_party/watchdog_deps" "pathtools/docs/source" "${ycmdPathtools_themes[@]}"
|
gitprepare "YouCompleteMe/third_party/ycmd/third_party/watchdog_deps" "pathtools/docs/source" "${ycmdPathtools_themes[@]}"
|
||||||
|
|
||||||
if [[ "$_gocode" == "y" ]]; then
|
|
||||||
gitprepare "YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x" "" "tools"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$_use_OmniSharp_Roslyn" == "y" ]];then
|
if [[ "$_use_OmniSharp_Roslyn" == "y" ]];then
|
||||||
if [[ "$_use_system_OmniSharp_Roslyn" == "n" ]];then
|
if [[ "$_use_system_OmniSharp_Roslyn" == "n" ]];then
|
||||||
mkdir -p "$srcdir/omnisharp-roslyn"
|
mkdir -p "$srcdir/omnisharp-roslyn"
|
||||||
@ -272,11 +270,13 @@ build() {
|
|||||||
rustup component add rls rust-analysis rust-src
|
rustup component add rls rust-analysis rust-src
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$_gocode" == "y" ]]; then
|
if [[ "$_gocode" == "y" && "$_use_system_gocode" == "n" ]]; then
|
||||||
# export GOPATH="$GOPATH:$srcdir/YouCompleteMe/third_party/ycmd/third_party/go"
|
mkdir -p "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go" || exit
|
||||||
msg2 'Building Gocode completer...' # BuildGoCode()
|
export GO111MODULE=on
|
||||||
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools/gopls" || exit
|
export GOPATH="$srcdir/YouCompleteMe/third_party/ycmd/third_party/go"
|
||||||
go build
|
msg2 'Building gopls for go completion...' # BuildGoCode()
|
||||||
|
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go" || exit
|
||||||
|
go get golang.org/x/tools/gopls@v0.4.0
|
||||||
else
|
else
|
||||||
msg2 'Skipping Gocode completer...'
|
msg2 'Skipping Gocode completer...'
|
||||||
fi
|
fi
|
||||||
@ -386,10 +386,15 @@ package() {
|
|||||||
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/watchdog_deps/pathtools/docs/source"
|
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/watchdog_deps/pathtools/docs/source"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$_gocode" == "y" ]]; then
|
if [[ "$_gocode" == "y" && "$_use_system_gocode" == "n" ]]; then
|
||||||
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/golang.org/x/tools/gopls"
|
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go"
|
||||||
cp "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools/gopls/gopls" \
|
cp -rv "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/bin" \
|
||||||
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/golang.org/x/tools/gopls/gopls"
|
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$_use_system_gocode" == "y" ]]; then
|
||||||
|
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/bin"
|
||||||
|
ln -s "/usr/bin/gopls" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/bin/gopls"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$_tern" == "y" ]]; then
|
if [[ "$_tern" == "y" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user