version bump 3 commits vim-youcompleteme-git

This commit is contained in:
Trent Palmer 2019-06-29 20:38:36 -07:00
parent 254220ce7a
commit 53de1d2c62
2 changed files with 233 additions and 233 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 = r2529.10131222 pkgver = r2532.d556a43c
pkgrel = 1 pkgrel = 1
url = https://github.com/Valloric/YouCompleteMe url = https://github.com/Valloric/YouCompleteMe
install = install install = install

View File

@ -41,10 +41,10 @@ _neovim="$NEOVIM_YOUCOMPLETEME"
# Default PKGBUILD Configuration # # Default PKGBUILD Configuration #
#=========================================================================================================# #=========================================================================================================#
pkgname=vim-youcompleteme-git pkgname=vim-youcompleteme-git
pkgver=r2529.10131222 pkgver=r2532.d556a43c
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)"
} }
pkgrel=1 pkgrel=1
pkgdesc="A code-completion engine for Vim" pkgdesc="A code-completion engine for Vim"
@ -83,59 +83,59 @@ sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP
# Applying PKBUILD Build Options # # Applying PKBUILD Build Options #
#=========================================================================================================# #=========================================================================================================#
if [[ "$_gocode" == "y" ]]; then if [[ "$_gocode" == "y" ]];then
# ycmd # ycmd
source+=('git+https://github.com/mdempsky/gocode.git') source+=('git+https://github.com/mdempsky/gocode.git')
source+=('git+https://github.com/rogpeppe/godef.git') source+=('git+https://github.com/rogpeppe/godef.git')
sha256sums+=('SKIP') sha256sums+=('SKIP')
sha256sums+=('SKIP') sha256sums+=('SKIP')
makedepends+=('go') makedepends+=('go')
fi fi
if [[ "$_omnisharp" == "y" ]]; then if [[ "$_omnisharp" == "y" ]]; then
source+=( 'git+https://github.com/nosami/OmniSharpServer.git' #ycmd source+=( 'git+https://github.com/nosami/OmniSharpServer.git' #ycmd
'git+https://github.com/icsharpcode/NRefactory.git' #OmniSharpServer 'git+https://github.com/icsharpcode/NRefactory.git' #OmniSharpServer
'git+https://github.com/jbevain/cecil.git' #OmniSharpServer 'git+https://github.com/jbevain/cecil.git' #OmniSharpServer
) )
sha256sums+=('SKIP' 'SKIP' 'SKIP') sha256sums+=('SKIP' 'SKIP' 'SKIP')
depends+=('mono') depends+=('mono')
makedepends+=('mono') makedepends+=('mono')
fi fi
if [[ "$_rust" == "y" ]]; then if [[ "$_rust" == "y" ]]; then
# ycmd # ycmd
source+=( 'git+https://github.com/jwilm/racerd.git') source+=( 'git+https://github.com/jwilm/racerd.git')
sha256sums+=('SKIP') sha256sums+=('SKIP')
depends+=('rust') depends+=('rust')
makedepends+=('cargo') makedepends+=('cargo')
fi fi
if [[ "$_tern" == "y" ]]; then if [[ "$_tern" == "y" ]]; then
# ycmd # ycmd
makedepends+=('npm') makedepends+=('npm')
fi fi
if [[ "$_use_system_python" == "n" ]]; then if [[ "$_use_system_python" == "n" ]]; then
if [[ "$_use_python2" == "OFF" ]]; then if [[ "$_use_python2" == "OFF" ]]; then
depends+=('python') depends+=('python')
elif [[ "$_use_python2" == "ON" ]]; then elif [[ "$_use_python2" == "ON" ]]; then
depends+=('python2') depends+=('python2')
fi fi
elif [[ "$_use_system_python" == "y" ]]; then elif [[ "$_use_system_python" == "y" ]]; then
if [[ "$_use_python2" == "OFF" ]]; then if [[ "$_use_python2" == "OFF" ]]; then
depends+=('python-requests-futures' 'python-certifi' 'python-future' 'python-bottle' 'python-frozendict' 'python-waitress' 'python-regex') depends+=('python-requests-futures' 'python-certifi' 'python-future' 'python-bottle' 'python-frozendict' 'python-waitress' 'python-regex')
elif [[ "$_use_python2" == "ON" ]]; then elif [[ "$_use_python2" == "ON" ]]; then
depends+=('python2-requests-futures' 'python2-certifi' 'python2-future' 'python2-bottle' 'python2-frozendict' 'python2-waitress' 'python2-regex') depends+=('python2-requests-futures' 'python2-certifi' 'python2-future' 'python2-bottle' 'python2-frozendict' 'python2-waitress' 'python2-regex')
fi fi
fi fi
if [[ "$_use_system_jedi" == "y" ]]; then if [[ "$_use_system_jedi" == "y" ]]; then
if [[ "$_use_python2" == "OFF" ]]; then if [[ "$_use_python2" == "OFF" ]]; then
depends+=('python-jedi' 'python-parso' 'python-numpydoc') depends+=('python-jedi' 'python-parso' 'python-numpydoc')
elif [[ "$_use_python2" == "ON" ]]; then elif [[ "$_use_python2" == "ON" ]]; then
depends+=('python2-jedi' 'python2-parso' 'python2-numpydoc') depends+=('python2-jedi' 'python2-parso' 'python2-numpydoc')
fi fi
fi fi
#=========================================================================================================# #=========================================================================================================#
#=========================================================================================================# #=========================================================================================================#
@ -147,25 +147,25 @@ fi
#=========================================================================================================# #=========================================================================================================#
gitprepare() { gitprepare() {
local cd_dir=$1 local cd_dir=$1
local git_prefix=$2 local git_prefix=$2
local c=0 local c=0
for val in "$@" ; do for val in "$@" ; do
if [ $c -gt 1 ]; then if [ $c -gt 1 ]; then
local feed[$c]=$val local feed[$c]=$val
fi fi
c=$(( c + 1 )) c=$(( c + 1 ))
done done
cd "$srcdir/$cd_dir" || exit cd "$srcdir/$cd_dir" || exit
git submodule init git submodule init
for gitsubvar in "${feed[@]}" ; do for gitsubvar in "${feed[@]}" ; do
git config submodule."$git_prefix$gitsubvar".url "$srcdir/$gitsubvar" git config submodule."$git_prefix$gitsubvar".url "$srcdir/$gitsubvar"
done done
git submodule update git submodule update
unset -v feed unset -v feed
} }
#=========================================================================================================# #=========================================================================================================#
@ -179,228 +179,228 @@ gitprepare() {
prepare() { prepare() {
# Add the java completion engine dynamically... # Add the java completion engine dynamically...
if [[ "$_java" == "y" ]]; then if [[ "$_java" == "y" ]]; then
msg2 'Parsing out the JDTLS package version from upstream...'
local jdtls_package_name="jdt-language-server"
local jdtls_milestone=`egrep '^JDTLS_MILESTONE' "$srcdir/ycmd/build.py" | sed -e "s/.* = //g" -e "s/'//g"`
local jdtls_buildstamp=`egrep '^JDTLS_BUILD_STAMP' "$srcdir/ycmd/build.py" | sed -e "s/.* = //g" -e "s/'//g"`
if [[ "$jdtls_milestone" != "" ]] && [[ "$jdtls_buildstamp" != "" ]]; then msg2 'Parsing out the JDTLS package version from upstream...'
msg2 'JDTLS package version matched. Downloading...' local jdtls_package_name="jdt-language-server"
curl -LO http://download.eclipse.org/jdtls/milestones/${jdtls_milestone}/${jdtls_package_name}-${jdtls_milestone}-${jdtls_buildstamp}.tar.gz local jdtls_milestone=`egrep '^JDTLS_MILESTONE' "$srcdir/ycmd/build.py" | sed -e "s/.* = //g" -e "s/'//g"`
tar xf ${jdtls_package_name}-${jdtls_milestone}-${jdtls_buildstamp}.tar.gz local jdtls_buildstamp=`egrep '^JDTLS_BUILD_STAMP' "$srcdir/ycmd/build.py" | sed -e "s/.* = //g" -e "s/'//g"`
else if [[ "$jdtls_milestone" != "" ]] && [[ "$jdtls_buildstamp" != "" ]]; then
error 'Mismatched JDTLS version' msg2 'JDTLS package version matched. Downloading...'
exit 1 curl -LO http://download.eclipse.org/jdtls/milestones/"${jdtls_milestone}"/"${jdtls_package_name}"-"${jdtls_milestone}"-"${jdtls_buildstamp}".tar.gz
fi tar xf "${jdtls_package_name}"-"${jdtls_milestone}"-"${jdtls_buildstamp}".tar.gz
fi else
error 'Mismatched JDTLS version'
exit 1
fi
fi
msg2 'Setting up Git submodules...' msg2 'Setting up Git submodules...'
local YouCompleteMe=("requests-futures" "ycmd" "python-future") local YouCompleteMe=("requests-futures" "ycmd" "python-future")
local YouCompleteMeRequestsDeps=("idna" "python-certifi" "chardet" "urllib3" "requests") local YouCompleteMeRequestsDeps=("idna" "python-certifi" "chardet" "urllib3" "requests")
gitprepare "YouCompleteMe" "third_party/" "${YouCompleteMe[@]}" gitprepare "YouCompleteMe" "third_party/" "${YouCompleteMe[@]}"
gitprepare "YouCompleteMe" "third_party/requests_deps/" "${YouCompleteMeRequestsDeps[@]}" gitprepare "YouCompleteMe" "third_party/requests_deps/" "${YouCompleteMeRequestsDeps[@]}"
local ycmd=("bottle" "regex" "python-frozendict" "python-future" "waitress") local ycmd=("bottle" "regex" "python-frozendict" "python-future" "waitress")
if [[ "$_omnisharp" == "y" ]]; then if [[ "$_omnisharp" == "y" ]]; then
ycmd+=("OmniSharpServer") ycmd+=("OmniSharpServer")
fi fi
if [[ "$_rust" == "y" ]]; then if [[ "$_rust" == "y" ]]; then
ycmd+=("racerd") ycmd+=("racerd")
fi 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")
gitprepare "YouCompleteMe/third_party/ycmd" "third_party/jedi_deps" "${ycmdJediDeps[@]}" gitprepare "YouCompleteMe/third_party/ycmd" "third_party/jedi_deps" "${ycmdJediDeps[@]}"
local ycmdRequestsDeps=("python-certifi" "chardet" "idna" "requests" "urllib3") local ycmdRequestsDeps=("python-certifi" "chardet" "idna" "requests" "urllib3")
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/github.com/mdempsky" "" "gocode"
gitprepare "YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/rogpeppe" "" "godef" gitprepare "YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/rogpeppe" "" "godef"
fi fi
if [[ "$_omnisharp" == "y" ]]; then if [[ "$_omnisharp" == "y" ]]; then
local OmniSharpServer=("NRefactory" "cecil") local OmniSharpServer=("NRefactory" "cecil")
gitprepare "YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer" "" "${OmniSharpServer[@]}" gitprepare "YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer" "" "${OmniSharpServer[@]}"
fi fi
} }
build() { build() {
msg2 'Purging unneeded files...' msg2 'Purging unneeded files...'
rm -r "$srcdir/YouCompleteMe/python/ycm/tests" rm -r "$srcdir/YouCompleteMe/python/ycm/tests"
msg2 'Building ycmd...' # BuildYcmdLibs() msg2 'Building ycmd...' # BuildYcmdLibs()
mkdir -p "$srcdir/ycmd_build" mkdir -p "$srcdir/ycmd_build"
cd "$srcdir/ycmd_build" || exit cd "$srcdir/ycmd_build" || exit
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 [[ "$_omnisharp" == "y" ]]; then
msg2 'Building OmniSharp completer...' # BuildOmniSharp() msg2 'Building OmniSharp completer...' # BuildOmniSharp()
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer" || exit cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer" || exit
xbuild /property:Configuration=Release xbuild /property:Configuration=Release
else else
msg2 'Skipping OmniSharp completer...' msg2 'Skipping OmniSharp completer...'
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/github.com/mdempsky/gocode" || exit
go build go build
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/rogpeppe/godef" || exit 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 [[ "$_rust" == "y" ]]; then
msg2 'Building Rust completer...' # BuildRacerd() msg2 'Building Rust completer...' # BuildRacerd()
cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/racerd" || exit cd "$srcdir/YouCompleteMe/third_party/ycmd/third_party/racerd" || exit
cargo build --release cargo build --release
else else
msg2 'Skipping Rust completer...' msg2 'Skipping Rust completer...'
fi fi
if [[ "$_tern" == "y" ]]; then 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
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"
mkdir -p "$srcdir/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository" mkdir -p "$srcdir/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository"
mv "$srcdir"/{config_linux,features,plugins} "$srcdir/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository" mv "$srcdir"/{config_linux,features,plugins} "$srcdir/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository"
fi fi
} }
package() { package() {
local vimfiles_dir=usr/share/vim/vimfiles local vimfiles_dir=usr/share/vim/vimfiles
if [[ "$_neovim" == "y" ]]; then if [[ "$_neovim" == "y" ]]; then
vimfiles_dir=usr/share/nvim/runtime vimfiles_dir=usr/share/nvim/runtime
fi fi
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party" mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party"
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/"{ycmd,ycm_core.so,CORE_VERSION} \ cp -r "$srcdir/YouCompleteMe/third_party/ycmd/"{ycmd,ycm_core.so,CORE_VERSION} \
"$pkgdir/$vimfiles_dir/third_party/ycmd" "$pkgdir/$vimfiles_dir/third_party/ycmd"
cp -r "$srcdir/YouCompleteMe/"{autoload,doc,plugin,python} \ cp -r "$srcdir/YouCompleteMe/"{autoload,doc,plugin,python} \
"$pkgdir/$vimfiles_dir" "$pkgdir/$vimfiles_dir"
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"
cp -r "$srcdir/YouCompleteMe/third_party/"{pythonfutures,requests-futures,python-future} \ cp -r "$srcdir/YouCompleteMe/third_party/"{pythonfutures,requests-futures,python-future} \
"$pkgdir/$vimfiles_dir/third_party" "$pkgdir/$vimfiles_dir/third_party"
cp -r "$srcdir/YouCompleteMe/third_party/requests_deps/"{certifi,chardet,idna,requests,urllib3} \ cp -r "$srcdir/YouCompleteMe/third_party/requests_deps/"{certifi,chardet,idna,requests,urllib3} \
"$pkgdir/$vimfiles_dir/third_party/requests_deps" "$pkgdir/$vimfiles_dir/third_party/requests_deps"
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/"{bottle,clang,cregex,frozendict,python-future,waitress} \ cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/"{bottle,clang,cregex,frozendict,python-future,waitress} \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party"
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/requests_deps/"{certifi,chardet,idna,requests,urllib3} \ cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/requests_deps/"{certifi,chardet,idna,requests,urllib3} \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/requests_deps" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/requests_deps"
elif [[ "$_use_system_python" == "y" ]]; then elif [[ "$_use_system_python" == "y" ]]; then
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/clang" \ cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/clang" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party"
fi fi
if [[ "$_use_system_jedi" == "n" ]]; then if [[ "$_use_system_jedi" == "n" ]]; then
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/jedi_deps" \ mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/jedi_deps/"{jedi,parso,numpydoc}
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/" cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/jedi" \
fi "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/jedi_deps/jedi/"
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/parso/parso" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/jedi_deps/parso/"
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/numpydoc/numpydoc" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/jedi_deps/numpydoc/"
fi
if [[ "$_omnisharp" == "y" ]]; then if [[ "$_omnisharp" == "y" ]]; then
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/OmniSharpServer/OmniSharp/bin/Release" 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" \ cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer/OmniSharp/bin/Release" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/OmniSharpServer/OmniSharp/bin" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/OmniSharpServer/OmniSharp/bin"
fi 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/github.com/mdempsky/gocode"
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/github.com/rogpeppe/godef" 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/github.com/mdempsky/gocode/gocode" \ 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/github.com/mdempsky/gocode/gocode" "$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" \ 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" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/go/src/github.com/rogpeppe/godef/godef"
fi fi
if [[ "$_rust" == "y" ]]; then if [[ "$_rust" == "y" ]]; then
mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/racerd/target/release" mkdir -p "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/racerd/target/release"
cp "$srcdir/YouCompleteMe/third_party/ycmd/third_party/racerd/target/release/racerd" \ cp "$srcdir/YouCompleteMe/third_party/ycmd/third_party/racerd/target/release/racerd" \
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/racerd/target/release/racerd" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/racerd/target/release/racerd"
fi fi
if [[ "$_tern" == "y" ]]; then if [[ "$_tern" == "y" ]]; then
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/tern_runtime" \ 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
if [[ "$_typescript" == "y" ]]; then if [[ "$_java" == "y" ]]; then
cp -r "$srcdir/YouCompleteMe/third_party/ycmd/third_party/tsserver" \ mv "$srcdir/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party"
"$pkgdir/$vimfiles_dir/third_party/ycmd/third_party" # Force the java completion engine to create its workspace at /tmp instead which is writeable by every user
fi ln -sf /tmp "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/eclipse.jdt.ls/workspace"
fi
if [[ "$_java" == "y" ]]; then # Remove all the unnecessary git repositories
mv "$srcdir/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls" "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party" find "$pkgdir" -name '.git*' -exec rm -fr {} +
# Force the java completion engine to create its workspace at /tmp instead which is writeable by every user
ln -sf /tmp "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/eclipse.jdt.ls/workspace"
fi
# Remove all the unnecessary git repositories # Remove test files
find "$pkgdir" -name '.git*' -exec rm -fr {} + if [[ "$_tests" == "n" ]]; then
find "$pkgdir" -name tests -exec rm -fr {} +
find "$pkgdir" -name 'test' -exec rm -fr {} +
fi
# Remove test files # Remove any file we cannot compile using a specfic python version
if [[ "$_tests" == "n" ]]; then if [[ "$_use_python2" == "ON" ]]; then
find "$pkgdir" -name tests -exec rm -fr {} + :
find "$pkgdir" -name 'test' -exec rm -fr {} + else
fi if [[ "$_use_system_python" == "n" ]]; then
rm -r "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/bottle/plugins/werkzeug/bottle_werkzeug.py"
rm -r "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/bottle/plugins/sqlite/bottle_sqlite.py"
fi
fi
# Remove any file we cannot compile using a specfic python version # Remove unneeded docs
if [[ "$_use_python2" == "ON" ]]; then if [[ "$_docs" == "n" ]]; then
: find "$pkgdir" -name docs -exec rm -fr {} +
else find "$pkgdir/$vimfiles_dir/third_party/" -name doc -exec rm -fr {} +
if [[ "$_use_system_python" == "n" ]]; then fi
rm -r "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/bottle/plugins/werkzeug/bottle_werkzeug.py"
rm -r "$pkgdir/$vimfiles_dir/third_party/ycmd/third_party/bottle/plugins/sqlite/bottle_sqlite.py"
fi
fi
# Remove unneeded docs # Finally compile all the python files to bytecode.
if [[ "$_docs" == "n" ]]; then # not sure why this block causes the pkg function to fail unless you add "|| :"
find "$pkgdir" -name docs -exec rm -fr {} + if [[ "$_use_python2" == "ON" ]]; then
find "$pkgdir/$vimfiles_dir/third_party/" -name doc -exec rm -fr {} + python2 -m compileall "$pkgdir" || :
fi else
python3 -m compileall "$pkgdir" || :
# Finally compile all the python files to bytecode. fi
# not sure why this block causes the pkg function to fail unless you add "|| :"
if [[ "$_use_python2" == "ON" ]]; then
python2 -m compileall "$pkgdir" || :
else
python3 -m compileall "$pkgdir" || :
fi
} }