1 |
commit: f66ef7689ef229f924f9db41a645537193e864f6 |
2 |
Author: Bennjamin Blast <bennjamin.blast <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue May 3 19:43:12 2016 +0000 |
4 |
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 19:43:12 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f66ef768 |
7 |
|
8 |
Add nuget-2.8.7 |
9 |
Fixes #166 |
10 |
|
11 |
.../nuget/files/add-keyfile-option-to-csproj.patch | 17 +++--- |
12 |
dev-dotnet/nuget/nuget-2.8.7.ebuild | 62 ++++++++++++++++++++++ |
13 |
2 files changed, 68 insertions(+), 11 deletions(-) |
14 |
|
15 |
diff --git a/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch b/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch |
16 |
index 25ccbd4..6b2eded 100644 |
17 |
--- a/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch |
18 |
+++ b/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch |
19 |
@@ -1,11 +1,6 @@ |
20 |
---- work.orig/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj 2014-10-29 13:28:28.000000000 +0300 |
21 |
-+++ work/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj 2015-03-06 10:55:17.783762949 +0300 |
22 |
-@@ -12,6 +12,8 @@ |
23 |
- <TargetFrameworkProfile Condition=" '$(MonoBuild)' == '' And '$(TargetFrameworkVersion)' == 'v4.0' "></TargetFrameworkProfile> |
24 |
- <PlatformTarget>AnyCPU</PlatformTarget> |
25 |
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
26 |
-+ <SignAssembly>true</SignAssembly> |
27 |
-+ <AssemblyOriginatorKeyFile>rsa-4096.snk</AssemblyOriginatorKeyFile> |
28 |
- </PropertyGroup> |
29 |
- <ItemGroup> |
30 |
- <EmbeddedResource Include="..\..\Common\CommonResources.resx"> |
31 |
+--- work.orig/nuget-Release-2.8.7-MonoDevelop/src/Core/Core.csproj |
32 |
++++ work/nuget-Release-2.8.7-MonoDevelop/src/Core/Core.csproj |
33 |
+@@ -8,1 +8,3 @@ |
34 |
+ <AssemblyName>NuGet.Core</AssemblyName> |
35 |
++ <SignAssembly>true</SignAssembly> |
36 |
++ <AssemblyOriginatorKeyFile>rsa-4096.snk</AssemblyOriginatorKeyFile> |
37 |
|
38 |
diff --git a/dev-dotnet/nuget/nuget-2.8.7.ebuild b/dev-dotnet/nuget/nuget-2.8.7.ebuild |
39 |
new file mode 100644 |
40 |
index 0000000..6f41815 |
41 |
--- /dev/null |
42 |
+++ b/dev-dotnet/nuget/nuget-2.8.7.ebuild |
43 |
@@ -0,0 +1,62 @@ |
44 |
+# Copyright 1999-2015 Gentoo Foundation |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+# $Id$ |
47 |
+ |
48 |
+EAPI="5" |
49 |
+USE_DOTNET="net45" |
50 |
+ |
51 |
+inherit dotnet eutils |
52 |
+ |
53 |
+# This ebuild provides a forked version of nuget modified to work with MonoDevelop. |
54 |
+# See https://bugzilla.xamarin.com/show_bug.cgi?id=27693 |
55 |
+# dev-dotnet/nuget-codeplex provides the upstream version. |
56 |
+ |
57 |
+DESCRIPTION="Nuget - .NET Package Manager" |
58 |
+HOMEPAGE="http://nuget.codeplex.com" |
59 |
+SRC_URI="https://github.com/mrward/nuget/archive/Release-${PV}-MonoDevelop.tar.gz -> ${P}.tar.gz" |
60 |
+S=${WORKDIR}/nuget-Release-${PV}-MonoDevelop |
61 |
+ |
62 |
+LICENSE="Apache-2.0" |
63 |
+SLOT="0" |
64 |
+ |
65 |
+KEYWORDS="~x86 ~amd64" |
66 |
+IUSE="" |
67 |
+ |
68 |
+# Mask 3.2.0 because of mcs compiler bug : http://stackoverflow.com/a/17926731/238232 |
69 |
+# it fixed in 3.2.3 |
70 |
+DEPEND=">=dev-lang/mono-3.2.3 |
71 |
+ <=dev-dotnet/xdt-for-monodevelop-2.8.2 |
72 |
+ !dev-dotnet/nuget-codeplex" |
73 |
+RDEPEND="${DEPEND}" |
74 |
+ |
75 |
+pkg_setup() { |
76 |
+ addwrite "/usr/share/.mono/keypairs" |
77 |
+ dotnet_pkg_setup |
78 |
+ mozroots --import --sync --machine |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ sed -i -e 's@RunTests@ @g' "${S}/Build/Build.proj" || die |
83 |
+ cp "${FILESDIR}/rsa-4096.snk" "${S}/src/Core/" || die |
84 |
+ epatch "${FILESDIR}/add-keyfile-option-to-csproj.patch" |
85 |
+ sed -i -E -e "s#(\[assembly: InternalsVisibleTo(.*)\])#/* \1 */#g" "src/Core/Properties/AssemblyInfo.cs" || die |
86 |
+ epatch "${FILESDIR}/strongnames-for-ebuild-2.8.1.patch" |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ export EnableNuGetPackageRestore="true" |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+# xbuild Build/Build.proj /p:Configuration=Release /p:TreatWarningsAsErrors=false /tv:4.0 /p:TargetFrameworkVersion="v${FRAMEWORK}" /p:Configuration="Mono Release" /t:GoMono || die |
95 |
+ source ./build.sh || die |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ elog "Installing NuGet.Core.dll into GAC" |
100 |
+ egacinstall "src/Core/obj/Mono Release/NuGet.Core.dll" |
101 |
+ elog "Installing NuGet console application" |
102 |
+ insinto /usr/lib/mono/NuGet/"${FRAMEWORK}"/ |
103 |
+ doins src/CommandLine/obj/Mono\ Release/NuGet.exe |
104 |
+ make_wrapper nuget "mono /usr/lib/mono/NuGet/${FRAMEWORK}/NuGet.exe" |
105 |
+} |