version bump 3 commits vim-youcompleteme-git

This commit is contained in:
Trent Palmer 2019-07-11 10:24:34 -07:00
parent 1e94b364d7
commit 6aefe3b9c9
2 changed files with 75 additions and 91 deletions

View File

@ -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 = r2532.d556a43c pkgver = r2535.04c35051
pkgrel = 1 pkgrel = 1
url = https://github.com/Valloric/YouCompleteMe url = https://github.com/Valloric/YouCompleteMe
install = install install = install
@ -12,16 +12,14 @@ pkgbase = vim-youcompleteme-git
makedepends = make makedepends = make
makedepends = curl makedepends = curl
makedepends = go makedepends = go
makedepends = mono
makedepends = cargo
makedepends = npm makedepends = npm
depends = boost depends = boost
depends = boost-libs depends = boost-libs
depends = nodejs depends = nodejs
depends = vim depends = vim
depends = clang depends = clang
depends = mono depends = omnisharp-roslyn
depends = rust depends = rustup
depends = python-requests-futures depends = python-requests-futures
depends = python-certifi depends = python-certifi
depends = python-future depends = python-future
@ -48,17 +46,7 @@ pkgbase = vim-youcompleteme-git
source = git+https://github.com/PythonCharmers/python-future.git source = git+https://github.com/PythonCharmers/python-future.git
source = git+https://github.com/Pylons/waitress.git source = git+https://github.com/Pylons/waitress.git
source = git+https://github.com/micbou/regex.git source = git+https://github.com/micbou/regex.git
source = git+https://github.com/mdempsky/gocode.git source = git+https://go.googlesource.com/tools.git
source = git+https://github.com/rogpeppe/godef.git
source = git+https://github.com/nosami/OmniSharpServer.git
source = git+https://github.com/icsharpcode/NRefactory.git
source = git+https://github.com/jbevain/cecil.git
source = git+https://github.com/jwilm/racerd.git
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP sha256sums = SKIP
sha256sums = SKIP sha256sums = SKIP
sha256sums = SKIP sha256sums = SKIP

View File

