Сравнение emacspeak-56.0-r1 с emacspeak-60.0-r1

/usr/portage/app-accessibility/emacspeak/emacspeak-60.0-r1.ebuild 2025-07-29 16:22:12.508447790 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
NEED_EMACS=26.1
7
FORCE_PRINT_ELOG=1
8
DISABLE_AUTOFORMATTING=1
6
NEED_EMACS="29.1"
7
FORCE_PRINT_ELOG="1"
8
DISABLE_AUTOFORMATTING="1"
9

  
9 10
inherit elisp toolchain-funcs readme.gentoo-r1
10 11

  
11 12
DESCRIPTION="The emacspeak audio desktop"
12
HOMEPAGE="http://emacspeak.sourceforge.net/"
13
HOMEPAGE="http://emacspeak.sourceforge.net/
14
	https://github.com/tvraman/emacspeak/"
13 15

  
14
if [[ ${PV} == 9999 ]] ; then
15
	EGIT_REPO_URI="https://github.com/tvraman/emacspeak.git"
16
if [[ "${PV}" == 9999 ]] ; then
16 17
	inherit git-r3
18

  
19
	EGIT_REPO_URI="https://github.com/tvraman/${PN}"
17 20
else
18
	SRC_URI="https://github.com/tvraman/emacspeak/releases/download/${PV}/${P}.tar.bz2"
19
	KEYWORDS="amd64 ppc x86"
21
	SRC_URI="https://github.com/tvraman/${PN}/releases/download/${PV}/${P}.tar.bz2"
22

  
23
	KEYWORDS="amd64 ~ppc ~x86"
20 24
fi
21 25

  
22 26
LICENSE="GPL-2+ GPL-3+"
......
26 30
# Usually need := dep with tcl anyway but in particular, it's needed
27 31
# here as we do a version check in src_compile and bake in the results.
28 32
DEPEND="
33
	app-emacs/hydra
29 34
	dev-lang/tcl:=
30 35
	espeak? ( app-accessibility/espeak-ng )
31 36
"
......
37 42
DOC_CONTENTS='
38 43
As of version 39.0 and later, the /usr/bin/emacspeak
39 44
shell script has been removed downstream in Gentoo.
40
You should launch emacspeak by another method, for instance
41
by adding the following to your ~/.emacs file:
45
You should launch emacspeak by another method, for instance by adding
46
the following to your init file (~/.emacs or ~/.config/emacs/init.el):
42 47
(load "/usr/share/emacs/site-lisp/emacspeak/lisp/emacspeak-setup.el")
43 48
'
44 49

  
45 50
HTML_DOCS=( etc/ info/ )
46 51

  
47
src_configure() {
48
	MAKEOPTS+=" -j1"
52
src_prepare() {
53
	elisp_src_prepare
49 54

  
55
	# A Make rule will regenerate it.
56
	rm -f ./lisp/emacspeak-loaddefs.el || die
57
}
58

  
59
src_configure() {
60
	MAKEOPTS+=" -j1 "
50 61
	tc-export CXX
51 62

  
52 63
	emake config
53 64
}
54 65

  
55 66
src_compile() {
56
	emake emacspeak
57
	if use espeak; then
67
	emake README
68

  
69
	cd "${S}/lisp" || die
70
	emake emacspeak-loaddefs.el
71
	local -x BYTECOMPFLAGS="-L . -l emacspeak-preamble.el -l emacspeak-loaddefs.el"
72
	elisp_src_compile
73

  
74
	if use espeak ; then
58 75
		local tcl_version="$(echo 'puts $tcl_version;exit 0' |tclsh)"
76

  
59 77
		if [[ -z ${tcl_version} ]]; then
60 78
			die 'Unable to detect the installed version of dev-lang/tcl.'
61 79
		fi
62 80

  
63
		cd servers/native-espeak || die
81
		cd "${S}/servers/native-espeak" || die
64 82
		emake TCL_VERSION="${tcl_version}"
65 83
	fi
66 84
}
67 85

  
68 86
src_install() {
69
	emake DESTDIR="${D}" install
87
	elisp-install emacspeak/lisp ./lisp/*.el{,c}
70 88

  
71
	if use espeak; then
72
		pushd servers/native-espeak > /dev/null || die
89
	if use espeak ; then
90
		pushd ./servers/native-espeak > /dev/null || die
73 91

  
74 92
		emake DESTDIR="${D}" install
75 93
		local orig_serverdir="/usr/share/emacs/site-lisp/emacspeak/servers/native-espeak"
......
80 98
		rm -f "${serverfile}" || die
81 99

  
82 100
		dosym -r "/usr/$(get_libdir)/emacspeak/tclespeak.so" \
83
			"${orig_serverdir}/tclespeak.so"
101
			  "${orig_serverdir}/tclespeak.so"
102

  
84 103
		popd > /dev/null || die
104

  
105
		exeinto /usr/share/emacs/site-lisp/emacspeak/servers
106
		doexe ./servers/espeak
107

  
108
		insinto /usr/share/emacs/site-lisp/emacspeak/servers
109
		doins ./servers/tts-lib.tcl
85 110
	fi
86 111

  
87 112
	dodoc README etc/NEWS* etc/COPYRIGHT
88 113
	einstalldocs
89 114

  
90
	cd "${ED}"/usr/share/emacs/site-lisp/${PN} || die
91
	rm -rf README etc/NEWS* etc/COPYRIGHT install-guide \
92
		user-guide || die
93 115
	readme.gentoo_create_doc
94 116
}
Спасибо!