summaryrefslogtreecommitdiff
path: root/app-vim/python-mode
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-vim/python-mode
reinit the tree, so we can have metadata
Diffstat (limited to 'app-vim/python-mode')
-rw-r--r--app-vim/python-mode/Manifest10
-rw-r--r--app-vim/python-mode/files/python-mode-0.6.18-dont-add-cwd-to-syspath.patch15
-rw-r--r--app-vim/python-mode/metadata.xml17
-rw-r--r--app-vim/python-mode/python-mode-0.6.18-r3.ebuild55
-rw-r--r--app-vim/python-mode/python-mode-0.6.18-r4.ebuild62
-rw-r--r--app-vim/python-mode/python-mode-0.9.0-r1.ebuild48
-rw-r--r--app-vim/python-mode/python-mode-0.9.0.ebuild43
7 files changed, 250 insertions, 0 deletions
diff --git a/app-vim/python-mode/Manifest b/app-vim/python-mode/Manifest
new file mode 100644
index 000000000000..cc72fa28b9f6
--- /dev/null
+++ b/app-vim/python-mode/Manifest
@@ -0,0 +1,10 @@
+AUX python-mode-0.6.18-dont-add-cwd-to-syspath.patch 496 SHA256 6179613855dc9e394f94d8e675f39277ad1e9e78e6388f09f44ee4ed44e4cbba SHA512 3008c54ec29aa0c6f9a96874bf970ddf6264b26090df55336a493ac4d69f52a8e2cb938323c064c158dc6fa7f8b94f5ae1d4761fc4b093c14bb7664e9a196696 WHIRLPOOL 58d6b5daf47bb3e69b55c6d8b57e44fb70fa0b630ee984240b2078686bd9683e3f341bc0b2ff19a2d96e7ac0034253cd9b364fc6dfc6820f147d3a6cfe307333
+DIST python-mode-0.6.18.tar.gz 386846 SHA256 d46ff14b7ee639b698d1b0ae0e7ca0dcfa95a315ffb25e523ae720461f399c1d SHA512 0e3159a055304443c8b15590c424ac0f4a4303e343882ff91f01f5b959274931dea83969ab1dcd19ce95894c7da5be60699d51b852dc73165a99a271feec4e64 WHIRLPOOL 1a6114999c1b832335268dd7dd3e9ebfd48ce9e35cdc7058e4a1011d3ac0aeb36df85ab52599460e449c0ee645303aca17a8ecb44533a5d137a9b904c426b1da
+DIST python-mode-0.9.0.tar.gz 671985 SHA256 5a6c9ea3cd8e094318cc2acbbbf1f81e37b41a67d00eedcb1a6968f8524c8e5e SHA512 03aef010a95241abf9605ca334d95a2c0b917c61aea23f794e574acd56ba5d958032975d17d1af40a5edccd90f0172783a26fc301d799fd619bfd263da685161 WHIRLPOOL 1d8f9a3a74cc6ba4ab45267dfa8366e78e313a6b8a38f66a1b7c70e0e226b1f79b5b8a162cd841666ddbf663dbbd7a9df847d2b428b80a03ecb39126d375f1d5
+EBUILD python-mode-0.6.18-r3.ebuild 1553 SHA256 f0a0768090fa94d38ccd8bf2933c8166d7512744abbff3903f9e7b9f2bb641c5 SHA512 0aef727c7ad80dc374be31f65dfed787cf9934b80e0b91a03f686062cdb222156b9db3c332e2d01dfb6d2e9f0b33a54ede023f20addda8cc1b24c7bc980bc20a WHIRLPOOL 9a3640900de05b09279547c51efed7004e658ec520c46115493914eb4beaf043024582a2373f5f088fd48bc3d2987d8074fe8b9505584a5f453f5b6d1d8bf58d
+EBUILD python-mode-0.6.18-r4.ebuild 1861 SHA256 3851c13a597b4acf4d51653e2544840d7e8986959e28d26278d760610aef77fa SHA512 dbaadb05f7ad3642719f69af0c84faabf9e94dc49a04be4c7ba7d7d1e18a9a973390e5b0b087e062b406abb91a4dde11c1e15f27ad10de593af6ab13c5123852 WHIRLPOOL e67ea16297b355e9902f0289ea88a7da3a89764d7e2bdf5404e021f619171077eeb30501608c90b7ff4f714e783c3264995ce3943615558d053e033529344a84
+EBUILD python-mode-0.9.0-r1.ebuild 1193 SHA256 1608e92ad6b9853ab129da3767f26fb2ad96493e3379cd3e61bb53ff082c475c SHA512 9406bdcf3000fd01f803a69dbe8a93c6dbad675b85e5996e173095d25c936cb496587c7e9b9c81c8327f11f090984b2609869d1e2d4a2e974a4aa87fccac0683 WHIRLPOOL b100dfa196ed7261d8c91fff8b7e6f28a1ed89341a55fe0746be6530276414abdc8ca6bf3ab2cd03a923388db6f56ad5c9f2fc4080688471362522332d7fa0f2
+EBUILD python-mode-0.9.0.ebuild 989 SHA256 7bb4c5f4e2cacbc18be374a056d10c3b44c0281469fa2a7e55e922bebf23f224 SHA512 58260c9aa2b577a3f1267d7d7f0b9fc967d3c98a1211ebc12cc62a2ae17b6e74d91902cb74e7662f60f1df58b8e13677b5075b14486b32fcf77423c1000a5b01 WHIRLPOOL 9e0528c92e3f2a44d2f331715a1cfd823dbcc853388ffd8d6a33717efbcb3a3f838486a0ba56f7b1db5fc3f919bfc4be5c603a6efdcd75808d2449fbb455a46e
+MISC ChangeLog 2862 SHA256 b7b8439882fc35e319a678108580c86618e0f65fadca92c765f8860dabef96dd SHA512 cbb37a327a7fd4d340c0e5aec3c4f1c7e2352a21223a99113961347aa44fc90d5af764ad17de3c5752d9c1067e38ff805f7924a95a704fac9da70ae0b307ce54 WHIRLPOOL efe8559e10b1bb197d6acbf9fe9d209d822bbd7e1b047b3526eedc364721fe182b34457fc5025598e5ba6a7c7f5f33174ed1723cf3be8217f16d0479e9d40fff
+MISC ChangeLog-2015 2449 SHA256 2886b480ef0d086972f3e82d17fd7aa7d2229a7df7030031650d749d5b023a43 SHA512 82db96e9b597cadd88a8c62b3d44bc32eb887c9dfea695bb760e91483645ada37004179f97fcdcf9f74335623851ec9e4aa2d6777c8ce4ad9d9aff77733ea9af WHIRLPOOL 2004975a8b4dac5625b6986d399c3379675030c85bc6d337236c1c67197f7b66b188908a32616c0061b4e10250eff3cc36e598bcfb63056dbbee0798768c64e6
+MISC metadata.xml 590 SHA256 a1961c5663e707473cf03867bbabf500f5bc8b6c86bfcd7b843f01fd3add16b3 SHA512 b6fbd9c3f197ca6b1df05584448514c12f78eefa1a7f80fa74c0a46ab3e6fdce1b3824fdff22060cf056fce1463ee4af62b7988c7a5025942e7ed072ad9f2d99 WHIRLPOOL f0cdf34b6a1ff36bb42c2a43bd71896ee393601afbd5cb77bbfc67e27711daf08f752739847e5939e570002d07f4c5222e74a476053e03cd15396f58ab72bcf1
diff --git a/app-vim/python-mode/files/python-mode-0.6.18-dont-add-cwd-to-syspath.patch b/app-vim/python-mode/files/python-mode-0.6.18-dont-add-cwd-to-syspath.patch
new file mode 100644
index 000000000000..fb92614233bd
--- /dev/null
+++ b/app-vim/python-mode/files/python-mode-0.6.18-dont-add-cwd-to-syspath.patch
@@ -0,0 +1,15 @@
+https://github.com/klen/python-mode/issues/162
+--- a/ftplugin/python/init-pymode.vim
++++ b/ftplugin/python/init-pymode.vim
+@@ -46,10 +46,9 @@ if !pymode#Default('g:pymode_path', 1) || g:pymode_path
+ python << EOF
+ import sys, vim, os
+
+-curpath = vim.eval("getcwd()")
+ libpath = os.path.join(vim.eval("expand('<sfile>:p:h:h:h')"), 'pylibs')
+
+-sys.path = [libpath, curpath] + vim.eval("g:pymode_paths") + sys.path
++sys.path = [libpath] + vim.eval("g:pymode_paths") + sys.path
+ EOF
+
+ endif " }}}
diff --git a/app-vim/python-mode/metadata.xml b/app-vim/python-mode/metadata.xml
new file mode 100644
index 000000000000..40d7427cf17f
--- /dev/null
+++ b/app-vim/python-mode/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>vim@gentoo.org</email>
+ <name>Gentoo Vim Project</name>
+ </maintainer>
+ <longdescription>
+ Python-mode is a vim plugin that allows you to use the pylint, rope,
+ pydoc, pyflakes, pep8, mccabe libraries in vim to provide features like
+ python code looking for bugs, refactoring and some other useful
+ things.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">klen/python-mode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-vim/python-mode/python-mode-0.6.18-r3.ebuild b/app-vim/python-mode/python-mode-0.6.18-r3.ebuild
new file mode 100644
index 000000000000..b261bed53428
--- /dev/null
+++ b/app-vim/python-mode/python-mode-0.6.18-r3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+VIM_PLUGIN_MESSAGES="filetype"
+VIM_PLUGIN_HELPFILES="PythonModeCommands"
+VIM_PLUGIN_HELPURI="https://github.com/klen/python-mode"
+
+inherit vim-plugin eutils
+
+DESCRIPTION="Provide python code looking for bugs, refactoring and other useful things"
+HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=3770 https://github.com/klen/python-mode"
+SRC_URI="https://github.com/klen/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ dev-python/astng
+ dev-python/autopep8
+ dev-python/pyflakes
+ dev-python/pylint
+ dev-python/rope
+ dev-python/ropemode
+ "
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-dont-add-cwd-to-syspath.patch
+
+ # debundling fun
+ rm -rf pylibs/pylama/{pep8.py,pyflakes} pylibs/{autopep8.py}
+ #rm -rf pylibs/{rope,ropemode} #475686
+ sed -e 's/from .pep8/from pep8/g' \
+ -e 's/from .pyflakes/from pyflakes/g' \
+ -i pylibs/pylama/utils.py || die
+ # there's still pylint left, I failed to debundle it :/
+
+ mv pylint.ini "${T}" || die
+ sed -e "s|expand(\"<sfile>:p:h:h\")|\"${EPREFIX}/usr/share/${PN}\"|" \
+ -i autoload/pymode.vim || die # use custom path
+}
+
+src_install() {
+ vim-plugin_src_install
+ insinto usr/share/${PN}
+ doins "${T}"/pylint.ini
+}
+
+pkg_postinst() {
+ vim-plugin_pkg_postinst
+ einfo "If you use custom pylintrc make sure you append the contents of"
+ einfo " ${EPREFIX}/usr/share/${PN}/pylint.ini"
+ einfo "to it. Otherwise PyLint command will not work properly."
+}
diff --git a/app-vim/python-mode/python-mode-0.6.18-r4.ebuild b/app-vim/python-mode/python-mode-0.6.18-r4.ebuild
new file mode 100644
index 000000000000..e8f195d59fa6
--- /dev/null
+++ b/app-vim/python-mode/python-mode-0.6.18-r4.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+VIM_PLUGIN_MESSAGES="filetype"
+VIM_PLUGIN_HELPFILES="PythonModeCommands"
+VIM_PLUGIN_HELPURI="https://github.com/klen/python-mode"
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1 vim-plugin
+
+DESCRIPTION="Provide python code looking for bugs, refactoring and other useful things"
+HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=3770 https://github.com/klen/python-mode"
+SRC_URI="https://github.com/klen/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ || (
+ app-editors/vim[python,${PYTHON_USEDEP}]
+ app-editors/gvim[python,${PYTHON_USEDEP}]
+ )
+ dev-python/astng[${PYTHON_USEDEP}]
+ dev-python/autopep8[${PYTHON_USEDEP}]
+ dev-python/pyflakes[${PYTHON_USEDEP}]
+ dev-python/pylint[${PYTHON_USEDEP}]
+ dev-python/rope[${PYTHON_USEDEP}]
+ dev-python/ropemode[${PYTHON_USEDEP}]"
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-dont-add-cwd-to-syspath.patch
+ eapply_user
+
+ # debundling fun
+ rm -rf pylibs/pylama/{pep8.py,pyflakes} pylibs/{autopep8.py}
+ #rm -rf pylibs/{rope,ropemode} #475686
+ sed -e 's/from .pep8/from pep8/g' \
+ -e 's/from .pyflakes/from pyflakes/g' \
+ -i pylibs/pylama/utils.py || die
+ # there's still pylint left, I failed to debundle it :/
+
+ mv pylint.ini "${T}" || die
+ sed -e "s|expand(\"<sfile>:p:h:h\")|\"${EPREFIX}/usr/share/${PN}\"|" \
+ -i autoload/pymode.vim || die # use custom path
+}
+
+src_install() {
+ vim-plugin_src_install
+ insinto usr/share/${PN}
+ doins "${T}"/pylint.ini
+}
+
+pkg_postinst() {
+ vim-plugin_pkg_postinst
+ einfo "If you use custom pylintrc make sure you append the contents of"
+ einfo " ${EPREFIX}/usr/share/${PN}/pylint.ini"
+ einfo "to it. Otherwise PyLint command will not work properly."
+}
diff --git a/app-vim/python-mode/python-mode-0.9.0-r1.ebuild b/app-vim/python-mode/python-mode-0.9.0-r1.ebuild
new file mode 100644
index 000000000000..b17c1530666c
--- /dev/null
+++ b/app-vim/python-mode/python-mode-0.9.0-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+VIM_PLUGIN_MESSAGES="filetype"
+VIM_PLUGIN_HELPFILES="PythonModeCommands"
+VIM_PLUGIN_HELPURI="https://github.com/klen/python-mode"
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit vim-plugin python-single-r1
+
+DESCRIPTION="Provide python code looking for bugs, refactoring and other useful things"
+HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=3770 https://github.com/klen/python-mode"
+SRC_URI="https://github.com/klen/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-python/rope[${PYTHON_USEDEP}]
+ dev-python/astng[${PYTHON_USEDEP}]
+ dev-python/pylint[${PYTHON_USEDEP}]
+ dev-python/pyflakes[${PYTHON_USEDEP}]
+ dev-python/autopep8[${PYTHON_USEDEP}]
+ dev-python/ropemode[${PYTHON_USEDEP}]"
+
+RESTRICT="test"
+
+src_prepare() {
+ default
+
+ sed -e "s|expand(\"<sfile>:p:h:h\")|\"${EPREFIX}/usr/share/${PN}\"|" \
+ -i autoload/pymode.vim || die # use custom path
+}
+
+src_install() {
+ vim-plugin_src_install
+ insinto "usr/share/${PN}"
+}
+
+pkg_postinst() {
+ vim-plugin_pkg_postinst
+}
diff --git a/app-vim/python-mode/python-mode-0.9.0.ebuild b/app-vim/python-mode/python-mode-0.9.0.ebuild
new file mode 100644
index 000000000000..1992f3c0658f
--- /dev/null
+++ b/app-vim/python-mode/python-mode-0.9.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+VIM_PLUGIN_MESSAGES="filetype"
+VIM_PLUGIN_HELPFILES="PythonModeCommands"
+VIM_PLUGIN_HELPURI="https://github.com/klen/python-mode"
+
+inherit vim-plugin eutils
+
+DESCRIPTION="Provide python code looking for bugs, refactoring and other useful things"
+HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=3770 https://github.com/klen/python-mode"
+SRC_URI="https://github.com/klen/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/rope
+ dev-python/astng
+ dev-python/pylint
+ dev-python/pyflakes
+ dev-python/autopep8
+ dev-python/ropemode"
+
+RESTRICT="test"
+
+src_prepare() {
+ default
+
+ sed -e "s|expand(\"<sfile>:p:h:h\")|\"${EPREFIX}/usr/share/${PN}\"|" \
+ -i autoload/pymode.vim || die # use custom path
+}
+
+src_install() {
+ vim-plugin_src_install
+ insinto usr/share/${PN}
+}
+
+pkg_postinst() {
+ vim-plugin_pkg_postinst
+}