prefix/winnt/profile.bashrc: rename funcs to winnt_
authorMichael Haubenwallner <haubi@gentoo.org>
Wed, 11 Mar 2020 14:24:51 +0000 (15:24 +0100)
committerMichael Haubenwallner <haubi@gentoo.org>
Wed, 11 Mar 2020 15:47:17 +0000 (16:47 +0100)
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 <haubi@gentoo.org>
profiles/prefix/windows/winnt/profile.bashrc

index 0670a48a5b125c997be2f66bad040b02a08855fd..c613a56cd98203cf7b8687e1e62b6494673e7c71 100644 (file)
@@ -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