diff options
author | NP-Hardass <np.hardass@gmail.com> | 2017-09-13 19:51:30 -0400 |
---|---|---|
committer | NP-Hardass <np.hardass@gmail.com> | 2017-09-13 19:51:30 -0400 |
commit | eaa7cc6f1c0fdac31df21ade6d4e5d4790ab89d0 (patch) | |
tree | 3ed445d0fd8a889fb4e4105a68c5b98902e9a681 /wine.eselect | |
parent | wine.eselect: use globstar to enable support of localized manpages (diff) | |
download | eselect-wine-eaa7cc6f1c0fdac31df21ade6d4e5d4790ab89d0.tar.gz eselect-wine-eaa7cc6f1c0fdac31df21ade6d4e5d4790ab89d0.tar.bz2 eselect-wine-eaa7cc6f1c0fdac31df21ade6d4e5d4790ab89d0.zip |
wine.eselect: Add include dir symlinksv1.2
Diffstat (limited to 'wine.eselect')
-rw-r--r-- | wine.eselect | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/wine.eselect b/wine.eselect index 28d59ba..7420f3c 100644 --- a/wine.eselect +++ b/wine.eselect @@ -855,6 +855,23 @@ set_symlinks() { append_config "${CONFIG_DIR}/links/${v}" "man" "${links}" popd > /dev/null + append_config "${CONFIG_DIR}/links/${v}" symlink_dirs "include" + store_config "${CONFIG_DIR}/links/${v}" "include" "" + link="${EPREFIX}/usr/include/wine${v_arg#-}" + local linktgt="${wine_include}" + if [[ -L "${link}" ]]; then + write_warning_msg "${link} already exists, overwriting" + rm "${link}" || die -q "Failed to rm old link: ${link}" + fi + ln -s "${linktgt}" "${link}" + if [[ $? -ne 0 ]]; then + write_warning_msg "Failed to set symlink from ${linktgt} to ${link}" + write_warning_msg "Cleaning up" + remove_symlinks ${v_arg} + fi + store_config "${CONFIG_DIR}/links/${v}" "include" "${link}" + + local desktop="${EPREFIX}/usr/share/applications/wine${v_arg#-}.desktop" cp "${wine_app}/wine.desktop" "${desktop}" || die "Failed to copy desktop file" sed -i "s:Exec=.*:Exec=wine${v_arg#-} start /unix %f:" ${desktop} || die "Failed to edit desktop file" |