diff options
Diffstat (limited to 'dev-libs/gtkd/gtkd-2.4.2.ebuild')
-rw-r--r-- | dev-libs/gtkd/gtkd-2.4.2.ebuild | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dev-libs/gtkd/gtkd-2.4.2.ebuild b/dev-libs/gtkd/gtkd-2.4.2.ebuild index 19fd05c..1ed82af 100644 --- a/dev-libs/gtkd/gtkd-2.4.2.ebuild +++ b/dev-libs/gtkd/gtkd-2.4.2.ebuild @@ -40,8 +40,9 @@ src_unpack() { d_src_compile() { compile_libs() { # Build the shared library version of the component + # The test phase expects no version extension on the .so if dlang_has_shared_lib_support; then - dlang_compile_lib_so lib${LIB_NAME}-${MAJOR}.so.0.${MINOR} \ + dlang_compile_lib_so lib${LIB_NAME}-${MAJOR}.so \ lib${LIB_NAME}-${MAJOR}.so.0 -Isrc ${GTKD_SRC_DIRS[$i]}/*/*.d else ewarn "${DC} does not have shared library support." @@ -77,9 +78,9 @@ d_src_install() { # Install the shared library version of the component if dlang_has_shared_lib_support; then local libfile="lib${LIB_NAME}-${MAJOR}.so" - dolib.so "${libfile}.0.${MINOR}" - dosym "${libfile}.0.${MINOR}" "/usr/$(get_libdir)/${libfile}.0" - dosym "${libfile}.0.${MINOR}" "/usr/$(get_libdir)/${libfile}" + ln -s "${libfile}" "${libfile}.0" + ln -s "${libfile}" "${libfile}.0.${MINOR}" + dolib.so "${libfile}.0.${MINOR}" "${libfile}.0" "${libfile}" fi # Install the static library version @@ -108,7 +109,7 @@ d_src_install_all() { foreach_used_component() { for (( i = 0 ; i < ${#GTKD_LIB_NAMES[@]} ; i++ )); do - if [[ ${GTKD_LIB_NAMES[$i]} == "gtkd" ]] || use ${GTKD_USE_FLAGS[$i]}; then + if [[ "${GTKD_LIB_NAMES[$i]}" == "gtkd" ]] || use ${GTKD_USE_FLAGS[$i]}; then LIB_NAME=${GTKD_LIB_NAMES[$i]} SRC_DIR=${GTKD_SRC_DIRS[$i]} ${@} fi done |