summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tcltk/itk/itk-4.1.0-r1.ebuild')
-rw-r--r--dev-tcltk/itk/itk-4.1.0-r1.ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev-tcltk/itk/itk-4.1.0-r1.ebuild b/dev-tcltk/itk/itk-4.1.0-r1.ebuild
index 86f5abce75fe..fc8d2ac21bcb 100644
--- a/dev-tcltk/itk/itk-4.1.0-r1.ebuild
+++ b/dev-tcltk/itk/itk-4.1.0-r1.ebuild
@@ -35,8 +35,9 @@ src_prepare() {
}
src_configure() {
- local ITCL_VERSION=$(best_version dev-tcltk/itcl)
- ITCL_VERSION=${ITCL_VERSION:15} # remove category, package name and dash
+ local itcl_package=$(best_version dev-tcltk/itcl)
+ local itcl_version=${itcl_package#*/*-}
+ local ITCL_VERSION="${itcl_version%-*}"
source "${EPREFIX}"/usr/$(get_libdir)/itcl${ITCL_VERSION}*/itclConfig.sh || die
econf \
--with-tcl="${EPREFIX}"/usr/$(get_libdir) \