From: Tupone Alfredo Date: Wed, 15 May 2019 20:14:41 +0000 (+0200) Subject: dev-tcltk/tcllib: Fix some test with newer tcl X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b275765716178c97ab294eaf6199fd1b6af24b76;p=gentoo.git dev-tcltk/tcllib: Fix some test with newer tcl Closes: https://bugs.gentoo.org/681234 Signed-off-by: Alfredo Tupone Package-Manager: Portage-2.3.62, Repoman-2.3.11 --- diff --git a/dev-tcltk/tcllib/tcllib-1.19.ebuild b/dev-tcltk/tcllib/tcllib-1.19.ebuild index c2701e93c485..63a889b07792 100644 --- a/dev-tcltk/tcllib/tcllib-1.19.ebuild +++ b/dev-tcltk/tcllib/tcllib-1.19.ebuild @@ -27,6 +27,18 @@ DOCS=( ) HTML_DOCS=( devdoc/devguide.html devdoc/releaseguide.html ) +src_prepare() { + default + if has_version ">=dev-lang/tcl-8.6.9"; then + sed -i \ + -e "s|::hook::call|call|" \ + -e "s|::string::token::shell|shell|" \ + "${S}"/modules/hook/hook.test \ + "${S}"/modules/string/token_shell.test \ + || die + fi +} + src_test() { USER= virtx emake test_batch }