1 |
commit: 0e95e4c2e501d10033d454908d9afa944e549309 |
2 |
Author: Heather Cynede <cynede <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 1 13:47:31 2016 +0000 |
4 |
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 1 13:48:10 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e95e4c2 |
7 |
|
8 |
dev-dotnet/nuget: bump to 2.8.7 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-dotnet/nuget/Manifest | 1 + |
13 |
dev-dotnet/nuget/nuget-2.8.7.ebuild | 61 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/dev-dotnet/nuget/Manifest b/dev-dotnet/nuget/Manifest |
17 |
index 13bcc9b..7518e4e 100644 |
18 |
--- a/dev-dotnet/nuget/Manifest |
19 |
+++ b/dev-dotnet/nuget/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST nuget-2.8.3.tar.gz 14240757 SHA256 8ca0cc2e3ec753338472011c8591c2e4d924e81bd12d9fab1c24d5a4903c61ec SHA512 a1447042f77fdb0d63caaf49d64208ac0ab072ab1caf7f5edaeb936f3e26fac7ad80c3af51b12086cb2b9bb63df32e8da244894c4cd4946373ff86cb7a4e130d WHIRLPOOL cc4cb8fb7f8e92f756c5aa05022e6cca843cace591cfe3f8ea585f286d4002eb8b255cf8946cd9c3e3b3945480ddfe30868b4ad1e069329bb59f8b37051cf990 |
22 |
+DIST nuget-2.8.7.tar.gz 22865370 SHA256 0c614f915ebe23f35474b1c8aae51ddf4411ad424a3874bec308a36b5ef69759 SHA512 5120c8dc0fcda6aa8b8f2b8c4803bc141d046cbddb9ea2b9f963e775c5a652e4873295ecc22fd07261556777777fcf9f05a45fb4438fac9993b05ec83cadeb79 WHIRLPOOL 11fb1ce19be6eccdde09c2c279beb9a3ded71cad25e6070fd51b5c68d7400c46057b3fcc7d47a8caf569ecc9834e3280ec2305848e54313d34be5142a09b0e18 |
23 |
|
24 |
diff --git a/dev-dotnet/nuget/nuget-2.8.7.ebuild b/dev-dotnet/nuget/nuget-2.8.7.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..f9bb91f |
27 |
--- /dev/null |
28 |
+++ b/dev-dotnet/nuget/nuget-2.8.7.ebuild |
29 |
@@ -0,0 +1,61 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+inherit dotnet eutils |
37 |
+ |
38 |
+# This ebuild provides a forked version of nuget modified to work with MonoDevelop. |
39 |
+# See https://bugzilla.xamarin.com/show_bug.cgi?id=27693 |
40 |
+# dev-dotnet/nuget-codeplex provides the upstream version. |
41 |
+ |
42 |
+DESCRIPTION="Nuget - .NET Package Manager" |
43 |
+HOMEPAGE="http://nuget.codeplex.com" |
44 |
+SRC_URI="https://github.com/mrward/nuget/archive/Release-${PV}-MonoDevelop.tar.gz -> ${P}.tar.gz" |
45 |
+S=${WORKDIR}/nuget-Release-${PV}-MonoDevelop |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
+ |
50 |
+KEYWORDS="~x86 ~amd64" |
51 |
+IUSE="" |
52 |
+ |
53 |
+# Mask 3.2.0 because of mcs compiler bug : http://stackoverflow.com/a/17926731/238232 |
54 |
+# it fixed in 3.2.3 |
55 |
+DEPEND=">=dev-lang/mono-3.2.3 |
56 |
+ <=dev-dotnet/xdt-for-monodevelop-2.8.2 |
57 |
+ !dev-dotnet/nuget-codeplex" |
58 |
+RDEPEND="${DEPEND}" |
59 |
+ |
60 |
+pkg_setup() { |
61 |
+ addwrite "/usr/share/.mono/keypairs" |
62 |
+ dotnet_pkg_setup |
63 |
+ mozroots --import --sync --machine |
64 |
+} |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ sed -i -e 's@RunTests@ @g' "${S}/Build/Build.proj" || die |
68 |
+ cp "${FILESDIR}/rsa-4096.snk" "${S}/src/Core/" || die |
69 |
+ epatch "${FILESDIR}/add-keyfile-option-to-csproj.patch" |
70 |
+ sed -i -E -e "s#(\[assembly: InternalsVisibleTo(.*)\])#/* \1 */#g" "src/Core/Properties/AssemblyInfo.cs" || die |
71 |
+ epatch "${FILESDIR}/strongnames-for-ebuild-2.8.1.patch" |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ export EnableNuGetPackageRestore="true" |
76 |
+} |
77 |
+ |
78 |
+src_compile() { |
79 |
+# xbuild Build/Build.proj /p:Configuration=Release /p:TreatWarningsAsErrors=false /tv:4.0 /p:TargetFrameworkVersion="v${FRAMEWORK}" /p:Configuration="Mono Release" /t:GoMono || die |
80 |
+ source ./build.sh || die |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ elog "Installing NuGet.Core.dll into GAC" |
85 |
+ egacinstall "src/Core/obj/Mono Release/NuGet.Core.dll" |
86 |
+ elog "Installing NuGet console application" |
87 |
+ insinto /usr/lib/mono/NuGet/"${FRAMEWORK}"/ |
88 |
+ doins src/CommandLine/obj/Mono\ Release/NuGet.exe |
89 |
+ make_wrapper nuget "mono /usr/lib/mono/NuGet/${FRAMEWORK}/NuGet.exe" |
90 |
+} |