diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-vim/python-mode | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-vim/python-mode')
-rw-r--r-- | app-vim/python-mode/Manifest | 8 | ||||
-rw-r--r-- | app-vim/python-mode/files/python-mode-0.6.18-dont-add-cwd-to-syspath.patch | 15 | ||||
-rw-r--r-- | app-vim/python-mode/metadata.xml | 17 | ||||
-rw-r--r-- | app-vim/python-mode/python-mode-0.6.18-r3.ebuild | 55 | ||||
-rw-r--r-- | app-vim/python-mode/python-mode-0.6.18-r4.ebuild | 62 | ||||
-rw-r--r-- | app-vim/python-mode/python-mode-0.9.0-r1.ebuild | 48 | ||||
-rw-r--r-- | app-vim/python-mode/python-mode-0.9.0.ebuild | 43 |
7 files changed, 248 insertions, 0 deletions
diff --git a/app-vim/python-mode/Manifest b/app-vim/python-mode/Manifest new file mode 100644 index 000000000000..f9fba336ce33 --- /dev/null +++ b/app-vim/python-mode/Manifest @@ -0,0 +1,8 @@ +AUX python-mode-0.6.18-dont-add-cwd-to-syspath.patch 496 BLAKE2B c936b7966d7135d921f22d7750b56a246d3b9e2c89576eb17a063de9429df9fae9b2f0cd8dc11cd6e517f33aa9a5c4196effc0605468c288b98a49433c81f89e SHA512 3008c54ec29aa0c6f9a96874bf970ddf6264b26090df55336a493ac4d69f52a8e2cb938323c064c158dc6fa7f8b94f5ae1d4761fc4b093c14bb7664e9a196696 +DIST python-mode-0.6.18.tar.gz 386846 BLAKE2B 8fd330ddce4a9107e9ca3248a727e4291b3474810360962425ef4afab25eff8a5a7319bedd91ad7899d160b2f48a28ab8f56a27d5557859f6fb3d906f7d11758 SHA512 0e3159a055304443c8b15590c424ac0f4a4303e343882ff91f01f5b959274931dea83969ab1dcd19ce95894c7da5be60699d51b852dc73165a99a271feec4e64 +DIST python-mode-0.9.0.tar.gz 671985 BLAKE2B 3bfbbcd11953fbecc0214b66271ab37bfee4476aed5d9a6f0e82c9111d9f6e1404839340079c49f4b73608c899a12c7af2a5a1044f104a3aafdef3c8bd20310e SHA512 03aef010a95241abf9605ca334d95a2c0b917c61aea23f794e574acd56ba5d958032975d17d1af40a5edccd90f0172783a26fc301d799fd619bfd263da685161 +EBUILD python-mode-0.6.18-r3.ebuild 1554 BLAKE2B 66181b3a79742443316b446b1ecf9814217f3eaee2176ac3dfb7d0ce70590ae5eee592e90ceed5ee43265a60a761c58a91c9b77d981f2a4e31a0ba9198302bc0 SHA512 3276c95a1be4212fd8b3915aa999cdf114a90e1a4da98f555d7aab0af5ecc6a0202658864271e9214fd7b8725fd6e72b57834e628fe299977b7695d6f72af8de +EBUILD python-mode-0.6.18-r4.ebuild 1862 BLAKE2B 20cd3c9c6bb42814f1103c27ff5b06d0e0b2334c923ceaa0ae0abd85774fccc180f875401686b96316ae3220e8e07dcea0256afb66fc687d58fd97c8733da255 SHA512 185c89c26be4533f2be897feb7810aa4dacd96c222ed200b807c52d59a3f374f764e6e412fbe15e9cf54f88c4fd65b30d6d612417d7c44111952fa7b40c3b666 +EBUILD python-mode-0.9.0-r1.ebuild 1194 BLAKE2B 0216204c6807cda3666fb928b086e0020aea538b816ef1efd48476f7a6f916e7bbc430881b5a5fb199f113529fed879812baa5d76b3bb06bf1bae7d2e1ddb38e SHA512 67d5059cd4bf8314161ac0fd7595364ca000c7613fba9eecc167955eb016a982e062154c7ea5e9ac16af0603e847700407fa3ec1e67cfc5a4458f72e862df255 +EBUILD python-mode-0.9.0.ebuild 990 BLAKE2B 7bb298fcca9fe332131d40a39ad81234794cffd285ff2d8bea80e826d540e4bc14807d0641947dfd9bbce9fd95e2ba3ca1afd3683cacdb5635989e42a5b35067 SHA512 4ed92ab57405e5903afb64c1029eb3a3fd866c9a966663ddbde65c0157a736ede66b2659ac82ec4845712eaec0897828fcc91d24edce109605ce6f1ef95d5f7a +MISC metadata.xml 590 BLAKE2B fe1ad1cbd9d75eea115d7a6e24f3fda0fcebcd3fbca6627e822a50934ab02665bf6eecab920f000592b0572d8995d653cd8cd9dda5cfe12b3a9616459f2dc72c SHA512 b6fbd9c3f197ca6b1df05584448514c12f78eefa1a7f80fa74c0a46ab3e6fdce1b3824fdff22060cf056fce1463ee4af62b7988c7a5025942e7ed072ad9f2d99 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..6900bfbcd9bb --- /dev/null +++ b/app-vim/python-mode/python-mode-0.6.18-r3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 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="https://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..0cfa612859c5 --- /dev/null +++ b/app-vim/python-mode/python-mode-0.6.18-r4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 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="https://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..4bb9eea27f02 --- /dev/null +++ b/app-vim/python-mode/python-mode-0.9.0-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 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="https://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..ea6be080f04c --- /dev/null +++ b/app-vim/python-mode/python-mode-0.9.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 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="https://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 +} |