commit:     fc8e802cd093a18b6822a21ba4aaf8f6e382e805
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 27 20:15:46 2021 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Oct 27 20:15:46 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc8e802c

dev-tcltk/tcl3d: EAPI 7 and hopefully fix for #816825

Closes: https://bugs.gentoo.org/816825
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild 
b/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild
index f24710e3f1e..7a07697e35a 100644
--- a/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild
+++ b/dev-tcltk/tcl3d/tcl3d-0.5.0.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 inherit flag-o-matic toolchain-funcs
 
@@ -31,6 +31,15 @@ DEPEND="${RDEPEND}
 S="${WORKDIR}/${PN}"
 PATCHES=( "${FILESDIR}/${P}-include-tk-dir-and-permissive.patch" )
 
+src_prepare() {
+       sed -i \
+               -e '/\..$(DSEP)pkgIndex.tcl/d' \
+               tcl3d*/Makefile \
+               || die
+
+       default
+}
+
 src_configure() {
        local _TCL_V=( $(echo 'puts [info tclversion]' | tclsh | tr '.' ' ') )
        local _TCL_FV="${_TCL_V[0]}.${_TCL_V[1]}"
@@ -74,4 +83,6 @@ src_compile() {
 
 src_install() {
        emake INSTDIR="${D}/usr" DESTDIR="${D}" 
INSTLIB="${D}/usr/$(get_libdir)" install
+       insinto /usr/$(get_libdir)/${PN}${PV}
+       doins pkgIndex.tcl
 }

Reply via email to