app-accessibility/emacspeak: bump to 60.0

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-01-11 03:02:23 +01:00
parent eebdff0d6c
commit 4cd0251c74
2 changed files with 104 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST emacspeak-56.0.tar.bz2 7158646 BLAKE2B 484b98e5fac51d30bd9b2705308042ed9e0a49a4684ca777cbc60368fdadd8206ef212af514a5940509c84fee3fdcad12486a31a47cac658c912d7573a484fb7 SHA512 9b18fada991b914ddd3ed30950e685c1c164434536c3dd119b9ed52db80e7e31b7399c72a584938bfb63daa7e1aa76a1f377d664cc1118ffa7f0a4cbdddf0818
DIST emacspeak-60.0.tar.bz2 3056708 BLAKE2B 34e2112992fb95aa58e7ab1adf02c8839ab4729ffb920df7d93917c748d6d1c2d6c4ad68d8174da89f7fd6d6ea23d5a3d3f9bf1c59df0b988f3db70a9a1eeea4 SHA512 f48040f2dfaf7cb67d779d219c59477aaddb9c8b400666e5e9d9850e75575d5276f5b596ab1e8976057e5078d914a610cd537068ccc748e6c45aef64b02eaba9
@@ -0,0 +1,103 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
NEED_EMACS="29.1"
FORCE_PRINT_ELOG="1"
DISABLE_AUTOFORMATTING="1"
inherit elisp toolchain-funcs readme.gentoo-r1
DESCRIPTION="The emacspeak audio desktop"
HOMEPAGE="http://emacspeak.sourceforge.net/
https://github.com/tvraman/emacspeak/"
if [[ "${PV}" == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/tvraman/${PN}"
inherit git-r3
else
SRC_URI="https://github.com/tvraman/${PN}/releases/download/${PV}/${P}.tar.bz2"
KEYWORDS="~amd64 ~ppc ~x86"
fi
LICENSE="GPL-2+ GPL-3+"
SLOT="0"
IUSE="+espeak"
# Usually need := dep with tcl anyway but in particular, it's needed
# here as we do a version check in src_compile and bake in the results.
DEPEND="
dev-lang/tcl:=
espeak? ( app-accessibility/espeak-ng )
"
RDEPEND="
${DEPEND}
>=dev-tcltk/tclx-8.4
"
DOC_CONTENTS='
As of version 39.0 and later, the /usr/bin/emacspeak
shell script has been removed downstream in Gentoo.
You should launch emacspeak by another method, for instance by adding
the following to your init file (~/.emacs or ~/.config/emacs/init.el):
(load "/usr/share/emacs/site-lisp/emacspeak/lisp/emacspeak.el")
'
HTML_DOCS=( etc/ info/ )
src_configure() {
MAKEOPTS+=" -j1 "
tc-export CXX
emake config
}
src_compile() {
emake -C lisp
emake README
if use espeak ; then
local tcl_version="$(echo 'puts $tcl_version;exit 0' |tclsh)"
if [[ -z ${tcl_version} ]]; then
die 'Unable to detect the installed version of dev-lang/tcl.'
fi
cd servers/native-espeak || die
emake TCL_VERSION="${tcl_version}"
fi
}
src_install() {
elisp-install emacspeak/lisp ./lisp/*.el{,c}
if use espeak ; then
pushd ./servers/native-espeak > /dev/null || die
emake DESTDIR="${D}" install
local orig_serverdir="/usr/share/emacs/site-lisp/emacspeak/servers/native-espeak"
local serverfile="${ED}${orig_serverdir}/tclespeak.so"
install -Dm755 "${serverfile}" \
"${ED}/usr/$(get_libdir)/emacspeak/tclespeak.so" || die
rm -f "${serverfile}" || die
dosym -r "/usr/$(get_libdir)/emacspeak/tclespeak.so" \
"${orig_serverdir}/tclespeak.so"
popd > /dev/null || die
exeinto /usr/share/emacs/site-lisp/emacspeak/servers
doexe ./servers/espeak
insinto /usr/share/emacs/site-lisp/emacspeak/servers
doins ./servers/tts-lib.tcl
fi
dodoc README etc/NEWS* etc/COPYRIGHT
einstalldocs
readme.gentoo_create_doc
}