From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2D04D15808B for ; Thu, 3 Oct 2024 15:08:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE2A9E29BC; Thu, 3 Oct 2024 15:08:52 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1E81E29BC for ; Thu, 3 Oct 2024 15:08:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0AAB0340C76 for ; Thu, 3 Oct 2024 15:08:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 935FE27ED for ; Thu, 3 Oct 2024 15:08:50 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1727968125.cb072e5c0f65d5102aac91d92bd5b27a79376f4e.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/elpy/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/elpy/Manifest app-emacs/elpy/elpy-1.35.0_p20240719.ebuild X-VCS-Directories: app-emacs/elpy/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: cb072e5c0f65d5102aac91d92bd5b27a79376f4e X-VCS-Branch: master Date: Thu, 3 Oct 2024 15:08:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6fe1d470-0daa-4a67-b290-9835348ad1fa X-Archives-Hash: f3859b0e3e5ad831e605032921994c96 commit: cb072e5c0f65d5102aac91d92bd5b27a79376f4e Author: Maciej Barć gentoo org> AuthorDate: Thu Oct 3 13:38:31 2024 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu Oct 3 15:08:45 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb072e5c app-emacs/elpy: bump to 1.35.0_p20240719 Signed-off-by: Maciej Barć gentoo.org> app-emacs/elpy/Manifest | 1 + app-emacs/elpy/elpy-1.35.0_p20240719.ebuild | 105 ++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) diff --git a/app-emacs/elpy/Manifest b/app-emacs/elpy/Manifest index 027c1316e60b..8876b91cdba8 100644 --- a/app-emacs/elpy/Manifest +++ b/app-emacs/elpy/Manifest @@ -1 +1,2 @@ DIST elpy-1.35.0_p20220627.tar.gz 177246 BLAKE2B ded88f89949683000c9be606f3b5d2fc65a943c97e0369505713ecbd4f595a43a7ce560b699ebbdfd4a756703c5fa8fb21af5b4e8a1aa6dbb8a55fe4b7dcc468 SHA512 b9a4588eb83edef69661568b936e278621abad316ae160a00737c546b5eb26abd8ac089b369be212abbe16b66b590d9df73986995d36201c1010da7dc9706f79 +DIST elpy-1.35.0_p20240719.tar.gz 177599 BLAKE2B 5e01191f591417336c2c7cf6bf087470291fffb92e8dcbf8471ad7a41267f79daeb14809942fed6da73a8c33d7faf1ff478b23bc93a50eeec5ebb847a101493b SHA512 c50d2e3a7388cde535deff032a92ca329cd3e70664a75a40e1f50c82059cec6dbe405b3609fd649bcffed1de8f27d7d8ee6c2f28df78114fc701e7ef23d996ba diff --git a/app-emacs/elpy/elpy-1.35.0_p20240719.ebuild b/app-emacs/elpy/elpy-1.35.0_p20240719.ebuild new file mode 100644 index 000000000000..afef7ce73643 --- /dev/null +++ b/app-emacs/elpy/elpy-1.35.0_p20240719.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +[[ "${PV}" == *p20240719 ]] && COMMIT="c40bab559fe77dcef6b90d5502eba1ecd566e86d" + +DISTUTILS_SINGLE_IMPL="ON" +DISTUTILS_USE_PEP517="setuptools" +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 elisp + +DESCRIPTION="Emacs Python Development Environment" +HOMEPAGE="https://github.com/jorgenschaefer/elpy/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/jorgenschaefer/${PN}.git" +else + SRC_URI="https://github.com/jorgenschaefer/${PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +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}] + ') + ) +" + +ELISP_REMOVE=" + elpy/tests/test_black.py + elpy/tests/test_yapf.py +" +PATCHES=( + "${FILESDIR}/${PN}-elpy.el-yas-snippet-dirs.patch" + "${FILESDIR}/${PN}-elpy-rpc.el-elpy-rpc-pythonpath.patch" +) + +DOCS=( CONTRIBUTING.rst README.rst ) +SITEFILE="50${PN}-gentoo.el" + +distutils_enable_tests unittest + +pkg_setup() { + elisp_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + rm ${ELISP_REMOVE} || die + + distutils-r1_src_prepare + + sed -i "${PN}.el" \ + -e "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" \ + || die + sed -i "${PN}-rpc.el" \ + -e "s|@PYTHONLIB@|${EPREFIX}/usr/lib/${EPYTHON}|" \ + || die + + sed -i elpy/tests/support.py \ + -e "s|test_should_get_oneline_docstring_for_modules|disabled_&|" \ + || die +} + +src_compile() { + elisp_src_compile + distutils-r1_src_compile +} + +src_test() { + distutils-r1_src_test +} + +src_install() { + elisp_src_install + distutils-r1_src_install + + insinto "${SITEETC}/${PN}" + doins -r snippets +}