commit: 9b1a87b06f7f7de87b6a9696506b98c493ecdf03
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Sun Nov 13 10:10:56 2016 +0000
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Sun Nov 13 10:10:56 2016 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=9b1a87b0
NUSPEC_PROPS variable added
eclass/nupkg.eclass | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/eclass/nupkg.eclass b/eclass/nupkg.eclass
index ccf3983..33770cf 100644
--- a/eclass/nupkg.eclass
+++ b/eclass/nupkg.eclass
@@ -79,14 +79,17 @@ enuget_restore() {
# accepts path to .nuspec file as parameter
enuspec() {
if use nupkg; then
+ if [ -n "${NUSPEC_PROPERTIES}" ]; then
+ NUSPEC_PROPERTIES+=';'
+ fi
# see
http://docs.nuget.org/create/nuspec-reference#specifying-files-to-include-in-the-package
# for the explaination why $configuration$ property is passed
if use debug; then
- PROPS=configuration=Debug
+ NUSPEC_PROPERTIES+="configuration=Debug"
else
- PROPS=configuration=Release
+ NUSPEC_PROPERTIES+="configuration=Release"
fi
- nuget pack -Properties "${PROPS}" -BasePath "${S}"
-OutputDirectory "${WORKDIR}" -NonInteractive -Verbosity detailed "$@" || die
+ nuget pack -Properties "${NUSPEC_PROPERTIES}" -BasePath "${S}"
-OutputDirectory "${WORKDIR}" -NonInteractive -Verbosity detailed "$@" || die
fi
}