commit: 60e26cfc04cac4bd2ede6152483add005654602a Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> AuthorDate: Sun May 28 14:57:30 2017 +0000 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> CommitDate: Sun May 28 14:57:30 2017 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=60e26cfc
fix for nupkg.eclass dev-util/nunit/nunit-2.6.4_p2015011102-r2.ebuild | 1 + eclass/nupkg.eclass | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dev-util/nunit/nunit-2.6.4_p2015011102-r2.ebuild b/dev-util/nunit/nunit-2.6.4_p2015011102-r2.ebuild index 9c17df5..7340198 100644 --- a/dev-util/nunit/nunit-2.6.4_p2015011102-r2.ebuild +++ b/dev-util/nunit/nunit-2.6.4_p2015011102-r2.ebuild @@ -10,6 +10,7 @@ HOMEPAGE="https://github.com/nunit/${NAME}" EGIT_COMMIT="1b549f4f8b067518c7b54a5b263679adb83ccda4" SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${PF}.zip" +RESTRICT="mirror" S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" SLOT="2" # NUnit V2 IS NO LONGER MAINTAINED OR UPDATED. diff --git a/eclass/nupkg.eclass b/eclass/nupkg.eclass index 9ba4be7..d038aeb 100644 --- a/eclass/nupkg.eclass +++ b/eclass/nupkg.eclass @@ -79,17 +79,18 @@ enuget_restore() { # accepts path to .nuspec file as parameter enuspec() { if use nupkg; then - if [ -n "${NUSPEC_PROPERTIES}" ]; then - NUSPEC_PROPERTIES+=';' + local PROPS=${NUSPEC_PROPERTIES} + if [ -n "${PROPS}" ]; then + PROPS+=';' 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 - NUSPEC_PROPERTIES+="configuration=Debug" + PROPS+="configuration=Debug" else - NUSPEC_PROPERTIES+="configuration=Release" + PROPS+="configuration=Release" fi - nuget pack -Properties "${NUSPEC_PROPERTIES}" -BasePath "${S}" -OutputDirectory "${WORKDIR}" -NonInteractive -Verbosity detailed "$@" || die + nuget pack -Properties "${PROPS}" -BasePath "${S}" -OutputDirectory "${WORKDIR}" -NonInteractive -Verbosity detailed "$@" || die fi }