1 |
commit: a6a19b5bc222be2cc70ba3238337c0db1ff8f253 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 31 19:23:09 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 31 19:26:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6a19b5b |
7 |
|
8 |
app-emacs/elpy: bump to 1.35.0_p20220627 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
app-emacs/elpy/Manifest | 1 + |
13 |
app-emacs/elpy/elpy-1.35.0_p20220627.ebuild | 85 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 86 insertions(+) |
15 |
|
16 |
diff --git a/app-emacs/elpy/Manifest b/app-emacs/elpy/Manifest |
17 |
index 281c4c88caff..81e5ebbc78e0 100644 |
18 |
--- a/app-emacs/elpy/Manifest |
19 |
+++ b/app-emacs/elpy/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST elpy-1.35.0_p20220321.tar.gz 177145 BLAKE2B 6362a68efc5997c3d0e26e22c6fe563e1fdba5e6f3a9e1e3c1b53bef8320cc4ac0f929edd177b492a5f2e622c265aeb23d34df8db8ae67bd9a2e48e00adc7c25 SHA512 e8cf579effa0a0bc8f3c05001341b96fd134f8f08c16d95d83200ad94a942e3f60ef4ee4186758a2810de2ca58ee41e7119bc84a7535f28665ec7dad29b07db0 |
22 |
+DIST elpy-1.35.0_p20220627.tar.gz 177246 BLAKE2B ded88f89949683000c9be606f3b5d2fc65a943c97e0369505713ecbd4f595a43a7ce560b699ebbdfd4a756703c5fa8fb21af5b4e8a1aa6dbb8a55fe4b7dcc468 SHA512 b9a4588eb83edef69661568b936e278621abad316ae160a00737c546b5eb26abd8ac089b369be212abbe16b66b590d9df73986995d36201c1010da7dc9706f79 |
23 |
|
24 |
diff --git a/app-emacs/elpy/elpy-1.35.0_p20220627.ebuild b/app-emacs/elpy/elpy-1.35.0_p20220627.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..7fc19d5e0d3e |
27 |
--- /dev/null |
28 |
+++ b/app-emacs/elpy/elpy-1.35.0_p20220627.ebuild |
29 |
@@ -0,0 +1,85 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+H=de31d30003c515c25ff7bfd3a361c70c298f78bb |
36 |
+ |
37 |
+DISTUTILS_SINGLE_IMPL=ON |
38 |
+DISTUTILS_USE_PEP517=setuptools |
39 |
+PYTHON_COMPAT=( python3_{8..10} ) |
40 |
+ |
41 |
+NEED_EMACS=24.4 |
42 |
+ |
43 |
+inherit distutils-r1 elisp |
44 |
+ |
45 |
+DESCRIPTION="Emacs Python Development Environment" |
46 |
+HOMEPAGE="https://github.com/jorgenschaefer/elpy/" |
47 |
+SRC_URI="https://github.com/jorgenschaefer/${PN}/archive/${H}.tar.gz |
48 |
+ -> ${P}.tar.gz" |
49 |
+S="${WORKDIR}"/${PN}-${H} |
50 |
+ |
51 |
+LICENSE="GPL-3+" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="test" |
55 |
+RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ app-emacs/company-mode |
59 |
+ app-emacs/highlight-indentation |
60 |
+ app-emacs/pyvenv |
61 |
+ app-emacs/s |
62 |
+ app-emacs/yasnippet |
63 |
+ $(python_gen_cond_dep 'dev-python/flake8[${PYTHON_USEDEP}]') |
64 |
+" |
65 |
+BDEPEND=" |
66 |
+ ${RDEPEND} |
67 |
+ test? ( |
68 |
+ $(python_gen_cond_dep ' |
69 |
+ dev-python/autopep8[${PYTHON_USEDEP}] |
70 |
+ dev-python/jedi[${PYTHON_USEDEP}] |
71 |
+ dev-python/yapf[${PYTHON_USEDEP}] |
72 |
+ ') |
73 |
+ ) |
74 |
+" |
75 |
+ |
76 |
+DOCS=( CONTRIBUTING.rst README.rst ) |
77 |
+PATCHES=( |
78 |
+ "${FILESDIR}"/${PN}-elpy.el-yas-snippet-dirs.patch |
79 |
+ "${FILESDIR}"/${PN}-elpy-rpc.el-elpy-rpc-pythonpath.patch |
80 |
+) |
81 |
+SITEFILE="50${PN}-gentoo.el" |
82 |
+ |
83 |
+distutils_enable_sphinx docs --no-autodoc |
84 |
+distutils_enable_tests unittest |
85 |
+ |
86 |
+pkg_setup() { |
87 |
+ elisp_pkg_setup |
88 |
+ python-single-r1_pkg_setup |
89 |
+} |
90 |
+ |
91 |
+src_prepare() { |
92 |
+ distutils-r1_src_prepare |
93 |
+ rm elpy/tests/test_black.py || die |
94 |
+ |
95 |
+ sed -i "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" ${PN}.el || die |
96 |
+ sed -i "s|@PYTHONLIB@|${EPREFIX}/usr/lib/${EPYTHON}|" ${PN}-rpc.el || die |
97 |
+} |
98 |
+ |
99 |
+src_compile() { |
100 |
+ distutils-r1_src_compile |
101 |
+ elisp_src_compile |
102 |
+} |
103 |
+ |
104 |
+src_test() { |
105 |
+ distutils-r1_src_test |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ distutils-r1_src_install |
110 |
+ |
111 |
+ elisp_src_install |
112 |
+ insinto ${SITEETC}/${PN} |
113 |
+ doins -r snippets |
114 |
+} |