summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-06-12 21:51:41 +0200
committerAlfredo Tupone <tupone@gentoo.org>2023-06-12 21:52:41 +0200
commitda35e03052c364ea51ea360a2f627e2929f4f67c (patch)
treeab0f3e52399a7b633b70a2248fb4e4af2df46bb4 /dev-tcltk
parentdev-util/cmake: add 3.27.0_rc2 (diff)
downloadgentoo-da35e03052c364ea51ea360a2f627e2929f4f67c.tar.gz
gentoo-da35e03052c364ea51ea360a2f627e2929f4f67c.tar.bz2
gentoo-da35e03052c364ea51ea360a2f627e2929f4f67c.zip
dev-tcltk/blt: fix install blocked by directory
Closes: https://bugs.gentoo.org/907270 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk')
-rw-r--r--dev-tcltk/blt/blt-2.5.3-r3.ebuild (renamed from dev-tcltk/blt/blt-2.5.3-r2.ebuild)14
1 files changed, 13 insertions, 1 deletions
diff --git a/dev-tcltk/blt/blt-2.5.3-r2.ebuild b/dev-tcltk/blt/blt-2.5.3-r3.ebuild
index 0d8f822d5b07..d414b9687bbb 100644
--- a/dev-tcltk/blt/blt-2.5.3-r2.ebuild
+++ b/dev-tcltk/blt/blt-2.5.3-r3.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
MYP=${PN}$(ver_cut 1-2)
SHVER=$(ver_rs 1 '' $(ver_cut 1-2))
@@ -138,3 +138,15 @@ src_install() {
find "${ED}"/usr/$(get_libdir) -name "*.a" -print0 | \
xargs -r -0 rm -fv
}
+
+pkg_preinst() {
+ # Fix 'symlink is blocked by a directory' Bug #907270
+ rm -rf "${EROOT}"/usr/$(get_libdir)/${MYP}/demos/bitmaps/hand
+ rm -rf "${EROOT}"/usr/$(get_libdir)/${MYP}/demos/bitmaps/hand.backup.*
+ rm -rf "${EROOT}"/usr/$(get_libdir)/${MYP}/demos/bitmaps/fish
+ rm -rf "${EROOT}"/usr/$(get_libdir)/${MYP}/demos/bitmaps/fish.backup.*
+ rm -rf "${EROOT}"/usr/$(get_libdir)/${MYP}/demos/images
+ rm -rf "${EROOT}"/usr/$(get_libdir)/${MYP}/demos/images.backup.*
+ rm -rf "${EROOT}"/usr/$(get_libdir)/${MYP}/demos/scripts
+ rm -rf "${EROOT}"/usr/$(get_libdir)/${MYP}/demos/scripts.backup.*
+}