diff options
| author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
|---|---|---|
| committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
| commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
| tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-vim/python-mode | |
| download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip | |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-vim/python-mode')
| -rw-r--r-- | app-vim/python-mode/Manifest | 2 | ||||
| -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 | 18 | ||||
| -rw-r--r-- | app-vim/python-mode/python-mode-0.6.10.ebuild | 51 | ||||
| -rw-r--r-- | app-vim/python-mode/python-mode-0.6.18-r2.ebuild | 54 | ||||
| -rw-r--r-- | app-vim/python-mode/python-mode-0.6.18-r3.ebuild | 56 |
6 files changed, 196 insertions, 0 deletions
diff --git a/app-vim/python-mode/Manifest b/app-vim/python-mode/Manifest new file mode 100644 index 000000000000..a0ced5eb03cc --- /dev/null +++ b/app-vim/python-mode/Manifest @@ -0,0 +1,2 @@ +DIST python-mode-0.6.10.tar.gz 474266 SHA256 ed97b9c260cafa38e01d1bc988e611df8a4681922e3ba4022e5ccac692b8f583 SHA512 562d91a377e783b2cf2583910f4c6b0e8530be9533b513198f5ac97e7581672f95f69e752d391d2a6ad9ac0621c967bc46c02f79fdc38d25172f14267fe27f7e WHIRLPOOL 404458e298ab3c093c031ac00cf43e66652a8054fecfb4d2c481d73a2efbb6949409545f5269bcb43f519b19a27dd8b68fb75a166dce1e78d49e1899bfe17901 +DIST python-mode-0.6.18.tar.gz 386846 SHA256 d46ff14b7ee639b698d1b0ae0e7ca0dcfa95a315ffb25e523ae720461f399c1d SHA512 0e3159a055304443c8b15590c424ac0f4a4303e343882ff91f01f5b959274931dea83969ab1dcd19ce95894c7da5be60699d51b852dc73165a99a271feec4e64 WHIRLPOOL 1a6114999c1b832335268dd7dd3e9ebfd48ce9e35cdc7058e4a1011d3ac0aeb36df85ab52599460e449c0ee645303aca17a8ecb44533a5d137a9b904c426b1da 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..a67e512c05d7 --- /dev/null +++ b/app-vim/python-mode/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>vim</herd> + <maintainer> + <email>xarthisius@gentoo.org</email> + <name>Kacper Kowalik</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.10.ebuild b/app-vim/python-mode/python-mode-0.6.10.ebuild new file mode 100644 index 000000000000..9348671475bf --- /dev/null +++ b/app-vim/python-mode/python-mode-0.6.10.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +VIM_PLUGIN_MESSAGES="filetype" +VIM_PLUGIN_HELPFILES="PythonModeCommands" +VIM_PLUGIN_HELPURI="https://github.com/klen/python-mode" + +inherit vim-plugin vcs-snapshot + +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}/tarball/${PV} -> ${P}.tar.gz" + +LICENSE="LGPL-3" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=" + dev-python/astng + dev-python/autopep8 + dev-python/pyflakes + dev-python/pylint + dev-python/rope + dev-python/ropemode + " + +src_prepare() { + rm -rf pylibs/{logilab,*pep8.py,pyflakes,pylint,rope,ropemode} .gitignore + mv pylint.ini "${T}" || die + sed -e "s|expand(\"<sfile>:p:h:h\")|\"${EPREFIX}/usr/share/${PN}\"|" \ + -i plugin/pymode.vim || die # use custom path + sed -e "s/pylibs.autopep8/autopep8/g" -i pylibs/pymode/auto.py || die + sed -e "s/pylibs.ropemode/ropemode/g" -i pylibs/ropevim.py || die +} + +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-r2.ebuild b/app-vim/python-mode/python-mode-0.6.18-r2.ebuild new file mode 100644 index 000000000000..9f493ee16459 --- /dev/null +++ b/app-vim/python-mode/python-mode-0.6.18-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +VIM_PLUGIN_MESSAGES="filetype" +VIM_PLUGIN_HELPFILES="PythonModeCommands" +VIM_PLUGIN_HELPURI="https://github.com/klen/python-mode" + +inherit 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" + +RDEPEND=" + dev-python/astng + dev-python/autopep8 + dev-python/pyflakes + dev-python/pylint + dev-python/rope + dev-python/ropemode + " + +src_prepare() { + # 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-r3.ebuild b/app-vim/python-mode/python-mode-0.6.18-r3.ebuild new file mode 100644 index 000000000000..a9dd4afab1d3 --- /dev/null +++ b/app-vim/python-mode/python-mode-0.6.18-r3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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." +} |
