summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim A. Misbakh-Soloviov <git@mva.name>2015-04-04 01:53:06 +0600
committerVadim A. Misbakh-Soloviov <git@mva.name>2015-04-04 01:53:06 +0600
commite3c9fe0de6266749dc3522da7a8747d38b8a7295 (patch)
tree80ad9c6c2785a9af3c0618b08599e944011f9203 /app-eselect
parent[*/*] Manifest regen (diff)
downloadlua-e3c9fe0de6266749dc3522da7a8747d38b8a7295.tar.gz
lua-e3c9fe0de6266749dc3522da7a8747d38b8a7295.tar.bz2
lua-e3c9fe0de6266749dc3522da7a8747d38b8a7295.zip
[app-eselect/eselect-luajit] Fixed pkgconfig symlinking
Signed-off-by: Vadim A. Misbakh-Soloviov <git@mva.name>
Diffstat (limited to 'app-eselect')
-rw-r--r--app-eselect/eselect-luajit/files/luajit-1.eselect6
1 files changed, 4 insertions, 2 deletions
diff --git a/app-eselect/eselect-luajit/files/luajit-1.eselect b/app-eselect/eselect-luajit/files/luajit-1.eselect
index ac90226..fdd1e8d 100644
--- a/app-eselect/eselect-luajit/files/luajit-1.eselect
+++ b/app-eselect/eselect-luajit/files/luajit-1.eselect
@@ -43,6 +43,7 @@ remove_symlinks() {
for dir in $(get_libdirs) ; do
[[ -L "${dir}/libluajit-5.1.so" ]] && rm "${dir}/libluajit-5.1.so"
[[ -L "${dir}/libluajit-5.1.a" ]] && rm "${dir}/libluajit-5.1.a"
+ [[ -L "${dir}/pkgconfig/luajit.pc" ]] && rm "${dir}/pkgconfig/luajit.pc"
done
[[ -L "${EROOT}/usr/bin/luajit" ]] && rm "${EROOT}/usr/bin/luajit"
rm -f "${EROOT}"/usr/share/man/man1/luajit.1{,.gz,.bz2,.lzma} &>/dev/null
@@ -62,8 +63,9 @@ set_symlinks() {
elif [[ -f ${EROOT}/usr/bin/${target} ]]; then
ln -s "${target}" "${EROOT}/usr/bin/luajit"
for dir in $(get_libdirs) ; do
- [[ -f "${dir}/lib${target}.so" ]] && ln -s "lib${target}.so" "${dir}/libluajit-5.1.so"
- [[ -f "${dir}/lib${target}.a" ]] && ln -s "lib${target}.a" "${dir}/libluajit-5.1.a"
+ [[ -e "${dir}/lib${target}.so" ]] && ln -s "lib${target}.so" "${dir}/libluajit-5.1.so"
+ [[ -e "${dir}/lib${target}.a" ]] && ln -s "lib${target}.a" "${dir}/libluajit-5.1.a"
+ [[ -e "${dir}/pkgconfig/${target}.pc" ]] && ln -s "${target}.pc" "${dir}/pkgconfig/luajit.pc"
done
for orig in "${EROOT}"/usr/share/man/man1/$target.1* ; do
ln -s "$(basename ${orig})" "${orig/$target/luajit}"