summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-04-08 15:59:14 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-04-08 16:00:13 +0200
commitbab7113a6852ac300bee085aee8eb24a231dd482 (patch)
tree3be217f9b143cf5e94ce934b0805f1c7496e2003 /app-emacs/elpy/elpy-1.35.0_p20220321.ebuild
parentapp-emacs/pyvenv: new package; add version 1.21 (diff)
downloadgentoo-bab7113a6852ac300bee085aee8eb24a231dd482.tar.gz
gentoo-bab7113a6852ac300bee085aee8eb24a231dd482.tar.bz2
gentoo-bab7113a6852ac300bee085aee8eb24a231dd482.zip
app-emacs/elpy: new package; add version 1.35.0_p20220321
2022.03.21 snapshot Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/elpy/elpy-1.35.0_p20220321.ebuild')
-rw-r--r--app-emacs/elpy/elpy-1.35.0_p20220321.ebuild86
1 files changed, 86 insertions, 0 deletions
diff --git a/app-emacs/elpy/elpy-1.35.0_p20220321.ebuild b/app-emacs/elpy/elpy-1.35.0_p20220321.ebuild
new file mode 100644
index 000000000000..a74075d632d7
--- /dev/null
+++ b/app-emacs/elpy/elpy-1.35.0_p20220321.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+H=1746e7009000b7635c0ea6f1559018143aa61642
+
+DISTUTILS_SINGLE_IMPL=ON
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+NEED_EMACS=24.4
+
+inherit distutils-r1 elisp
+
+DESCRIPTION="Emacs Python Development Environment"
+HOMEPAGE="https://github.com/jorgenschaefer/elpy/"
+SRC_URI="https://github.com/jorgenschaefer/${PN}/archive/${H}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${H}
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ app-emacs/company-mode
+ app-emacs/highlight-indentation
+ app-emacs/pyvenv
+ app-emacs/s
+ app-emacs/yasnippet
+ $(python_gen_cond_dep 'dev-python/flake8[${PYTHON_USEDEP}]')
+"
+BDEPEND="
+ ${RDEPEND}
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/autopep8[${PYTHON_USEDEP}]
+ dev-python/jedi[${PYTHON_USEDEP}]
+ dev-python/yapf[${PYTHON_USEDEP}]
+ ')
+ )
+"
+
+DOCS=( CONTRIBUTING.rst README.rst )
+PATCHES=(
+ "${FILESDIR}"/${PN}-elpy.el-yas-snippet-dirs.patch
+ "${FILESDIR}"/${PN}-elpy-rpc.el-elpy-rpc-pythonpath.patch
+)
+SITEFILE="50${PN}-gentoo.el"
+
+distutils_enable_sphinx docs --no-autodoc
+distutils_enable_tests unittest
+
+pkg_setup() {
+ elisp_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ distutils-r1_src_prepare
+ rm elpy/tests/test_black.py || die
+
+ sed -i "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" ${PN}.el || die
+ sed -i "s|@PYTHONLIB@|${EPREFIX}/usr/lib/${EPYTHON}|" ${PN}-rpc.el || die
+}
+
+src_compile() {
+ distutils-r1_src_compile
+ elisp_src_compile
+}
+
+src_test() {
+ distutils-r1_src_test
+}
+
+src_install() {
+ mkdir -p "${S}_${EPYTHON}"/install/usr/lib/python-exec/${EPYTHON} || die
+ distutils-r1_src_install
+
+ elisp_src_install
+ insinto ${SITEETC}/${PN}
+ doins -r snippets
+}