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