mirror of
https://github.com/TrentSPalmer/aur-packages.git
synced 2024-11-21 19:01:31 -08:00
version bump 4 commits deoplete-jedi-git, jedi no longer bundled as a git submodule upstream
This commit is contained in:
parent
c3ce7e8e63
commit
0fc691479b
@ -1,6 +1,6 @@
|
||||
pkgbase = deoplete-jedi-git
|
||||
pkgdesc = jedi add-on for deoplete completion plugin for neovim
|
||||
pkgver = r385.9ad4cba
|
||||
pkgver = r389.a0e5a06
|
||||
pkgrel = 1
|
||||
url = https://github.com/deoplete-plugins/deoplete-jedi
|
||||
arch = any
|
||||
|
@ -6,20 +6,21 @@
|
||||
# seems to work for both vim or neovim if you install for vim,
|
||||
# but doesn't work for vim if you only install for neovim
|
||||
_vim="y"
|
||||
_use_system_jedi="y"
|
||||
# _use_system_jedi="y" # no more bundled jedi module
|
||||
_neovim="n"
|
||||
###########################################################################################################
|
||||
|
||||
_name='deoplete-jedi'
|
||||
pkgname="${_name}-git"
|
||||
pkgver=r385.9ad4cba
|
||||
pkgver=r389.a0e5a06
|
||||
pkgrel=1
|
||||
pkgdesc="jedi add-on for deoplete completion plugin for neovim"
|
||||
arch=('any')
|
||||
url="https://github.com/deoplete-plugins/deoplete-jedi"
|
||||
license=('MIT')
|
||||
groups=()
|
||||
depends=('deoplete')
|
||||
# depends=('deoplete')
|
||||
depends=('deoplete' 'python-jedi' 'python-parso' 'python-numpydoc')
|
||||
makedepends=('git')
|
||||
provides=('deoplete-jedi')
|
||||
conflicts=('deoplete-jedi')
|
||||
@ -37,86 +38,90 @@ pkgver() {
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
if [[ "$_use_system_jedi" == "y" ]]; then
|
||||
depends+=('python-jedi' 'python-parso' 'python-numpydoc')
|
||||
fi
|
||||
# if [[ "$_use_system_jedi" == "y" ]]; then
|
||||
# depends+=('python-jedi' 'python-parso' 'python-numpydoc')
|
||||
# fi
|
||||
#
|
||||
# if [[ "$_use_system_jedi" == "n" ]]; then
|
||||
# source+=('git+https://github.com/davidhalter/jedi.git') # jedi
|
||||
# source+=('git+https://github.com/davidhalter/typeshed.git') # jedi
|
||||
# source+=('git+https://github.com/davidhalter/parso.git') # parso
|
||||
# md5sums+=('SKIP' 'SKIP' 'SKIP')
|
||||
# fi
|
||||
|
||||
if [[ "$_use_system_jedi" == "n" ]]; then
|
||||
source+=('git+https://github.com/davidhalter/jedi.git') # jedi
|
||||
source+=('git+https://github.com/davidhalter/typeshed.git') # jedi
|
||||
source+=('git+https://github.com/davidhalter/parso.git') # parso
|
||||
md5sums+=('SKIP' 'SKIP' 'SKIP')
|
||||
fi
|
||||
# prepare() {
|
||||
# msg2 'Setting up Git submodules...'
|
||||
#
|
||||
# deopletejedi=("jedi" "parso")
|
||||
# deopletejeditypeshed=("typeshed")
|
||||
#
|
||||
# if [[ "$_use_system_jedi" == "n" ]]; then
|
||||
# gitprepare "deoplete-jedi" "rplugin/python3/deoplete/vendored/" "${deopletejedi[@]}"
|
||||
# gitprepare "deoplete-jedi/rplugin/python3/deoplete/vendored/jedi" "jedi/third_party/" "${deopletejeditypeshed[@]}"
|
||||
# fi
|
||||
# }
|
||||
|
||||
prepare() {
|
||||
msg2 'Setting up Git submodules...'
|
||||
|
||||
deopletejedi=("jedi" "parso")
|
||||
deopletejeditypeshed=("typeshed")
|
||||
|
||||
if [[ "$_use_system_jedi" == "n" ]]; then
|
||||
gitprepare "deoplete-jedi" "rplugin/python3/deoplete/vendored/" "${deopletejedi[@]}"
|
||||
gitprepare "deoplete-jedi/rplugin/python3/deoplete/vendored/jedi" "jedi/third_party/" "${deopletejeditypeshed[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
gitprepare() {
|
||||
local CD_DIR=$1
|
||||
local GIT_PREFIX=$2
|
||||
c=0
|
||||
for val in "$@" ; do
|
||||
if [ $c -gt 1 ]; then
|
||||
FEED[$c]=$val
|
||||
fi
|
||||
c=$(( c + 1 ))
|
||||
done
|
||||
|
||||
cd "$srcdir/$CD_DIR" || exit
|
||||
|
||||
git submodule init
|
||||
for GITSUBVAR in "${FEED[@]}" ; do
|
||||
git config submodule."$GIT_PREFIX$GITSUBVAR".url "$srcdir/$GITSUBVAR"
|
||||
done
|
||||
git submodule update
|
||||
unset -v FEED
|
||||
}
|
||||
# gitprepare() {
|
||||
# local CD_DIR=$1
|
||||
# local GIT_PREFIX=$2
|
||||
# c=0
|
||||
# for val in "$@" ; do
|
||||
# if [ $c -gt 1 ]; then
|
||||
# FEED[$c]=$val
|
||||
# fi
|
||||
# c=$(( c + 1 ))
|
||||
# done
|
||||
#
|
||||
# cd "$srcdir/$CD_DIR" || exit
|
||||
#
|
||||
# git submodule init
|
||||
# for GITSUBVAR in "${FEED[@]}" ; do
|
||||
# git config submodule."$GIT_PREFIX$GITSUBVAR".url "$srcdir/$GITSUBVAR"
|
||||
# done
|
||||
# git submodule update
|
||||
# unset -v FEED
|
||||
# }
|
||||
|
||||
|
||||
package() {
|
||||
if [ "$_neovim" = "y" ]; then
|
||||
if [[ "$_use_system_jedi" == "n" ]]; then
|
||||
mkdir -p "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/jedi"
|
||||
mkdir -p "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/parso"
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/parso/parso" \
|
||||
"$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/parso/"
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/jedi/jedi" \
|
||||
"$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/jedi/"
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/jedi/jedi/third_party/typeshed"{stdlib,third_party} \
|
||||
"$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/jedi/jedi/third_party/typeshed/"
|
||||
fi
|
||||
if [[ "$_use_system_jedi" == "y" ]]; then
|
||||
mkdir -p "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete"
|
||||
fi
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/sources" \
|
||||
"$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/"
|
||||
# if [[ "$_use_system_jedi" == "n" ]]; then
|
||||
# mkdir -p "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/jedi"
|
||||
# mkdir -p "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/parso"
|
||||
# cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/parso/parso" \
|
||||
# "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/parso/"
|
||||
# cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/jedi/jedi" \
|
||||
# "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/jedi/"
|
||||
# cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/jedi/jedi/third_party/typeshed"{stdlib,third_party} \
|
||||
# "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/vendored/jedi/jedi/third_party/typeshed/"
|
||||
# fi
|
||||
# if [[ "$_use_system_jedi" == "y" ]]; then
|
||||
# mkdir -p "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete"
|
||||
# fi
|
||||
mkdir -p "$pkgdir/usr/share/nvim/runtime/rplugin/python3"
|
||||
# cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/sources" "$pkgdir/usr/share/nvim/runtime/rplugin/python3/deoplete/"
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete" \
|
||||
"$pkgdir/usr/share/nvim/runtime/rplugin/python3/"
|
||||
fi
|
||||
|
||||
if [ "$_vim" = "y" ]; then
|
||||
if [[ "$_use_system_jedi" == "n" ]]; then
|
||||
mkdir -p "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/jedi"
|
||||
mkdir -p "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/parso"
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/parso/parso" \
|
||||
"$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/parso/"
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/jedi/jedi" \
|
||||
"$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/jedi/"
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/jedi/jedi/third_party/typeshed/"{stdlib,third_party} \
|
||||
"$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/jedi/jedi/third_party/typeshed/"
|
||||
fi
|
||||
if [[ "$_use_system_jedi" == "y" ]]; then
|
||||
mkdir -p "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete"
|
||||
fi
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/sources" \
|
||||
"$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/"
|
||||
# if [[ "$_use_system_jedi" == "n" ]]; then
|
||||
# mkdir -p "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/jedi"
|
||||
# mkdir -p "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/parso"
|
||||
# cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/parso/parso" \
|
||||
# "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/parso/"
|
||||
# cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/jedi/jedi" \
|
||||
# "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/jedi/"
|
||||
# cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/vendored/jedi/jedi/third_party/typeshed/"{stdlib,third_party} \
|
||||
# "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/vendored/jedi/jedi/third_party/typeshed/"
|
||||
# fi
|
||||
# if [[ "$_use_system_jedi" == "y" ]]; then
|
||||
# mkdir -p "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete"
|
||||
# fi
|
||||
mkdir -p "$pkgdir/usr/share/vim/vimfiles/rplugin/python3"
|
||||
# cp -r "${srcdir}/${_name}/rplugin/python3/deoplete/sources" "$pkgdir/usr/share/vim/vimfiles/rplugin/python3/deoplete/"
|
||||
cp -r "${srcdir}/${_name}/rplugin/python3/deoplete" \
|
||||
"$pkgdir/usr/share/vim/vimfiles/rplugin/python3/"
|
||||
fi
|
||||
|
||||
install -D -m644 "${srcdir}/${_name}/README.md" "$pkgdir"/usr/share/doc/$pkgname/README.md
|
||||
|
Loading…
Reference in New Issue
Block a user