1 |
commit: 0432230adeec60255658216eeec793874efb6a42 |
2 |
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Fri Jun 2 05:58:08 2017 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 2 06:16:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=0432230a |
7 |
|
8 |
NUnit-3.7.0 |
9 |
|
10 |
dev-dotnet/nunit-framework/metadata.xml | 8 ++ |
11 |
.../nunit-framework/nunit-framework-3.7.0.ebuild | 75 ++++++++++ |
12 |
.../mono-packaging-tools-1.4.3.ebuild | 154 +++++++++++++++++++++ |
13 |
dev-util/nunit-console/metadata.xml | 8 ++ |
14 |
dev-util/nunit-console/nunit-console-3.7.0.ebuild | 94 +++++++++++++ |
15 |
dev-util/nunit-gui/metadata.xml | 8 ++ |
16 |
dev-util/nunit-gui/nunit-gui-3.7.0.ebuild | 99 +++++++++++++ |
17 |
eclass/mpt-r20150903.eclass | 12 +- |
18 |
8 files changed, 452 insertions(+), 6 deletions(-) |
19 |
|
20 |
diff --git a/dev-dotnet/nunit-framework/metadata.xml b/dev-dotnet/nunit-framework/metadata.xml |
21 |
new file mode 100644 |
22 |
index 0000000..b1262f1 |
23 |
--- /dev/null |
24 |
+++ b/dev-dotnet/nunit-framework/metadata.xml |
25 |
@@ -0,0 +1,8 @@ |
26 |
+<?xml version="1.0" encoding="UTF-8"?> |
27 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
+<pkgmetadata> |
29 |
+ <maintainer type="project"> |
30 |
+ <email>dotnet@g.o</email> |
31 |
+ <description>Gentoo Dotnet Project</description> |
32 |
+ </maintainer> |
33 |
+</pkgmetadata> |
34 |
|
35 |
diff --git a/dev-dotnet/nunit-framework/nunit-framework-3.7.0.ebuild b/dev-dotnet/nunit-framework/nunit-framework-3.7.0.ebuild |
36 |
new file mode 100644 |
37 |
index 0000000..f071fa2 |
38 |
--- /dev/null |
39 |
+++ b/dev-dotnet/nunit-framework/nunit-framework-3.7.0.ebuild |
40 |
@@ -0,0 +1,75 @@ |
41 |
+# Copyright 1999-2017 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+# $Id$ |
44 |
+ |
45 |
+EAPI=6 |
46 |
+ |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+RESTRICT="mirror" |
49 |
+ |
50 |
+#USE_DOTNET="net20 net40 net45" |
51 |
+USE_DOTNET="net45" |
52 |
+IUSE="+net45 developer debug nupkg gac doc" |
53 |
+ |
54 |
+inherit mono-env gac nupkg |
55 |
+ |
56 |
+NAME="nunit" |
57 |
+HOMEPAGE="https://github.com/nunit/${NAME}" |
58 |
+ |
59 |
+EGIT_COMMIT="aa669b7e142954541d25fbb1a4ef660ca5f97f1a" |
60 |
+SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz" |
61 |
+S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" |
62 |
+ |
63 |
+SLOT="370" |
64 |
+ |
65 |
+DESCRIPTION="NUnit test suite for mono applications" |
66 |
+LICENSE="MIT" # https://github.com/nunit/nunit/blob/master/LICENSE.txt |
67 |
+ |
68 |
+CDEPEND=">=dev-lang/mono-5.0.1.1 |
69 |
+ net45? ( |
70 |
+ developer? ( |
71 |
+ debug? ( dev-dotnet/cecil[net45,gac,developer,debug] ) |
72 |
+ !debug? ( dev-dotnet/cecil[net45,gac,developer] ) |
73 |
+ ) |
74 |
+ !developer? ( |
75 |
+ debug? ( dev-dotnet/cecil[net45,gac,debug] ) |
76 |
+ !debug? ( dev-dotnet/cecil[net45,gac] ) |
77 |
+ ) |
78 |
+ ) |
79 |
+" |
80 |
+ |
81 |
+DEPEND="${CDEPEND} |
82 |
+ net45? ( |
83 |
+ developer? ( |
84 |
+ debug? ( dev-util/nant[net45,nupkg,developer,debug] ) |
85 |
+ !debug? ( dev-util/nant[net45,nupkg,developer] ) |
86 |
+ ) |
87 |
+ !developer? ( |
88 |
+ debug? ( dev-util/nant[net45,nupkg,debug] ) |
89 |
+ !debug? ( dev-util/nant[net45,nupkg] ) |
90 |
+ ) |
91 |
+ ) |
92 |
+" |
93 |
+ |
94 |
+RDEPEND="${CDEPEND} |
95 |
+" |
96 |
+ |
97 |
+FILE_TO_BUILD=src/NUnitFramework/framework/nunit.framework-4.5.csproj |
98 |
+METAFILETOBUILD="${S}/${FILE_TO_BUILD}" |
99 |
+ |
100 |
+NUGET_PACKAGE_VERSION="$(get_version_component_range 1-3)" |
101 |
+ |
102 |
+src_compile() { |
103 |
+ exbuild_strong "${METAFILETOBUILD}" |
104 |
+} |
105 |
+ |
106 |
+src_install() { |
107 |
+ if use debug; then |
108 |
+ DIR=Debug |
109 |
+ else |
110 |
+ DIR=Release |
111 |
+ fi |
112 |
+ egacinstall "bin/${DIR}/net-4.5/nunit.framework.dll" |
113 |
+ einstall_pc_file "${PN}" "${PV}" "nunit.framework" |
114 |
+} |
115 |
+ |
116 |
|
117 |
diff --git a/dev-util/mono-packaging-tools/mono-packaging-tools-1.4.3.ebuild b/dev-util/mono-packaging-tools/mono-packaging-tools-1.4.3.ebuild |
118 |
new file mode 100644 |
119 |
index 0000000..9f2b6d3 |
120 |
--- /dev/null |
121 |
+++ b/dev-util/mono-packaging-tools/mono-packaging-tools-1.4.3.ebuild |
122 |
@@ -0,0 +1,154 @@ |
123 |
+# Copyright 1999-2016 Gentoo Foundation |
124 |
+# Distributed under the terms of the GNU General Public License v2 |
125 |
+# $Id$ |
126 |
+ |
127 |
+EAPI=6 # >=portage-2.2.25 |
128 |
+KEYWORDS="~x86 ~amd64" |
129 |
+RESTRICT="mirror" |
130 |
+ |
131 |
+USE_DOTNET="net45" |
132 |
+# debug = debug configuration (symbols and defines for debugging) |
133 |
+# test = allow NUnit tests to run |
134 |
+# developer = generate symbols information (to view line numbers in stack traces, either in debug or release configuration) |
135 |
+# aot = compile to machine code and store to disk during install, to save time later during startups |
136 |
+# nupkg = create .nupkg file from .nuspec |
137 |
+# gac = install into gac |
138 |
+# pkg-config = register in pkg-config database |
139 |
+IUSE="+${USE_DOTNET} debug +developer test +aot doc" |
140 |
+ |
141 |
+TOOLS_VERSION=14.0 |
142 |
+ |
143 |
+inherit gac nupkg |
144 |
+ |
145 |
+get_revision() |
146 |
+{ |
147 |
+ git rev-list --count $2..$1 |
148 |
+} |
149 |
+ |
150 |
+get_dlldir() { |
151 |
+ echo /usr/lib64/mono/${PN} |
152 |
+} |
153 |
+ |
154 |
+NAME="mono-packaging-tools" |
155 |
+HOMEPAGE="http://arsenshnurkov.github.io/mono-packaging-tools" |
156 |
+ |
157 |
+REPOSITORY_URL="https://github.com/ArsenShnurkov/${NAME}" |
158 |
+ |
159 |
+EGIT_COMMIT="c5a6f4f38b2ad5d5707c12a527a6639fc0adab59" |
160 |
+SRC_URI="${REPOSITORY_URL}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz" |
161 |
+S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" |
162 |
+ |
163 |
+SLOT="0" |
164 |
+ |
165 |
+DESCRIPTION="Command line utilities for packaging mono assemblies with portage" |
166 |
+LICENSE="GPL-3" |
167 |
+LICENSE_URL="https://raw.githubusercontent.com/ArsenShnurkov/mono-packaging-tools/master/LICENSE" |
168 |
+ |
169 |
+COMMON_DEPENDENCIES="|| ( >=dev-lang/mono-4.2 <dev-lang/mono-9999 ) |
170 |
+ dev-dotnet/mono-options[gac] |
171 |
+ >=dev-dotnet/slntools-1.1.3_p201508170-r1[gac] |
172 |
+ >=dev-dotnet/eto-parse-1.4.0[gac] |
173 |
+ " |
174 |
+DEPEND="${COMMON_DEPENDENCIES} |
175 |
+ dev-dotnet/msbuildtasks |
176 |
+ sys-apps/sed" |
177 |
+RDEPEND="${COMMON_DEPENDENCIES} |
178 |
+ " |
179 |
+ |
180 |
+NUSPEC_VERSION=${PV} |
181 |
+ASSEMBLY_VERSION=${PV} |
182 |
+ |
183 |
+SLN_FILE="mono-packaging-tools.sln" |
184 |
+METAFILETOBUILD="${S}/${SLN_FILE}" |
185 |
+NUSPEC_ID="${NAME}" |
186 |
+COMMIT_DATE_INDEX="$(get_version_component_count ${PV} )" |
187 |
+COMMIT_DATE="$(get_version_component_range $COMMIT_DATE_INDEX ${PV} )" |
188 |
+NUSPEC_FILENAME="${PN}.nuspec" |
189 |
+#ICON_FILENAME="${PN}.png" |
190 |
+#ICON_FINALNAME="${NUSPEC_ID}.${NUSPEC_VERSION}.png" |
191 |
+#ICON_PATH="$(get_nuget_trusted_icons_location)/${ICON_FINALNAME}" |
192 |
+ |
193 |
+src_prepare() { |
194 |
+ eapply "${FILESDIR}/MSBuildExtensionsPath.patch" |
195 |
+ |
196 |
+ #change version in .nuspec |
197 |
+ # PV = Package version (excluding revision, if any), for example 6.3. |
198 |
+ # It should reflect the upstream versioning scheme |
199 |
+ sed "s/@VERSION@/${NUSPEC_VERSION}/g" "${FILESDIR}/${NUSPEC_ID}.nuspec" >"${S}/${NUSPEC_ID}.nuspec" || die |
200 |
+ |
201 |
+ # restoring is not necessary after switching to GAC references |
202 |
+ # enuget_restore "${METAFILETOBUILD}" |
203 |
+ default |
204 |
+} |
205 |
+ |
206 |
+src_compile() { |
207 |
+ exbuild_strong /p:VersionNumber="${ASSEMBLY_VERSION}" "${METAFILETOBUILD}" |
208 |
+ enuspec "${NUSPEC_ID}.nuspec" |
209 |
+} |
210 |
+ |
211 |
+src_install() { |
212 |
+ # install dlls |
213 |
+ insinto "$(get_dlldir)/slot-${SLOT}" |
214 |
+ if use debug; then |
215 |
+ DIR="Debug" |
216 |
+ else |
217 |
+ DIR="Release" |
218 |
+ fi |
219 |
+ doins mpt-core/bin/${DIR}/mpt-core.dll |
220 |
+ dosym slot-${SLOT}/mpt-core.dll $(get_dlldir)/mpt-core.dll |
221 |
+ einstall_pc_file ${PN} ${ASSEMBLY_VERSION} mpt-core |
222 |
+ |
223 |
+ insinto "/usr/share/${PN}/slot-${SLOT}" |
224 |
+ install_tool mpt-gitmodules |
225 |
+ install_tool mpt-sln |
226 |
+ install_tool mpt-csproj |
227 |
+ install_tool mpt-machine |
228 |
+ install_tool mpt-nuget |
229 |
+ |
230 |
+ enupkg "${WORKDIR}/${NUSPEC_ID}.${NUSPEC_VERSION}.nupkg" |
231 |
+ |
232 |
+ if use doc; then |
233 |
+ dodoc README.md |
234 |
+ fi |
235 |
+} |
236 |
+ |
237 |
+pkg_prerm() { |
238 |
+ if use gac; then |
239 |
+ # TODO determine version for uninstall from slot-N dir |
240 |
+ einfo "removing from GAC" |
241 |
+ gacutil -u mpt-core |
242 |
+ # don't die, it there is no such assembly in GAC |
243 |
+ fi |
244 |
+} |
245 |
+ |
246 |
+pkg_postinst() { |
247 |
+ if use gac; then |
248 |
+ einfo "adding to GAC" |
249 |
+ gacutil -i "$(get_dlldir)/slot-${SLOT}/mpt-core.dll" || die |
250 |
+ fi |
251 |
+} |
252 |
+ |
253 |
+install_tool() { |
254 |
+ if use debug; then |
255 |
+ DIR="Debug" |
256 |
+ else |
257 |
+ DIR="Release" |
258 |
+ fi |
259 |
+ |
260 |
+ # installs .exe, .exe.config (if any), .mdb (if exists) |
261 |
+ doins "$1"/bin/${DIR}/*.exe |
262 |
+ if [ -f "$1"/bin/${DIR}/*.exe.config ]; then |
263 |
+ doins "$1"/bin/${DIR}/*.exe.config |
264 |
+ fi |
265 |
+ if use developer; then |
266 |
+ doins "$1"/bin/${DIR}/*.mdb |
267 |
+ fi |
268 |
+ |
269 |
+ MONO=/usr/bin/mono |
270 |
+ |
271 |
+ if use debug; then |
272 |
+ make_wrapper "$1" "${MONO} --debug /usr/share/${PN}/slot-${SLOT}/$1.exe" |
273 |
+ else |
274 |
+ make_wrapper "$1" "${MONO} /usr/share/${PN}/slot-${SLOT}/$1.exe" |
275 |
+ fi; |
276 |
+} |
277 |
|
278 |
diff --git a/dev-util/nunit-console/metadata.xml b/dev-util/nunit-console/metadata.xml |
279 |
new file mode 100644 |
280 |
index 0000000..b1262f1 |
281 |
--- /dev/null |
282 |
+++ b/dev-util/nunit-console/metadata.xml |
283 |
@@ -0,0 +1,8 @@ |
284 |
+<?xml version="1.0" encoding="UTF-8"?> |
285 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
286 |
+<pkgmetadata> |
287 |
+ <maintainer type="project"> |
288 |
+ <email>dotnet@g.o</email> |
289 |
+ <description>Gentoo Dotnet Project</description> |
290 |
+ </maintainer> |
291 |
+</pkgmetadata> |
292 |
|
293 |
diff --git a/dev-util/nunit-console/nunit-console-3.7.0.ebuild b/dev-util/nunit-console/nunit-console-3.7.0.ebuild |
294 |
new file mode 100644 |
295 |
index 0000000..0b7134b |
296 |
--- /dev/null |
297 |
+++ b/dev-util/nunit-console/nunit-console-3.7.0.ebuild |
298 |
@@ -0,0 +1,94 @@ |
299 |
+# Copyright 1999-2017 Gentoo Foundation |
300 |
+# Distributed under the terms of the GNU General Public License v2 |
301 |
+# $Id$ |
302 |
+ |
303 |
+EAPI=6 |
304 |
+ |
305 |
+KEYWORDS="~amd64 ~x86" |
306 |
+RESTRICT="mirror" |
307 |
+ |
308 |
+USE_DOTNET="net45" |
309 |
+IUSE="+net45 developer debug nupkg gac doc" |
310 |
+ |
311 |
+SLOT="3" |
312 |
+ |
313 |
+inherit mono-env gac nupkg |
314 |
+ |
315 |
+NAME="nunit-console" |
316 |
+HOMEPAGE="https://github.com/nunit/${NAME}" |
317 |
+ |
318 |
+EGIT_BRANCH="mono4" |
319 |
+EGIT_COMMIT="ce1cd856258dac867da4044eed5864de225c148d" |
320 |
+SRC_URI="https://github.com/ArsenShnurkov/nunit-console/archive/3.7.0.tar.gz -> ${PN}-${PV}.tar.gz" |
321 |
+S="${WORKDIR}/${NAME}-${PV}" |
322 |
+ |
323 |
+DESCRIPTION="NUnit Console runner and test engine" |
324 |
+LICENSE="MIT" # https://github.com/nunit/nunit/blob/master/LICENSE.txt |
325 |
+#USE_DOTNET="net20 net40 net45" |
326 |
+ |
327 |
+CDEPEND=">=dev-lang/mono-5.0.1.1 |
328 |
+ >=dev-dotnet/nunit-framework-3.7.0 |
329 |
+ net45? ( |
330 |
+ developer? ( |
331 |
+ debug? ( dev-dotnet/cecil[net45,gac,developer,debug] ) |
332 |
+ !debug? ( dev-dotnet/cecil[net45,gac,developer] ) |
333 |
+ ) |
334 |
+ !developer? ( |
335 |
+ debug? ( dev-dotnet/cecil[net45,gac,debug] ) |
336 |
+ !debug? ( dev-dotnet/cecil[net45,gac] ) |
337 |
+ ) |
338 |
+ ) |
339 |
+" |
340 |
+ |
341 |
+DEPEND="${CDEPEND} |
342 |
+ net45? ( |
343 |
+ developer? ( |
344 |
+ debug? ( dev-util/nant[net45,nupkg,developer,debug] ) |
345 |
+ !debug? ( dev-util/nant[net45,nupkg,developer] ) |
346 |
+ ) |
347 |
+ !developer? ( |
348 |
+ debug? ( dev-util/nant[net45,nupkg,debug] ) |
349 |
+ !debug? ( dev-util/nant[net45,nupkg] ) |
350 |
+ ) |
351 |
+ ) |
352 |
+" |
353 |
+ |
354 |
+RDEPEND="${CDEPEND} |
355 |
+ !dev-util/nunit |
356 |
+" |
357 |
+ |
358 |
+METAFILETOBUILD="${S}/${FILE_TO_BUILD}" |
359 |
+ |
360 |
+NUGET_PACKAGE_VERSION="$(get_version_component_range 1-3)" |
361 |
+ |
362 |
+src_compile() { |
363 |
+ exbuild_strong "src/NUnitEngine/nunit.engine.api/nunit.engine.api.csproj" |
364 |
+ exbuild_strong "src/NUnitEngine/nunit.engine/nunit.engine.csproj" |
365 |
+ exbuild "src/NUnitEngine/nunit-agent/nunit-agent.csproj" |
366 |
+ exbuild "src/NUnitConsole/nunit3-console/nunit3-console.csproj" |
367 |
+} |
368 |
+ |
369 |
+src_install() { |
370 |
+ if use debug; then |
371 |
+ DIR="Debug" |
372 |
+ else |
373 |
+ DIR="Release" |
374 |
+ fi |
375 |
+ |
376 |
+ SLOTTEDDIR="/usr/share/nunit-${SLOT}/" |
377 |
+ insinto "${SLOTTEDDIR}" |
378 |
+ doins bin/${DIR}/*.{config,dll,exe} |
379 |
+ # install: cannot stat 'bin/Release/*.mdb': No such file or directory |
380 |
+ if use developer; then |
381 |
+ doins bin/${DIR}/*.mdb |
382 |
+ fi |
383 |
+ egacinstall "bin/${DIR}/nunit.engine.dll" |
384 |
+ egacinstall "bin/${DIR}/nunit.engine.api.dll" |
385 |
+ einstall_pc_file "${PN}" "${PV}" "nunit.engine" "nunit.engine.api" |
386 |
+ |
387 |
+ make_wrapper nunit "mono ${SLOTTEDDIR}/nunit3-console.exe" |
388 |
+ |
389 |
+ if use doc; then |
390 |
+ doins LICENSE.txt NOTICES.txt CHANGES.txt |
391 |
+ fi |
392 |
+} |
393 |
|
394 |
diff --git a/dev-util/nunit-gui/metadata.xml b/dev-util/nunit-gui/metadata.xml |
395 |
new file mode 100644 |
396 |
index 0000000..b1262f1 |
397 |
--- /dev/null |
398 |
+++ b/dev-util/nunit-gui/metadata.xml |
399 |
@@ -0,0 +1,8 @@ |
400 |
+<?xml version="1.0" encoding="UTF-8"?> |
401 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
402 |
+<pkgmetadata> |
403 |
+ <maintainer type="project"> |
404 |
+ <email>dotnet@g.o</email> |
405 |
+ <description>Gentoo Dotnet Project</description> |
406 |
+ </maintainer> |
407 |
+</pkgmetadata> |
408 |
|
409 |
diff --git a/dev-util/nunit-gui/nunit-gui-3.7.0.ebuild b/dev-util/nunit-gui/nunit-gui-3.7.0.ebuild |
410 |
new file mode 100644 |
411 |
index 0000000..5678fd6 |
412 |
--- /dev/null |
413 |
+++ b/dev-util/nunit-gui/nunit-gui-3.7.0.ebuild |
414 |
@@ -0,0 +1,99 @@ |
415 |
+# Copyright 1999-2017 Gentoo Foundation |
416 |
+# Distributed under the terms of the GNU General Public License v2 |
417 |
+# $Id$ |
418 |
+ |
419 |
+EAPI=6 |
420 |
+KEYWORDS="~amd64 ~x86" |
421 |
+RESTRICT="mirror" |
422 |
+ |
423 |
+SLOT="3" |
424 |
+ |
425 |
+USE_DOTNET="net45" |
426 |
+IUSE="+net45 developer debug nupkg gac doc" |
427 |
+ |
428 |
+inherit mono-env gac nupkg mpt-r20150903 |
429 |
+ |
430 |
+NAME="nunit-gui" |
431 |
+HOMEPAGE="https://github.com/nunit/${NAME}" |
432 |
+ |
433 |
+EGIT_COMMIT="df9dd76fcaad5679c08cca0775b6f43e96852a21" |
434 |
+SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz" |
435 |
+S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" |
436 |
+ |
437 |
+DESCRIPTION="NUnit test suite for mono applications" |
438 |
+LICENSE="MIT" # https://github.com/nunit/nunit/blob/master/LICENSE.txt |
439 |
+ |
440 |
+CDEPEND=">=dev-lang/mono-5.0.1.1 |
441 |
+ >=dev-dotnet/nunit-framework-3.7.0 |
442 |
+ >=dev-util/nunit-console-3.7.0 |
443 |
+ dev-dotnet/cecil |
444 |
+ net45? ( |
445 |
+ developer? ( |
446 |
+ debug? ( dev-dotnet/cecil[net45,gac,developer,debug] ) |
447 |
+ !debug? ( dev-dotnet/cecil[net45,gac,developer] ) |
448 |
+ ) |
449 |
+ !developer? ( |
450 |
+ debug? ( dev-dotnet/cecil[net45,gac,debug] ) |
451 |
+ !debug? ( dev-dotnet/cecil[net45,gac] ) |
452 |
+ ) |
453 |
+ ) |
454 |
+" |
455 |
+ |
456 |
+DEPEND="${CDEPEND} |
457 |
+ net45? ( |
458 |
+ developer? ( |
459 |
+ debug? ( dev-util/nant[net45,nupkg,developer,debug] ) |
460 |
+ !debug? ( dev-util/nant[net45,nupkg,developer] ) |
461 |
+ ) |
462 |
+ !developer? ( |
463 |
+ debug? ( dev-util/nant[net45,nupkg,debug] ) |
464 |
+ !debug? ( dev-util/nant[net45,nupkg] ) |
465 |
+ ) |
466 |
+ ) |
467 |
+" |
468 |
+ |
469 |
+RDEPEND="${CDEPEND} |
470 |
+" |
471 |
+ |
472 |
+FILE_TO_BUILD="${NAME}.sln" |
473 |
+METAFILETOBUILD="${S}/${FILE_TO_BUILD}" |
474 |
+ |
475 |
+NUGET_PACKAGE_VERSION="$(get_version_component_range 1-3)" |
476 |
+ |
477 |
+src_prepare() { |
478 |
+ empt-sln --remove-proj="nunit-gui.tests" --sln-file="${METAFILETOBUILD}" |
479 |
+ empt-csproj --replace-reference="nunit.framework" --dir="${S}" |
480 |
+ empt-csproj --replace-reference="nunit.engine" --dir="${S}" |
481 |
+ empt-csproj --replace-reference="nunit.engine.api" --dir="${S}" |
482 |
+ empt-csproj --replace-reference="Mono.Cecil" --dir="${S}" |
483 |
+ empt-csproj --remove-reference="NUnit.System.Linq" --dir="${S}" |
484 |
+ sed -i '/<CopyToOutputDirectory>PreserveNewest<\/CopyToOutputDirectory>/d' "${S}/src/nunit-gui/nunit-gui.csproj" || die |
485 |
+ eapply_user |
486 |
+} |
487 |
+ |
488 |
+src_compile() { |
489 |
+ exbuild "${METAFILETOBUILD}" |
490 |
+} |
491 |
+ |
492 |
+src_install() { |
493 |
+ if use debug; then |
494 |
+ DIR="Debug" |
495 |
+ else |
496 |
+ DIR="Release" |
497 |
+ fi |
498 |
+ |
499 |
+ SLOTTEDDIR="/usr/share/nunit-${SLOT}/" |
500 |
+ insinto "${SLOTTEDDIR}" |
501 |
+ doins bin/${DIR}/*.{config,dll,exe} |
502 |
+ rm "${D}/usr/share/nunit-3/nunit.engine.api.dll" || die #it is isntalled by dev-util/nunit-console package |
503 |
+ # install: cannot stat 'bin/Release/*.mdb': No such file or directory |
504 |
+ if use developer; then |
505 |
+ doins bin/${DIR}/*.mdb |
506 |
+ fi |
507 |
+ |
508 |
+ #make_wrapper nunit "mono ${SLOTTEDDIR}/nunit3-console.exe" |
509 |
+ |
510 |
+ if use doc; then |
511 |
+ doins LICENSE.txt NOTICES.txt CHANGES.txt |
512 |
+ fi |
513 |
+} |
514 |
|
515 |
diff --git a/eclass/mpt-r20150903.eclass b/eclass/mpt-r20150903.eclass |
516 |
index 345f390..56c1783 100644 |
517 |
--- a/eclass/mpt-r20150903.eclass |
518 |
+++ b/eclass/mpt-r20150903.eclass |
519 |
@@ -12,7 +12,7 @@ |
520 |
|
521 |
TOOLS_PATH=/usr/bin |
522 |
|
523 |
-DEPEND+=" dev-util/mono-packaging-tools" |
524 |
+DEPEND+=" >=dev-util/mono-packaging-tools-1.4.3" |
525 |
|
526 |
# @FUNCTION: empt-gitmodules |
527 |
# @DESCRIPTION: wraps mpt-gitmodules |
528 |
@@ -23,23 +23,23 @@ empt-gitmodules() { |
529 |
# @FUNCTION: empt-sln |
530 |
# @DESCRIPTION: wraps mpt-sln |
531 |
empt-sln() { |
532 |
- "${TOOLS_PATH}/empt-sln" $@ || die |
533 |
+ "${TOOLS_PATH}/mpt-sln" $@ || die |
534 |
} |
535 |
|
536 |
# @FUNCTION: empt-csproj |
537 |
# @DESCRIPTION: wraps mpt-csproj |
538 |
empt-csproj() { |
539 |
- "${TOOLS_PATH}/empt-csproj" $@ || die |
540 |
+ "${TOOLS_PATH}/mpt-csproj" $@ || die |
541 |
} |
542 |
|
543 |
# @FUNCTION: empt-machine |
544 |
-# @DESCRIPTION: wraps empt-machine |
545 |
+# @DESCRIPTION: wraps mpt-machine |
546 |
empt-machine() { |
547 |
- "${TOOLS_PATH}/empt-machine" $@ || die |
548 |
+ "${TOOLS_PATH}/mpt-machine" $@ || die |
549 |
} |
550 |
|
551 |
# @FUNCTION: empt-nuget |
552 |
# @DESCRIPTION: wraps empt-nuget |
553 |
empt-nuget() { |
554 |
- "${TOOLS_PATH}/empt-nuget" $@ || die |
555 |
+ "${TOOLS_PATH}/mpt-nuget" $@ || die |
556 |
} |