Diff pymacs-0.26-r3 with a pymacs-0.26-r4

/usr/portage/app-emacs/pymacs/pymacs-0.26-r4.ebuild 2023-10-09 14:52:28.708368330 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
# Can not use "DISTUTILS_USE_PEP517" because we need "DISTUTILS_IN_SOURCE_BUILD".
7
DISTUTILS_IN_SOURCE_BUILD=1
8
PYTHON_COMPAT=( python3_{9..11} )
6
DISTUTILS_USE_PEP517=setuptools
7
PYTHON_COMPAT=( python3_{10..11} )
9 8

  
10 9
inherit elisp distutils-r1
11 10

  
12 11
DESCRIPTION="A tool that allows both-side communication between Python and Emacs Lisp"
13
HOMEPAGE="https://www.emacswiki.org/emacs/PyMacs"
14
SRC_URI="https://github.com/dgentry/${PN^}/archive/v${PV}.tar.gz
15
	-> ${P}.tar.gz"
16
S="${WORKDIR}"/${P^}
12
HOMEPAGE="https://www.emacswiki.org/emacs/PyMacs
13
	https://github.com/dgentry/Pymacs/"
14

  
15
if [[ ${PV} == *9999* ]] ; then
16
	inherit git-r3
17
	EGIT_REPO_URI="https://github.com/dgentry/${PN^}.git"
18
else
19
	SRC_URI="https://github.com/dgentry/${PN^}/archive/v${PV}.tar.gz
20
		-> ${P}.tar.gz"
21
	S="${WORKDIR}"/${P^}
22
	KEYWORDS="amd64 arm ~hppa ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
23
fi
17 24

  
18 25
LICENSE="GPL-2+"
19 26
SLOT="0"
20
KEYWORDS="amd64 arm ~hppa ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
21 27
IUSE="doc"
22 28

  
23 29
BDEPEND="
......
27 33
	)
28 34
"
29 35

  
36
DOCS=( ${PN}.rst )
30 37
SITEFILE="50${PN}-gentoo.el"
31 38

  
32
# called by distutils-r1 for every python implementation
33 39
python_configure() {
34
	# pre-process the files but don't run distutils
35
	emake PYSETUP=: PYTHON=${EPYTHON}
40
	emake PYSETUP=: PYTHON=${EPYTHON} prepare
41
}
42

  
43
src_prepare() {
44
	distutils-r1_src_prepare
45
	elisp_src_prepare
36 46
}
37 47

  
38
# called once
39
python_compile_all() {
48
src_compile() {
49
	distutils-r1_src_compile
40 50
	elisp_src_compile
41 51

  
42 52
	if use doc; then
43
		VARTEXFONTS="${T}"/fonts emake RST2LATEX=rst2latex.py pymacs.pdf
53
		VARTEXFONTS="${T}"/fonts emake RST2LATEX=rst2latex.py ${PN}.pdf
44 54
	fi
45 55
}
46 56

  
47
python_install_all() {
57
src_install() {
58
	distutils-r1_src_install
48 59
	elisp_src_install
49 60

  
50
	distutils-r1_python_install_all
51

  
52
	dodoc pymacs.rst
53

  
54
	use doc && dodoc pymacs.pdf
61
	use doc && dodoc ${PN}.pdf
55 62
}
Thank you!