commit:     fa22b03f30d95f7e0e14a11d68feffd27f102155
Author:     ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Thu Aug 18 19:47:35 2016 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Thu Aug 18 19:47:35 2016 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=fa22b03f

replace prefix to dot

 eclass/nuget.eclass | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/eclass/nuget.eclass b/eclass/nuget.eclass
index 5c59f05..c145dce 100644
--- a/eclass/nuget.eclass
+++ b/eclass/nuget.eclass
@@ -56,16 +56,27 @@ enuget_download_rogue_binary() {
 # Src_compile does nothing and src_install just installs sources from 
nuget_src_unpack
 nuget_src_unpack() {
        default
+       einfo "src_unpack() from nuget.eclass is called"
 
        NPN=${PN/_/.}
 
-       if [[ $PV == *_alpha* ]] || [[ $PV == *_beta* ]] || [[ $PV == *_pre* ]] 
|| [[ $PV == *_p* ]]
-       then
-               NPV=${PVR/_/-}
+       if [[ $PV == *_alpha* ]] ; then
+               NPV=${PVR/_alpha/.}
        else
-               NPV=${PVR}
+               if [[ $PV == *_beta* ]] ; then
+                       NPV=${PVR/_beta/.}
+               else
+                       if [[ $PV == *_pre* ]] ; then
+                               NPV=${PVR/_pre/.}
+                       else
+                               if [[ $PV == *_p* ]] ; then
+                                       NPV=${PVR/_p/.}
+                               else
+                                       NPV=${PVR}
+                               fi
+                       fi
+               fi
        fi
-
        nuget install "${NPN}" -Version "${NPV}" -OutputDirectory "${P}"
 }
 

Reply via email to