mirror of
https://github.com/TrentSPalmer/aur-packages.git
synced 2024-12-22 12:32:49 -08:00
add option deoplete-jedi-git
This commit is contained in:
parent
ef3a4cf183
commit
9020c049cd
@ -1,21 +1,18 @@
|
||||
pkgbase = deoplete-jedi-git
|
||||
pkgdesc = jedi add-on for deoplete completion plugin for neovim
|
||||
pkgver = r381.42f4c24
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://github.com/deoplete-plugins/deoplete-jedi
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = git
|
||||
depends = deoplete
|
||||
depends = python-jedi
|
||||
depends = python-parso
|
||||
depends = python-numpydoc
|
||||
provides = deoplete-jedi
|
||||
conflicts = deoplete-jedi
|
||||
source = git+https://github.com/deoplete-plugins/deoplete-jedi
|
||||
source = git+https://github.com/davidhalter/jedi.git
|
||||
source = git+https://github.com/davidhalter/typeshed.git
|
||||
source = git+https://github.com/davidhalter/parso.git
|
||||
md5sums = SKIP
|
||||
md5sums = SKIP
|
||||
md5sums = SKIP
|
||||
md5sums = SKIP
|
||||
|
||||
pkgname = deoplete-jedi-git
|
||||
|
@ -4,14 +4,14 @@
|
||||
# Build Options
|
||||
###########################################################################################################
|
||||
_vim="y"
|
||||
|
||||
_use_system_jedi="y"
|
||||
_neovim="n"
|
||||
###########################################################################################################
|
||||
|
||||
_name='deoplete-jedi'
|
||||
pkgname="${_name}-git"
|
||||
pkgver=r381.42f4c24
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="jedi add-on for deoplete completion plugin for neovim"
|
||||
arch=('any')
|
||||
url="https://github.com/deoplete-plugins/deoplete-jedi"
|
||||
@ -26,26 +26,36 @@ backup=()
|
||||
options=()
|
||||
source=(
|
||||
'git+https://github.com/deoplete-plugins/deoplete-jedi' # deopletejedi
|
||||
'git+https://github.com/davidhalter/jedi.git' # jedi
|
||||
'git+https://github.com/davidhalter/typeshed.git' # jedi
|
||||
'git+https://github.com/davidhalter/parso.git' # parso
|
||||
)
|
||||
noextract=()
|
||||
md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${srcdir}/${_name}"
|
||||
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" == "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")
|
||||
gitprepare "deoplete-jedi" "rplugin/python3/deoplete/vendored/" "${deopletejedi[@]}"
|
||||
|
||||
deopletejeditypeshed=("typeshed")
|
||||
gitprepare "deoplete-jedi/rplugin/python3/deoplete/vendored/jedi" "jedi/third_party/" "${deopletejeditypeshed[@]}"
|
||||
|
||||
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() {
|
||||
@ -72,27 +82,37 @@ gitprepare() {
|
||||
|
||||
package() {
|
||||
if [ "$_neovim" = "y" ]; 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/"
|
||||
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/"
|
||||
fi
|
||||
|
||||
if [ "$_vim" = "y" ]; 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/"
|
||||
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/"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user