@ -19,16 +19,19 @@
#=========================================================================================================# #=========================================================================================================#
# Build Options # # Build Options #
#=========================================================================================================# #=========================================================================================================#
_omnisharp="y" # _omnisharp="y" # OmniSharpServer deleted
_gocode="y" _gocode="y"
# _rust="y" # racerd deleted
_rust="y" _rust="y"
_tern="y" _javascript="y"
_java="n" _java="n"
_docs="n" _docs="n"
_tests="n" _tests="n"
_use_system_clang="ON" _use_system_clang="ON"
_use_python2="OFF" _use_python2="OFF"
_use_system_python="y" _use_system_python="y"
_use_OmniSharp_Roslyn="y"
_use_system_OmniSharp_Roslyn="y"
_use_system_jedi="y" _use_system_jedi="y"
_neovim="$NEOVIM_YOUCOMPLETEME" _neovim="$NEOVIM_YOUCOMPLETEME"
@ -41,7 +44,7 @@ _neovim="$NEOVIM_YOUCOMPLETEME"
# Default PKGBUILD Configuration # # Default PKGBUILD Configuration #
#=========================================================================================================# #=========================================================================================================#
pkgname=vim-youcompleteme-git pkgname=vim-youcompleteme-git
pkgver=r2532.d556a43c pkgver=r2535.04c35051
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)"
@ -78,40 +81,33 @@ sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP
#=========================================================================================================# #=========================================================================================================#
#=========================================================================================================# #=========================================================================================================#
# Applying PKBUILD Build Options # # Applying PKBUILD Build Options #
#=========================================================================================================# #=========================================================================================================#
if [[ "$_use_OmniSharp_Roslyn" == "y" ]];then
if [[ "$_use_system_OmniSharp_Roslyn" == "n" ]];then
source+=('https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.33.0/omnisharp-mono.tar.gz')
noextract=('omnisharp-mono.tar.gz')
sha256sums+=('c3bd370b0e31838418756f3879269b224b1920d6f3527c8f711d661dfc008c8c')
elif [[ "$_use_system_OmniSharp_Roslyn" == "y" ]];then
depends+=('omnisharp-roslyn')
fi
fi
if [[ "$_gocode" == "y" ]];then if [[ "$_gocode" == "y" ]];then
# ycmd # ycmd
source+=('git+https://github.com/mdempsky/gocode.git') source+=('git+https://go.googlesource.com/tools.git')
source+=('git+https://github.com/rogpeppe/godef.git')
sha256sums+=('SKIP')
sha256sums+=('SKIP') sha256sums+=('SKIP')
makedepends+=('go') makedepends+=('go')
fi fi
if [[ "$_omnisharp" == "y" ]]; then
source+=( 'git+https://github.com/nosami/OmniSharpServer.git' #ycmd
'git+https://github.com/icsharpcode/NRefactory.git' #OmniSharpServer
'git+https://github.com/jbevain/cecil.git' #OmniSharpServer
)
sha256sums+=('SKIP' 'SKIP' 'SKIP')
depends+=('mono')
makedepends+=('mono')
fi
if [[ "$_rust" == "y" ]];then if [[ "$_rust" == "y" ]];then
# ycmd # ycmd
source+=( 'git+https://github.com/jwilm/racerd.git') depends+=('rustup')
sha256sums+=('SKIP')
depends+=('rust')
makedepends+=('cargo')
fi fi
if [[ "$_tern" == "y" ]]; then if [[ "$_javascript" == "y" ]]; then
# ycmd # ycmd
makedepends+=('npm') makedepends+=('npm')
fi fi
@ -207,14 +203,6 @@ prepare() {
local ycmd=("bottle" "regex" "python-frozendict" "python-future" "waitress") local ycmd=("bottle" "regex" "python-frozendict" "python-future" "waitress")
if [[ "$_omnisharp" == "y" ]]; then
ycmd+=("OmniSharpServer")
fi
if [[ "$_rust" == "y" ]]; then
ycmd+=("racerd")
fi
gitprepare "YouCompleteMe/third_party/ycmd" "third_party/" "${ycmd[@]}" gitprepare "YouCompleteMe/third_party/ycmd" "third_party/" "${ycmd[@]}"
local ycmdJediDeps=("jedi" "parso" "numpydoc") local ycmdJediDeps=("jedi" "parso" "numpydoc")
@ -224,13 +212,15 @@ prepare() {
gitprepare "YouCompleteMe/third_party/ycmd" "third_party/requests_deps" "${ycmdRequestsDeps[@]}" gitprepare "YouCompleteMe/third_party/ycmd" "third_party/requests_deps" "${ycmdRequestsDeps[@]}"
if [[ "$_gocode" == "y" ]]; then if [[ "$_gocode" == "y" ]]; then
gitprepare "YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/mdempsky" "" "gocode" gitprepare "YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x" "" "tools"
gitprepare "YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/rogpeppe" "" "godef"
fi fi
if [[ "$_omnisharp" == "y" ]]; then if [[ "$_use_OmniSharp_Roslyn" == "y" ]];then
local OmniSharpServer=("NRefactory" "cecil") if [[ "$_use_system_OmniSharp_Roslyn" == "n" ]];then
gitprepare "YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer" "" "${OmniSharpServer[@]}" mkdir -p "$srcdir/omnisharp-roslyn"
cd "$srcdir/omnisharp-roslyn" && tar xf ../omnisharp-mono.tar.gz .
noextract=('omnisharp-mono.tar.gz')
fi
fi fi
} }
@ -245,41 +235,49 @@ build() {
cmake -G "Unix Makefiles" -DUSE_PYTHON2=$_use_python2 -DUSE_SYSTEM_LIBCLANG="$_use_system_clang" . "$srcdir/YouCompleteMe/third_party/ycmd/cpp" cmake -G "Unix Makefiles" -DUSE_PYTHON2=$_use_python2 -DUSE_SYSTEM_LIBCLANG="$_use_system_clang" . "$srcdir/YouCompleteMe/third_party/ycmd/cpp"
make ycm_core make ycm_core
if [[ "$_omnisharp" == "y" ]]; then if [[ "$_use_system_python" == "n" ]]; then
msg2 'Building OmniSharp completer...' # BuildOmniSharp() mkdir -p "$srcdir/regex_build"
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer" || exit cd "$srcdir/regex_build" || exit
xbuild /property:Configuration=Release cmake -G "Unix Makefiles" -DUSE_PYTHON2=$_use_python2 -DUSE_SYSTEM_LIBCLANG="$_use_system_clang" . "$srcdir/YouCompleteMe/third_party/ycmd/third_party/cregex"
else make _regex
msg2 'Skipping OmniSharp completer...' fi
if [[ "$_rust" == "y" ]]; then
mkdir -p "$srcdir/rls_build"
export RUSTUP_HOME="$srcdir/rls_build"
rustup toolchain install nightly
rustup default nightly
rustup component add rls rust-analysis rust-src
fi fi
if [[ "$_gocode" == "y" ]]; then if [[ "$_gocode" == "y" ]]; then
export GOPATH="$GOPATH:$srcdir/YouCompleteMe/third_party/ycmd/third_party/go" # export GOPATH="$GOPATH:$srcdir/YouCompleteMe/third_party/ycmd/third_party/go"
msg2 'Building Gocode completer...' # BuildGoCode() msg2 'Building Gocode completer...' # BuildGoCode()
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/mdempsky/gocode" || exit cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools/cmd/gopls" || exit
go build
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/rogpeppe/godef" || exit
go build go build
else else
msg2 'Skipping Gocode completer...' msg2 'Skipping Gocode completer...'
fi fi
if [[ "$_rust" == "y" ]]; then if [[ "$_javascript" == "y" ]]; then
msg2 'Building Rust completer...' # BuildRacerd()
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/racerd" || exit
cargo build --release
else
msg2 'Skipping Rust completer...'
fi
if [[ "$_tern" == "y" ]]; then
msg2 'Building Tern completer...' # SetUpTern() msg2 'Building Tern completer...' # SetUpTern()
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/tern_runtime" || exit cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/tern_runtime" || exit
if [[ "$_use_python2" == "ON" ]]; then if [[ "$_use_python2" == "ON" ]]; then
npm install --production --python=python2 npm install --production --python=python2
else else
npm install --production --python=python3 npm install --production --python=python3
fi fi
cd "$srcdir/YouCompleteMe/third_party/ycmd" || exit
mkdir -p "third_party/tsserver" || exit
if [[ "$_use_python2" == "ON" ]]; then
npm install -g --prefix third_party/tsserver typescript --python=python2
else
npm install -g --prefix third_party/tsserver typescript --python=python3
fi
else else
msg2 'Skipping Tern completer...' msg2 'Skipping Tern completer...'
fi fi
@ -308,6 +306,19 @@ package() {
cp -r "$srcdir/YouCompleteMe/"{autoload,doc,plugin,python} \ cp -r "$srcdir/YouCompleteMe/"{autoload,doc,plugin,python} \
"$pkgdir/$vimfiles_dir" "$pkgdir/$vimfiles_dir"
if [[ "$_use_OmniSharp_Roslyn" == "y" ]];then
if [[ "$_use_system_OmniSharp_Roslyn" == "n" ]];then
cp -r "$srcdir/omnisharp-roslyn" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/"
fi
fi
if [[ "$_rust" == "y" ]]; then
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/rls"
cp -r "$srcdir/rls_build/toolchains/nightly-"*"/"{bin,etc,lib,share} \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/rls"
fi
if [[ "$_use_system_python" == "n" ]]; then if [[ "$_use_system_python" == "n" ]]; then
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/requests_deps" mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/requests_deps"
mkdir -p "$pkgdir/$vimfiles_dir/third_party/requests_deps" mkdir -p "$pkgdir/$vimfiles_dir/third_party/requests_deps"
@ -337,29 +348,14 @@ package() {
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/jedi_deps/numpydoc/" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/jedi_deps/numpydoc/"
fi fi
if [[ "$_omnisharp" == "y" ]]; then
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/OmniSharpServer/OmniSharp/bin/Release"
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer/OmniSharp/bin/Release" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/OmniSharpServer/OmniSharp/bin"
fi
if [[ "$_gocode" == "y" ]]; then if [[ "$_gocode" == "y" ]]; then
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/github.com/mdempsky/gocode" mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/golang.org/x/tools/cmd/gopls"
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/github.com/rogpeppe/godef" cp "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools/cmd/gopls/gopls" \
cp "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/mdempsky/gocode/gocode" \ "$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/github.com/mdempsky/gocode/gocode"
cp "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/rogpeppe/godef/godef" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/github.com/rogpeppe/godef/godef"
fi fi
if [[ "$_rust" == "y" ]]; then if [[ "$_javascript" == "y" ]]; then
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/racerd/target/release" cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/"{tern_runtime,tsserver} \
cp "$srcdir/YouCompleteMe/third_party/ycmd/third_party/racerd/target/release/racerd" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/racerd/target/release/racerd"
fi
if [[ "$_tern" == "y" ]]; then
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/tern_runtime" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party"
fi fi