mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
sci-chemistry/vesta-bin: patch RUNPATH for private library
Previously this ebuild has symlinked libVESTA.so into lib64, making a private library globally available. This commit removes that symlink in favour of patching the binary to add an $ORIGIN RUNPATH. Signed-off-by: Patrick J. Taylor <patrick.joseph.taylor@gmail.com>
This commit is contained in:
1 file changed
+8
-2
@@ -19,6 +19,8 @@ SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND="dev-util/patchelf"
|
||||
|
||||
# As of 3.5.6, wayland support required for gtk even when running on xorg.
|
||||
RDEPEND="app-accessibility/at-spi2-core:2
|
||||
dev-libs/glib:2
|
||||
@@ -39,6 +41,12 @@ RESTRICT="mirror strip"
|
||||
|
||||
QA_PREBUILT="opt/VESTA/*"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
patchelf --set-rpath '$ORIGIN' VESTA-gui || die "Failed to add RUNPATH"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/VESTA
|
||||
doins -r "${S}"/*
|
||||
@@ -53,6 +61,4 @@ src_install() {
|
||||
"VESTA" \
|
||||
"VESTA" \
|
||||
"Science;"
|
||||
|
||||
dosym -r /opt/VESTA/libVESTA.so /usr/lib64/libVESTA.so
|
||||
}
|
||||
Reference in new issue
Block a user