From f68a3873380140c91e7ea1d8d4872649cf8d1aee Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Wed, 11 Mar 2020 15:24:51 +0100 Subject: [PATCH] prefix/winnt/profile.bashrc: rename funcs to winnt_ Provide the winnt_post_src_install and call that one in post_src_install rather than performing all the operation directly in post_src_install. Signed-off-by: Michael Haubenwallner --- profiles/prefix/windows/winnt/profile.bashrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/profiles/prefix/windows/winnt/profile.bashrc b/profiles/prefix/windows/winnt/profile.bashrc index 0670a48a5b12..c613a56cd982 100644 --- a/profiles/prefix/windows/winnt/profile.bashrc +++ b/profiles/prefix/windows/winnt/profile.bashrc @@ -48,7 +48,7 @@ export PKG_CONFIG_PATH="${EPREFIX}/lib/pkgconfig:${EPREFIX}/usr/lib/pkgconfig" # ####################################################################### -windows_setup_dllhelper() { +winnt_setup_dllhelper() { case ${CATEGORY}/${PN} in sys-libs/zlib |\ '') @@ -58,13 +58,17 @@ windows_setup_dllhelper() { # and installation is done using cp, we override cp to # additionally copy the dll when the library is copied. ebegin "Setting up wrapper to copy the DLL along the LIB" - windows_setup_dllhelper_cp + winnt_setup_dllhelper_cp eend $? ;; esac } post_src_install() { + winnt_post_src_install +} + +winnt_post_src_install() { cd "${ED}" || return 0 # # File names being treated as import library: @@ -185,7 +189,7 @@ post_src_install() { done } -windows_setup_dllhelper_cp() { +winnt_setup_dllhelper_cp() { if ! [[ $(type -P cp) -ef ${T}/dllhelper/cp ]] then mkdir -p "${T}/dllhelper" @@ -288,5 +292,5 @@ EOCP if [[ ${EBUILD_PHASE} == 'setup' ]] then - windows_setup_dllhelper + winnt_setup_dllhelper fi -- 2.26.2