summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2021-01-04 16:44:24 +0100
committerAlfredo Tupone <tupone@gentoo.org>2021-01-04 16:44:24 +0100
commitc46ee96fe807bdddac08c9187e366403df977230 (patch)
tree3c7d53e5677253602c4920573e35427780b2f20f /dev-tcltk/blt
parentdev-java/tomcat-servlet-api: Stabilize 7.0.107 x86, #761562 (diff)
downloadgentoo-c46ee96fe807bdddac08c9187e366403df977230.tar.gz
gentoo-c46ee96fe807bdddac08c9187e366403df977230.tar.bz2
gentoo-c46ee96fe807bdddac08c9187e366403df977230.zip
dev-tcltk/blt: fix symlink
Closes: https://bugs.gentoo.org/763528 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk/blt')
-rw-r--r--dev-tcltk/blt/blt-2.5.3.ebuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/dev-tcltk/blt/blt-2.5.3.ebuild b/dev-tcltk/blt/blt-2.5.3.ebuild
index 0e86b1a01199..06eab0d5fb85 100644
--- a/dev-tcltk/blt/blt-2.5.3.ebuild
+++ b/dev-tcltk/blt/blt-2.5.3.ebuild
@@ -3,7 +3,9 @@
EAPI=7
-inherit autotools eutils flag-o-matic multilib toolchain-funcs
+MYP=${PN}$(ver_cut 1-2)
+
+inherit autotools flag-o-matic multilib toolchain-funcs
DESCRIPTION="Extension to Tk, adding new widgets, geometry managers, and misc commands"
HOMEPAGE="https://sourceforge.net/projects/wize/"
@@ -22,7 +24,7 @@ DEPEND="
RDEPEND="${DEPEND}"
BDEPEND="app-arch/unzip"
-S="${WORKDIR}"/${PN}2.5
+S="${WORKDIR}"/${MYP}
MAKEOPTS+=" -j1"
@@ -110,7 +112,7 @@ src_install() {
dodir \
/usr/bin \
- /usr/$(get_libdir)/blt2.4/demos/bitmaps \
+ /usr/$(get_libdir)/${MYP}/demos/bitmaps \
/usr/share/man/mann \
/usr/include
@@ -124,8 +126,10 @@ src_install() {
done
# fix for linking against shared lib with -lBLT or -lBLTlite
- dosym libBLT24$(get_libname) /usr/$(get_libdir)/libBLT$(get_libname)
- dosym libBLTlite24$(get_libname) /usr/$(get_libdir)/libBLTlite$(get_libname)
+ SHVER=$(ver_cut 1-2)
+ SHVER=$(ver_rs 1 '' ${SHVER})
+ dosym libBLT${SHVER}$(get_libname) /usr/$(get_libdir)/libBLT$(get_libname)
+ dosym libBLTlite${SHVER}$(get_libname) /usr/$(get_libdir)/libBLTlite$(get_libname)
use static-libs || \
find "${ED}"/usr/$(get_libdir) -name "*.a" -print0 | \