commit:     6f24a7abe601fc74f76210a8169bd5d758091cfe
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 29 18:37:28 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Feb 29 18:38:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f24a7ab

dev-tcltk/itk: fix install script

Closes: https://bugs.gentoo.org/925741
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-tcltk/itk/files/itk-4.2.3-install.patch | 11 +++++++++++
 dev-tcltk/itk/itk-4.2.3.ebuild              |  6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/dev-tcltk/itk/files/itk-4.2.3-install.patch 
b/dev-tcltk/itk/files/itk-4.2.3-install.patch
new file mode 100644
index 000000000000..1adc7574ba41
--- /dev/null
+++ b/dev-tcltk/itk/files/itk-4.2.3-install.patch
@@ -0,0 +1,11 @@
+--- a/configure        2024-02-29 19:28:27.192049469 +0100
++++ b/configure        2024-02-29 19:28:41.507876154 +0100
+@@ -2627,7 +2627,7 @@
+ 
+     # Configure the installer.
+ 
+-    INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
++    INSTALL='$(SHELL) install -c'
+     INSTALL_DATA_DIR='${INSTALL} -d -m 755'
+     INSTALL_DATA='${INSTALL} -m 644'
+     INSTALL_PROGRAM='${INSTALL} -m 755'

diff --git a/dev-tcltk/itk/itk-4.2.3.ebuild b/dev-tcltk/itk/itk-4.2.3.ebuild
index 493cb8bd0beb..cd62e1a40f6f 100644
--- a/dev-tcltk/itk/itk-4.2.3.ebuild
+++ b/dev-tcltk/itk/itk-4.2.3.ebuild
@@ -27,6 +27,10 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        stat64 # used to test for Large File Support
 )
 
+PATCHES=( "${FILESDIR}"/${P}-install.patch )
+
+UNINSTALL_IGNORE='/usr/lib.*/itk.*/library'
+
 src_prepare() {
        sed 's:-pipe::g' -i configure || die
        default
@@ -64,5 +68,5 @@ src_install() {
        LDPATH="${EPREFIX}/usr/$(get_libdir)/${PN}${MY_PV}/"
        EOF
        doenvd "${T}"/34${PN}
-       dosym . /usr/$(get_libdir)/${PN}${MY_PV}/library
+       dosym . /usr/$(get_libdir)/${PN}${PV}/library
 }

Reply via email to