commit:     f66ef7689ef229f924f9db41a645537193e864f6
Author:     Bennjamin Blast <bennjamin.blast <AT> gmail <DOT> com>
AuthorDate: Tue May  3 19:43:12 2016 +0000
Commit:     Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Tue May  3 19:43:12 2016 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f66ef768

Add nuget-2.8.7
Fixes #166

 .../nuget/files/add-keyfile-option-to-csproj.patch | 17 +++---
 dev-dotnet/nuget/nuget-2.8.7.ebuild                | 62 ++++++++++++++++++++++
 2 files changed, 68 insertions(+), 11 deletions(-)

diff --git a/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch 
b/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch
index 25ccbd4..6b2eded 100644
--- a/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch
+++ b/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch
@@ -1,11 +1,6 @@
---- work.orig/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj     
2014-10-29 13:28:28.000000000 +0300
-+++ work/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj  2015-03-06 
10:55:17.783762949 +0300
-@@ -12,6 +12,8 @@
-     <TargetFrameworkProfile Condition=" '$(MonoBuild)' == '' And 
'$(TargetFrameworkVersion)' == 'v4.0' "></TargetFrameworkProfile>
-     <PlatformTarget>AnyCPU</PlatformTarget>
-     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
-+    <SignAssembly>true</SignAssembly>
-+    <AssemblyOriginatorKeyFile>rsa-4096.snk</AssemblyOriginatorKeyFile>
-   </PropertyGroup>
-   <ItemGroup>
-     <EmbeddedResource Include="..\..\Common\CommonResources.resx">
+--- work.orig/nuget-Release-2.8.7-MonoDevelop/src/Core/Core.csproj
++++ work/nuget-Release-2.8.7-MonoDevelop/src/Core/Core.csproj
+@@ -8,1 +8,3 @@
+     <AssemblyName>NuGet.Core</AssemblyName>
++    <SignAssembly>true</SignAssembly>
++    <AssemblyOriginatorKeyFile>rsa-4096.snk</AssemblyOriginatorKeyFile>

diff --git a/dev-dotnet/nuget/nuget-2.8.7.ebuild 
b/dev-dotnet/nuget/nuget-2.8.7.ebuild
new file mode 100644
index 0000000..6f41815
--- /dev/null
+++ b/dev-dotnet/nuget/nuget-2.8.7.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+USE_DOTNET="net45"
+
+inherit dotnet eutils
+
+# This ebuild provides a forked version of nuget modified to work with 
MonoDevelop.
+# See https://bugzilla.xamarin.com/show_bug.cgi?id=27693
+# dev-dotnet/nuget-codeplex provides the upstream version.
+
+DESCRIPTION="Nuget - .NET Package Manager"
+HOMEPAGE="http://nuget.codeplex.com";
+SRC_URI="https://github.com/mrward/nuget/archive/Release-${PV}-MonoDevelop.tar.gz
 -> ${P}.tar.gz"
+S=${WORKDIR}/nuget-Release-${PV}-MonoDevelop
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+# Mask 3.2.0 because of mcs compiler bug : 
http://stackoverflow.com/a/17926731/238232
+# it fixed in 3.2.3
+DEPEND=">=dev-lang/mono-3.2.3
+       <=dev-dotnet/xdt-for-monodevelop-2.8.2
+       !dev-dotnet/nuget-codeplex"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+       addwrite "/usr/share/.mono/keypairs"
+       dotnet_pkg_setup
+       mozroots --import --sync --machine
+}
+
+src_prepare() {
+       sed -i -e 's@RunTests@ @g' "${S}/Build/Build.proj" || die
+       cp "${FILESDIR}/rsa-4096.snk" "${S}/src/Core/" || die
+       epatch "${FILESDIR}/add-keyfile-option-to-csproj.patch"
+       sed -i -E -e "s#(\[assembly: InternalsVisibleTo(.*)\])#/* \1 */#g" 
"src/Core/Properties/AssemblyInfo.cs" || die
+       epatch "${FILESDIR}/strongnames-for-ebuild-2.8.1.patch"
+}
+
+src_configure() {
+       export EnableNuGetPackageRestore="true"
+}
+
+src_compile() {
+#      xbuild Build/Build.proj /p:Configuration=Release 
/p:TreatWarningsAsErrors=false /tv:4.0 
/p:TargetFrameworkVersion="v${FRAMEWORK}" /p:Configuration="Mono Release" 
/t:GoMono || die
+       source ./build.sh || die
+}
+
+src_install() {
+       elog "Installing NuGet.Core.dll into GAC"
+       egacinstall "src/Core/obj/Mono Release/NuGet.Core.dll"
+       elog "Installing NuGet console application"
+       insinto /usr/lib/mono/NuGet/"${FRAMEWORK}"/
+       doins src/CommandLine/obj/Mono\ Release/NuGet.exe
+       make_wrapper nuget "mono /usr/lib/mono/NuGet/${FRAMEWORK}/NuGet.exe"
+}

Reply via email to