1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_6} )
7 inherit elisp distutils-r1
9 DESCRIPTION="A tool that allows both-side communication beetween Python and Emacs Lisp"
10 HOMEPAGE="https://www.emacswiki.org/emacs/PyMacs"
11 SRC_URI="https://github.com/dgentry/${PN^}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="amd64 arm ~hppa ia64 ppc ppc64 ~s390 ~sh x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
19 # >=dev-python/docutils-0.7
24 DISTUTILS_IN_SOURCE_BUILD=1
25 SITEFILE="50${PN}-gentoo.el"
27 python_prepare_all() {
29 -e '/pymacs-python-command/s/@PYTHON@/python/' \
30 -i pymacs.el.in || die
31 distutils-r1_python_prepare_all
34 # called by distutils-r1 for every python implementation
36 # pre-process the files but don't run distutils
37 emake PYSETUP=: PYTHON=${EPYTHON}
41 python_compile_all() {
43 # "pdflatex pymacs.tex" fails with "undefined control sequence"
45 # VARTEXFONTS="${T}"/fonts emake RST2LATEX=rst2latex.py pymacs.pdf
49 python_install_all() {
52 distutils-r1_python_install_all
54 #use doc && dodoc pymacs.pdf