mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-scheme/guile: fix PKG_CONFIG_PATH in 2.2
Closes: https://bugs.gentoo.org/941294 Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
This commit is contained in:
@@ -98,19 +98,23 @@ src_install() {
|
||||
# Move the pkg-config files to guile-data. In future versions, this
|
||||
# should be handled by --with-pkgconfigdir (patch waiting on
|
||||
# upstream).
|
||||
local pcdir=/usr/share/guile-data/"${SLOT}"
|
||||
mkdir -p "${ED}${pcdir}" || die
|
||||
local datadir=/usr/share/guile-data/"${SLOT}"
|
||||
local pcdir="${datadir}"/pkgconfig
|
||||
mkdir -p "${ED}${datadir}" || die
|
||||
mv "${ED}"/usr/share/aclocal/guile{,-"${SLOT}"}.m4 || die
|
||||
mv "${ED}"/usr/$(get_libdir)/pkgconfig/ \
|
||||
"${ED}/${pcdir}" || die
|
||||
|
||||
[[ -f "${pcdir}"/guile-2.2.pc ]]
|
||||
assert "failed to install .pc file?"
|
||||
|
||||
guile_slot_info
|
||||
|
||||
local major="$(ver_cut 1 "${SLOT}")"
|
||||
local minor="$(ver_cut 2 "${SLOT}")"
|
||||
local idx="$((99999-(major*1000+minor)))"
|
||||
newenvd - "50guile${idx}" <<-EOF
|
||||
PKG_CONFIG_PATH="${datadir}/pkgconfig"
|
||||
PKG_CONFIG_PATH="${pcdir}"
|
||||
INFOPATH="${GUILE_INFODIR}"
|
||||
EOF
|
||||
}
|
||||
Reference in New Issue
Block a user