aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-11-13 13:10:56 +0300
committerArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-11-13 13:10:56 +0300
commit9b1a87b06f7f7de87b6a9696506b98c493ecdf03 (patch)
treec1e4803b682e65db3fa3ce1cffba903deacf7a66 /eclass
parentMerge pull request #261 from ArsenShnurkov/eto-parse (diff)
downloaddotnet-9b1a87b06f7f7de87b6a9696506b98c493ecdf03.tar.gz
dotnet-9b1a87b06f7f7de87b6a9696506b98c493ecdf03.tar.bz2
dotnet-9b1a87b06f7f7de87b6a9696506b98c493ecdf03.zip
NUSPEC_PROPS variable added
Diffstat (limited to 'eclass')
-rw-r--r--eclass/nupkg.eclass9
1 files 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
}