1 |
commit: 111c8910fdefd5e503e0f2a954270d2e156a8809 |
2 |
Author: Binyamin Sagal <bensagal <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed May 27 10:22:02 2015 +0000 |
4 |
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 27 10:22:02 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=111c8910 |
7 |
|
8 |
Add nuget-2.8.3 |
9 |
|
10 |
dev-dotnet/nuget/nuget-2.8.3.ebuild | 63 +++++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 63 insertions(+) |
12 |
|
13 |
diff --git a/dev-dotnet/nuget/nuget-2.8.3.ebuild b/dev-dotnet/nuget/nuget-2.8.3.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..5cd6082 |
16 |
--- /dev/null |
17 |
+++ b/dev-dotnet/nuget/nuget-2.8.3.ebuild |
18 |
@@ -0,0 +1,63 @@ |
19 |
+# Copyright 1999-2015 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Header: $ |
22 |
+ |
23 |
+EAPI="5" |
24 |
+USE_DOTNET="net45" |
25 |
+ |
26 |
+inherit dotnet eutils |
27 |
+ |
28 |
+DESCRIPTION="Nuget - .NET Package Manager" |
29 |
+HOMEPAGE="http://nuget.codeplex.com" |
30 |
+SRC_URI="https://github.com/mrward/nuget/archive/Release-${PV}-MonoDevelop.tar.gz -> ${P}.tar.gz" |
31 |
+S=${WORKDIR}/nuget-Release-${PV}-MonoDevelop |
32 |
+ |
33 |
+LICENSE="Apache-2.0" |
34 |
+SLOT="0" |
35 |
+ |
36 |
+KEYWORDS="x86 amd64" |
37 |
+IUSE="" |
38 |
+ |
39 |
+# Mask 3.2.0 because of mcs compiler bug : http://stackoverflow.com/a/17926731/238232 |
40 |
+# it fixed in 3.2.3 |
41 |
+DEPEND=">=dev-lang/mono-3.2.3 |
42 |
+ <=dev-dotnet/xdt-for-monodevelop-2.8.2 |
43 |
+ !dev-dotnet/nuget" |
44 |
+RDEPEND="${DEPEND}" |
45 |
+ |
46 |
+# note about blocking nuget: |
47 |
+# there are at least two versions of it - on from mono, one from mrward |
48 |
+# see https://bugzilla.xamarin.com/show_bug.cgi?id=27693 |
49 |
+# i think version from mrward is enough for now, |
50 |
+# that is why there is no slotted install or two different names/locations |
51 |
+ |
52 |
+pkg_setup() { |
53 |
+ dotnet_pkg_setup |
54 |
+ mozroots --import --sync --machine |
55 |
+} |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ sed -i -e 's@RunTests@ @g' "${S}/Build/Build.proj" || die |
59 |
+ cp "${FILESDIR}/rsa-4096.snk" "${S}/src/Core/" || die |
60 |
+ epatch "${FILESDIR}/add-keyfile-option-to-csproj.patch" |
61 |
+ sed -i -E -e "s#(\[assembly: InternalsVisibleTo(.*)\])#/* \1 */#g" "src/Core/Properties/AssemblyInfo.cs" || die |
62 |
+ epatch "${FILESDIR}/strongnames-for-ebuild-2.8.1.patch" |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ export EnableNuGetPackageRestore="true" |
67 |
+} |
68 |
+ |
69 |
+src_compile() { |
70 |
+# xbuild Build/Build.proj /p:Configuration=Release /p:TreatWarningsAsErrors=false /tv:4.0 /p:TargetFrameworkVersion="v${FRAMEWORK}" /p:Configuration="Mono Release" /t:GoMono || die |
71 |
+ source ./build.sh || die |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ elog "Installing NuGet.Core.dll into GAC" |
76 |
+ egacinstall "src/Core/obj/Mono Release/NuGet.Core.dll" |
77 |
+ elog "Installing NuGet console application" |
78 |
+ insinto /usr/lib/mono/NuGet/"${FRAMEWORK}"/ |
79 |
+ doins src/CommandLine/obj/Mono\ Release/NuGet.exe |
80 |
+ make_wrapper nuget "mono /usr/lib/mono/NuGet/${FRAMEWORK}/NuGet.exe" |
81 |
+} |