summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Anders Ladegaard Marchsteiner <alm.anma@gmail.com> 2015-07-07 11:06:45 +0200
committerAvatar Kylie McClain <somasis@exherbo.org> 2015-08-06 03:56:27 +0200
commit8c35517b811ad3dd5a2f14fd50bc5c59be50d58f (patch)
tree9e1cdcd8d89a147c6e0a6eadf09f78e572362ec4
parent3d82102267cb47efa932cfdec6f0e4843d2fe27f (diff)
downloadmono-8c35517b811ad3dd5a2f14fd50bc5c59be50d58f.tar.gz
mono-8c35517b811ad3dd5a2f14fd50bc5c59be50d58f.tar.xz
Add mono-4.0.2.5 and mask it.
Change-Id: I5aa05e1530bce29ae9013985cea6907fd1b02a50 Reviewed-on: https://galileo.mailstation.de/gerrit/2815 Reviewed-by: Jenkins <philantrop@gmail.com> Reviewed-by: Kylie McClain <somasis@exherbo.org>
-rw-r--r--metadata/repository_mask.conf6
-rw-r--r--packages/dev-lang/mono/files/remove-test-that-requires-non-existent-test-runner.patch18
-rw-r--r--packages/dev-lang/mono/mono-3.12.0.exheres-073
-rw-r--r--packages/dev-lang/mono/mono-4.0.2.5.exheres-011
-rw-r--r--packages/dev-lang/mono/mono-lang.exlib79
5 files changed, 115 insertions, 72 deletions
diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf
index e69de29..06d3148 100644
--- a/metadata/repository_mask.conf
+++ b/metadata/repository_mask.conf
@@ -0,0 +1,6 @@
+dev-lang/mono[>=4.0.2.5] [[
+ author = [ Anders Ladegaard Marchsteiner <alm.anma@gmail.com> ]
+ date = [ 27 Jul 2015 ]
+ token = testing
+ description = [ gmcs tool is now called mcs. mask until dependent packages are updated ]
+]]
diff --git a/packages/dev-lang/mono/files/remove-test-that-requires-non-existent-test-runner.patch b/packages/dev-lang/mono/files/remove-test-that-requires-non-existent-test-runner.patch
new file mode 100644
index 0000000..d99008a
--- /dev/null
+++ b/packages/dev-lang/mono/files/remove-test-that-requires-non-existent-test-runner.patch
@@ -0,0 +1,18 @@
+Source: written by Anders Ladegaard Marchsteiner <alm.anma@gmail.com>
+Upstream: no
+Reason: the test-runner isn't included
+
+diff -urpN a/mono/tests/Makefile.am b/mono/tests/Makefile.am
+--- a/mono/tests/Makefile.am 2015-07-08 10:59:55.141601882 +0200
++++ b/mono/tests/Makefile.am 2015-07-08 11:00:36.266985401 +0200
+@@ -837,9 +837,7 @@ runtest: $(TESTSI_CS) $(TESTSI_IL) $(TES
+ exit 1; \
+ fi
+
+-runtest-managed: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
+- @if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
+- $(RUNTIME) ./test-runner.exe -j a --disabled "$${disabled_tests}" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL)
++runtest-managed:
+
+ testjit:
+ @if test x$(M) != x0; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi
diff --git a/packages/dev-lang/mono/mono-3.12.0.exheres-0 b/packages/dev-lang/mono/mono-3.12.0.exheres-0
index 796dde2..1bc5f4a 100644
--- a/packages/dev-lang/mono/mono-3.12.0.exheres-0
+++ b/packages/dev-lang/mono/mono-3.12.0.exheres-0
@@ -1,78 +1,7 @@
# Copyright 2008 Saleem Abdulrasool <compnerd@compnerd.org>
# Distributed under the temrs of the GNU General Public License v2
-require mono autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.13 ] ]
+require mono-lang
-SUMMARY="An opensource implementation of the .NET framework"
-HOMEPAGE="http://www.mono-project.org/"
-DOWNLOADS="http://download.mono-project.com/sources/${PN}/${PNV}.tar.bz2"
-
-LICENCES="( GPL-2 LGPL-2 X11 )"
-SLOT="0"
PLATFORMS="~amd64 ~x86"
-MYOPTIONS="X"
-
-DEPENDENCIES="
- build:
- sys-devel/bison
- sys-devel/gettext[>=0.10.35]
- virtual/pkg-config[>=0.20]
- build+run:
- X? (
- dev-dotnet/libgdiplus[>=2]
- x11-libs/libX11
- )
-"
-
-src_prepare() {
- edo sed \
- -e "s/pkg-config/$(exhost --tool-prefix)pkg-config/g" \
- -i mcs/class/Mono.Posix/Makefile \
- -i mcs/mcs/driver.cs \
- -i mcs/tools/mkbundle/mkbundle.cs
-
- # once this gets fixed upstream,
- # autotools exlib is no more required
- edo sed \
- -e 's/^\tcpp/\t$(CPP)/' \
- -i mono/mini/Makefile.am.in
-
- autotools_src_prepare
-}
-
-src_configure() {
- if ! option X ; then
- export X11=libX11.so
- fi
-
- econf \
- --enable-boehm \
- --enable-parallel-mark \
- --enable-system-aot \
- --disable-llvm \
- --with-gc=included \
- --with-libgdiplus=$(option X && echo 'installed' || echo 'no') \
- --with-profile2 \
- --with-profile4 \
- --with-profile4_5 \
- --with-sgen \
- --without-ikvm-native \
- --without-monodroid \
- --without-monotouch \
- --without-moonlight \
- --without-xen_opt \
- $(option_with X x)
-}
-
-src_test() {
- edo pushd mono/tests
- # Disable three failing tests (last checked: 3.12.0)
- EXTRA_DISABLED_TESTS="appdomain-unload-doesnot-raise-pending-events.exe \
- delegate2.exe threadpool-exceptions5.exe" emake check
- edo popd
-
- edo pushd mcs/tests
- emake check
- edo popd
-}
diff --git a/packages/dev-lang/mono/mono-4.0.2.5.exheres-0 b/packages/dev-lang/mono/mono-4.0.2.5.exheres-0
new file mode 100644
index 0000000..37caa07
--- /dev/null
+++ b/packages/dev-lang/mono/mono-4.0.2.5.exheres-0
@@ -0,0 +1,11 @@
+# Copyright 2008 Saleem Abdulrasool <compnerd@compnerd.org>
+# Distributed under the temrs of the GNU General Public License v2
+
+require mono-lang
+
+PLATFORMS="~amd64 ~x86"
+
+DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/remove-test-that-requires-non-existent-test-runner.patch" )
+
+WORK="${WORKBASE}/${PN}-$(ever range 1-3)"
+
diff --git a/packages/dev-lang/mono/mono-lang.exlib b/packages/dev-lang/mono/mono-lang.exlib
new file mode 100644
index 0000000..c7b0e88
--- /dev/null
+++ b/packages/dev-lang/mono/mono-lang.exlib
@@ -0,0 +1,79 @@
+# Copyright 2008 Saleem Abdulrasool <compnerd@compnerd.org>
+# Distributed under the temrs of the GNU General Public License v2
+
+require mono autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.13 ] ]
+
+export_exlib_phases src_prepare src_configure src_test
+
+SUMMARY="An opensource implementation of the .NET framework"
+HOMEPAGE="http://www.mono-project.org/"
+DOWNLOADS="http://download.mono-project.com/sources/${PN}/${PNV}.tar.bz2"
+
+LICENCES="( GPL-2 LGPL-2 X11 )"
+SLOT="0"
+MYOPTIONS="X"
+
+DEPENDENCIES="
+ build:
+ sys-devel/bison
+ sys-devel/gettext[>=0.10.35]
+ virtual/pkg-config[>=0.20]
+ build+run:
+ X? (
+ dev-dotnet/libgdiplus[>=2]
+ x11-libs/libX11
+ )
+"
+
+mono-lang_src_prepare() {
+ edo sed \
+ -e "s/pkg-config/$(exhost --tool-prefix)pkg-config/g" \
+ -i mcs/class/Mono.Posix/Makefile \
+ -i mcs/mcs/driver.cs \
+ -i mcs/tools/mkbundle/mkbundle.cs
+
+ # once this gets fixed upstream,
+ # autotools exlib is no more required
+ edo sed \
+ -e 's/^\tcpp/\t$(CPP)/' \
+ -i mono/mini/Makefile.am.in
+
+ autotools_src_prepare
+}
+
+mono-lang_src_configure() {
+ if ! option X ; then
+ export X11=libX11.so
+ fi
+
+ econf \
+ --enable-boehm \
+ --enable-parallel-mark \
+ --enable-system-aot \
+ --disable-llvm \
+ --with-gc=included \
+ --with-libgdiplus=$(option X && echo 'installed' || echo 'no') \
+ --with-profile2 \
+ --with-profile4 \
+ --with-profile4_5 \
+ --with-sgen \
+ --without-ikvm-native \
+ --without-monodroid \
+ --without-monotouch \
+ --without-moonlight \
+ --without-xen_opt \
+ $(option_with X x)
+}
+
+mono-lang_src_test() {
+ edo pushd mono/tests
+ # Disable three failing tests (last checked: 3.12.0)
+ EXTRA_DISABLED_TESTS="appdomain-unload-doesnot-raise-pending-events.exe \
+ delegate2.exe threadpool-exceptions5.exe" emake check
+ edo popd
+
+ edo pushd mcs/tests
+ emake check
+ edo popd
+}
+