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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C2D3F138350 for ; Sun, 19 Apr 2020 13:39:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCD9EE093B; Sun, 19 Apr 2020 13:39:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7616E093B for ; Sun, 19 Apr 2020 13:39:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB80134ED86 for ; Sun, 19 Apr 2020 13:39:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8797C103 for ; Sun, 19 Apr 2020 13:39:09 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1587303524.f290e6b53c2707d45bd6079c373ea99d7a896896.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/pymacs/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/pymacs/pymacs-0.26-r1.ebuild X-VCS-Directories: app-emacs/pymacs/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: f290e6b53c2707d45bd6079c373ea99d7a896896 X-VCS-Branch: master Date: Sun, 19 Apr 2020 13:39:09 +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: c8544ba9-4b57-4015-bd32-bcf28aed3f08 X-Archives-Hash: dee59733a3765ced4082e7e438b819fb commit: f290e6b53c2707d45bd6079c373ea99d7a896896 Author: Ulrich Müller gentoo org> AuthorDate: Sun Apr 19 13:37:44 2020 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Apr 19 13:38:44 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f290e6b5 app-emacs/pymacs: Add python 3.7 and 3.8 support. Don't remove the version in pymacs-python-command. Build PDF documentation with USE=doc (which was commented out). Closes: https://bugs.gentoo.org/718206 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Ulrich Müller gentoo.org> app-emacs/pymacs/pymacs-0.26-r1.ebuild | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/app-emacs/pymacs/pymacs-0.26-r1.ebuild b/app-emacs/pymacs/pymacs-0.26-r1.ebuild new file mode 100644 index 00000000000..0ff10a4675c --- /dev/null +++ b/app-emacs/pymacs/pymacs-0.26-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit elisp distutils-r1 + +DESCRIPTION="A tool that allows both-side communication beetween Python and Emacs Lisp" +HOMEPAGE="https://www.emacswiki.org/emacs/PyMacs" +SRC_URI="https://github.com/dgentry/${PN^}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="doc" + +BDEPEND="doc? ( + >=dev-python/docutils-0.7 + virtual/latex-base + )" + +S="${WORKDIR}/${P^}" +DISTUTILS_IN_SOURCE_BUILD=1 +DISTUTILS_USE_SETUPTOOLS="no" +SITEFILE="50${PN}-gentoo.el" + +# called by distutils-r1 for every python implementation +python_configure() { + # pre-process the files but don't run distutils + emake PYSETUP=: PYTHON=${EPYTHON} +} + +# called once +python_compile_all() { + elisp_src_compile + if use doc; then + VARTEXFONTS="${T}"/fonts emake RST2LATEX=rst2latex.py pymacs.pdf + fi +} + +python_install_all() { + elisp_src_install + distutils-r1_python_install_all + dodoc pymacs.rst + use doc && dodoc pymacs.pdf +}