From 9ee5334a9020f58e815fffde47b4d586b4717500 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Aug 2013 22:50:38 -0600 Subject: patch java/nant to work with mono 3 --- java/nant/PKGBUILD | 14 +- java/nant/mono3.patch | 2645 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 2655 insertions(+), 4 deletions(-) create mode 100644 java/nant/mono3.patch (limited to 'java') diff --git a/java/nant/PKGBUILD b/java/nant/PKGBUILD index 02d9908a6..f57c8519f 100644 --- a/java/nant/PKGBUILD +++ b/java/nant/PKGBUILD @@ -1,19 +1,25 @@ -# Maintainer: Luke Shumaker pkgname=nant pkgver=0.92 -pkgrel=1 +pkgrel=2 pkgdesc="A free .NET build tool" arch=('i686' 'x86_64') url="http://nant.sourceforge.net" license=("GPL2") depends=('mono-basic') makedepends=('pkgconfig') -source=("http://downloads.sourceforge.net/nant/$pkgname-$pkgver-src.tar.gz") +source=("http://downloads.sourceforge.net/nant/$pkgname-$pkgver-src.tar.gz" 'mono3.patch') + +prepare() { + cd "$srcdir"/$pkgname-$pkgver + patch -p1 -i ../mono3.patch +} package() { cd "$srcdir"/$pkgname-$pkgver make -j1 install prefix=/usr DESTDIR="$pkgdir" } -md5sums=('d680b47f9b2ce197cec0fac7d7d60950') +md5sums=('d680b47f9b2ce197cec0fac7d7d60950' + '06fcf641b6f232c5890ad25c73b2459f') diff --git a/java/nant/mono3.patch b/java/nant/mono3.patch new file mode 100644 index 000000000..94518d6cd --- /dev/null +++ b/java/nant/mono3.patch @@ -0,0 +1,2645 @@ +diff -ruN nant-0.92.orig/src/NAnt.Console/App.config nant-0.92/src/NAnt.Console/App.config +--- nant-0.92.orig/src/NAnt.Console/App.config 2012-06-09 08:05:53.000000000 -0600 ++++ nant-0.92/src/NAnt.Console/App.config 2013-08-04 22:41:24.000000000 -0600 +@@ -18,2329 +18,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- true +- +- +- sn +- +- +- lc +- +- +- false +- +- +- false +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- true +- +- +- sn +- +- +- lc +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- +- +- true +- true +- true +- true +- +- +- true +- true +- +- +- sn +- +- +- lc +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- +- +- true +- true +- true +- true +- +- +- true +- true +- +- +- sn +- +- +- lc +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- +- +- true +- true +- true +- true +- +- +- true +- true +- +- +- sn +- +- +- lc +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- The .NET Framework 1.1 SDK is not installed. +- +- +- +- true +- true +- true +- +- +- cfresgen +- +- +- sn +- +- +- lc +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- The .NET Framework 2.0 SDK is not installed. +- +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- +- +- sn +- +- +- lc +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- +- +- true +- true +- true +- true +- +- +- true +- true +- +- +- sn +- +- +- lc +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- +- +- true +- true +- true +- true +- +- +- true +- true +- +- +- sn +- +- +- lc +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- +- +- true +- true +- true +- true +- +- +- true +- true +- +- +- sn +- +- +- lc +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- +- +- true +- true +- true +- true +- +- +- true +- true +- +- +- sn +- +- +- lc +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- ${csc.tool} +- true +- true +- true +- ${csc.supportsdocgeneration} +- true +- true +- true +- true +- +- +- mjs +- true +- +- +- ${mbas.tool} +- true +- +- +- ${resgen.tool} +- true +- +- +- sn +- true +- +- +- false +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- gmcs +- true +- true +- true +- ${csc.supportsdocgeneration} +- true +- true +- true +- true +- +- +- mjs +- strict +- +- +- vbnc +- true +- +- +- ${resgen.tool} +- true +- ${resgen.supportsexternalfilereferences} +- +- +- sn +- true +- +- +- false +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- gmcs +- true +- linq +- true +- true +- true +- true +- true +- true +- true +- +- +- mjs +- strict +- +- +- vbnc +- true +- +- +- true +- true +- +- +- sn +- true +- +- +- false +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- dmcs +- true +- linq +- true +- true +- true +- true +- true +- true +- true +- +- +- mjs +- strict +- +- +- vbnc +- true +- +- +- true +- true +- +- +- sn +- true +- +- +- false +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- smcs +- true +- true +- true +- true +- true +- true +- true +- true +- +- +- true +- true +- +- +- sn +- +- +- false +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- true +- +- +- sn +- +- +- false +- +- +- true +- +- +- true +- +- +- +- + + + +@@ -2415,18 +92,18 @@ + + + +- ++ + + + + + + +- true ++ false + + +- ${path::combine(prefix, 'lib/mono/1.0/mcs.exe')} +- true ++ ${path::combine(prefix, 'bin/mcs')} ++ false + true + true + ${csc.supportsdocgeneration} +@@ -2437,25 +114,25 @@ + + + mjs +- true ++ false + + +- ${path::combine(prefix, 'lib/mono/1.0/mbas.exe')} +- true ++ ${path::combine(prefix, 'bin/vbnc')} ++ false + + + ${resgen.tool} +- true ++ false + + + sn +- true ++ false + + + false + + +- true ++ false + + + +@@ -2502,9 +179,10 @@ + + + +- +- ++ + ++ ++ + + + +@@ -2518,7 +196,7 @@ + + + +- ++ + + + +@@ -2529,11 +207,11 @@ + + + +- true ++ false + + + gmcs +- true ++ false + true + true + ${csc.supportsdocgeneration} +@@ -2544,26 +222,26 @@ + + + mjs +- strict ++ false + + + vbnc +- true ++ false + + + ${resgen.tool} +- true ++ false + ${resgen.supportsexternalfilereferences} + + + sn +- true ++ false + + + false + + +- true ++ false + + + +@@ -2616,10 +294,11 @@ + + + ++ ++ ++ + + +- +- + + + +@@ -2627,15 +306,15 @@ + + + +- ++ + + + +- true ++ false + + + gmcs +- true ++ false + linq + true + true +@@ -2647,25 +326,25 @@ + + + mjs +- strict ++ false + + + vbnc +- true ++ false + + +- true ++ false + true + + + sn +- true ++ false + + + false + + +- true ++ false + + + +@@ -2721,11 +400,12 @@ + + + ++ ++ ++ + + + +- +- + + + +@@ -2733,15 +413,15 @@ + + + +- ++ + + + +- true ++ false + + + dmcs +- true ++ false + linq + true + true +@@ -2753,25 +433,25 @@ + + + mjs +- strict ++ false + + + vbnc +- true ++ false + + +- true ++ false + true + + + sn +- true ++ false + + + false + + +- true ++ false + + + +@@ -2824,22 +504,23 @@ + + + +- +- + + ++ ++ ++ + + + + Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/. + + +- ++ + + + + smcs +- true ++ false + true + true + true +diff -ruN nant-0.92.orig/src/NAnt.Core/Tasks/ExternalProgramBase.cs nant-0.92/src/NAnt.Core/Tasks/ExternalProgramBase.cs +--- nant-0.92.orig/src/NAnt.Core/Tasks/ExternalProgramBase.cs 2012-06-09 08:05:53.000000000 -0600 ++++ nant-0.92/src/NAnt.Core/Tasks/ExternalProgramBase.cs 2013-08-04 22:41:24.000000000 -0600 +@@ -633,6 +633,8 @@ + if (Project.TargetFramework.FrameworkDirectory != null) { + string frameworkDir = Project.TargetFramework.FrameworkDirectory.FullName; + fullPath = Path.Combine(frameworkDir, ExeName + ".exe"); ++ if (!File.Exists(fullPath)) ++ fullPath = Path.Combine(frameworkDir, ExeName); + } else { + throw new BuildException( + string.Format(CultureInfo.InvariantCulture, +@@ -644,6 +646,8 @@ + if (Project.TargetFramework.SdkDirectory != null) { + string sdkDirectory = Project.TargetFramework.SdkDirectory.FullName; + fullPath = Path.Combine(sdkDirectory, ExeName + ".exe"); ++ if (!File.Exists(fullPath)) ++ fullPath = Path.Combine(sdkDirectory, ExeName); + } else { + throw new BuildException( + string.Format(CultureInfo.InvariantCulture, +@@ -656,6 +660,10 @@ + if (!File.Exists (fullPath)) { + string toolPath = Project.TargetFramework.GetToolPath ( + ExeName + ".exe"); ++ if (toolPath == null) { ++ toolPath = Project.TargetFramework.GetToolPath ( ++ ExeName); ++ } + if (toolPath != null) { + fullPath = toolPath; + } -- cgit v1.2.3