dev-tcltk/tcllib: Fix some test with newer tcl
authorTupone Alfredo <tupone@gentoo.org>
Wed, 15 May 2019 20:14:41 +0000 (22:14 +0200)
committerTupone Alfredo <tupone@gentoo.org>
Wed, 15 May 2019 20:14:41 +0000 (22:14 +0200)
Closes: https://bugs.gentoo.org/681234
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

dev-tcltk/tcllib/tcllib-1.19.ebuild

index c2701e93c485e653c4a04738b64d347e588354bf..63a889b077926024b52a168e89787cc1b58ff82e 100644 (file)
@@ -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
 }