Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-vim/python-mode/
Date: Sat, 02 Sep 2017 10:12:10
Message-Id: 1504347123.99b5d36bcdc37ba39dbead5f0ad24ba88849cf0b.monsieurp@gentoo
1 commit: 99b5d36bcdc37ba39dbead5f0ad24ba88849cf0b
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 2 10:11:45 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 2 10:12:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99b5d36b
7
8 app-vim/python-mode: convert back to python-single-r1.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 app-vim/python-mode/python-mode-0.9.0-r1.ebuild | 48 +++++++++++++++++++++++++
13 1 file changed, 48 insertions(+)
14
15 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
16 new file mode 100644
17 index 00000000000..b17c1530666
18 --- /dev/null
19 +++ b/app-vim/python-mode/python-mode-0.9.0-r1.ebuild
20 @@ -0,0 +1,48 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +VIM_PLUGIN_MESSAGES="filetype"
27 +VIM_PLUGIN_HELPFILES="PythonModeCommands"
28 +VIM_PLUGIN_HELPURI="https://github.com/klen/python-mode"
29 +
30 +PYTHON_COMPAT=( python2_7 )
31 +
32 +inherit vim-plugin python-single-r1
33 +
34 +DESCRIPTION="Provide python code looking for bugs, refactoring and other useful things"
35 +HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=3770 https://github.com/klen/python-mode"
36 +SRC_URI="https://github.com/klen/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 +
38 +LICENSE="LGPL-3"
39 +KEYWORDS="~amd64 ~x86"
40 +
41 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
42 +
43 +RDEPEND="
44 + ${PYTHON_DEPS}
45 + dev-python/rope[${PYTHON_USEDEP}]
46 + dev-python/astng[${PYTHON_USEDEP}]
47 + dev-python/pylint[${PYTHON_USEDEP}]
48 + dev-python/pyflakes[${PYTHON_USEDEP}]
49 + dev-python/autopep8[${PYTHON_USEDEP}]
50 + dev-python/ropemode[${PYTHON_USEDEP}]"
51 +
52 +RESTRICT="test"
53 +
54 +src_prepare() {
55 + default
56 +
57 + sed -e "s|expand(\"<sfile>:p:h:h\")|\"${EPREFIX}/usr/share/${PN}\"|" \
58 + -i autoload/pymode.vim || die # use custom path
59 +}
60 +
61 +src_install() {
62 + vim-plugin_src_install
63 + insinto "usr/share/${PN}"
64 +}
65 +
66 +pkg_postinst() {
67 + vim-plugin_pkg_postinst
68 +}