public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mikhail Pukhlikov" <cynede@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/dotnet:master commit in: eclass/
Date: Fri, 19 Aug 2016 16:12:19 +0000 (UTC)	[thread overview]
Message-ID: <1471549655.fa22b03f30d95f7e0e14a11d68feffd27f102155.cynede@gentoo> (raw)

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	other threads:[~2016-08-19 16:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-19 16:12 Mikhail Pukhlikov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-10-30  6:44 [gentoo-commits] proj/dotnet:master commit in: eclass/ Mikhail Pukhlikov
2016-11-13 14:14 Mikhail Pukhlikov
2016-10-04  6:14 Mikhail Pukhlikov
2016-08-19 16:12 Mikhail Pukhlikov
2016-08-19 16:12 Mikhail Pukhlikov
2016-08-17  9:44 Mikhail Pukhlikov
2016-07-31  8:52 Mikhail Pukhlikov
2015-10-17  6:40 Heather Cynede
2015-10-17  6:40 Heather Cynede
2015-09-19 10:59 Heather Cynede
2015-09-19 10:59 Heather Cynede
2015-08-22 16:46 Heather Cynede
2015-08-18  8:01 Heather Cynede
2015-08-18  7:56 Heather Cynede
2015-08-17 13:55 Heather Cynede
2015-08-17 13:55 Heather Cynede
2015-08-13  8:14 Heather Cynede
2015-08-05 17:16 Heather Cynede
2015-06-25  7:04 Heather Cynede
2013-09-23 18:38 Heather Cynede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1471549655.fa22b03f30d95f7e0e14a11d68feffd27f102155.cynede@gentoo \
    --to=cynede@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox