1 |
commit: 826d3c27f1c3d9877164a9cb5373c6db8d88ce47 |
2 |
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 30 03:05:05 2016 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 30 03:05:05 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=826d3c27 |
7 |
|
8 |
engine package added |
9 |
|
10 |
.../nunit/files/nunit-3.0.1-nuget.nuspec.patch | 20 ++++++++++++++++ |
11 |
.../files/nunit-3.0.1-nunit.console.nuspec.patch | 24 +++++++++++++++++++ |
12 |
.../files/nunit-3.0.1-nunit.engine.nuspec.patch | 16 +++++++++++++ |
13 |
dev-util/nunit/nunit-3.0.1.ebuild | 28 +++++++++++++++------- |
14 |
4 files changed, 80 insertions(+), 8 deletions(-) |
15 |
|
16 |
diff --git a/dev-util/nunit/files/nunit-3.0.1-nuget.nuspec.patch b/dev-util/nunit/files/nunit-3.0.1-nuget.nuspec.patch |
17 |
new file mode 100644 |
18 |
index 0000000..1a782db |
19 |
--- /dev/null |
20 |
+++ b/dev-util/nunit/files/nunit-3.0.1-nuget.nuspec.patch |
21 |
@@ -0,0 +1,20 @@ |
22 |
+diff --git a/nuget/nunit.nuspec b/nuget/nunit.nuspec |
23 |
+index 71634a9..b450080 100644 |
24 |
+--- a/nuget/nunit.nuspec |
25 |
++++ b/nuget/nunit.nuspec |
26 |
+@@ -32,15 +32,7 @@ Supported platforms: |
27 |
+ <file src="LICENSE.txt" /> |
28 |
+ <file src="NOTICES.txt" /> |
29 |
+ <file src="CHANGES.txt" /> |
30 |
+- <file src="bin/net-2.0/nunit.framework.dll" target="lib/net20" /> |
31 |
+- <file src="bin/net-2.0/nunit.framework.xml" target="lib/net20" /> |
32 |
+- <file src="bin/net-4.0/nunit.framework.dll" target="lib/net40" /> |
33 |
+- <file src="bin/net-4.0/nunit.framework.xml" target="lib/net40" /> |
34 |
+ <file src="bin/net-4.5/nunit.framework.dll" target="lib/net45" /> |
35 |
+ <file src="bin/net-4.5/nunit.framework.xml" target="lib/net45" /> |
36 |
+- <file src="bin/portable/nunit.framework.dll" target="lib/dotnet" /> |
37 |
+- <file src="bin/portable/nunit.framework.xml" target="lib/dotnet" /> |
38 |
+- <file src="bin/portable/nunit.framework.dll" target="lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10" /> |
39 |
+- <file src="bin/portable/nunit.framework.xml" target="lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10" /> |
40 |
+ </files> |
41 |
+ </package> |
42 |
|
43 |
diff --git a/dev-util/nunit/files/nunit-3.0.1-nunit.console.nuspec.patch b/dev-util/nunit/files/nunit-3.0.1-nunit.console.nuspec.patch |
44 |
new file mode 100644 |
45 |
index 0000000..db29255 |
46 |
--- /dev/null |
47 |
+++ b/dev-util/nunit/files/nunit-3.0.1-nunit.console.nuspec.patch |
48 |
@@ -0,0 +1,24 @@ |
49 |
+diff --git a/nuget/nunit.console.nuspec b/nuget/nunit.console.nuspec |
50 |
+index 7479f61..7c7e65f 100644 |
51 |
+--- a/nuget/nunit.console.nuspec |
52 |
++++ b/nuget/nunit.console.nuspec |
53 |
+@@ -25,8 +25,6 @@ |
54 |
+ <file src="CHANGES.txt" /> |
55 |
+ <file src="bin/nunit-agent.exe" target="tools" /> |
56 |
+ <file src="bin/nunit-agent.exe.config" target="tools" /> |
57 |
+- <file src="bin/nunit-agent-x86.exe" target="tools" /> |
58 |
+- <file src="bin/nunit-agent-x86.exe.config" target="tools" /> |
59 |
+ <file src="bin/nunit3-console.exe" target="tools" /> |
60 |
+ <file src="bin/nunit3-console.exe.config" target="tools" /> |
61 |
+ <file src="bin/nunit.engine.api.dll" target="tools" /> |
62 |
+@@ -34,10 +32,6 @@ |
63 |
+ <file src="bin/nunit.engine.dll" target="tools" /> |
64 |
+ <file src="bin/nunit.engine.addins" target="tools" /> |
65 |
+ <file src="bin/nunit.engine.addin.xml" target="tools" /> |
66 |
+- <file src="bin/Mono.Cecil.dll" target="tools" /> |
67 |
+- <file src="bin/addins/nunit.v2.driver.dll" target="tools/addins" /> |
68 |
+- <file src="bin/addins/nunit.core.dll" target="tools/addins" /> |
69 |
+- <file src="bin/addins/nunit.core.interfaces.dll" target="tools/addins" /> |
70 |
+ <file src="bin/addins/nunit-v2-result-writer.dll" target="tools/addins" /> |
71 |
+ <file src="bin/addins/nunit-project-loader.dll" target="tools/addins" /> |
72 |
+ <file src="bin/addins/vs-project-loader.dll" target="tools/addins" /> |
73 |
|
74 |
diff --git a/dev-util/nunit/files/nunit-3.0.1-nunit.engine.nuspec.patch b/dev-util/nunit/files/nunit-3.0.1-nunit.engine.nuspec.patch |
75 |
new file mode 100644 |
76 |
index 0000000..c6920b0 |
77 |
--- /dev/null |
78 |
+++ b/dev-util/nunit/files/nunit-3.0.1-nunit.engine.nuspec.patch |
79 |
@@ -0,0 +1,16 @@ |
80 |
+diff --git a/nuget/nunit.engine.nuspec b/nuget/nunit.engine.nuspec |
81 |
+index 04086bf..53f3be6 100644 |
82 |
+--- a/nuget/nunit.engine.nuspec |
83 |
++++ b/nuget/nunit.engine.nuspec |
84 |
+@@ -23,10 +23,7 @@ |
85 |
+ <file src="CHANGES.txt" /> |
86 |
+ <file src="bin\nunit.engine.dll" target="lib" /> |
87 |
+ <file src="bin\nunit.engine.api.dll" target="lib" /> |
88 |
+- <file src="bin\Mono.Cecil.dll" target="lib" /> |
89 |
+ <file src="bin\nunit-agent.exe" target="lib" /> |
90 |
+ <file src="bin\nunit-agent.exe.config" target="lib" /> |
91 |
+- <file src="bin\nunit-agent-x86.exe" target="lib" /> |
92 |
+- <file src="bin\nunit-agent-x86.exe.config" target="lib" /> |
93 |
+ </files> |
94 |
+ </package> |
95 |
+\ No newline at end of file |
96 |
|
97 |
diff --git a/dev-util/nunit/nunit-3.0.1.ebuild b/dev-util/nunit/nunit-3.0.1.ebuild |
98 |
index 1f11e9f..3ff9fc7 100644 |
99 |
--- a/dev-util/nunit/nunit-3.0.1.ebuild |
100 |
+++ b/dev-util/nunit/nunit-3.0.1.ebuild |
101 |
@@ -32,22 +32,30 @@ S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" |
102 |
FILE_TO_BUILD=NUnit.proj |
103 |
METAFILETOBUILD="${S}/${FILE_TO_BUILD}" |
104 |
|
105 |
+NUGET_PACKAGE_VERSION="$(get_version_component_range 1-3)" |
106 |
+ |
107 |
src_prepare() { |
108 |
chmod -R +rw "${S}" || die |
109 |
eapply "${FILESDIR}/nunit-3.0.1-removing-tests-from-nproj.patch" |
110 |
+ eapply "${FILESDIR}/nunit-3.0.1-nuget.nuspec.patch" |
111 |
+ eapply "${FILESDIR}/nunit-3.0.1-nunit.console.nuspec.patch" |
112 |
+ eapply "${FILESDIR}/nunit-3.0.1-nunit.engine.nuspec.patch" |
113 |
enuget_restore "${METAFILETOBUILD}" |
114 |
|
115 |
if use debug; then |
116 |
DIR="Debug" |
117 |
else |
118 |
- DIR="Release" |
119 |
+ DIR="" |
120 |
fi |
121 |
- sed -i '/x86/d' "${S}/nuget/"*.nuspec || die |
122 |
- sed -i '/log4net/d' "${S}/nuget/"*.nuspec || die |
123 |
+ |
124 |
+ sed -i "s=\\\$version\\\$=${NUGET_PACKAGE_VERSION}=g" "${S}/nuget/"*.nuspec || die |
125 |
+ #sed -i "s=\\\${package.version}=${NUGET_PACKAGE_VERSION}=g" "${S}/nuget/"*.nuspec || die |
126 |
+ #sed -i '/test/d' "${S}/nuget/"*.nuspec || die |
127 |
+ #sed -i '/x86/d' "${S}/nuget/"*.nuspec || die |
128 |
+ #sed -i '/log4net/d' "${S}/nuget/"*.nuspec || die |
129 |
sed -i 's#\\#/#g' "${S}/nuget/"*.nuspec || die |
130 |
- sed -i "s#\${package.version}#$(get_version_component_range 1-3)#g" "${S}/nuget/"*.nuspec || die |
131 |
- sed -i "s#\${project.base.dir}##g" "${S}/nuget/"*.nuspec || die |
132 |
- sed -i "s#\${current.build.dir}#bin/${DIR}#g" "${S}/nuget/"*.nuspec || die |
133 |
+ #sed -i "s#\\${project.base.dir}##g" "${S}/nuget/"*.nuspec || die |
134 |
+ sed -i "s#bin/#bin/${DIR}/#g" "${S}/nuget/"*.nuspec || die |
135 |
default |
136 |
} |
137 |
|
138 |
@@ -55,6 +63,8 @@ src_compile() { |
139 |
exbuild "${METAFILETOBUILD}" |
140 |
enuspec "${S}/nuget/nunit.nuspec" |
141 |
enuspec "${S}/nuget/nunit.runners.nuspec" |
142 |
+ enuspec "${S}/nuget/nunit.console.nuspec" |
143 |
+ enuspec "${S}/nuget/nunit.engine.nuspec" |
144 |
} |
145 |
|
146 |
src_install() { |
147 |
@@ -94,6 +104,8 @@ src_install() { |
148 |
doins LICENSE.txt NOTICES.txt CHANGES.txt |
149 |
fi |
150 |
|
151 |
- enupkg "${WORKDIR}/NUnit.3.0.0.nupkg" |
152 |
- enupkg "${WORKDIR}/NUnit.Runners.$(get_version_component_range 1-3).nupkg" |
153 |
+ enupkg "${WORKDIR}/NUnit.${NUNIT_PACKAGE_VERSION}.nupkg" |
154 |
+ enupkg "${WORKDIR}/NUnit.Runners.${NUNIT_PACKAGE_VERSION}.nupkg" |
155 |
+ enupkg "${WORKDIR}/NUnit.Console.${NUNIT_PACKAGE_VERSION}.nupkg" |
156 |
+ enupkg "${WORKDIR}/NUnit.Engine.${NUNIT_PACKAGE_VERSION}.nupkg" |
157 |
} |