aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-08-18 22:47:35 +0300
committerArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-08-18 22:47:35 +0300
commitfa22b03f30d95f7e0e14a11d68feffd27f102155 (patch)
treead9a8cb73eb363dae8caa20c362162295bc601aa /eclass
parentadd _p into NPV variable (diff)
downloaddotnet-fa22b03f30d95f7e0e14a11d68feffd27f102155.tar.gz
dotnet-fa22b03f30d95f7e0e14a11d68feffd27f102155.tar.bz2
dotnet-fa22b03f30d95f7e0e14a11d68feffd27f102155.zip
replace prefix to dot
Diffstat (limited to 'eclass')
-rw-r--r--eclass/nuget.eclass21
1 files 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}"
}