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: <1471548303.1c0049ccaac716f6f988ce0cb65012ac6f119011.cynede@gentoo> (raw)

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

add _p into NPV variable

 eclass/nuget.eclass | 22 +++++++++++++++++++---
 eclass/nupkg.eclass | 16 ----------------
 2 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/eclass/nuget.eclass b/eclass/nuget.eclass
index 3fbb21c..5c59f05 100644
--- a/eclass/nuget.eclass
+++ b/eclass/nuget.eclass
@@ -11,10 +11,16 @@
 
 inherit nupkg
 
-IUSE+=" +nuget"
+# @ECLASS_VARIABLE: NUGET_DEPEND
+# @DESCRIPTION Set false to net depend on nuget
+: ${NUGET_NO_DEPEND:=}
 
-DEPEND+=" nuget? ( dev-dotnet/nuget )"
-RDEPEND+=" nuget? ( dev-dotnet/nuget )"
+if [[ -n ${NUGET_NO_DEPEND} ]]; then
+	IUSE+=" +nuget"
+	
+	DEPEND+=" nuget? ( dev-dotnet/nuget )"
+	RDEPEND+=" nuget? ( dev-dotnet/nuget )"
+fi
 
 # @FUNCTION: enuget_download_rogue_binary
 # @DESCRIPTION: downloads a binary package from 3rd untrusted party repository
@@ -50,6 +56,16 @@ enuget_download_rogue_binary() {
 # Src_compile does nothing and src_install just installs sources from nuget_src_unpack
 nuget_src_unpack() {
 	default
+
+	NPN=${PN/_/.}
+
+	if [[ $PV == *_alpha* ]] || [[ $PV == *_beta* ]] || [[ $PV == *_pre* ]] || [[ $PV == *_p* ]]
+	then
+		NPV=${PVR/_/-}
+	else
+		NPV=${PVR}
+	fi
+
 	nuget install "${NPN}" -Version "${NPV}" -OutputDirectory "${P}"
 }
 

diff --git a/eclass/nupkg.eclass b/eclass/nupkg.eclass
index d50d65e..ccf3983 100644
--- a/eclass/nupkg.eclass
+++ b/eclass/nupkg.eclass
@@ -100,19 +100,3 @@ enupkg() {
 		doins "$@"
 	fi
 }
-
-# @ECLASS_VARIABLE: NUGET_DEPEND
-# @DESCRIPTION Set false to net depend on nuget
-: ${NUGET_NO_DEPEND:=}
-
-if [[ -n ${NUGET_NO_DEPEND} ]]; then
-	DEPEND+=" dev-dotnet/nuget"
-fi
-
-NPN=${PN/_/.}
-if [[ $PV == *_alpha* ]] || [[ $PV == *_beta* ]] || [[ $PV == *_pre* ]]
-then
-	NPV=${PVR/_/-}
-else
-	NPV=${PVR}
-fi


             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=1471548303.1c0049ccaac716f6f988ce0cb65012ac6f119011.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