diff options
Diffstat (limited to 'java')
54 files changed, 4637 insertions, 0 deletions
diff --git a/java/antlr2/PKGBUILD b/java/antlr2/PKGBUILD new file mode 100644 index 000000000..de5262698 --- /dev/null +++ b/java/antlr2/PKGBUILD @@ -0,0 +1,99 @@ +# Maintainer: luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (Arch): Andrea Scarpino <andrea@archlinux.org> +# Contributor: George Giorgidze <giorgidze (at) gmail.com> +# Contributor: Stefan Husmann <stefan-husmann@t-online.de> + +pkgbase=antlr2 +pkgname=(antlr2 antlr2-{java,python2,cxx,sharp}) +pkgver=2.7.7 +pkgdesc="ANother Tool for Language Recognition" +url="http://www.antlr2.org/" +license=('custom:Public Domain') + +pkgrel=4.1 +arch=('i686' 'x86_64') +makedepends=('java-environment' 'python2' 'sh' 'nant' 'jh') +source=("http://www.antlr2.org/download/antlr-${pkgver}.tar.gz" + "http://repo.maven.apache.org/maven2/antlr/antlr/$pkgver/antlr-$pkgver.pom" + 'runantlr2.sh' 'gcc4.4.patch' 'mono.patch') + +build() { + cd "${srcdir}/antlr-${pkgver}" + + patch -Np1 -i "${srcdir}"/gcc4.4.patch + patch -Np1 -i "${srcdir}"/mono.patch + + ./configure --prefix=/usr --disable-examples + make -j1 + + cd lib/csharp + nant release +} + +_install_license() { + install -Dm644 "$srcdir"/antlr-${pkgver}/LICENSE.txt \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_antlr2() { + depends=('sh' 'antlr2-java') + + install -Dm755 "$srcdir"/runantlr2.sh "$pkgdir"/usr/bin/runantlr2 + _install_license +} + +package_antlr2-java() { + pkgdesc+=" (Java version)" + depends=('java-runtime') + + provides=("java-antlr2=$pkgver") + conflicts=("java-antlr2") + replaces=("java-antlr2") + + DESTDIR="$pkgdir" jh mvn-install antlr antlr $pkgver \ + "$srcdir"/antlr-${pkgver}.pom \ + "$srcdir"/antlr-${pkgver}/antlr/antlr.jar \ + antlr2.jar + + _install_license +} + +package_antlr2-python2() { + pkgdesc+=" (Python version)" + depends=('python2') + + provides=("python2-antlr2=$pkgver") + conflicts=("python2-antlr2") + replaces=("python2-antlr2") + + cd "$srcdir"/antlr-${pkgver}/lib/python + python2 setup.py install --root="${pkgdir}" --optimize=1 + + _install_license +} + +package_antlr2-cxx() { + pkgdesc+=" (C++ version)" + + cd "$srcdir"/antlr-${pkgver}/lib/cpp + make -j1 prefix="${pkgdir}/usr" install + + _install_license +} + +package_antlr2-sharp() { + pkgdesc+=" (C Sharp version)" + depends=('mono') + + cd "$srcdir"/antlr-${pkgver}/lib/csharp + install -d "$pkgdir"/usr/share + make -j1 prefix="${pkgdir}/usr" install + + _install_license +} + +md5sums=('01cc9a2a454dd33dcd8c856ec89af090' + '78af3de823003f6d8dded39c70bc30ae' + '78e9bf86bd44722f232f80bc7b04dcfe' + '158677e4c0f357afbb56656231a54815' + '0d1960d27ff81f2fea0dd35a8290216f') diff --git a/java/antlr2/gcc4.4.patch b/java/antlr2/gcc4.4.patch new file mode 100644 index 000000000..15e25fb00 --- /dev/null +++ b/java/antlr2/gcc4.4.patch @@ -0,0 +1,12 @@ +diff -Nur antlr-2.7.7.orig/lib/cpp/antlr/CharScanner.hpp antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp +--- antlr-2.7.7.orig/lib/cpp/antlr/CharScanner.hpp ++++ antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp +@@ -10,6 +10,8 @@ + + #include <antlr/config.hpp> + ++#include <cstdio> ++#include <cstring> + #include <map> + + #ifdef HAS_NOT_CCTYPE_H diff --git a/java/antlr2/mono.patch b/java/antlr2/mono.patch new file mode 100644 index 000000000..59c78d811 --- /dev/null +++ b/java/antlr2/mono.patch @@ -0,0 +1,31 @@ +diff -ruN antlr-2.7.7.orig/lib/csharp/antlr.runtime.build antlr-2.7.7/lib/csharp/antlr.runtime.build +--- antlr-2.7.7.orig/lib/csharp/antlr.runtime.build 2006-11-01 16:37:17.000000000 -0500 ++++ antlr-2.7.7/lib/csharp/antlr.runtime.build 2013-05-14 20:07:32.000000000 -0400 +@@ -25,6 +25,9 @@ + + <!-- Use script task to get this from AssemblyInfo.cs using a regular expression --> + <script language="C#"> ++ <imports> ++ <import namespace="System.Text.RegularExpressions" /> ++ </imports> + <code><![CDATA[ + public static void ScriptMain(Project project) { + string assemblyInfoFileName = Path.Combine(project.BaseDirectory, "antlr.runtime/AssemblyInfo.cs"); +@@ -122,7 +125,7 @@ + </csc> + + <!-- copy the antlr.runtime assembly to the astframe build folder --> +- <copy file="${compile.dir}\${project.FileName}.dll" tofile="${astframe.compile.dir}\${project.FileName}.dll" /> ++ <copy file="${compile.dir}/${project.FileName}.dll" tofile="${astframe.compile.dir}/${project.FileName}.dll" /> + + <!-- compile antlr.astframe.dll --> + <csc target="library" output="${astframe.compile.dir}/${astframe.FileName}.dll" debug="${debug}" doc="${astframe.build.dir}/${astframe.FileName}.xml"> +@@ -134,7 +137,7 @@ + <include name="System.dll" /> + <include name="System.Drawing.dll" /> + <include name="System.Windows.Forms.dll" /> +- <include name="${astframe.compile.dir}\${project.FileName}.dll" /> ++ <include name="${astframe.compile.dir}/${project.FileName}.dll" /> + </references> + <arg value="/nowarn:1591"/> + </csc> diff --git a/java/antlr2/runantlr2.sh b/java/antlr2/runantlr2.sh new file mode 100644 index 000000000..aebc9dfa7 --- /dev/null +++ b/java/antlr2/runantlr2.sh @@ -0,0 +1,5 @@ +#!/bin/sh +echo Running 'java antlr.Tool $*' with /usr/share/java/antlr2.jar appended to the CLASSPATH variable +export CLASSPATH +CLASSPATH=$CLASSPATH:/usr/share/java/antlr2.jar +java antlr.Tool "$@" diff --git a/java/apache-ant/PKGBUILD b/java/apache-ant/PKGBUILD new file mode 100644 index 000000000..ae8967a2f --- /dev/null +++ b/java/apache-ant/PKGBUILD @@ -0,0 +1,142 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (Arch): Paul Mattal <paul@archlinux.org> +# Contributor: Andrew Wright <andreww@photism.org> + +pkgname=apache-ant +pkgver=1.9.2 +pkgdesc="A Java-based build tool" +license=('Apache' 'custom:BSD3') +url="http://ant.apache.org/" + +provides=("apache-ant-libre=$pkgver") +replaces=("apache-ant-libre") +conflicts=("apache-ant-libre") + +pkgrel=3.2 # newer than Arch's 1.9.2-3 +arch=('any') +depends=('java-environment') +makedepends=('jh') + +_mirror=http://archive.apache.org/dist +source=($_mirror/ant/source/${pkgname}-${pkgver}-src.tar.bz2 + ${pkgname}.sh ${pkgname}.csh) + +# This list is adapted from https://ant.apache.org/manual/install.html#librarydependencies +# The format is: +# jarname:description:pkgname:jarpath +_library_dependencies=( + #jakarta-regexp-1.3.jar:Disregard + jakarta-oro-2.0.8.jar:'<ftp task>':jakarta-oro:/usr/share/java/jakarta-oro.jar + junit.jar:'<junit> task':junit:/usr/share/java/junit.jar + xalan.jar:'<junitreport> task':xalan-java:/usr/share/java/xalan.jar + antlr.jar:'<antlr> task':java-antlr2:/usr/share/java/antlr2.jar + bsf.jar:'<script> task':java-commons-bsf2:/usr/share/java/bsf2.jar + groovy-all.jar:'Groovy with <script> and <scriptdef> tasks':groovy:/usr/share/groovy/embeddable/groovy-all.jar + #netrexx.jar:'<netrexx> task, Rexx with <script> task':???????:??????? + js.jar:'Javascript with <script> task':java-rhino:/usr/share/java/js.jar + jython.jar:'Python with <script> task':jython:/opt/jython/jython.jar + #jpython.jar:Disregard + #jacl.jar:'TCL with <script> task':???????:??????? + #tcljava.jar:'TCL with <script> task':???????:??????? + beanshell.jar:'BeanShell with <script> task':'beanshell>=1.3':/usr/share/java/bsh.jar + jruby.jar:'Ruby with <script> task':jruby:/opt/jruby/lib/jruby.jar + #judo.jar:Judoscript with <script> task:???????:?????? + commons-logging.jar:'CommonsLoggingListener':java-commons-logging:/usr/share/java/commons-logging/commons-logging.jar + #log4j.jar:'Log4jListener':???????:??????? + commons-net.jar:'<ftp>, <rexec> and <telnet> tasks':'java-commons-net1>=1.4.0':/usr/share/java/commons-net.jar + bcel.jar:"'classfileset' data type, JavaClassHelper for ClassConstants filter reader":java-bcel:/usr/share/java/bcel.jar + mail.jar:'<mimemail> task, mime encoding with <mail>':java-gnumail:/usr/share/java/gnumail.jar + activation.jar:'<mimemail> task, mime encoding with <mail>':java-activation-gnu:/usr/share/java/activation.jar + jdepend.jar:'<jdepend> task':java-jdepend:/usr/share/java/jdepend.jar +# FIXME: When FS#38243 is fixed, 'xerces2-java' should be changed to 'java-resolver'. +# We use xerces in the mean time because xalan depends on it. + resolver.jar:"external files for 'xmlcatalog' datatype":xerces2-java:/usr/share/java/resolver.jar + jsch.jar:'<sshexec> and <scp> tasks':'java-jsch>=0.1.42':/usr/share/java/jsch.jar + #jai.jar:'<image> task':???????:??????? +) + +for _dep in "${_library_dependencies[@]}"; do + IFS=: read _jarname _desc _pkgname _jarpath <<<"$_dep" + optdepends+=("${_pkgname}: ${_desc}") + makedepends+=("${_pkgname}") +done +unset _dep _jarname _desc _pkgname _jarpath + +build() { + # This directory is what becomes + # http://archive.apache.org/dist/ant/binaries/${pkgname}-${pkgver}-bin.tar.bz2 + # which is what Arch uses + rm -rf "${srcdir}"/${pkgname}-${pkgver}-bin + mkdir -p "${srcdir}"/${pkgname}-${pkgver}-bin + + cd "${srcdir}"/${pkgname}-${pkgver} + # Symlink to external optional libraries/ + local _dep _jarname _desc _pkgname _jarpath + for _dep in "${_library_dependencies[@]}"; do + IFS=: read _jarname _desc _pkgname _jarpath <<<"$_dep" + ln -sfv "${_jarpath}" lib/optional/${_jarname} + done + # Build + source "/etc/profile.d/jdk.sh" # Get the JAVA_HOME env var + sh build.sh -Ddist.dir="${srcdir}"/${pkgname}-${pkgver}-bin dist +} + +# Create a relative symlink +_rellink() { + local src=$1 + local dst=$2 + mkdir -p "${pkgdir}/${dst%/*}" + ln -sfv "$(realpath -m "$src" --relative-to="${dst%/*}")" "${pkgdir}/${dst}" +} + +package() { + cd "${srcdir}"/${pkgname}-${pkgver}-bin + source "${srcdir}"/${pkgname}.sh # Get the ANT_HOME env var + source "/etc/profile.d/jdk.sh" # Get the JAVA_HOME env var + + ## Install profile.d script + install -d "${pkgdir}"/etc/profile.d + install -m755 "${srcdir}"/${pkgname}.{csh,sh} "${pkgdir}"/etc/profile.d/ + + ## Install the main distribution + install -d "${pkgdir}"/${ANT_HOME} + cp -Rp * "${pkgdir}"/${ANT_HOME} + + ## Fix the distribution + # Remove Windows .bat/.cmd files + rm -f "${pkgdir}"/${ANT_HOME}/bin/*.{bat,cmd} + # Fix python2 path + sed -i 's|/usr/bin/python|/usr/bin/python2|' "${pkgdir}"/${ANT_HOME}/bin/runant.py + # Symlink to external optional libraries + local _dep _jarname _desc _pkgname _jarpath + for _dep in "${_library_dependencies[@]}"; do + IFS=: read _jarname _desc _pkgname _jarpath <<<"$_dep" + _rellink "${_jarpath}" "${ANT_HOME}/lib/${_jarname}" + done + + ## Symlink the /opt distribution to the normal places + + cd "${pkgdir}"/${ANT_HOME}/lib + local pom a + for pom in *.pom; do + a=${pom%.pom} + base=$(jh mvn-basename org.apache.ant $a $pkgver) + _rellink "${ANT_HOME}/lib/$a.pom" "${base}.pom" + _rellink "${ANT_HOME}/lib/$a.jar" "${base}.jar" + done + + cd "${pkgdir}"/${ANT_HOME}/bin + local prog + for prog in *; do + _rellink "${ANT_HOME}/bin/$prog" "/usr/bin/$prog" + done + _rellink "${ANT_HOME}/README" "/usr/share/doc/${pkgname}/README" + _rellink "${ANT_HOME}/WHATSNEW" "/usr/share/doc/${pkgname}/WHATSNEW" + _rellink "${ANT_HOME}/docs" "/usr/share/doc/${pkgname}/html" + _rellink "${ANT_HOME}/LICENSE" "/usr/share/licenses/${pkgname}/LICENSE" + _rellink "${ANT_HOME}/NOTICE" "/usr/share/licenses/${pkgname}/NOTICE" +} + +md5sums=('8f610c1a0183507c2beebbf230f456af' + 'bd63c881be406f515fc4d22635e8326a' + 'aaa615512cbe1ed7f3b62c1ff46802f8') diff --git a/java/apache-ant/apache-ant.csh b/java/apache-ant/apache-ant.csh new file mode 100644 index 000000000..fdc04b2f8 --- /dev/null +++ b/java/apache-ant/apache-ant.csh @@ -0,0 +1,2 @@ +#!/bin/csh +setenv ANT_HOME /opt/apache-ant diff --git a/java/apache-ant/apache-ant.sh b/java/apache-ant/apache-ant.sh new file mode 100644 index 000000000..6e4809da5 --- /dev/null +++ b/java/apache-ant/apache-ant.sh @@ -0,0 +1,2 @@ +#!/bin/sh +export ANT_HOME=/opt/apache-ant diff --git a/java/arduino/PKGBUILD b/java/arduino/PKGBUILD new file mode 100644 index 000000000..aeb46feee --- /dev/null +++ b/java/arduino/PKGBUILD @@ -0,0 +1,106 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (AUR): PyroPeter <googlemail.com@abi1789> + +pkgname=arduino +pkgver=1.0.2 +pkgrel=1 +pkgdesc="Arduino SDK and IDE" +arch=('i686' 'x86_64') +url="http://arduino.cc/en/Main/Software" +options=(!strip) +license=('GPL') + +depends=('avr-gcc' 'avr-libc' 'libusb-compat' 'java-runtime' 'avrdude' + 'java-rxtx' 'antlr2' 'eclipse-ecj' 'jna') +makedepends=(java-environment apache-ant makepkg-git) +install="arduino.install" +source=("http://arduino.googlecode.com/files/arduino-$pkgver-src.tar.gz" + 'avrlibc-signals.patch' + 'external-avrtools.patch' + 'arduino.png' + 'arduino.desktop') + +unset _JAVA_OPTIONS +. /etc/profile.d/jdk.sh + +prepare() { + cd "$srcdir/arduino-$pkgver" + find . -name '*.hex' -delete + find . -name '*.jar' -delete + find . -name '*.so' -delete + find . -name '*.swp' -delete + rm -f build/linux/dist/tools/avrdude* + rm -rf hardware/arduino/firmwares/wifishield +} + +_link_jars() { + for jar in RXTXcomm.jar antlr2.jar ecj.jar jna.jar; do + ln -sf /usr/share/java/$jar . + done +} + +_patch() { + cd "$srcdir/arduino-$pkgver" + + # Fix issue 955 to be compatible with newer versions of avr-libc + # https://code.google.com/p/arduino/issues/detail?id=955 + # Note: this patch is not the patch given in the comments + patch -Np1 -i "$srcdir/avrlibc-signals.patch" + grep -rl 'SIGNAL\s*(' . | xargs sed -ri 's/SIGNAL\s*\(([^)]*_vect)\)/ISR(\1)/g' + + # Don't look for pre-compiled avr-tools + patch -Np1 -i "$srcdir/external-avrtools.patch" + + rm -rf app/src/processing/app/macosx + + cd app/lib + _link_jars +} + +build() { + _patch + + # build submodules + for submodule in core/methods core/preproc; do + cd "$srcdir/arduino-$pkgver/$submodule" + ant + done + + # build the main package + cd "$srcdir/arduino-$pkgver/build" + log=`mktemp` + ant 2>&1|tee "$log" + if egrep -q 'Error|FAILED' "$log"; then + rm "$log" + false + else + rm "$log" + fi + + # symlink jar files to the system locations + cd "linux/work/lib" + _link_jars +} + +package() { + cd "$srcdir/arduino-$pkgver/build/linux/work" + + install -d "$pkgdir"/usr/{bin,share/{doc,applications,pixmaps}} + + # copy the whole SDK to /usr/share/arduino/ + cp -r . "$pkgdir/usr/share/arduino" + + # at least support the FHS a little bit: + ln -s ../share/arduino/arduino "$pkgdir/usr/bin/arduino" + ln -s ../arduino/reference "$pkgdir/usr/share/doc/arduino" + + # desktop icon + install -m644 "$srcdir/arduino.desktop" "$pkgdir/usr/share/applications/" + install -m644 "$srcdir/arduino.png" "$pkgdir/usr/share/pixmaps/" +} + +md5sums=('dfb64e2a7de4a4a8b872732fe90e3249' + 'e44975d31aa1770e4f5ac6e6867b0864' + '9c696c2361d57027be41ae64436182aa' + '9e36d33891d5e68d38ec55d1494499a5' + 'eebc4d6495864bea99ad057af801afb9') diff --git a/java/arduino/arduino.desktop b/java/arduino/arduino.desktop new file mode 100644 index 000000000..8469724ea --- /dev/null +++ b/java/arduino/arduino.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Arduino +GenericName=Arduino IDE +Comment=The open-source Arduino environment +Exec=arduino +Icon=arduino +Type=Application +Terminal=false +Categories=Development;IDE;Qt;KDE;;Application; diff --git a/java/arduino/arduino.install b/java/arduino/arduino.install new file mode 100644 index 000000000..c222e1b6d --- /dev/null +++ b/java/arduino/arduino.install @@ -0,0 +1,9 @@ +post_install() { + xdg-icon-resource install --size 256 --novendor /usr/share/pixmaps/arduino.png +} + +pre_remove() { + xdg-icon-resource uninstall --size 256 arduino +} + +# vim:set ts=2 sw=2 et: diff --git a/java/arduino/arduino.png b/java/arduino/arduino.png Binary files differnew file mode 100644 index 000000000..ea3ac81b4 --- /dev/null +++ b/java/arduino/arduino.png diff --git a/java/arduino/avrlibc-signals.patch b/java/arduino/avrlibc-signals.patch new file mode 100644 index 000000000..d9c743cc6 --- /dev/null +++ b/java/arduino/avrlibc-signals.patch @@ -0,0 +1,87 @@ +diff -ruN arduino-1.0.2.orig/hardware/arduino/cores/arduino/HardwareSerial.cpp arduino-1.0.2/hardware/arduino/cores/arduino/HardwareSerial.cpp +--- arduino-1.0.2.orig/hardware/arduino/cores/arduino/HardwareSerial.cpp 2012-11-04 16:29:10.000000000 -0500 ++++ arduino-1.0.2/hardware/arduino/cores/arduino/HardwareSerial.cpp 2012-12-03 15:35:06.000000000 -0500 +@@ -89,9 +89,7 @@ + #if !defined(USART0_RX_vect) && defined(USART1_RX_vect) + // do nothing - on the 32u4 the first USART is USART1 + #else +-#if !defined(USART_RX_vect) && !defined(SIG_USART0_RECV) && \ +- !defined(SIG_UART0_RECV) && !defined(USART0_RX_vect) && \ +- !defined(SIG_UART_RECV) ++#if !defined(USART_RX_vect) && !defined(USART0_RX_vect) + #error "Don't know what the Data Received vector is called for the first UART" + #else + void serialEvent() __attribute__((weak)); +@@ -99,14 +97,8 @@ + #define serialEvent_implemented + #if defined(USART_RX_vect) + SIGNAL(USART_RX_vect) +-#elif defined(SIG_USART0_RECV) +- SIGNAL(SIG_USART0_RECV) +-#elif defined(SIG_UART0_RECV) +- SIGNAL(SIG_UART0_RECV) + #elif defined(USART0_RX_vect) + SIGNAL(USART0_RX_vect) +-#elif defined(SIG_UART_RECV) +- SIGNAL(SIG_UART_RECV) + #endif + { + #if defined(UDR0) +@@ -143,8 +135,6 @@ + unsigned char c = UDR1; + }; + } +-#elif defined(SIG_USART1_RECV) +- #error SIG_USART1_RECV + #endif + + #if defined(USART2_RX_vect) && defined(UDR2) +@@ -160,8 +150,6 @@ + unsigned char c = UDR2; + }; + } +-#elif defined(SIG_USART2_RECV) +- #error SIG_USART2_RECV + #endif + + #if defined(USART3_RX_vect) && defined(UDR3) +@@ -177,8 +165,6 @@ + unsigned char c = UDR3; + }; + } +-#elif defined(SIG_USART3_RECV) +- #error SIG_USART3_RECV + #endif + + void serialEventRun(void) +diff -ruN arduino-1.0.2.orig/hardware/arduino/cores/arduino/HardwareSerial.h arduino-1.0.2/hardware/arduino/cores/arduino/HardwareSerial.h +--- arduino-1.0.2.orig/hardware/arduino/cores/arduino/HardwareSerial.h 2012-11-04 16:29:10.000000000 -0500 ++++ arduino-1.0.2/hardware/arduino/cores/arduino/HardwareSerial.h 2012-12-03 15:35:06.000000000 -0500 +@@ -126,6 +126,15 @@ + #endif + #endif + ++/* ++ * on ATmega8, the uart and its bits are not numbered, so there is no "TXC0" ++ * definition. It is slightly cleaner to define this here instead of having ++ * conditional code in the cpp module. ++ */ ++#if !defined(TXC0) ++#define TXC0 TXC ++#endif ++ + extern void serialEventRun(void) __attribute__((weak)); + + #endif +diff -ruN arduino-1.0.2.orig/hardware/arduino/cores/arduino/WInterrupts.c arduino-1.0.2/hardware/arduino/cores/arduino/WInterrupts.c +--- arduino-1.0.2.orig/hardware/arduino/cores/arduino/WInterrupts.c 2012-11-04 16:29:11.000000000 -0500 ++++ arduino-1.0.2/hardware/arduino/cores/arduino/WInterrupts.c 2012-12-03 15:37:08.000000000 -0500 +@@ -314,7 +314,7 @@ + #endif + + /* +-SIGNAL(SIG_2WIRE_SERIAL) { ++ISR(TWI_vect) { + if(twiIntFunc) + twiIntFunc(); + } diff --git a/java/arduino/external-avrtools.patch b/java/arduino/external-avrtools.patch new file mode 100644 index 000000000..a47575b53 --- /dev/null +++ b/java/arduino/external-avrtools.patch @@ -0,0 +1,28 @@ +diff -ru arduino-1.0.2.orig/build/build.xml arduino-1.0.2/build/build.xml +--- arduino-1.0.2.orig/build/build.xml 2012-11-04 16:29:09.000000000 -0500 ++++ arduino-1.0.2/build/build.xml 2012-12-03 15:22:39.000000000 -0500 +@@ -353,24 +353,9 @@ + </target> + + <target name="linux32-build" depends="linux-build" description="Build linux (32-bit) version"> +- <!-- Unzip AVR tools --> +- <exec executable="tar" dir="linux/work/hardware"> +- <arg value="-xjf"/> +- <arg value="../../avr_tools_linux32.tar.bz2"/> +- </exec> + </target> + + <target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version"> +- <copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" /> +- <copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" /> +- +- <chmod perm="755" file="linux/work/hardware/tools/avrdude" /> +- +- <!-- Unzip AVR tools --> +- <exec executable="tar" dir="linux/work/hardware"> +- <arg value="-xjf"/> +- <arg value="../../avr_tools_linux64.tar.bz2"/> +- </exec> + </target> + + <target name="linux32-run" depends="linux32-build" diff --git a/java/beanshell/PKGBUILD b/java/beanshell/PKGBUILD new file mode 100644 index 000000000..95b14d379 --- /dev/null +++ b/java/beanshell/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (Arch): AndyRTR <andyrtr at archlinux.org> + +pkgname=beanshell +pkgver=2.0b4 +pkgrel=2.1 +pkgdesc="Lightweight scripting for Java" +url="http://www.beanshell.org/" +license=('LGPL') + +provides=('bsh') + +arch=('any') +depends=('java-runtime') +makedepends=('apache-ant' 'java-commons-bsf2' 'javacc' 'java-servlet3.0-tomcat') +source=("http://www.beanshell.org/bsh-${pkgver}-src.jar") + +prepare() { + cd "$srcdir"/BeanShell-$pkgver + + rm lib/*.jar + ln -s /usr/share/java/bsf2.jar lib/ + ln -s /usr/share/java/javacc.jar lib/ + ln -s /usr/share/java/servlet-api.jar lib/servlet.jar +} + +build() { + cd "$srcdir"/BeanShell-$pkgver + ant dist +} + +check() { + cd "$srcdir"/BeanShell-$pkgver + ant test +} + +package() { + cd "$srcdir"/BeanShell-$pkgver/dist + install -d "${pkgdir}"/usr/share/java/ + for artifact in $(printf '%s\n' *.jar|sed 's/-[0-9b.]*\.jar$//'); do + install -m644 $artifact-$pkgver.jar "${pkgdir}"/usr/share/java/$artifact.jar + done +} + +sha1sums=('69b36df249654a04e777ab899046c50b8cc844ac') diff --git a/java/closure-compiler/PKGBUILD b/java/closure-compiler/PKGBUILD new file mode 100644 index 000000000..8c9ea0c34 --- /dev/null +++ b/java/closure-compiler/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=closure-compiler +pkgver=20131118 +pkgdesc="A JavaScript optimizing compiler." +url="https://code.google.com/closure/compiler/" +license=('Apache') + +pkgrel=1 +arch=('any') +depends=('java-runtime' 'sh') +makedepends=( + 'apache-ant' + #'java-args4j' # does not exist + #'google-caja' # does not exist + #'java-guava' # does not build + 'java-jarjar' + 'java-json' + #'java-jsr305' # does not exist + 'junit' + #'java-protobuf' # does not build + #'maven-ant-tasks' # does not exist + 'jh' +) + +source=("libre://$pkgname-$pkgver.tar.gz" 'closure-compiler.sh') +md5sums=('0fceda3f4d43a6d266f9888e7683bdc9' + 'd4ead4585fcc7039d3c32eb5c4491bb9') + +mksource=("$pkgname-$pkgver::git+https://code.google.com/p/closure-compiler/#tag=v${pkgver}") +mkmd5sums=('SKIP') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ln -sf /opt/apache-ant/lib/ant.jar lib/ant.jar + ln -sf /opt/apache-ant/lib/ant-launcher.jar lib/ant-launcher.jar + #ln -sf /usr/share/java/args4.jar lib/args4j.jar + #ln -sf /usr/share/java/caja-r4314.jar lib/caja-r4314.jar + #ln -sf /usr/share/java/guava.jar lib/guava.jar + ln -sf /usr/share/java/jarjar.jar lib/jarjar.jar + ln -sf /usr/share/java/json.jar lib/json.jar + #ln -sf /usr/share/java/jsr305.jar lib/jsr305.jar + ln -sf /usr/share/java/junit.jar lib/junit.jar + #ln -sf /usr/share/java/protobuf.jar lib/protobuf-java.jar + #ln -sf /... tools/maven-ant-tasks-2.1.3.jar + + sed -i " +/<target name=\"relversion\">/,/<\/target>/ { + s/executable=\"git\"/executable=\"echo\"/ + /<arg/d + /<\/exec>/i<arg value=\"v${pkgver}\" /> +}" build.xml + + ant jar pom +} + +package() { + cd "$srcdir" + install -Dm755 closure-compiler.sh "$pkgdir"/usr/bin/closure-compiler + + cd "$srcdir/$pkgname-$pkgver" + DESTDIR="$pkgdir" jh mvn-install \ + com.google.javascript closure-compiler v${pkgver} \ + build/pom.xml build/compiler.jar \ + closure-compiler.jar +} diff --git a/java/closure-compiler/closure-compiler.sh b/java/closure-compiler/closure-compiler.sh new file mode 100644 index 000000000..e06590db2 --- /dev/null +++ b/java/closure-compiler/closure-compiler.sh @@ -0,0 +1,2 @@ +#!/bin/sh +java -jar /usr/share/java/closure-compiler.jar "$@" diff --git a/java/jakarta-oro/PKGBUILD b/java/jakarta-oro/PKGBUILD new file mode 100644 index 000000000..24f7a2772 --- /dev/null +++ b/java/jakarta-oro/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (AUR): Xiao-Long Chen <chenxiaolong@cxl.epac.to> + +pkgname=jakarta-oro +pkgver=2.0.8 +pkgrel=1.1 +pkgdesc="Java regular expression and text-processing library" +arch=('any') +url="https://jakarta.apache.org/oro" +license=('Apache') +makedepends=('apache-ant') +source=("http://archive.apache.org/dist/jakarta/oro/${pkgname}-${pkgver}.tar.gz") +sha512sums=('a7f6eb6a088765f273df18ccc823f918737f18ec8772275054839a87f8370f1848e795d481f226c712651104d7598ab86c7d90a991fb039df6581f42f1447920') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + find . \( -name '*.jar' -o -name '*.class' \) -delete +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ant jar +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + install -Dm644 ${pkgname}-${pkgver}.jar \ + "${pkgdir}/usr/share/java/${pkgname}.jar" +} diff --git a/java/java-asm2/PKGBUILD b/java/java-asm2/PKGBUILD new file mode 100644 index 000000000..8860ef86f --- /dev/null +++ b/java/java-asm2/PKGBUILD @@ -0,0 +1,18 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgver=2.2.3 +. PKGBUILD.common.sh + +#### + +pkgrel=7 + +mksource() { + cd "$srcdir/$_pkgname-$pkgver" + rm test/conform/org/objectweb/asm/attrs/StackMapTableSample.data + rm test/conform/cases/*.class + mkdir -p test/lib +} + +mkmd5sums=('7a92c87bf067925685cf68dcc0dd8998') +md5sums=('c2119ab39618cb49ca4e4ad74344b488') diff --git a/java/java-asm2/PKGBUILD-bootstrap b/java/java-asm2/PKGBUILD-bootstrap new file mode 100644 index 000000000..cbe29bb34 --- /dev/null +++ b/java/java-asm2/PKGBUILD-bootstrap @@ -0,0 +1,24 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +# "java-asm2" is required to build "java-ow-util-ant-tasks", which is in turn +# required to build "java-asm2". + +. PKGBUILD + +makedepends=(jh) +source=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver-bin.zip") +unset mksource +_distdir="$_pkgname-$pkgver" + +provides+=("$pkgname=$pkgver") +pkgname+='-bootstrap' +pkgdesc+=" (prebuilt binary release for bootstrapping purposes)" + +build() { + cd "$srcdir/$_pkgname-$pkgver" + echo "3-clause BSD license; install the non-bootstrap version for full text" > LICENSE.txt + cd "$srcdir/$_distdir/lib" + ln -s all/* . +} + +md5sums=('9bedaa1d00c5b5f1c7fec10a2d2f7142') diff --git a/java/java-asm2/PKGBUILD.common.sh b/java/java-asm2/PKGBUILD.common.sh new file mode 100644 index 000000000..ef4547696 --- /dev/null +++ b/java/java-asm2/PKGBUILD.common.sh @@ -0,0 +1,65 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=asm +pkgname=java-asm${pkgver%%.*} +pkgdesc="An all purpose Java bytecode manipulation and analysis framework." +url="http://asm.ow2.org/" +license=('custom:BSD3') + +arch=('any') +depends=('java-runtime') +makedepends=( + apache-ant + java-ow-util-ant-tasks + jh +) +source=("libre://$pkgname-$pkgver.tar.gz") +mksource=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver.tar.gz") + +_distdir="$_pkgname-$pkgver/output/dist" +_ow_util_ant_tasks='/usr/share/java/ow_util_ant_tasks.jar' + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + echo "objectweb.ant.tasks.path $_ow_util_ant_tasks" >> build.properties + ant dist + + # This will make package() easier: + cd "$srcdir/$_distdir/lib" + ln -sf all/* . +} + +package() { + # Install license file + cd "$srcdir/$_pkgname-$pkgver" + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Install documentation + cd "$srcdir/$_distdir" + install -d "$pkgdir/usr/share/doc/$pkgname" + cp -r doc/javadoc/user "$pkgdir/usr/share/doc/$pkgname/javadoc" + cp -r examples "$pkgdir/usr/share/doc/$pkgname/examples" + + # Install the README about the -all files + cd "$srcdir/$_distdir/lib" + install -Dm644 README.txt \ + "$pkgdir"/usr/share/java/$_pkgname/README-$pkgver.txt + + # Install Maven artifacts + export DESTDIR=$pkgdir + for artifact in $(printf '%s\n' *.pom|sed 's/-[0-9.]*\.pom$//'); do + if [[ -f $artifact-$pkgver.jar ]]; then + # This artifact has a jar file + jh mvn-install $_pkgname $artifact $pkgver $artifact-$pkgver.{pom,jar} + # Symlink them to /usr/share/java + ln -s "$(jh mvn-basename asm $artifact $pkgver).jar" \ + "$pkgdir"/usr/share/java/$_pkgname/ + ln -s $_pkgname/$artifact-$pkgver.jar \ + "$pkgdir"/usr/share/java/$artifact-${pkgver%%.*}.jar + else + # This artifact is just a pom + jh mvn-install $_pkgname $artifact $pkgver $artifact-$pkgver.pom + fi + done +} diff --git a/java/java-asm3/PKGBUILD b/java/java-asm3/PKGBUILD new file mode 100644 index 000000000..9c9928766 --- /dev/null +++ b/java/java-asm3/PKGBUILD @@ -0,0 +1,17 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgver=3.3.1 +. PKGBUILD.common.sh + +#### + +pkgrel=7 + +mksource() { + cd "$srcdir/$_pkgname-$pkgver" + rm cobertura.ser # We regenerate this + rm examples/jasmin/test/jasmin.jar +} + +mkmd5sums=('433024df8176f09922646316e415631c') +md5sums=('c49fb45629cf8670b7f46b95013141cd') diff --git a/java/java-commons-bsf2/PKGBUILD b/java/java-commons-bsf2/PKGBUILD new file mode 100644 index 000000000..57a9dfc1a --- /dev/null +++ b/java/java-commons-bsf2/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=java-commons-bsf2 +pkgver=2.4.0 +url="https://commons.apache.org/proper/commons-bsf/" +license=('Apache') +pkgdesc="Bean Scripting Framework" + +pkgrel=1 +arch=('any') +depends=('java-commons-logging') +makedepends=('apache-ant') + +_mirror=http://archive.apache.org/dist +source=($_mirror/commons/bsf/source/bsf-src-$pkgver.tar.gz + build-properties.xml::"https://svn.apache.org/viewvc/commons/proper/bsf/tags/bsf-2.4.0/build-properties.xml?view=co&content-type=text%2Fplain" +) + +declare -A _opts +#_opts[jacl]="/usr/share/java/jacl.jar" +_opts[jython]="/opt/jython/jython.jar" +#_opts[nexrexx]="/usr/share/java/nexrexx.jar" +_opts[java-rhino]="/usr/share/java/js.jar" +_opts[xalan-java]="/usr/share/java/xalan.jar" +_opts[junit]="/usr/share/java/junit.jar" + +for pkg in "${!_opts[@]}"; do + optdepends+=("$pkg") + makedepends+=("$pkg") + _jars+="${_opts[$pkg]} " +done + +prepare() { + cd "${srcdir}/bsf-${pkgver}" + rm lib/*.jar +} + +build() { + cd "${srcdir}/bsf-${pkgver}" + + for jar in $_jars; do + ln -s "$jar" lib/ + done + + # Adjust it to work with jython 2.5+ + sed -i 's/PyJavaInstance/PyJavaType/g' src/org/apache/bsf/engines/jython/* + + ln -sf ../build-properties.xml ./ + ant jar +} + +package() { + cd "${srcdir}/bsf-${pkgver}" + install -Dm644 build/lib/bsf.jar "$pkgdir"/usr/share/java/bsf-$pkgver.jar + ln -s bsf-$pkgver.jar "$pkgdir"/usr/share/java/bsf2.jar +} + +md5sums=('7e58b2a009c0f70ab36bbef420b25c07' + 'd7180c2b95f1a5424f785a2482260eaa') diff --git a/java/java-jarjar/PKGBUILD b/java/java-jarjar/PKGBUILD new file mode 100644 index 000000000..c78d5539e --- /dev/null +++ b/java/java-jarjar/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +# jarjar 1.2 is old, but is the last version that used java-asm3 +# java-asm4 is not packaged + +_pkgname=jarjar +pkgname=java-jarjar +pkgver=1.2 +_pkgrev=132 # v1.2 wasn't tagged, but this is clearly it +pkgdesc="Java static linker (instead of the normal dynamic linking)" +url="https://code.google.com/p/jarjar/" +license=('Apache') + +pkgrel=2 +arch=('any') +depends=('java-runtime') +makedepends=('apache-ant' 'java-asm3' 'junit' 'maven') + +source=("libre://${_pkgname}-${pkgver}.tar.gz") +mksource=("${_pkgname}-${pkgver}::svn+http://jarjar.googlecode.com/svn/trunk/jarjar#revision=$_pkgrev") +mksource() { + cd "$srcdir/$_pkgname-$pkgver" + rm -f lib/*.jar +} + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + ln -sf /usr/share/java/asm-3.jar lib/asm-3.3.1.jar + ln -sf /usr/share/java/asm-commons-3.jar lib/asm-commons-3.3.1.jar + ln -sf /usr/share/java/junit.jar lib/junit-4.8.1.jar + ln -sf /opt/maven/lib/maven-plugin-api-*.jar lib/maven-plugin-api.jar + ln -sf /opt/apache-ant/lib/ant.jar lib/ant.jar + + export CLASSPATH=/usr/share/java/asm-3.jar + echo 'includeantruntime false' > build.properties + ant jar +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + install -d "$pkgdir/usr/share/java/$_pkgname" + install -D "dist/$_pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname" + ln -s "$_pkgname/$_pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname.jar" +} + +mkmd5sums=('SKIP') +md5sums=('cc2698a58f93cdb22c51f039a1b8a56e') diff --git a/java/java-jarjar/PKGBUILD-1.4 b/java/java-jarjar/PKGBUILD-1.4 new file mode 100644 index 000000000..f0ebe9270 --- /dev/null +++ b/java/java-jarjar/PKGBUILD-1.4 @@ -0,0 +1,41 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=jarjar +pkgname=java-jarjar +pkgver=1.4 +pkgdesc="Java static linker (instead of the normal dynamic linking)" +url="https://code.google.com/p/jarjar/" +license=('Apache2') + +pkgrel=1 +arch=('any') +depends=('java-runtime') +makedepends=('apache-ant' 'java-asm4' 'junit' 'maven' 'jh') +source=("https://${_pkgname}.googlecode.com/files/${_pkgname}-src-${pkgver}.zip") + +mksource() { + cd "$srcdir/$_pkgname-$pkgver" + rm -f src/test/*.{class,jar} + rm -f lib/*.jar +} + +build() { + cd "$srcdir/$_pkgname-$pkgver" + eval `jh mksource` + + ln -s /usr/share/java/asm-4.jar lib/asm-4.0.jar + ln -s /usr/share/java/asm-commons-4.jar lib/asm-commons-4.0.jar + ln -s /usr/share/java/junit.jar lib/junit-4.8.1.jar + ln -s /opt/maven/lib/maven-plugin-api-*.jar lib/maven-plugin-api.jar + + ant jar +} + +package() { + cd "$srcdir/$pkgname" + install -d "$pkgdir/usr/share/java/$_pkgname" + install -D "dist/$_pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname" + ln -s "$_pkgname/$_pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname.jar" +} + +sha1sums=('803ad79cf429faeb4d767b2fb45d84bbc904ea04') diff --git a/java/java-json-android/PKGBUILD b/java/java-json-android/PKGBUILD new file mode 100644 index 000000000..7a9113529 --- /dev/null +++ b/java/java-json-android/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=java-json-android +_pkgver=4.2.2_r1 +pkgdesc="Java org.json implementation developed as part of Android's libcore" +url="https://android.googlesource.com/platform/libcore/" +license=(Apache2) + +pkgver=${_pkgver//_/.} +provides=(java-json) +conflicts=(java-json) + +pkgrel=3 +arch=(any) + +depends=(java-runtime) +makedepends=(java-environment junit) + +source=("libre://android-libcore-$_pkgver.tar.gz") +md5sums=('546a4614552615a12f45b62db27acddf') + +mkdepends=(git) +mksource=("android-libcore-$_pkgver::git+https://android.googlesource.com/platform/libcore/#tag=android-${_pkgver}") +mkmd5sums=('SKIP') + +build() { + cd "$srcdir"/android-libcore-$_pkgver + sed 11q < NOTICE > json/NOTICE + cd json/src/main/java + javac org/json/*.java + jar cf json.jar org/json/*.class +} + +check() { + cd "$srcdir"/android-libcore-$_pkgver/json/src/test/java + + # disable test for known bug: + sed -i 's/test64BitHexValues()/x&/' org/json/ParsingTest.java + + local cp="/usr/share/java/junit.jar:../../main/java/json.jar" + javac -cp "$cp" org/json/*.java + printf '%s\n' org/json/*.java | sed 's|/|.|g;s|\.java$||' > tests.txt + java -cp "$cp:." org.junit.runner.JUnitCore $(cat tests.txt) +} + +package() { + cd "$srcdir"/android-libcore-$_pkgver/json + install -Dm644 NOTICE "$pkgdir"/usr/share/licenses/$pkgname/NOTICE + install -Dm644 src/main/java/json.jar "$pkgdir"/usr/share/java/json.jar +} diff --git a/java/java-ow-util-ant-tasks/PKGBUILD b/java/java-ow-util-ant-tasks/PKGBUILD new file mode 100644 index 000000000..71c5fae94 --- /dev/null +++ b/java/java-ow-util-ant-tasks/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=java-ow-util-ant-tasks +pkgver=1.3.2 +pkgdesc="ObjectWeb utility Ant tasks library" +url="http://forge.ow2.org/projects/monolog" +license=('LGPL') + +pkgrel=3 +arch=('any') +depends=('java-environment') +makedepends=('apache-ant' 'xalan-java' 'java-asm2') + +source=("libre://$pkgname-$pkgver.tar.gz") +md5sums=('f64b2aeac98508ac322a6509ba754425') + +mksource=("http://download.forge.objectweb.org/monolog/ow_util_ant_tasks_$pkgver.zip") +mknoextract=("ow_util_ant_tasks_$pkgver.zip") +mkmd5sums=('cd602bf75a0feab480fa97739955b84e') +mksource() { + cd "$srcdir" + mkdir $pkgname-$pkgver + cd $pkgname-$pkgver + bsdtar xf ../ow_util_ant_tasks_$pkgver.zip + rm -rf output + rm externals/* +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + ln -s /usr/share/java/asm-2.jar externals/ + ln -s /usr/share/java/xalan.jar externals/ + ant jar +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -d "$pkgdir"/usr/share/java + install -m644 "output/lib/ow_util_ant_tasks.jar" "$pkgdir"/usr/share/java +} + diff --git a/java/java-rxtx/0000-configure-java-version.patch b/java/java-rxtx/0000-configure-java-version.patch new file mode 100644 index 000000000..c9e37258a --- /dev/null +++ b/java/java-rxtx/0000-configure-java-version.patch @@ -0,0 +1,93 @@ +Make the JAVA_VERSION checks future-proof (for Java 6 and 7) + +At this point Java is mature enough that support for older versions isn't +going to be dropped, so instead of having a growing list of new versions that +work by default, have a short list of old versions that need special measures. +--- RXTX.orig/configure.in 2012-10-29 01:13:58.000000000 -0400 ++++ RXTX/configure.in 2012-10-29 10:56:18.000000000 -0400 +@@ -463,12 +463,6 @@ + CFLAGS=$CFLAGS" -D__need_timespec" + case $JAVA_VERSION in + +- 1.2*|1.3*|1.4*|1.5*) +- #fix_parameters $JPATH/jre/lib/javax.comm.properties +- CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` +- JHOME=$JPATH"/jre/lib/ext" +- RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" +- ;; + 1.1*) + CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \ + if [ -d $JPATH/share/kaffe/ ]; then +@@ -498,6 +492,12 @@ + JHOME=$JPATH/"lib" + fi + ;; ++ *) ++ #fix_parameters $JPATH/jre/lib/javax.comm.properties ++ CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` ++ JHOME=$JPATH"/jre/lib/ext" ++ RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" ++ ;; + esac + + # Cross Compilers +@@ -533,12 +533,6 @@ + TARGETLIB="\$(target_triplet)/librxtxSerial.la \ + \$(target_triplet)/librxtxParallel.la" + case $JAVA_VERSION in +- 1.2*|1.3*|1.4*|1.5*) +- #fix_parameters $JPATH/jre/lib/javax.comm.properties +- CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` +- RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" +- JHOME=$JPATH/"jre/lib/ext" +- ;; + 1.1*) + check_prefix + #fix_parameters $JPATH/lib/javax.comm.properties +@@ -570,6 +564,10 @@ + JHOME=$JPATH/"lib" + ;; + *) ++ #fix_parameters $JPATH/jre/lib/javax.comm.properties ++ CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` ++ RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" ++ JHOME=$JPATH/"jre/lib/ext" + ;; + esac + ;; +@@ -669,15 +667,15 @@ + + WIN32) + case $JAVA_VERSION in +- 1.2*|1.3*|1.4*|1.5*) +- CLASSPATH=".:\$(TOP):\$(TOP)/src:`find $JPATH/ -name RXTXcomm.jar |head -n1`:$CLASSPATH" +- JHOME=$JPATH"/jre/lib/ext" +- ;; + 1.1*) + CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" + RXTX_PATH="\$(prefix)/lib/" + JHOME=$JPATH/"lib" + ;; ++ *) ++ CLASSPATH=".:\$(TOP):\$(TOP)/src:`find $JPATH/ -name RXTXcomm.jar |head -n1`:$CLASSPATH" ++ JHOME=$JPATH"/jre/lib/ext" ++ ;; + esac + if test x$WIN32INCLUDE = x; then + echo "We need to know what directory the windows java include files" +@@ -721,12 +719,12 @@ + CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" + + case $JAVA_VERSION in +- 1.2*|1.3*|1.4*|1.5*) +- RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" +- ;; + 1.1*) + RXTX_PATH="\$(JPATH)/lib/" + ;; ++ *) ++ RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" ++ ;; + esac + ;; + diff --git a/java/java-rxtx/0001-makefile-destdir.patch b/java/java-rxtx/0001-makefile-destdir.patch new file mode 100644 index 000000000..944654ab6 --- /dev/null +++ b/java/java-rxtx/0001-makefile-destdir.patch @@ -0,0 +1,21 @@ +Add DESTDIR support to Makefile +--- RXTX.orig/Makefile.am ++++ RXTX/Makefile.am +@@ -81,13 +81,15 @@ + # install librxtxSerial.so into the proper directory and copy $(JARTARGET) to its + # proper location + install: all ++ $(mkinstalldirs) $(DESTDIR)$(RXTX_PATH) ++ $(mkinstalldirs) $(DESTDIR)$(JHOME) + @$(LIBTOOL_INST) \ + `for i in $(TARGETLIB);do \ + if [ -f $$i ];then \ + echo $$i; \ + fi; \ +- done` $(RXTX_PATH) +- $(INSTALL_PROGRAM) $(JARTARGET) $(JHOME)/ ++ done` $(DESTDIR)$(RXTX_PATH) ++ $(INSTALL_PROGRAM) $(JARTARGET) $(DESTDIR)$(JHOME)/ + + clean-generic: + rm -rf $(DEST) $(TOP)/$(CLASSTOP) diff --git a/java/java-rxtx/0002-makefile-javadoc-dir.patch b/java/java-rxtx/0002-makefile-javadoc-dir.patch new file mode 100644 index 000000000..9b4eb0692 --- /dev/null +++ b/java/java-rxtx/0002-makefile-javadoc-dir.patch @@ -0,0 +1,13 @@ +Place the Javadoc output in its own directory +--- RXTX.orig/Makefile.am ++++ RXTX/Makefile.am +@@ -99,7 +99,8 @@ + + # create the javadoc files. + docs: $(CLASSES) +- $(JAVADOC) $(javafiles) ++ mkdir javadoc ++ cd javadoc && $(JAVADOC) $(javafiles) + + ################ WIN32 CrossCompiling from here down ####################### + diff --git a/java/java-rxtx/0003-lockdir-location.patch b/java/java-rxtx/0003-lockdir-location.patch new file mode 100644 index 000000000..78a757f81 --- /dev/null +++ b/java/java-rxtx/0003-lockdir-location.patch @@ -0,0 +1,18 @@ +Fix the location of device lock files. + +Use the new semi-standard device lock file directory on GNU/Linux. This is +nescessary on (at least) Arch Linux and Parabola GNU/Linux. + +http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html + +--- RXTX.orig/src/SerialImp.h ++++ RXTX/src/SerialImp.h +@@ -109,7 +109,7 @@ + /* Ports known on the OS */ + #if defined(__linux__) + # define DEVICEDIR "/dev/" +-# define LOCKDIR "/var/lock" ++# define LOCKDIR "/var/lock/lockdev" + # define LOCKFILEPREFIX "LCK.." + # define FHS + #endif /* __linux__ */ diff --git a/java/java-rxtx/GroupMembership.txt b/java/java-rxtx/GroupMembership.txt new file mode 100644 index 000000000..dd5c47076 --- /dev/null +++ b/java/java-rxtx/GroupMembership.txt @@ -0,0 +1,7 @@ +In order to use a program that makes use of rxtx, you must be a member +of the groups: + * uucp: for access to hardware devices in /dev + * lock: for access to hardware lockfiles in /var/lock/lockdev + +Most documentation indicates that you must be in one or the other, +depending on your distro; you must actually be in both. diff --git a/java/java-rxtx/PKGBUILD b/java/java-rxtx/PKGBUILD new file mode 100644 index 000000000..ceb0d9bab --- /dev/null +++ b/java/java-rxtx/PKGBUILD @@ -0,0 +1,95 @@ +# Maintainer (Parabola): Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgver=2.1-7r2-arduino4 +_gitver='commit=a8cd90f8505d7c472b57550b1192fe67885dd638' + +#### + +pkgname=java-rxtx +pkgver=${_pkgver//-/.} +pkgdesc="A native library providing serial and parallel communication for Java" +license=(LGPL2.1) + +pkgrel=4 +arch=('i686' 'x86_64') +depends=('java-runtime') +makedepends=('java-environment') + +case "$_pkgver" in + *arduino*) + url="https://github.com/arduino/RXTX" + source=("libre://RXTX-$pkgver.tar.gz") + md5sums=('a71156587dc8d28d1ff4ece376bc0140') + mksource=("git://github.com/arduino/RXTX.git#${_gitver}") + mkmd5sums=('SKIP') + _dirname=RXTX + ;; + *) + url="http://rxtx.qbang.org/" + source=("http://rxtx.qbang.org/pub/rxtx/rxtx-${_pkgver}.zip") + md5sums=('9290b4832d46199f8d798a531209640b') + _dirname=rxtx-{$_pkgver} + ;; +esac + +source+=( + 0000-configure-java-version.patch + 0001-makefile-destdir.patch + 0002-makefile-javadoc-dir.patch + 0003-lockdir-location.patch + GroupMembership.txt) + +md5sums+=('a36caaca717018341d69605f962d1c2a' + '39c88043032de742c6b51d90a26eee2c' + 'a910e0c75a9c687d2b2f782e3d9982e3' + '19b19c2514bce563be2a812888e1d9b4' + '9dc461eab358e3b78c4b688977997116') + +_MAKEFLAGS=('JHOME=/usr/share/java' 'RXTX_PATH=/usr/lib') + +_changelog() { + t="`echo -e '\t'`" + + # Parabola changes + ls "$srcdir"/*.patch | sort -r | while read file; do + echo "${file##*/}" + sed "1s/./$t$t&/;1q" "$file" + done + + # Arduino changes + if [[ -d "$srcdir/$_dirname/.git" ]]; then + pushd "$srcdir/$_dirname" > /dev/null + git log --pretty=format:"%h %ad%n$t$t%s" --date=short|head -n-2 + popd > /dev/null + fi + + # RXTX ChangeLog + grep "^[0-9 $t]" "$srcdir/$_dirname/ChangeLog" +} + +build() { + _changelog > "$srcdir/ChangeLog.txt" + cd "$srcdir/$_dirname" + . /etc/profile.d/jdk.sh + + patch -Np1 -i "$srcdir/0000-configure-java-version.patch" # requires autogen + patch -Np1 -i "$srcdir/0001-makefile-destdir.patch" # requires autogen + patch -Np1 -i "$srcdir/0002-makefile-javadoc-dir.patch" # requires autogen + patch -Np1 -i "$srcdir/0003-lockdir-location.patch" + rm *.m4 && ./autogen.sh + + ./configure --prefix=/usr + make "${_MAKEFLAGS[@]}" all docs +} + +package() { + cd "$srcdir/$_dirname" + . /etc/profile.d/jdk.sh + + make "${_MAKEFLAGS[@]}" DESTDIR="$pkgdir" install + + install -d "$pkgdir/usr/share/doc/$pkgname/" + install -m644 "$srcdir/ChangeLog.txt" "$pkgdir/usr/share/doc/$pkgname/" + install -m644 "$srcdir/GroupMembership.txt" "$pkgdir/usr/share/doc/$pkgname/" + cp -r javadoc "$pkgdir/usr/share/doc/$pkgname/" +} diff --git a/java/java-sonatype-oss-parent/PKGBUILD b/java/java-sonatype-oss-parent/PKGBUILD new file mode 100644 index 000000000..b62c971ac --- /dev/null +++ b/java/java-sonatype-oss-parent/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=java-sonatype-oss-parent +pkgver=7 +pkgdesc="Metadata file for Maven-based build systems to inherit from" +license='Apache2' + +_groupId=org.sonatype.oss +_artifactId=oss-parent + +pkgrel=1 +arch=('any') +makedepends=('jh') +source=("http://search.maven.org/remotecontent?filepath=$_groupId/$_artifactId/$pkgver/$_artifactId-$pkgver.pom") + +package() { + cd "$srcdir" + DESTDIR=$pkgdir jh mvn-install $_groupId $_artifactId $pkgver $_artifactId-$pkgver.pom +} + +md5sums=('3e418cf7f2607bf359e6c514a992cb38') diff --git a/java/javacc/PKGBUILD b/java/javacc/PKGBUILD new file mode 100644 index 000000000..032fd7b25 --- /dev/null +++ b/java/javacc/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=javacc +pkgver=5.0 +pkgdesc="Java Compiler Compiler; a parser generator" +url="http://javacc.java.net/" +license=('BSD3') + +arch=('any') +pkgrel=2.1 +depends=('java-runtime') +makedepends=('apache-ant' 'junit' 'jh') +source=("http://java.net/projects/${pkgname}/downloads/download/${pkgname}-${pkgver}src.tar.gz") + +prepare() { + cd "$srcdir/$pkgname" + rm lib/junit3.8.1/junit.jar + ln -s /usr/share/java/junit.jar lib/junit3.8.1 + #rm bootstrap/javacc.jar +} + +build() { + cd "$srcdir/$pkgname" + + sed -i \ + -e 's|<modelVersion>.*</modelVersion>|<modelVersion>4.0.0</modelVersion>|' \ + -e "s|<version>.*</version>|<version>$pkgver</version>|" \ + pom.xml + + for prog in javacc jjdoc jjtree; do + sed -i 's|JAR=.*|JAR=/usr/share/java/javacc.jar|' bin/$prog + done + + CLASSPATH=/usr/share/java/junit.jar ant +} + +package() { + cd "$srcdir/$pkgname" + + for prog in javacc jjdoc jjrun jjtree; do + install -Dm755 bin/$prog "$pkgdir"/usr/bin/$prog + done + install -Dm644 bin/lib/javacc.jar "$pkgdir"/usr/share/java/javacc.jar + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +md5sums=('871d78a2a5859c2eebc712c1f8135be5') diff --git a/java/jh/PKGBUILD b/java/jh/PKGBUILD new file mode 100644 index 000000000..5638adbce --- /dev/null +++ b/java/jh/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=jh +pkgver=0.5.1 +pkgdesc="Java helpers for PKGBUILDs" +url="https://projects.parabolagnulinux.org/packages/jh.git/" +license=('custom:WTFPL') + +pkgrel=1 +arch=(any) +optdepends=("maven: for configurable maven local repository location") +source=("https://projects.parabolagnulinux.org/packages/${pkgname}.git/snapshot/${pkgname}-${pkgver}.tar.bz2") + +build() { + cd "$srcdir/$pkgname-$pkgver" + make +} + +package() { + depends=(xmlstarlet) + + cd "$srcdir/$pkgname-$pkgver" + make install DESTDIR="$pkgdir" + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} + +md5sums=('051d39c5dac14e86b755bab9ec1d0d5d') diff --git a/java/jna/PKGBUILD b/java/jna/PKGBUILD new file mode 100644 index 000000000..f7248a637 --- /dev/null +++ b/java/jna/PKGBUILD @@ -0,0 +1,115 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=jna +pkgver=3.4.2 + +pkgdesc="Provides Java programs easy access to native shared libraries" +url="https://github.com/twall/jna" +license=('LGPL') +source=("git://github.com/twall/jna.git#tag=${pkgver}" + 'libre-without-clover.patch' + 'bugfix-type-inference.patch' + 'webstart-test.keystore') + +#### + +pkgrel=2 +arch=('i686' 'x86_64') +depends=('java-environment' 'libffi') +makedepends=('apache-ant' 'zip' 'makepkg-git' 'git') +checkdepends=('icedtea-web-java7' 'junit' 'libxtst') +options=('!makeflags') + +unset _JAVA_OPTIONS +_M2_LOCALREPO='/usr/share/maven/repository' + +_ant_options=( + '-Ddynlink.native=true' # use the system install of libffi +) + +#### + +prepare() { + cd "$srcdir/jna" + find . -name '*.jar' -delete + rm -rf dist + rm -rf native/libffi # make sure it doesn't cheat + rm lib/clover.license + rm w32ce-test.lnk + + ln -s /usr/share/java/junit.jar lib/ + + # Create an emtpy zip (jar) file + cd "$srcdir" + touch file + zip empty.zip file + zip -d empty.zip file + rm file +} + +#### + +build() { + cd "$srcdir/jna" + + # Because JNA's release process is ridiculous, it wants a jar file for every + # architecture to be present. So let's just dump in an empty jar file! + sed -n 's|\s*<zipfileset src="${lib\.native}/\(.*\)"|\1|p' build.xml \ + | while read jarfile; do + cp "$srcdir/empty.zip" lib/native/$jarfile + done + + patch -p1 -i "$srcdir/libre-without-clover.patch" + patch -p1 -i "$srcdir/bugfix-type-inference.patch" + + # Disable tests that intermittently fail + # crashes vm (segfault) + sed -i -e 's|testRegisterMethods|no&|' test/com/sun/jna/DirectTest.java + # crashes vm, java 7 only (icedtea-7, oracle-jdk-bin-1.7) + sed -i -e 's|testGCCallbackOnFinalize|no&|' test/com/sun/jna/CallbacksTest.java + + # Actually build + ant "${_ant_options[@]}" dist +} + +check() { + cd "$srcdir/jna" + + # Create a foke home directory to trash + mkdir "$srcdir/user.home" + export _JAVA_OPTIONS="-Duser.home=$srcdir/user.home -Djava.awt.headless=true" + + # The webstart test looks for this config file + mkdir -p "$srcdir/user.home/.java/deployment" + touch "$srcdir/user.home/.java/deployment/deployment.properties" + + # Trust the cert used for the webstart test + mkdir -p "$srcdir/user.home/.icedtea/security" + cp "$srcdir/webstart-test.keystore" "$srcdir/user.home/.icedtea/security/trusted.certs" + + _ant_options+=('-Dtests.exclude-patterns=**/DirectTest.java') + + # Run the tests + ant "${_ant_options[@]}" test +} + +package() { + cd "$srcdir/jna" + + install -d "$pkgdir/usr/share/java/jna" + + for pkg in jna platform; do + dir="$_M2_LOCALREPO"/net/java/dev/jna/$pkg/$pkgver + install -d "$pkgdir$dir" + cp dist/$pkg.jar "$pkgdir$dir/$pkg-$pkgver.jar" + cp pom-$pkg.xml "$pkgdir$dir/$pkg-$pkgver.pom" + ln -s "$dir/$pkg-$pkgver.jar" "$pkgdir/usr/share/java/jna/$pkg.jar" + done + + ln -s jna/jna.jar "$pkgdir/usr/share/java/jna.jar" +} + +md5sums=('SKIP' + '3a2f96b868f49ca125b677779e846484' + '932d9cb2da1531a2315ae132480683fa' + 'b704c7d2cb1fe7a93f8cad8d321d16f8') diff --git a/java/jna/bugfix-type-inference.patch b/java/jna/bugfix-type-inference.patch new file mode 100644 index 000000000..2322b13fc --- /dev/null +++ b/java/jna/bugfix-type-inference.patch @@ -0,0 +1,13 @@ +diff -ru jna-3.4.2.orig/test/com/sun/jna/NativeTest.java jna-3.4.2/test/com/sun/jna/NativeTest.java +--- jna-3.4.2.orig/test/com/sun/jna/NativeTest.java 2012-09-03 08:30:42.000000000 -0400 ++++ jna-3.4.2/test/com/sun/jna/NativeTest.java 2012-09-24 15:29:48.000000000 -0400 +@@ -374,7 +374,8 @@ + for (int i=0;i < args.length;i++) { + System.out.println("Running tests on class " + args[i]); + try { +- junit.textui.TestRunner.run(Class.forName(args[i])); ++ Class<?> klass = Class.forName(args[i]); ++ junit.textui.TestRunner.run((Class<? extends TestCase>)klass); + } + catch(Throwable e) { + e.printStackTrace(); diff --git a/java/jna/libre-without-clover.patch b/java/jna/libre-without-clover.patch new file mode 100644 index 000000000..b4947e8b2 --- /dev/null +++ b/java/jna/libre-without-clover.patch @@ -0,0 +1,71 @@ +diff -ru jna-3.4.2.orig/build.xml jna-3.4.2/build.xml +--- jna-3.4.2.orig/build.xml 2012-09-06 06:55:52.000000000 -0400 ++++ jna-3.4.2/build.xml 2012-09-24 15:49:59.000000000 -0400 +@@ -230,7 +230,6 @@ + <path id="test.runpath"> + <pathelement path="${build}/${jar}"/> + <pathelement path="${test.classes}"/> +- <pathelement path="lib/clover.jar"/> + <path refid="test.libs"/> + </path> + </target> +@@ -536,12 +535,11 @@ + <copy todir="${build}/jws" file="${build}/${jar}"/> + <copy todir="${build}/jws" file="${build}/${testjar}"/> + <copy todir="${build}/jws" file="lib/junit.jar"/> +- <copy todir="${build}/jws" file="lib/clover.jar"/> + <jar jarfile="${build}/jws/jnidispatch.jar"> + <fileset dir="${build.native}" includes="*jnidispatch.*"/> + </jar> + <signjar alias="jna" keystore="jna.keystore" storepass="jnadev" lazy="true"> +- <fileset dir="${build}/jws" includes="jna.jar,jna-test.jar,junit.jar,jnidispatch.jar,clover.jar"/> ++ <fileset dir="${build}/jws" includes="jna.jar,jna-test.jar,junit.jar,jnidispatch.jar"/> + </signjar> + </target> + +@@ -626,7 +624,7 @@ + <report todir="${reports.junit}"/> + </junitreport> + <echo>View test report in file://${reports.junit}/index.html</echo> +- <fail if="testfailure" unless="clover">One or more tests failed</fail> ++ <fail if="testfailure">One or more tests failed</fail> + </target> + + <target name="contrib-test" depends="contrib-jars,compile-tests"> +@@ -640,27 +638,6 @@ + </subant> + </target> + +- <target name="with.clover" description="Enable code coverage for tests"> +- <taskdef resource="cloverlib.xml" classpath="lib/clover.jar"/> +- <property name="clover" value="true"/> +- <property name="build" value="build.clover"/> +- <clover-setup/> +- </target> +- +- <target name="clover" depends="with.clover,test" +- description="Generate test code coverage reports"> +- <property name="reports.clover" value="${reports}/clover"/> +- <mkdir dir="${reports.clover}"/> +- <clover-report> +- <current outfile="${reports.clover}" title="clover"> +- <fileset dir="." includes="**/*.java" /> +- <testresults dir="${results.junit}" includes="TEST-*.xml"/> +- <format type="html"/> +- </current> +- </clover-report> +- <echo>Reports generated in ${reports.clover}</echo> +- </target> +- + <target name="javadoc" depends="-setup"> + <path id="javadoc.src.path"> + <path refid="src.path"/> +@@ -881,7 +858,7 @@ + <!-- Full sources required to build and test everything --> + <zip zipfile="${dist}/src-full.zip"> + <zipfileset src="${dist}/src.zip"/> +- <zipfileset dir="lib" includes="junit.jar,clover.jar" prefix="lib"/> ++ <zipfileset dir="lib" includes="junit.jar" prefix="lib"/> + <zipfileset dir="." includes=".classpath,.project"/> + <zipfileset dir="${native}" includes="libffi,libffi/**/*" prefix="native"/> + </zip> diff --git a/java/jna/webstart-test.keystore b/java/jna/webstart-test.keystore Binary files differnew file mode 100644 index 000000000..1bbe8c829 --- /dev/null +++ b/java/jna/webstart-test.keystore diff --git a/java/junit/PKGBUILD b/java/junit/PKGBUILD new file mode 100644 index 000000000..04dbcb2ac --- /dev/null +++ b/java/junit/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (Arch): Guillaume ALAUX <Guillaume at Arch Linux dot org> + +pkgname=junit +pkgver=4.11 +pkgdesc="Automated testing framework for Java" +url="http://www.junit.org/" +license=('CPL') + +pkgrel=3.2 +arch=('any') +depends=('java-runtime' 'java-hamcrest') +makedepends=('apache-ant' 'jakarta-oro' 'jh') + +source=("libre://$pkgname-$pkgver.tar.gz") +md5sums=('cdaa9856761201de81a61aecb8cfcc9c') + +mksource=("$pkgname-$pkgver::git://github.com/junit-team/junit.git#tag=r$pkgver") +mkmd5sums=('SKIP') +mksource() { + cd "${srcdir}/${pkgname}-${pkgver}" + find . -name '*.jar' -delete +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ln -sf /usr/share/java/jakarta-oro.jar build/lib/ + ln -sf /usr/share/java/hamcrest-core.jar lib/hamcrest-core-1.3.jar + + ant -Dversion-status='' jars + for artifact in junit junit-dep; do + sed \ + -e "s|@artifactID@|$artifact|" \ + -e "s|@version@|$pkgver|" \ + < build/maven/$artifact-pom-template.xml > $pkgname$pkgver/$artifact-$pkgver.pom + done +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}${pkgver}" + + export DESTDIR="$pkgdir" + jh mvn-install $pkgname junit $pkgver junit-$pkgver.{pom,jar} junit-$pkgver.jar + jh mvn-install $pkgname junit-dep $pkgver junit-dep-$pkgver.pom + ln -s ${pkgname}-${pkgver}.jar ${pkgdir}/usr/share/java/${pkgname}.jar +} diff --git a/java/maven/PKGBUILD b/java/maven/PKGBUILD new file mode 100644 index 000000000..3f8e5071d --- /dev/null +++ b/java/maven/PKGBUILD @@ -0,0 +1,107 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: William Rea <sillywilly@gmail.com> + +pkgname=maven +pkgver=3.0.5 +pkgdesc="A Java project management and project comprehension tool" +url="http://maven.apache.org" +license=('Apache') + +replaces=('maven-libre') +conflicts=('maven-libre') + +pkgrel=1 +arch=('any') +options=(!emptydirs) +conflicts=('maven') +depends=('java-environment' 'sh') +makedepends=('apache-ant' 'jh' 'imake' + java-antlr2 + java-asm3 +) +backup=('etc/maven/settings.xml') + +_mirror=http://archive.apache.org/dist +source=($_mirror/maven/maven-${pkgver%%.*}/$pkgver/source/apache-maven-$pkgver-src.tar.gz + maven.sh maven.csh) + +_setup_env() { + unset _JAVA_OPTIONS + . /etc/profile.d/jre.sh + . /etc/profile.d/jdk.sh + export MAVEN_OPTS=-Xmx512m + export M2_HOME="$pkgdir"/opt/maven + export PATH="$PATH:$M2_HOME/bin" + _M2_LOCALREPO=$(jh mvn-localrepo) + ant_args=( + -Dmaven.repo.local="$srcdir"/maven.repo.local + ) +} + +prepare() { + if type mvn &>/dev/null; then + error "maven cannot be built while an existing version is installed" + return 1 + fi +} + +build() ( + _setup_env + install -d "$srcdir"/maven.repo.local + lndir "$_M2_LOCALREPO" "$srcdir"/maven.repo.local + + cd "$srcdir"/apache-maven-$pkgver + + # FIXME: downloads makedepends from the Internet. Add them to makedepends=() + ant "${ant_args[@]}" maven-assembly 2>&1|tee "$srcdir"/ant-log.txt + + < "$srcdir"/ant-log.txt \ + sed -nr 's/.*Download(ed|ing):\s*//p' | \ + sed 's/ .*//' | \ + sed -r -e 's|^http://repo.maven.apache.org/maven2/||' -e 's/\.(jar|pom)$//' | \ + sort -u > "$srcdir"/downloaded-artifacts.txt +) + +package() ( + _setup_env + cd "$srcdir"/apache-maven-$pkgver + ant "${ant_args[@]}" extract-assembly + #rm "$pkgdir"/opt/maven/*.txt + + # Install config file in /etc + # Unlike the other directories, we symlink from the system to /opt/maven + # because that way all conf files stay in /etc + install -d "$pkgdir"/etc/maven + sed "55i<localRepository>$_M2_LOCALREPO</localRepository>" \ + < "$pkgdir"/opt/maven/conf/settings.xml \ + > "$pkgdir"/etc/maven/settings.xml + rm -rf "$pkgdir"/opt/maven/conf + ln -s /etc/maven "$pkgdir"/opt/maven/conf + + # Install profile.d settings + install -d "$pkgdir"/etc/profile.d + install -m 755 "$srcdir"/maven.{csh,sh} "$pkgdir"/etc/profile.d + + # Link executables to /usr/bin + install -d "$pkgdir"/usr/bin + ln -s /opt/maven/bin/{mvn,mvnDebug,mvnyjp} "$pkgdir"/usr/bin + + # Link jar files to appropriate place in /usr/share + install -d "$pkgdir"/usr/share/java + ln -s /opt/maven/lib "$pkgdir"/usr/share/java/maven + + # Install the local repo + mkdir -p "$pkgdir"${_M2_LOCALREPO%/*} + cp -a "$srcdir"/maven.repo.local "$pkgdir"$_M2_LOCALREPO + # Remove extra artifacts + find "$pkgdir"$_M2_LOCALREPO -type l -delete + find "$pkgdir"$_M2_LOCALREPO -name _maven.repositories -delete + cat "$srcdir"/downloaded-artifacts.txt | while read artifact; do + rm -f "$pkgdir"$_M2_LOCALREPO/$artifact* + done +) + +md5sums=('b88becd8fe5a9665191e05945942db64' + '58820067a4d7384477daa134023d9b57' + 'e2bbdeffed100cd51d05b2ba8ebd6321') diff --git a/java/maven/maven.csh b/java/maven/maven.csh new file mode 100644 index 000000000..f5750cfc8 --- /dev/null +++ b/java/maven/maven.csh @@ -0,0 +1,2 @@ +setenv MAVEN_OPTS -Xmx512m +setenv M2_HOME=/opt/maven diff --git a/java/maven/maven.sh b/java/maven/maven.sh new file mode 100644 index 000000000..b6655cc22 --- /dev/null +++ b/java/maven/maven.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export MAVEN_OPTS=-Xmx512m +export M2_HOME=/opt/maven diff --git a/java/nant/PKGBUILD b/java/nant/PKGBUILD new file mode 100644 index 000000000..f57c8519f --- /dev/null +++ b/java/nant/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=nant +pkgver=0.92 +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" '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' + '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 @@ + <!-- nant config settings --> + <nant> + <frameworks> +- <platform name="win32" default="auto"> +- <task-assemblies> +- <!-- include NAnt task assemblies --> +- <include name="*Tasks.dll" /> +- <!-- include NAnt test assemblies --> +- <include name="*Tests.dll" /> +- <!-- include framework-neutral assemblies --> +- <include name="extensions/common/neutral/**/*.dll" /> +- <!-- exclude Microsoft.NET specific task assembly --> +- <exclude name="NAnt.MSNetTasks.dll" /> +- <!-- exclude Microsoft.NET specific test assembly --> +- <exclude name="NAnt.MSNet.Tests.dll" /> +- </task-assemblies> +- <framework +- name="net-1.0" +- family="net" +- version="1.0" +- description="Microsoft .NET Framework 1.0" +- sdkdirectory="${path::combine(sdkInstallRoot, 'bin')}" +- frameworkdirectory="${path::combine(installRoot, 'v1.0.3705')}" +- frameworkassemblydirectory="${path::combine(installRoot, 'v1.0.3705')}" +- clrversion="1.0.3705" +- clrtype="Desktop" +- vendor="Microsoft" +- > +- <runtime> +- <probing-paths> +- <directory name="lib/net/1.0" /> +- <directory name="lib/net/neutral" /> +- <directory name="lib/common/1.0" /> +- <directory name="lib/common/neutral" /> +- </probing-paths> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v1.0.3705" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(installRoot, 'v1.0.3705')}"> +- <include name="Accessibility.dll" /> +- <include name="cscompmgd.dll" /> +- <include name="mscorlib.dll" /> +- <include name="Microsoft.Vsa.dll" /> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="System.Configuration.Install.dll" /> +- <include name="System.Data.dll" /> +- <include name="System.Design.dll" /> +- <include name="System.DirectoryServices.dll" /> +- <include name="System.dll" /> +- <include name="System.Drawing.Design.dll" /> +- <include name="System.Drawing.dll" /> +- <include name="System.EnterpriseServices.dll" /> +- <include name="System.Management.dll" /> +- <include name="System.Messaging.dll" /> +- <include name="System.Runtime.Remoting.dll" /> +- <include name="System.Runtime.Serialization.Formatters.Soap.dll" /> +- <include name="System.Security.dll" /> +- <include name="System.ServiceProcess.dll" /> +- <include name="System.Web.dll" /> +- <include name="System.Web.RegularExpressions.dll" /> +- <include name="System.Web.Services.dll" /> +- <include name="System.Windows.Forms.dll" /> +- <include name="System.XML.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 1.0 specific assemblies --> +- <include name="extensions/net/1.0/**/*.dll" /> +- <!-- include Microsoft.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include Microsoft.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 1.0 specific assemblies --> +- <include name="extensions/common/1.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${path::combine(sdkInstallRoot, 'bin')}" +- if="${property::exists('sdkInstallRoot')}" /> +- <directory name="${path::combine(installRoot, 'v1.0.3705')}" /> +- </tool-paths> +- <project> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="sdkInstallRoot" +- key="SOFTWARE\Microsoft\.NETFramework\sdkInstallRoot" +- hive="LocalMachine" +- failonerror="false" /> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="supportsnowarnlist">true</attribute> +- </task> +- <task name="vjc"> +- <attribute name="supportsnowarnlist">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- </task> +- <task name="aximp"> +- <attribute name="supportsrcw">false</attribute> +- </task> +- <task name="tlbimp"> +- <attribute name="supportstransform">false</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="net-1.1" +- family="net" +- version="1.1" +- description="Microsoft .NET Framework 1.1" +- sdkdirectory="${path::combine(sdkInstallRoot, 'bin')}" +- frameworkdirectory="${path::combine(installRoot, 'v1.1.4322')}" +- frameworkassemblydirectory="${path::combine(installRoot, 'v1.1.4322')}" +- clrversion="1.1.4322" +- clrtype="Desktop" +- vendor="Microsoft" +- > +- <runtime> +- <probing-paths> +- <directory name="lib/net/1.1" /> +- <directory name="lib/net/neutral" /> +- <directory name="lib/common/1.1" /> +- <directory name="lib/common/neutral" /> +- </probing-paths> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v1.1.4322" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(installRoot, 'v1.1.4322')}"> +- <include name="Accessibility.dll" /> +- <include name="cscompmgd.dll" /> +- <include name="mscorlib.dll" /> +- <include name="Microsoft.Vsa.dll" /> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="Microsoft.VisualBasic.Compatibility.dll" /> +- <include name="Microsoft.VisualBasic.Compatibility.Data.dll" /> +- <include name="System.Configuration.Install.dll" /> +- <include name="System.Data.dll" /> +- <include name="System.Data.OracleClient.dll" /> +- <include name="System.Design.dll" /> +- <include name="System.DirectoryServices.dll" /> +- <include name="System.dll" /> +- <include name="System.Drawing.Design.dll" /> +- <include name="System.Drawing.dll" /> +- <include name="System.EnterpriseServices.dll" /> +- <include name="System.Management.dll" /> +- <include name="System.Messaging.dll" /> +- <include name="System.Runtime.Remoting.dll" /> +- <include name="System.Runtime.Serialization.Formatters.Soap.dll" /> +- <include name="System.Security.dll" /> +- <include name="System.ServiceProcess.dll" /> +- <include name="System.Web.dll" /> +- <include name="System.Web.Mobile.dll" /> +- <include name="System.Web.RegularExpressions.dll" /> +- <include name="System.Web.Services.dll" /> +- <include name="System.Windows.Forms.dll" /> +- <include name="System.XML.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 1.1 specific assemblies --> +- <include name="extensions/net/1.1/**/*.dll" /> +- <!-- include MS.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include MS.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 1.1 specific assemblies --> +- <include name="extensions/common/1.1/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${path::combine(sdkInstallRoot, 'bin')}" +- if="${property::exists('sdkInstallRoot')}" /> +- <directory name="${path::combine(installRoot, 'v1.1.4322')}" /> +- </tool-paths> +- <project> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="sdkInstallRoot" +- key="SOFTWARE\Microsoft\.NETFramework\sdkInstallRootv1.1" +- hive="LocalMachine" +- failonerror="false" /> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="supportsnowarnlist">true</attribute> +- </task> +- <task name="vjc"> +- <attribute name="supportsnowarnlist">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="net-2.0" +- family="net" +- version="2.0" +- description="Microsoft .NET Framework 2.0" +- sdkdirectory="${path::combine(sdkInstallRoot, 'bin')}" +- frameworkdirectory="${path::combine(installRoot, 'v2.0.50727')}" +- frameworkassemblydirectory="${path::combine(installRoot, 'v2.0.50727')}" +- clrversion="2.0.50727" +- clrtype="Desktop" +- vendor="Microsoft" +- > +- <runtime> +- <probing-paths> +- <directory name="lib/net/2.0" /> +- <directory name="lib/net/neutral" /> +- <directory name="lib/common/2.0" /> +- <directory name="lib/common/neutral" /> +- </probing-paths> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v2.0.50727" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(installRoot, 'v2.0.50727')}"> +- <include name="Accessibility.dll" /> +- <include name="cscompmgd.dll" /> +- <include name="mscorlib.dll" /> +- <include name="Microsoft.Build.Engine.dll" /> +- <include name="Microsoft.Build.Framework.dll" /> +- <include name="Microsoft.Build.Utilities.dll" /> +- <include name="Microsoft.Vsa.dll" /> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="Microsoft.VisualBasic.Compatibility.dll" /> +- <include name="Microsoft.VisualBasic.Compatibility.Data.dll" /> +- <include name="System.Configuration.dll" /> +- <include name="System.Configuration.Install.dll" /> +- <include name="System.Data.dll" /> +- <include name="System.Data.OracleClient.dll" /> +- <include name="System.Data.SqlXml.dll" /> +- <include name="System.Deployment.dll" /> +- <include name="System.Design.dll" /> +- <include name="System.DirectoryServices.dll" /> +- <include name="System.dll" /> +- <include name="System.Drawing.Design.dll" /> +- <include name="System.Drawing.dll" /> +- <include name="System.EnterpriseServices.dll" /> +- <include name="System.Management.dll" /> +- <include name="System.Messaging.dll" /> +- <include name="System.Runtime.Remoting.dll" /> +- <include name="System.Runtime.Serialization.Formatters.Soap.dll" /> +- <include name="System.Security.dll" /> +- <include name="System.ServiceProcess.dll" /> +- <include name="System.Transactions.dll" /> +- <include name="System.Web.dll" /> +- <include name="System.Web.Mobile.dll" /> +- <include name="System.Web.RegularExpressions.dll" /> +- <include name="System.Web.Services.dll" /> +- <include name="System.Windows.Forms.dll" /> +- <include name="System.XML.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 2.0 specific assemblies --> +- <include name="extensions/net/2.0/**/*.dll" /> +- <!-- include MS.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include MS.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 2.0 specific assemblies --> +- <include name="extensions/common/2.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${path::combine(sdkInstallRoot, 'bin')}" +- if="${property::exists('sdkInstallRoot')}" /> +- <directory name="${path::combine(installRoot, 'v2.0.50727')}" /> +- </tool-paths> +- <project> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="sdkInstallRoot" +- key="SOFTWARE\Microsoft\.NETFramework\sdkInstallRootv2.0" +- hive="LocalMachine" +- failonerror="false" /> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="vbc"> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportsnostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="supportsplatform">true</attribute> +- </task> +- <task name="vjc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="supportsassemblyreferences">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- <attribute name="supportsassemblyreferences">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="net-3.5" +- family="net" +- version="3.5" +- description="Microsoft .NET Framework 3.5" +- sdkdirectory="${sdkInstallRoot}" +- frameworkdirectory="${path::combine(installRoot, 'v3.5')}" +- frameworkassemblydirectory="${path::combine(installRoot, 'v2.0.50727')}" +- clrversion="2.0.50727" +- clrtype="Desktop" +- vendor="Microsoft" +- > +- <runtime> +- <probing-paths> +- <directory name="lib/net/2.0" /> +- <directory name="lib/net/neutral" /> +- <directory name="lib/common/2.0" /> +- <directory name="lib/common/neutral" /> +- </probing-paths> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v2.0.50727" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(installRoot, 'v2.0.50727')}"> +- <include name="Accessibility.dll" /> +- <include name="cscompmgd.dll" /> +- <include name="mscorlib.dll" /> +- <include name="Microsoft.Build.Utilities.dll" /> +- <include name="Microsoft.Vsa.dll" /> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="Microsoft.VisualBasic.Compatibility.dll" /> +- <include name="Microsoft.VisualBasic.Compatibility.Data.dll" /> +- <include name="System.Configuration.dll" /> +- <include name="System.Configuration.Install.dll" /> +- <include name="System.Data.dll" /> +- <include name="System.Data.OracleClient.dll" /> +- <include name="System.Data.SqlXml.dll" /> +- <include name="System.Deployment.dll" /> +- <include name="System.Design.dll" /> +- <include name="System.DirectoryServices.dll" /> +- <include name="System.dll" /> +- <include name="System.Drawing.Design.dll" /> +- <include name="System.Drawing.dll" /> +- <include name="System.EnterpriseServices.dll" /> +- <include name="System.Management.dll" /> +- <include name="System.Messaging.dll" /> +- <include name="System.Runtime.Remoting.dll" /> +- <include name="System.Runtime.Serialization.Formatters.Soap.dll" /> +- <include name="System.Security.dll" /> +- <include name="System.ServiceProcess.dll" /> +- <include name="System.Transactions.dll" /> +- <include name="System.Web.dll" /> +- <include name="System.Web.Mobile.dll" /> +- <include name="System.Web.RegularExpressions.dll" /> +- <include name="System.Web.Services.dll" /> +- <include name="System.Windows.Forms.dll" /> +- <include name="System.XML.dll" /> +- </reference-assemblies> +- <reference-assemblies basedir="${environment::get-folder-path('ProgramFiles')}/Reference Assemblies/Microsoft/Framework/v3.5"> +- <include name="Microsoft.Build.Engine.dll" /> +- <include name="Microsoft.Build.Framework.dll" /> +- <include name="System.AddIn.Contract.dll" /> +- <include name="System.AddIn.dll" /> +- <include name="System.ComponentModel.DataAnnotations.dll" /> +- <include name="System.Core.dll" /> +- <include name="System.Data.DataSetExtensions.dll" /> +- <include name="System.Data.Entity.Design.dll" /> +- <include name="System.Data.Entity.dll" /> +- <include name="System.Data.Linq.dll" /> +- <include name="System.Data.Services.Client.dll" /> +- <include name="System.Data.Services.Design.dll" /> +- <include name="System.Data.Services.dll" /> +- <include name="System.DirectoryServices.AccountManagement.dll" /> +- <include name="System.Management.Instrumentation.dll" /> +- <include name="System.Net.dll" /> +- <include name="System.ServiceModel.Web.dll" /> +- <include name="System.Web.Abstractions.dll" /> +- <include name="System.Web.DynamicData.Design.dll" /> +- <include name="System.Web.DynamicData.dll" /> +- <include name="System.Web.Entitly.Design.dll" /> +- <include name="System.Web.Entitly.dll" /> +- <include name="System.Web.Extensions.Design.dll" /> +- <include name="System.Web.Extensions.dll" /> +- <include name="System.Web.Routing.dll" /> +- <include name="System.Windows.Presentation.dll" /> +- <include name="System.WorkflowServices.dll" /> +- <include name="System.Xml.Linq.dll" /> +- </reference-assemblies> +- <reference-assemblies basedir="${environment::get-folder-path('ProgramFiles')}/Reference Assemblies/Microsoft/Framework/v3.0"> +- <include name="PresentationBuildTasks.dll" /> +- <include name="PresentationCore.dll" /> +- <include name="PresentationFramework.Aero.dll" /> +- <include name="PresentationFramework.Classic.dll" /> +- <include name="PresentationFramework.dll" /> +- <include name="PresentationFramework.Luna.dll" /> +- <include name="PresentationFramework.Royale.dll" /> +- <include name="ReachFramework.dll" /> +- <include name="System.IdentityModel.dll" /> +- <include name="System.IdentityModel.Selectors.dll" /> +- <include name="System.IO.Log.dll" /> +- <include name="System.Printing.dll" /> +- <include name="System.Runtime.Serialization.dll" /> +- <include name="System.ServiceModel.dll" /> +- <include name="System.Speech.dll" /> +- <include name="System.Workflow.Activities.dll" /> +- <include name="System.Workflow.ComponentModel.dll" /> +- <include name="System.Workflow.Runtime.dll" /> +- <include name="UIAutomationClient.dll" /> +- <include name="UIAutomationClientsideProviders.dll" /> +- <include name="UIAutomationProvider.dll" /> +- <include name="UIAutomationTypes.dll" /> +- <include name="WindowsBase.dll" /> +- <include name="WindowsFormsIntegration.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 2.0 specific assemblies --> +- <include name="extensions/net/2.0/**/*.dll" /> +- <!-- include MS.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include MS.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 2.0 specific assemblies --> +- <include name="extensions/common/2.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${sdkInstallRoot}" +- if="${property::exists('sdkInstallRoot')}" /> +- <directory name="${path::combine(installRoot, 'v3.5')}" /> +- <directory name="${path::combine(installRoot, 'v2.0.50727')}" /> +- </tool-paths> +- <project> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <locatesdk property="sdkInstallRoot" minwinsdkver="v6.0A" maxnetfxver="3.5" failonerror="false" /> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="vbc"> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportsnostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="supportsplatform">true</attribute> +- </task> +- <task name="vjc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="supportsassemblyreferences">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- <attribute name="supportsassemblyreferences">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="net-4.0" +- family="net" +- version="4.0" +- description="Microsoft .NET Framework 4.0" +- sdkdirectory="${sdkInstallRoot}" +- frameworkdirectory="${path::combine(installRoot, 'v4.0.30319')}" +- frameworkassemblydirectory="${path::combine(installRoot, 'v4.0.30319')}" +- clrversion="4.0.30319" +- clrtype="Desktop" +- vendor="Microsoft" +- > +- <runtime> +- <probing-paths> +- <directory name="lib/common/2.0" /> +- <directory name="lib/common/neutral" /> +- </probing-paths> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v4.0.30319" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(installRoot, 'v4.0.30319')}"> +- <include name="Accessibility.dll" /> +- <include name="Microsoft.Build.Conversion.v4.0.dll" /> +- <include name="Microsoft.Build.dll" /> +- <include name="Microsoft.Build.Engine.dll" /> +- <include name="Microsoft.Build.Framework.dll" /> +- <include name="Microsoft.Build.Tasks.v4.0.dll" /> +- <include name="Microsoft.Build.Utilities.v4.0.dll" /> +- <include name="Microsoft.CSharp.dll" /> +- <include name="Microsoft.Data.Entity.Build.Tasks.dll" /> +- <include name="Microsoft.JScript.dll" /> +- <include name="Microsoft.Transactions.Bridge.dll" /> +- <include name="Microsoft.Transactions.Bridge.Dtc.dll" /> +- <include name="Microsoft.VisualBasic.Activities.Compiler.dll" /> +- <include name="Microsoft.VisualBasic.Compatibility.Data.dll" /> +- <include name="Microsoft.VisualBasic.Compatibility.dll" /> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="Microsoft.VisualC.dll" /> +- <include name="Microsoft.VisualC.STLCLR.dll" /> +- <include name="mscorlib.dll" /> +- <include name="System.Activities.Core.Presentation.dll" /> +- <include name="System.Activities.dll" /> +- <include name="System.Activities.DurableInstancing.dll" /> +- <include name="System.Activities.Presentation.dll" /> +- <include name="System.AddIn.Contract" /> +- <include name="System.AddIn.dll" /> +- <include name="System.ComponentModel.Composition.dll" /> +- <include name="System.ComponentModel.DataAnnotations.dll" /> +- <include name="System.Configuration.dll" /> +- <include name="System.Configuration.Install.dll" /> +- <include name="System.Core.dll" /> +- <include name="System.Data.DataSetExtensions.dll" /> +- <include name="System.Data.dll" /> +- <include name="System.Data.Entity.Design.dll" /> +- <include name="System.Data.Entity.dll" /> +- <include name="System.Data.Linq.dll" /> +- <include name="System.Data.OracleClient.dll" /> +- <include name="System.Data.Services.Client.dll" /> +- <include name="System.Data.Services.Design.dll" /> +- <include name="System.Data.Services.dll" /> +- <include name="System.Data.SqlXml.dll" /> +- <include name="System.Deployment.dll" /> +- <include name="System.Design.dll" /> +- <include name="System.Device.dll" /> +- <include name="System.DirectoryServices.dll" /> +- <include name="System.DirectoryServices.Protocols.dll" /> +- <include name="System.dll" /> +- <include name="System.Drawing.Design.dll" /> +- <include name="System.Drawing.dll" /> +- <include name="System.Dynamic.dll" /> +- <include name="System.EnterpriseServices.dll" /> +- <include name="System.EnterpriseServices.Thunk.dll" /> +- <include name="System.EnterpriseServices.Wrapper.dll" /> +- <include name="System.IdentityModel.dll" /> +- <include name="System.IdentityModel.Selectors.dll" /> +- <include name="System.IO.Log.dll" /> +- <include name="System.Management.dll" /> +- <include name="System.Management.Instrumentation.dll" /> +- <include name="System.Messaging.dll" /> +- <include name="System.Net.dll" /> +- <include name="System.Numerics.dll" /> +- <include name="System.Runtime.Caching.dll" /> +- <include name="System.Runtime.DurableInstancing.dll" /> +- <include name="System.Runtime.Remoting.dll" /> +- <include name="System.Runtime.Serialization.dll" /> +- <include name="System.Runtime.Serialization.Formatters.Soap.dll" /> +- <include name="System.Security.dll" /> +- <include name="System.ServiceModel.Activation.dll" /> +- <include name="System.ServiceModel.Activities.dll" /> +- <include name="System.ServiceModel.Channels.dll" /> +- <include name="System.ServiceModel.Discovery.dll" /> +- <include name="System.ServiceModel.dll" /> +- <include name="System.ServiceModel.Routing.dll" /> +- <include name="System.ServiceModel.ServiceMoniker40.dll" /> +- <include name="System.ServiceModel.WasHosting.dll" /> +- <include name="System.ServiceModel.Web.dll" /> +- <include name="System.ServiceProcess.dll" /> +- <include name="System.Transactions.dll" /> +- <include name="System.Web.Abstractions.dll" /> +- <include name="System.Web.ApplicationServices.dll" /> +- <include name="System.Web.DataVisualization.Design.dll" /> +- <include name="System.Web.DataVisualization.dll" /> +- <include name="System.Web.dll" /> +- <include name="System.Web.DynamicData.Design.dll" /> +- <include name="System.Web.DynamicData.dll" /> +- <include name="System.Web.Entity.Design.dll" /> +- <include name="System.Web.Entity.dll" /> +- <include name="System.Web.Extensions.Design.dll" /> +- <include name="System.Web.Extensions.dll" /> +- <include name="System.Web.Mobile.dll" /> +- <include name="System.Web.RegularExpressions.dll" /> +- <include name="System.Web.Routing.dll" /> +- <include name="System.Web.Services.dll" /> +- <include name="System.Windows.Forms.DataVisualization.Design.dll" /> +- <include name="System.Windows.Forms.DataVisualization.dll" /> +- <include name="System.Windows.Forms.dll" /> +- <include name="System.Workflow.Activities.dll" /> +- <include name="System.Workflow.ComponentModel.dll" /> +- <include name="System.Workflow.Runtime.dll" /> +- <include name="System.WorkflowServices.dll" /> +- <include name="System.Xaml.dll" /> +- <include name="System.Xaml.Hosting.dll" /> +- <include name="System.Xml.dll" /> +- <include name="System.Xml.Linq.dll" /> +- </reference-assemblies> +- <!-- WPF Assemblies --> +- <reference-assemblies basedir="${path::combine(installRoot, 'v4.0.30319')}/WPF"> +- <include name="NaturalLanguage6.dll" /> +- <include name="NlsData0009.dll" /> +- <include name="NlsLexicons0009.dll" /> +- <include name="PenIMC.dll" /> +- <include name="PresentationCore.dll" /> +- <include name="PresentationFramework.Aero.dll" /> +- <include name="PresentationFramework.Classic.dll" /> +- <include name="PresentationFramework.dll" /> +- <include name="PresentationFramework.Luna.dll" /> +- <include name="PresentationFramework.Royale.dll" /> +- <include name="PresentationHost_v0400.dll" /> +- <include name="PresentationNative_v0400.dll" /> +- <include name="PresentationUI.dll" /> +- <include name="ReachFramework.dll" /> +- <include name="System.Printing.dll" /> +- <include name="System.Speech.dll" /> +- <include name="System.Windows.Input.Manipulations.dll" /> +- <include name="System.Windows.Presentation.dll" /> +- <include name="UIAutomationClient.dll" /> +- <include name="UIAutomationClientsideProviders.dll" /> +- <include name="UIAutomationProvider.dll" /> +- <include name="UIAutomationTypes.dll" /> +- <include name="WindowsBase.dll" /> +- <include name="WindowsFormsIntegration.dll" /> +- <include name="wpfgfx_v0400.dll" /> +- <include name="wpftxt_v0400.dll" /> +- </reference-assemblies> +- <reference-assemblies basedir="${environment::get-folder-path('ProgramFiles')}/Reference Assemblies/Microsoft/Framework/.NETFramework/v4.0"> +- <include name="Microsoft.Build.Conversion.v4.0.dll" /> +- <include name="Microsoft.Build.dll" /> +- <include name="Microsoft.Build.Engine.dll" /> +- <include name="Microsoft.Build.Framework.dll" /> +- <include name="Microsoft.Build.Tasks.v4.0.dll" /> +- <include name="Microsoft.Build.Utilities.v4.0.dll" /> +- <include name="Microsoft.CSharp.dll" /> +- <include name="Microsoft.JScript.dll" /> +- <include name="Microsoft.VisualBasic.Compatibility.Data.dll" /> +- <include name="Microsoft.VisualBasic.Comptatibility.dll" /> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="Microsoft.VisualC.dll" /> +- <include name="Microsoft.VisualC.STLCLR.dll" /> +- <include name="mscorlib.dll" /> +- <include name="PresentationBuildTasks.dll" /> +- <include name="PresentationCore.dll" /> +- <include name="WindowsBase.dll" /> +- <include name="PresentationFramework.dll" /> +- <include name="PresentationFramework.Aero.dll" /> +- <include name="PresentationFramework.Classic.dll" /> +- <include name="PresentationFramework.Luna.dll" /> +- <include name="PresentationFramework.Royale.dll" /> +- <include name="ReachFramework.dll" /> +- <include name="System.Activities.Core.Presentation.dll" /> +- <include name="System.Activities.dll" /> +- <include name="System.Activities.DurableInstancing.dll" /> +- <include name="System.Activities.Presentation.dll" /> +- <include name="System.AddIn.Contract.dll" /> +- <include name="System.AddIn.dll" /> +- <include name="System.ComponentModel.Composition.dll" /> +- <include name="System.ComponentModel.DataAnnotations.dll" /> +- <include name="System.Configuration.dll" /> +- <include name="System.Core.dll" /> +- <include name="System.Data.DataSetExtension.dll" /> +- <include name="System.Data.dll" /> +- <include name="System.Data.Entity.Design.dll" /> +- <include name="System.Data.Entity.dll" /> +- <include name="System.Data.Linq.dll" /> +- <include name="System.Data.OracleClient.dll" /> +- <include name="System.Data.Services.Client.dll" /> +- <include name="System.Data.Services.Design.dll" /> +- <include name="System.Data.Services.dll" /> +- <include name="System.Data.SqlXml.dll" /> +- <include name="System.Deployment.dll" /> +- <include name="System.Design.dll" /> +- <include name="System.Device.dll" /> +- <include name="System.DirectoryServices.AccountManagement.dll" /> +- <include name="System.DirectoryServices.dll" /> +- <include name="System.DirectoryServices.Protocols.dll" /> +- <include name="System.dll" /> +- <include name="System.Drawing.Design.dll" /> +- <include name="System.Drawing.dll" /> +- <include name="System.EnterpriseServices.dll" /> +- <include name="System.EnterpriseServices.Thunk.dll" /> +- <include name="System.EnterpriseServices.Wrapper.dll" /> +- <include name="System.IdentityModel.dll" /> +- <include name="System.IdentityModel.Selectors.dll" /> +- <include name="System.IO.Log.dll" /> +- <include name="System.Management.dll" /> +- <include name="System.Management.Instrumentation.dll" /> +- <include name="System.Messaging.dll" /> +- <include name="System.Net.dll" /> +- <include name="System.Numerics.dll" /> +- <include name="System.Printing.dll" /> +- <include name="System.Runtime.Caching.dll" /> +- <include name="System.Runtime.DurableInstancing.dll" /> +- <include name="System.Runtime.Remoting.dll" /> +- <include name="System.Runtime.Serialization.dll" /> +- <include name="System.Runtime.Serialization.Formatters.Soap.dll" /> +- <include name="System.Security.dll" /> +- <include name="System.ServiceModel.Activation.dll" /> +- <include name="System.ServiceModel.Activities.dll" /> +- <include name="System.ServiceModel.Channels.dll" /> +- <include name="System.ServiceModel.Discovery.dll" /> +- <include name="System.ServiceModel.dll" /> +- <include name="System.ServiceModel.Routing.dll" /> +- <include name="System.ServiceModel.Web.dll" /> +- <include name="System.ServiceProcess.dll" /> +- <include name="System.Speech.dll" /> +- <include name="System.Transactions.dll" /> +- <include name="System.Web.Abstractions.dll" /> +- <include name="System.Web.ApplicationServices.dll" /> +- <include name="System.Web.DataVisualization.Design.dll" /> +- <include name="System.Web.DataVisualization.dll" /> +- <include name="System.Web.dll" /> +- <include name="System.Web.DynamicData.Design.dll" /> +- <include name="System.Web.DynamicData.dll" /> +- <include name="System.Web.Entity.Design.dll" /> +- <include name="System.Web.Entity.dll" /> +- <include name="System.Web.Extensions.Design.dll" /> +- <include name="System.Web.Extensions.dll" /> +- <include name="System.Web.Mobile.dll" /> +- <include name="System.Web.RegularExpressions.dll" /> +- <include name="System.Web.Routing.dll" /> +- <include name="System.Web.Services.dll" /> +- <include name="System.Windows.Forms.DataVisualization.Design.dll" /> +- <include name="System.Windows.Forms.DataVisualization.dll" /> +- <include name="System.Windows.Forms.dll" /> +- <include name="System.Windows.Input.Manipulations.dll" /> +- <include name="System.Windows.Presentation.dll" /> +- <include name="System.Workflow.Activities.dll" /> +- <include name="System.Workflow.ComponentModel.dll" /> +- <include name="System.Workflow.Runtime.dll" /> +- <include name="System.WorkflowServices.dll" /> +- <include name="System.Xaml.dll" /> +- <include name="System.Xml.dll" /> +- <include name="System.Xml.Linq.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 4.0 specific assemblies --> +- <include name="extensions/net/4.0/**/*.dll" /> +- <!-- include MS.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include MS.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 4.0 specific assemblies --> +- <include name="extensions/common/4.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${sdkInstallRoot}" +- if="${property::exists('sdkInstallRoot')}" /> +- <directory name="${path::combine(installRoot, 'v4.0.30319')}" /> +- </tool-paths> +- <project> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <locatesdk property="sdkInstallRoot" minwinsdkver="v7.0A" minnetfxver="4.0" maxnetfxver="4.0.99999" failonerror="false" /> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="vbc"> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportsnostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="supportsplatform">true</attribute> +- </task> +- <task name="vjc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="supportsassemblyreferences">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- <attribute name="supportsassemblyreferences">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="netcf-1.0" +- family="netcf" +- version="1.0" +- description="Microsoft .NET Compact Framework 1.0" +- sdkdirectory="${path::combine(sdkInstallRoot, 'v1.0.5000\bin')}" +- frameworkdirectory="${path::combine(installRoot, 'v1.1.4322')}" +- frameworkassemblydirectory="${path::combine(sdkInstallRoot, 'v1.0.5000\Windows CE')}" +- clrversion="1.1.4322" +- clrtype="Compact" +- vendor="Microsoft" +- > +- <runtime> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v1.1.4322" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(sdkInstallRoot, 'v1.0.5000\Windows CE')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- this is not a supported runtime framework --> +- </task-assemblies> +- <tool-paths> +- <directory name="${path::combine(sdkInstallRoot, 'v1.0.5000\bin')}" /> +- <directory name="${path::combine(installRoot, 'v1.1.4322')}" /> +- <directory name="${path::combine(sdkInstallRoot.DesktopFramework, 'bin')}" /> +- </tool-paths> +- <project> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="sdkInstallRoot" +- key="SOFTWARE\Microsoft\.NETCompactFramework\sdkInstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="sdkInstallRoot.DesktopFramework" +- key="SOFTWARE\Microsoft\.NETFramework\sdkInstallRootv1.1" +- hive="LocalMachine" /> +- <fail if="${not directory::exists(sdkInstallRoot.DesktopFramework)}">The .NET Framework 1.1 SDK is not installed.</fail> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="noconfig">true</attribute> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="exename">cfresgen</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="netcf-2.0" +- family="netcf" +- version="2.0" +- description="Microsoft .NET Compact Framework 2.0" +- sdkdirectory="${path::combine(sdkInstallRoot.DesktopFramework, 'bin')}" +- frameworkdirectory="${path::combine(installRoot, 'v2.0.50727')}" +- frameworkassemblydirectory="${path::combine(sdkInstallRoot, 'WindowsCE')}" +- clrversion="2.0.0" +- clrtype="Compact" +- vendor="Microsoft" +- > +- <runtime> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v2.0.50727" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(sdkInstallRoot, 'WindowsCE')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- this is not a supported runtime framework --> +- </task-assemblies> +- <tool-paths> +- <directory name="${path::combine(sdkInstallRoot.DesktopFramework, 'bin')}" /> +- </tool-paths> +- <project> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="sdkInstallRoot" +- key="SOFTWARE\Microsoft\.NETCompactFramework\v2.0.0.0\InstallRoot\" +- hive="LocalMachine" /> +- <readregistry +- property="sdkInstallRoot.DesktopFramework" +- key="SOFTWARE\Microsoft\.NETFramework\sdkInstallRootv2.0" +- hive="LocalMachine" /> +- <fail if="${not directory::exists(sdkInstallRoot.DesktopFramework)}">The .NET Framework 2.0 SDK is not installed.</fail> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="noconfig">true</attribute> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="vbc"> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportsnostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="supportsassemblyreferences">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- <attribute name="supportsassemblyreferences">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="silverlight-2.0" +- family="silverlight" +- version="2.0" +- description="Microsoft Silverlight 2.0" +- sdkdirectory="${path::combine(sdkInstallRoot, 'bin')}" +- frameworkdirectory="${path::combine(installRoot, 'v3.5')}" +- frameworkassemblydirectory="${SL2RefAssemblyBaseDir}" +- clrversion="2.0.50727" +- clrtype="Browser" +- vendor="Microsoft" +- > +- <runtime> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v2.0.50727" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${SL2RefAssemblyBaseDir}"> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="mscorlib.dll" /> +- <include name="System.Core.dll" /> +- <include name="System.dll" /> +- <include name="System.Net.dll" /> +- <include name="System.Runtime.Serialization.dll" /> +- <include name="System.ServiceModel.dll" /> +- <include name="System.ServiceModel.Web.dll" /> +- <include name="System.Windows.Browser.dll" /> +- <include name="System.Windows.dll" /> +- <include name="System.Xml.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 2.0 specific assemblies --> +- <include name="extensions/net/2.0/**/*.dll" /> +- <!-- include MS.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include MS.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 2.0 specific assemblies --> +- <include name="extensions/common/2.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${SL2RefAssemblyBaseDir}" /> +- <directory name="${path::combine(sdkInstallRoot, 'bin')}" +- if="${property::exists('sdkInstallRoot')}" /> +- <directory name="${path::combine(installRoot, 'v3.5')}" /> +- <directory name="${path::combine(installRoot, 'v2.0.50727')}" /> +- </tool-paths> +- <project> +- <readregistry property="SL2RefAssemblyBaseDir" +- key="SOFTWARE\Microsoft\Microsoft SDKs\Silverlight\v2.0\ReferenceAssemblies\SLRuntimeInstallPath" +- hive="LocalMachine" /> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <locatesdk property="sdkInstallRoot" minwinsdkver="v6.0A" maxnetfxver="3.5" failonerror="false" /> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="noconfig">true</attribute> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="vbc"> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportsnostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="supportsplatform">true</attribute> +- </task> +- <task name="vjc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="supportsassemblyreferences">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- <attribute name="supportsassemblyreferences">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="silverlight-3.0" +- family="silverlight" +- version="3.0" +- description="Microsoft Silverlight 3.0" +- sdkdirectory="${path::combine(sdkInstallRoot, 'bin')}" +- frameworkdirectory="${path::combine(installRoot, 'v3.5')}" +- frameworkassemblydirectory="${SL3RefAssemblyBaseDir}" +- clrversion="2.0.50727" +- clrtype="Browser" +- vendor="Microsoft" +- > +- <runtime> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v2.0.50727" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${SL3RefAssemblyBaseDir}"> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="mscorlib.dll" /> +- <include name="System.Core.dll" /> +- <include name="System.dll" /> +- <include name="System.Xml.dll" /> +- <include name="System.Windows.dll" /> +- <include name="System.Windows.Browser.dll" /> +- <!-- Remaining libraries found in the Reference Assembly directory --> +- <include name="agcore.debug.dll" /> +- <include name="agcore.dll" /> +- <include name="coreclr.dll" /> +- <include name="mscorrc.debug.dll" /> +- <include name="mscorrc.dll" /> +- <include name="npctrl.dll" /> +- <include name="npctrlui.dll" /> +- <include name="Silverlight.ConfigurationUI.dll" /> +- <include name="System.Net.dll" /> +- <include name="System.Runtime.Serialization.dll" /> +- <include name="System.ServiceModel.dll" /> +- <include name="System.ServiceModel.Web.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 2.0 specific assemblies --> +- <include name="extensions/net/2.0/**/*.dll" /> +- <!-- include MS.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include MS.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 2.0 specific assemblies --> +- <include name="extensions/common/2.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${SL3RefAssemblyBaseDir}" /> +- <directory name="${path::combine(sdkInstallRoot, 'bin')}" +- if="${property::exists('sdkInstallRoot')}" /> +- <directory name="${path::combine(installRoot, 'v3.5')}" /> +- </tool-paths> +- <project> +- <readregistry property="SL3RefAssemblyBaseDir" +- key="SOFTWARE\Microsoft\Microsoft SDKs\Silverlight\v3.0\ReferenceAssemblies\SLRuntimeInstallPath" +- hive="LocalMachine" /> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <locatesdk property="sdkInstallRoot" minwinsdkver="v6.0A" maxnetfxver="3.5" failonerror="false" /> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="noconfig">true</attribute> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="vbc"> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportsnostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="supportsplatform">true</attribute> +- </task> +- <task name="vjc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="supportsassemblyreferences">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- <attribute name="supportsassemblyreferences">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="silverlight-4.0" +- family="silverlight" +- version="4.0" +- description="Microsoft Silverlight 4.0" +- sdkdirectory="${path::combine(sdkInstallRoot, 'bin')}" +- frameworkdirectory="${path::combine(installRoot, 'v4.0.30319')}" +- frameworkassemblydirectory="${SL4RefAssemblyBaseDir}" +- clrversion="4.0.30319" +- clrtype="Browser" +- vendor="Microsoft" +- > +- <runtime> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v4.0.30319" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${SL4RefAssemblyBaseDir}"> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="mscorlib.dll" /> +- <include name="System.Core.dll" /> +- <include name="system.dll" /> +- <include name="System.Xml.dll" /> +- <include name="System.Windows.dll" /> +- <include name="System.Windows.Browser.dll" /> +- <!-- Remaining libraries found in the Reference Assembly directory --> +- <include name="agcore.debug.dll" /> +- <include name="agcore.dll" /> +- <include name="coreclr.dll" /> +- <include name="mscorrc.debug.dll" /> +- <include name="mscorrc.dll" /> +- <include name="npctrl.dll" /> +- <include name="npctrlui.dll" /> +- <include name="System.Net.dll" /> +- <include name="System.Runtime.Serialization.dll" /> +- <include name="System.ServiceModel.dll" /> +- <include name="System.ServiceModel.Web.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 4.0 specific assemblies --> +- <include name="extensions/net/4.0/**/*.dll" /> +- <!-- include MS.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include MS.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 4.0 specific assemblies --> +- <include name="extensions/common/4.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${SL4RefAssemblyBaseDir}" /> +- <directory name="${path::combine(sdkInstallRoot, 'bin')}" +- if="${property::exists('sdkInstallRoot')}" /> +- <directory name="${path::combine(installRoot, 'v4.0.30319')}" /> +- </tool-paths> +- <project> +- <readregistry property="SL4RefAssemblyBaseDir" +- key="SOFTWARE\Microsoft\Microsoft SDKs\Silverlight\v4.0\ReferenceAssemblies\SLRuntimeInstallPath" +- hive="LocalMachine" /> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <locatesdk property="sdkInstallRoot" minwinsdkver="v7.0A" minnetfxver="4.0" maxnetfxver="4.0.99999" failonerror="false" /> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="noconfig">true</attribute> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="vbc"> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportsnostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="supportsplatform">true</attribute> +- </task> +- <task name="vjc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="supportsassemblyreferences">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- <attribute name="supportsassemblyreferences">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="silverlight-5.0" +- family="silverlight" +- version="5.0" +- description="Microsoft Silverlight 5.0" +- sdkdirectory="${path::combine(sdkInstallRoot, 'bin')}" +- frameworkdirectory="${path::combine(installRoot, 'v4.0.30319')}" +- frameworkassemblydirectory="${SL5RefAssemblyBaseDir}" +- clrversion="4.0.30319" +- clrtype="Browser" +- vendor="Microsoft" +- > +- <runtime> +- <modes> +- <strict> +- <environment> +- <variable name="COMPLUS_VERSION" value="v4.0.30319" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${SL5RefAssemblyBaseDir}"> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="mscorlib.dll" /> +- <include name="System.Core.dll" /> +- <include name="system.dll" /> +- <include name="System.Xml.dll" /> +- <include name="System.Windows.dll" /> +- <include name="System.Windows.Browser.dll" /> +- <!-- Remaining libraries found in the Reference Assembly directory --> +- <include name="agcore.debug.dll" /> +- <include name="agcore.dll" /> +- <include name="coreclr.dll" /> +- <include name="mscorrc.debug.dll" /> +- <include name="mscorrc.dll" /> +- <include name="npctrl.dll" /> +- <include name="npctrlui.dll" /> +- <include name="System.Net.dll" /> +- <include name="System.Runtime.Serialization.dll" /> +- <include name="System.ServiceModel.dll" /> +- <include name="System.ServiceModel.Web.dll" /> +- <!-- Remaining libraries are specific to XNA programming --> +- <include name="Microsoft.Xna.Framework.dll" /> +- <include name="Microsoft.Xna.Framework.Graphics.dll" /> +- <include name="Microsoft.Xna.Framework.Graphics.Shaders.dll" /> +- <include name="System.Windows.Xna.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 4.0 specific assemblies --> +- <include name="extensions/net/4.0/**/*.dll" /> +- <!-- include MS.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include MS.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 4.0 specific assemblies --> +- <include name="extensions/common/4.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${SL5RefAssemblyBaseDir}" /> +- <directory name="${path::combine(sdkInstallRoot, 'bin')}" +- if="${property::exists('sdkInstallRoot')}" /> +- <directory name="${path::combine(installRoot, 'v4.0.30319')}" /> +- </tool-paths> +- <project> +- <readregistry property="SL5RefAssemblyBaseDir" +- key="SOFTWARE\Microsoft\Microsoft SDKs\Silverlight\v5.0\ReferenceAssemblies\SLRuntimeInstallPath" +- hive="LocalMachine" /> +- <readregistry +- property="installRoot" +- key="SOFTWARE\Microsoft\.NETFramework\InstallRoot" +- hive="LocalMachine" /> +- <locatesdk property="sdkInstallRoot" minwinsdkver="v7.0A" minnetfxver="4.0" maxnetfxver="4.0.99999" failonerror="false" /> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="noconfig">true</attribute> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="vbc"> +- <attribute name="nostdlib">true</attribute> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportsnostdlib">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportsplatform">true</attribute> +- <attribute name="supportswarnaserrorlist">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="supportsplatform">true</attribute> +- </task> +- <task name="vjc"> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="supportsassemblyreferences">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="exename">lc</attribute> +- <attribute name="supportsassemblyreferences">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="mono-1.0" +- family="mono" +- version="1.0" +- description="Mono 1.0 Profile" +- sdkdirectory="${toolDirectory}" +- frameworkdirectory="${toolDirectory}" +- frameworkassemblydirectory="${path::combine(frameworkAssemblyDirectory, 'mono/1.0')}" +- clrversion="1.1.4322" +- clrtype="Desktop" +- vendor="Mono" +- > +- <runtime> +- <probing-paths> +- <directory name="lib/mono/1.0" /> +- <directory name="lib/mono/neutral" /> +- <directory name="lib/common/1.1" /> +- <directory name="lib/common/neutral" /> +- </probing-paths> +- <modes> +- <auto> +- <engine program="${runtimeEngine}" /> +- <environment> +- <variable name="PATH" path="${path::combine(sdkInstallRoot, 'bin')};%PATH%" /> +- <variable name="MONO_CFG_DIR" path="${configDir};%MONO_CFG_DIR%" /> +- </environment> +- </auto> +- <strict> +- <engine program="${runtimeEngine}"> +- <arg value="--runtime=v1.1.4322" /> +- </engine> +- <environment> +- <variable name="PATH" path="${path::combine(sdkInstallRoot, 'bin')};%PATH%" /> +- <variable name="MONO_CFG_DIR" path="${configDir};%MONO_CFG_DIR%" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'mono/1.0')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include Mono version-neutral assemblies --> +- <include name="extensions/mono/neutral/**/*.dll" /> +- <!-- include Mono 1.0 specific assemblies --> +- <include name="extensions/mono/1.0/**/*.dll" /> +- <!-- include .NET 1.1 specific assemblies --> +- <include name="extensions/common/1.1/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${toolDirectory}" /> +- <!-- unmanaged tools --> +- <directory name="${sdkInstallRoot}/bin" /> +- </tool-paths> +- <project> +- <!-- quick and dirty check to see if pkg-config is available (and configured) --> +- <property name="pkgconfig.available" value="${environment::variable-exists('PKG_CONFIG_PATH')}" /> +- <if test="${pkgconfig.available}"> +- <if test="${pkg-config::exists('mono')}"> +- <call target="configure-from-pkg-config" /> +- </if> +- <if test="${not pkg-config::exists('mono')}"> +- <call target="configure-from-registry" /> +- </if> +- </if> +- <if test="${not pkgconfig.available}"> +- <call target="configure-from-registry" /> +- </if> +- +- <!-- determine if we're dealing with a Mono 1.0.x release --> +- <if test="${version::parse(mono.version) < version::parse('1.1')}"> +- <!-- +- in Mono 1.0.x, the framework tools are located +- in the <install root>\lib directory +- --> +- <property name="toolDirectory" value="${frameworkAssemblyDirectory}" /> +- <property name="runtimeEngine" value="${path::combine(frameworkAssemblyDirectory, 'mono.exe')}" /> +- <property name="resgen.tool" value="monoresgen" /> +- <!-- in Mono 1.0.x, only mcs and mbas are located in <install root>\lib\mono\<profile> --> +- <property name="csc.tool" value="${path::combine(frameworkAssemblyDirectory, 'mono/1.0/mcs.exe')}" /> +- <property name="mbas.tool" value="${path::combine(frameworkAssemblyDirectory, 'mono/1.0/mbas.exe')}" /> +- <!-- /doc is not supported in Mono 1.0.x --> +- <property name="csc.supportsdocgeneration" value="false" /> +- +- <!-- +- Mono 1.0.1 installer incorrectly adds '\mono' to +- "MonoConfigDir" registry value +- --> +- <if test="${string::ends-with(configDir, 'etc\mono')}"> +- <property name="configDir" value="${string::replace(configDir, 'etc\mono', 'etc')}" /> +- </if> +- </if> +- +- <!-- determine if we're dealing with a Mono 1.1.x release or higher --> +- <if test="${version::parse(mono.version) >= version::parse('1.1')}"> +- <!-- +- in Mono 1.1.x (and higher ?), the framework tools +- are located in the <install root>\lib\mono\<profile> +- directory +- --> +- <property name="toolDirectory" value="${path::combine(frameworkAssemblyDirectory, 'mono/1.0')}" /> +- <property name="runtimeEngine" value="${path::combine(frameworkAssemblyDirectory, 'mono.exe')}" /> +- <!-- starting from Mono 1.1.9.2, mono.exe is located in the bin directory --> +- <if test="${not file::exists(runtimeEngine)}"> +- <property name="runtimeEngine" value="${path::combine(sdkInstallRoot, 'bin/mono.exe')}" /> +- </if> +- <property name="resgen.tool" value="resgen" /> +- <property name="csc.tool" value="mcs" /> +- <property name="csc.supportsdocgeneration" value="true" /> +- <property name="mbas.tool" value="mbas" /> +- </if> +- +- <target name="configure-from-pkg-config"> +- <property name="mono.version" value="${pkg-config::get-mod-version('mono')}" /> +- <property name="sdkInstallRoot" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'prefix'))}" /> +- <property name="frameworkAssemblyDirectory" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'libdir'))}" /> +- <property name="configDir" value="${path::combine(sdkInstallRoot, 'etc')}/" /> +- </target> +- +- <target name="configure-from-registry"> +- <monoregistry property="mono.reg" failonerror="false" /> +- <readregistry +- property="mono.version" +- key="${mono.reg}\DefaultCLR" +- hive="LocalMachine" +- /> +- <property name="monokey" value="${mono.reg}\${mono.version}" /> +- +- <readregistry +- property="sdkInstallRoot" +- key="${monokey}\SdkInstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="frameworkAssemblyDirectory" +- key="${monokey}\FrameworkAssemblyDirectory" +- hive="LocalMachine" /> +- <readregistry +- property="configDir" +- key="${monokey}\MonoConfigDir" +- hive="LocalMachine" /> +- </target> +- </project> +- <properties> +- </properties> +- <tasks> +- <task name="al"> +- <attribute name="managed">true</attribute> +- </task> +- <task name="csc"> +- <attribute name="exename">${csc.tool}</attribute> +- <attribute name="managed">true</attribute> +- <attribute name="supportspackagereferences">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportsdocgeneration">${csc.supportsdocgeneration}</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="exename">mjs</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="vbc"> +- <attribute name="exename">${mbas.tool}</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="exename">${resgen.tool}</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="license"> +- <attribute name="hascommandlinecompiler">false</attribute> +- </task> +- <task name="ilasm"> +- <attribute name="managed">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="mono-2.0" +- family="mono" +- version="2.0" +- description="Mono 2.0 Profile" +- sdkdirectory="${toolDirectory}" +- frameworkdirectory="${toolDirectory}" +- frameworkassemblydirectory="${path::combine(frameworkAssemblyDirectory, 'mono/2.0')}" +- clrversion="2.0.50727" +- clrtype="Desktop" +- vendor="Mono" +- > +- <runtime> +- <probing-paths> +- <directory name="lib/mono/2.0" /> +- <directory name="lib/mono/neutral" /> +- <directory name="lib/common/2.0" /> +- <directory name="lib/common/neutral" /> +- </probing-paths> +- <modes> +- <auto> +- <engine program="${runtimeEngine}" /> +- <environment> +- <variable name="PATH" path="${path::combine(sdkInstallRoot, 'bin')};%PATH%" /> +- <variable name="MONO_CFG_DIR" path="${configDir};%MONO_CFG_DIR%" /> +- </environment> +- </auto> +- <strict> +- <engine program="${runtimeEngine}"> +- <arg value="--runtime=v2.0.50727" /> +- </engine> +- <environment> +- <variable name="PATH" path="${path::combine(sdkInstallRoot, 'bin')};%PATH%" /> +- <variable name="MONO_CFG_DIR" path="${configDir};%MONO_CFG_DIR%" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'mono/2.0')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include Mono version-neutral assemblies --> +- <include name="extensions/mono/neutral/**/*.dll" /> +- <!-- include Mono 2.0 specific assemblies --> +- <include name="extensions/mono/2.0/**/*.dll" /> +- <!-- include .NET 2.0 specific assemblies --> +- <include name="extensions/common/2.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${toolDirectory}" /> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/1.0')}" /> +- <!-- for compatibility with Mono 1.0.x --> +- <directory name="${frameworkAssemblyDirectory}" /> +- <!-- unmanaged tools --> +- <directory name="${sdkInstallRoot}/bin" /> +- </tool-paths> +- <project> +- <!-- quick and dirty check to see if pkg-config is available (and configured) --> +- <property name="pkgconfig.available" value="${environment::variable-exists('PKG_CONFIG_PATH')}" /> +- <if test="${pkgconfig.available}"> +- <if test="${pkg-config::exists('mono')}"> +- <call target="configure-from-pkg-config" /> +- </if> +- <if test="${not pkg-config::exists('mono')}"> +- <call target="configure-from-registry" /> +- </if> +- </if> +- <if test="${not pkgconfig.available}"> +- <call target="configure-from-registry" /> +- </if> +- +- <property name="resgen.supportsexternalfilereferences" value="false" /> +- +- <!-- determine if we're dealing with a Mono 1.0.x release --> +- <if test="${version::parse(mono.version) < version::parse('1.1')}"> +- <!-- +- in Mono 1.0.x, the framework tools are located +- in the <install root>\lib directory, except for +- mbas and mcs +- --> +- <property name="toolDirectory" value="${frameworkAssemblyDirectory}" /> +- <property name="runtimeEngine" value="${path::combine(frameworkAssemblyDirectory, 'mono.exe')}" /> +- <property name="resgen.tool" value="monoresgen" /> +- <property name="csc.supportsdocgeneration" value="false" /> +- +- <!-- +- Mono 1.0.1 installer incorrectly adds '\mono' to +- "MonoConfigDir" registry value +- --> +- <if test="${string::ends-with(configDir, 'etc\mono')}"> +- <property name="configDir" value="${string::replace(configDir, 'etc\mono', 'etc')}" /> +- </if> +- </if> +- +- <!-- determine if we're dealing with a Mono 1.1.x release or higher --> +- <if test="${version::parse(mono.version) >= version::parse('1.1')}"> +- <property name="toolDirectory" value="${path::combine(frameworkAssemblyDirectory, 'mono/2.0')}" /> +- <property name="runtimeEngine" value="${path::combine(frameworkAssemblyDirectory, 'mono.exe')}" /> +- <!-- starting from Mono 1.1.9.2, mono.exe is located in the bin directory --> +- <if test="${not file::exists(runtimeEngine)}"> +- <property name="runtimeEngine" value="${path::combine(sdkInstallRoot, 'bin/mono.exe')}" /> +- </if> +- <property name="csc.supportsdocgeneration" value="true" /> +- </if> +- <!-- as from Mono 1.2.3.50, resgen supports the /usesourcepath option --> +- <if test="${version::parse(mono.version) >= version::parse('1.2.3.50')}"> +- <property name="resgen.supportsexternalfilereferences" value="true" /> +- </if> +- +- <target name="configure-from-pkg-config"> +- <property name="mono.version" value="${pkg-config::get-mod-version('mono')}" /> +- <property name="sdkInstallRoot" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'prefix'))}" /> +- <property name="frameworkAssemblyDirectory" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'libdir'))}" /> +- <property name="configDir" value="${path::combine(sdkInstallRoot, 'etc')}/" /> +- </target> +- +- <target name="configure-from-registry"> +- <monoregistry property="mono.reg" failonerror="false" /> +- <readregistry +- property="mono.version" +- key="${mono.reg}\DefaultCLR" +- hive="LocalMachine" +- /> +- <property name="monokey" value="${mono.reg}\${mono.version}" /> +- +- <readregistry +- property="sdkInstallRoot" +- key="${monokey}\SdkInstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="frameworkAssemblyDirectory" +- key="${monokey}\FrameworkAssemblyDirectory" +- hive="LocalMachine" /> +- <readregistry +- property="configDir" +- key="${monokey}\MonoConfigDir" +- hive="LocalMachine" /> +- </target> +- </project> +- <properties> +- </properties> +- <tasks> +- <task name="al"> +- <attribute name="managed">true</attribute> +- </task> +- <task name="csc"> +- <attribute name="exename">gmcs</attribute> +- <attribute name="managed">true</attribute> +- <attribute name="supportspackagereferences">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportsdocgeneration">${csc.supportsdocgeneration}</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="exename">mjs</attribute> +- <attribute name="managed">strict</attribute> +- </task> +- <task name="vbc"> +- <attribute name="exename">vbnc</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="exename">${resgen.tool}</attribute> +- <attribute name="managed">true</attribute> +- <attribute name="supportsexternalfilereferences">${resgen.supportsexternalfilereferences}</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="license"> +- <attribute name="hascommandlinecompiler">false</attribute> +- </task> +- <task name="ilasm"> +- <attribute name="managed">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="mono-3.5" +- family="mono" +- version="3.5" +- description="Mono 3.5 Profile" +- sdkdirectory="${toolDirectory}" +- frameworkdirectory="${toolDirectory}" +- frameworkassemblydirectory="${path::combine(frameworkAssemblyDirectory, 'mono/2.0')}" +- clrversion="2.0.50727" +- clrtype="Desktop" +- vendor="Mono" +- > +- <runtime> +- <probing-paths> +- <directory name="lib/mono/2.0" /> +- <directory name="lib/mono/neutral" /> +- <directory name="lib/common/2.0" /> +- <directory name="lib/common/neutral" /> +- </probing-paths> +- <modes> +- <auto> +- <engine program="${runtimeEngine}" /> +- <environment> +- <variable name="PATH" path="${path::combine(sdkInstallRoot, 'bin')};%PATH%" /> +- <variable name="MONO_CFG_DIR" path="${configDir};%MONO_CFG_DIR%" /> +- </environment> +- </auto> +- <strict> +- <engine program="${runtimeEngine}"> +- <arg value="--runtime=v2.0.50727" /> +- </engine> +- <environment> +- <variable name="PATH" path="${path::combine(sdkInstallRoot, 'bin')};%PATH%" /> +- <variable name="MONO_CFG_DIR" path="${configDir};%MONO_CFG_DIR%" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'mono/3.5')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'mono/3.0')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'mono/2.0')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include Mono version-neutral assemblies --> +- <include name="extensions/mono/neutral/**/*.dll" /> +- <!-- include Mono 2.0 specific assemblies --> +- <include name="extensions/mono/2.0/**/*.dll" /> +- <!-- include .NET 2.0 specific assemblies --> +- <include name="extensions/common/2.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/3.5')}" /> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/2.0')}" /> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/1.0')}" /> +- <!-- unmanaged tools --> +- <directory name="${sdkInstallRoot}/bin" /> +- </tool-paths> +- <project> +- <!-- quick and dirty check to see if pkg-config is available (and configured) --> +- <property name="pkgconfig.available" value="${environment::variable-exists('PKG_CONFIG_PATH')}" /> +- <if test="${pkgconfig.available}"> +- <if test="${pkg-config::exists('mono')}"> +- <call target="configure-from-pkg-config" /> +- </if> +- <if test="${not pkg-config::exists('mono')}"> +- <call target="configure-from-registry" /> +- </if> +- </if> +- <if test="${not pkgconfig.available}"> +- <call target="configure-from-registry" /> +- </if> +- +- <property name="toolDirectory" value="${path::combine(frameworkAssemblyDirectory, 'mono/3.5')}" /> +- <property name="runtimeEngine" value="${path::combine(sdkInstallRoot, 'bin/mono.exe')}" /> +- +- <target name="configure-from-pkg-config"> +- <property name="mono.version" value="${pkg-config::get-mod-version('mono')}" /> +- <property name="sdkInstallRoot" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'prefix'))}" /> +- <property name="frameworkAssemblyDirectory" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'libdir'))}" /> +- <property name="configDir" value="${path::combine(sdkInstallRoot, 'etc')}/" /> +- </target> +- +- <target name="configure-from-registry"> +- <monoregistry property="mono.reg" failonerror="false" /> +- <readregistry +- property="mono.version" +- key="${mono.reg}\DefaultCLR" +- hive="LocalMachine" +- /> +- <property name="monokey" value="${mono.reg}\${mono.version}" /> +- +- <readregistry +- property="sdkInstallRoot" +- key="${monokey}\SdkInstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="frameworkAssemblyDirectory" +- key="${monokey}\FrameworkAssemblyDirectory" +- hive="LocalMachine" /> +- <readregistry +- property="configDir" +- key="${monokey}\MonoConfigDir" +- hive="LocalMachine" /> +- </target> +- </project> +- <properties> +- </properties> +- <tasks> +- <task name="al"> +- <attribute name="managed">true</attribute> +- </task> +- <task name="csc"> +- <attribute name="exename">gmcs</attribute> +- <attribute name="managed">true</attribute> +- <attribute name="langversion">linq</attribute> +- <attribute name="supportspackagereferences">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="exename">mjs</attribute> +- <attribute name="managed">strict</attribute> +- </task> +- <task name="vbc"> +- <attribute name="exename">vbnc</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="managed">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="license"> +- <attribute name="hascommandlinecompiler">false</attribute> +- </task> +- <task name="ilasm"> +- <attribute name="managed">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="mono-4.0" +- family="mono" +- version="4.0" +- description="Mono 4.0 Profile" +- sdkdirectory="${toolDirectory}" +- frameworkdirectory="${toolDirectory}" +- frameworkassemblydirectory="${path::combine(frameworkAssemblyDirectory, 'mono/4.0')}" +- clrversion="4.0.30319" +- clrtype="Desktop" +- vendor="Mono" +- > +- <runtime> +- <probing-paths> +- <directory name="lib/mono/2.0" /> +- <directory name="lib/mono/neutral" /> +- <directory name="lib/common/2.0" /> +- <directory name="lib/common/neutral" /> +- </probing-paths> +- <modes> +- <auto> +- <engine program="${runtimeEngine}" /> +- <environment> +- <variable name="PATH" path="${path::combine(sdkInstallRoot, 'bin')};%PATH%" /> +- <variable name="MONO_CFG_DIR" path="${configDir};%MONO_CFG_DIR%" /> +- </environment> +- </auto> +- <strict> +- <engine program="${runtimeEngine}"> +- <arg value="--runtime=v4.0.30319" /> +- </engine> +- <environment> +- <variable name="PATH" path="${path::combine(sdkInstallRoot, 'bin')};%PATH%" /> +- <variable name="MONO_CFG_DIR" path="${configDir};%MONO_CFG_DIR%" /> +- </environment> +- </strict> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'mono/4.0')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'mono/3.5')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'mono/3.0')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'mono/2.0')}"> +- <include name="*.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include Mono version-neutral assemblies --> +- <include name="extensions/mono/neutral/**/*.dll" /> +- <!-- include Mono 2.0 specific assemblies --> +- <include name="extensions/mono/2.0/**/*.dll" /> +- <!-- include .NET 2.0 specific assemblies --> +- <include name="extensions/common/2.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/4.0')}" /> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/3.5')}" /> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/2.0')}" /> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/1.0')}" /> +- <!-- unmanaged tools --> +- <directory name="${sdkInstallRoot}/bin" /> +- </tool-paths> +- <project> +- <!-- quick and dirty check to see if pkg-config is available (and configured) --> +- <property name="pkgconfig.available" value="${environment::variable-exists('PKG_CONFIG_PATH')}" /> +- <if test="${pkgconfig.available}"> +- <if test="${pkg-config::exists('mono')}"> +- <call target="configure-from-pkg-config" /> +- </if> +- <if test="${not pkg-config::exists('mono')}"> +- <call target="configure-from-registry" /> +- </if> +- </if> +- <if test="${not pkgconfig.available}"> +- <call target="configure-from-registry" /> +- </if> +- +- <property name="toolDirectory" value="${path::combine(frameworkAssemblyDirectory, 'mono/4.0')}" /> +- <property name="runtimeEngine" value="${path::combine(sdkInstallRoot, 'bin/mono.exe')}" /> +- +- <target name="configure-from-pkg-config"> +- <property name="mono.version" value="${pkg-config::get-mod-version('mono')}" /> +- <property name="sdkInstallRoot" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'prefix'))}" /> +- <property name="frameworkAssemblyDirectory" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'libdir'))}" /> +- <property name="configDir" value="${path::combine(sdkInstallRoot, 'etc')}/" /> +- </target> +- +- <target name="configure-from-registry"> +- <monoregistry property="mono.reg" failonerror="false" /> +- <readregistry +- property="mono.version" +- key="${mono.reg}\DefaultCLR" +- hive="LocalMachine" +- /> +- <property name="monokey" value="${mono.reg}\${mono.version}" /> +- +- <readregistry +- property="sdkInstallRoot" +- key="${monokey}\SdkInstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="frameworkAssemblyDirectory" +- key="${monokey}\FrameworkAssemblyDirectory" +- hive="LocalMachine" /> +- <readregistry +- property="configDir" +- key="${monokey}\MonoConfigDir" +- hive="LocalMachine" /> +- </target> +- </project> +- <properties> +- </properties> +- <tasks> +- <task name="al"> +- <attribute name="managed">true</attribute> +- </task> +- <task name="csc"> +- <attribute name="exename">dmcs</attribute> +- <attribute name="managed">true</attribute> +- <attribute name="langversion">linq</attribute> +- <attribute name="supportspackagereferences">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="exename">mjs</attribute> +- <attribute name="managed">strict</attribute> +- </task> +- <task name="vbc"> +- <attribute name="exename">vbnc</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="managed">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- <attribute name="managed">true</attribute> +- </task> +- <task name="license"> +- <attribute name="hascommandlinecompiler">false</attribute> +- </task> +- <task name="ilasm"> +- <attribute name="managed">true</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="moonlight-2.0" +- family="moonlight" +- version="2.0" +- description="Moonlight 2.0" +- sdkdirectory="${toolDirectory}" +- frameworkdirectory="${toolDirectory}" +- frameworkassemblydirectory="${toolDirectory}" +- clrversion="2.0.50727" +- clrtype="Browser" +- vendor="Mono" +- > +- <runtime> +- <modes> +- <auto> +- <engine program="${runtimeEngine}"> +- <arg value="--runtime=moonlight" /> +- <arg value="--security=temporary-smcs-hack" /> +- </engine> +- </auto> +- </modes> +- </runtime> +- <reference-assemblies basedir="${path::combine(frameworkAssemblyDirectory, 'lib/mono/2.1')}"> +- <include name="Microsoft.VisualBasic.dll" /> +- <include name="mscorlib.dll" /> +- <include name="System.Core.dll" /> +- <include name="System.dll" /> +- <include name="System.Net.dll" /> +- <include name="System.Runtime.Serialization.dll" /> +- <include name="System.ServiceModel.dll" /> +- <include name="System.ServiceModel.Web.dll" /> +- <include name="System.Windows.Browser.dll" /> +- <include name="System.Windows.dll" /> +- <include name="System.Xml.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- include MS.NET version-neutral assemblies --> +- <include name="extensions/net/neutral/**/*.dll" /> +- <!-- include MS.NET 2.0 specific assemblies --> +- <include name="extensions/net/2.0/**/*.dll" /> +- <!-- include MS.NET specific task assembly --> +- <include name="NAnt.MSNetTasks.dll" /> +- <!-- include MS.NET specific test assembly --> +- <include name="NAnt.MSNet.Tests.dll" /> +- <!-- include .NET 2.0 specific assemblies --> +- <include name="extensions/common/2.0/**/*.dll" /> +- </task-assemblies> +- <tool-paths> +- <directory name="${toolDirectory}" /> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/2.0')}" /> +- <directory name="${path::combine(frameworkAssemblyDirectory, 'mono/1.0')}" /> +- <!-- unmanaged tools --> +- <directory name="${sdkInstallRoot}/bin" /> +- </tool-paths> +- <project> +- <!-- quick and dirty check to see if pkg-config is available (and configured) --> +- <property name="pkgconfig.available" value="${environment::variable-exists('PKG_CONFIG_PATH')}" /> +- <if test="${pkgconfig.available}"> +- <if test="${pkg-config::exists('mono')}"> +- <call target="configure-from-pkg-config" /> +- </if> +- <if test="${not pkg-config::exists('mono')}"> +- <call target="configure-from-registry" /> +- </if> +- </if> +- <if test="${not pkgconfig.available}"> +- <call target="configure-from-registry" /> +- </if> +- +- <property name="toolDirectory" value="${path::combine(frameworkAssemblyDirectory, 'mono/2.1')}" /> +- <property name="runtimeEngine" value="${path::combine(sdkInstallRoot, 'bin/mono.exe')}" /> +- +- <target name="configure-from-pkg-config"> +- <property name="mono.version" value="${pkg-config::get-mod-version('mono')}" /> +- <property name="sdkInstallRoot" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'prefix'))}" /> +- <property name="frameworkAssemblyDirectory" value="${cygpath::get-windows-path(pkg-config::get-variable('mono', 'libdir'))}" /> +- <property name="configDir" value="${path::combine(sdkInstallRoot, 'etc')}/" /> +- </target> +- +- <target name="configure-from-registry"> +- <monoregistry property="mono.reg" failonerror="false" /> +- <readregistry +- property="mono.version" +- key="${mono.reg}\DefaultCLR" +- hive="LocalMachine" +- /> +- <property name="monokey" value="${mono.reg}\${mono.version}" /> +- +- <readregistry +- property="sdkInstallRoot" +- key="${monokey}\SdkInstallRoot" +- hive="LocalMachine" /> +- <readregistry +- property="frameworkAssemblyDirectory" +- key="${monokey}\FrameworkAssemblyDirectory" +- hive="LocalMachine" /> +- <readregistry +- property="configDir" +- key="${monokey}\MonoConfigDir" +- hive="LocalMachine" /> +- </target> +- </project> +- <tasks> +- <task name="csc"> +- <attribute name="exename">smcs</attribute> +- <attribute name="managed">true</attribute> +- <attribute name="supportspackagereferences">true</attribute> +- <attribute name="supportsnowarnlist">true</attribute> +- <attribute name="supportsdocgeneration">true</attribute> +- <attribute name="supportskeycontainer">true</attribute> +- <attribute name="supportskeyfile">true</attribute> +- <attribute name="supportsdelaysign">true</attribute> +- <attribute name="supportslangversion">true</attribute> +- </task> +- <task name="resgen"> +- <attribute name="supportsassemblyreferences">true</attribute> +- <attribute name="supportsexternalfilereferences">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="hascommandlinecompiler">false</attribute> +- </task> +- </tasks> +- </framework> +- <framework +- name="sscli-1.0" +- family="sscli" +- version="1.0" +- description="Microsoft Shared Source CLI 1.0" +- sdkdirectory="C:\sscli\build\v1.x86fstchk.rotor\sdk\bin" +- frameworkdirectory="C:\sscli\build\v1.x86fstchk.rotor" +- frameworkassemblydirectory="C:\sscli\build\v1.x86fstchk.rotor" +- clrversion="1.0.3" +- clrtype="Desktop" +- vendor="Microsoft" +- > +- <runtime> +- <modes> +- <auto> +- <engine program="C:\sscli\build\v1.x86fstchk.rotor\clix.exe" /> +- </auto> +- </modes> +- </runtime> +- <reference-assemblies basedir="C:\sscli\build\v1.x86fstchk.rotor"> +- <include name="*.dll" /> +- </reference-assemblies> +- <task-assemblies> +- <!-- this is not a supported runtime framework --> +- </task-assemblies> +- <tool-paths> +- <directory name="C:\sscli\build\v1.x86fstchk.rotor\sdk\bin" /> +- <directory name="C:\sscli\build\v1.x86fstchk.rotor" /> +- </tool-paths> +- <project /> +- <tasks> +- <task name="csc"> +- <attribute name="supportsnowarnlist">true</attribute> +- </task> +- <task name="jsc"> +- <attribute name="managed">true</attribute> +- </task> +- <task name="delay-sign"> +- <attribute name="exename">sn</attribute> +- </task> +- <task name="license"> +- <attribute name="hascommandlinecompiler">false</attribute> +- </task> +- <task name="ilasm"> +- <attribute name="managed">true</attribute> +- </task> +- <task name="ildasm"> +- <attribute name="managed">true</attribute> +- </task> +- </tasks> +- </framework> +- </platform> + <platform name="unix" default="auto"> + <task-assemblies> + <!-- include NAnt task assemblies --> +@@ -2415,18 +92,18 @@ + <property name="csc.supportsdocgeneration" value="false" /> + </if> + <if test="${pkg-config::is-atleast-version('mono', '1.1')}"> +- <property name="toolDirectory" value="${path::combine(prefix, 'lib/mono/1.0')}" /> ++ <property name="toolDirectory" value="${path::combine(prefix, 'bin')}" /> + <property name="resgen.tool" value="resgen" /> + <property name="csc.supportsdocgeneration" value="true" /> + </if> + </project> + <tasks> + <task name="al"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="csc"> +- <attribute name="exename">${path::combine(prefix, 'lib/mono/1.0/mcs.exe')}</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="exename">${path::combine(prefix, 'bin/mcs')}</attribute> ++ <attribute name="managed">false</attribute> + <attribute name="supportspackagereferences">true</attribute> + <attribute name="supportsnowarnlist">true</attribute> + <attribute name="supportsdocgeneration">${csc.supportsdocgeneration}</attribute> +@@ -2437,25 +114,25 @@ + </task> + <task name="jsc"> + <attribute name="exename">mjs</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="vbc"> +- <attribute name="exename">${path::combine(prefix, 'lib/mono/1.0/mbas.exe')}</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="exename">${path::combine(prefix, 'bin/vbnc')}</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="resgen"> + <attribute name="exename">${resgen.tool}</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="delay-sign"> + <attribute name="exename">sn</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="license"> + <attribute name="hascommandlinecompiler">false</attribute> + </task> + <task name="ilasm"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + </tasks> + </framework> +@@ -2502,9 +179,10 @@ + </task-assemblies> + <tool-paths> + <directory name="${toolDirectory}" /> +- <directory name="${path::combine(prefix, 'lib/mono/1.0')}" /> +- <!-- unmanaged tools --> ++ <!-- unmanaged tools --> + <directory name="${prefix}/bin" /> ++ <!-- managed tools --> ++ <directory name="${path::combine(prefix, 'lib/mono/1.0')}" /> + </tool-paths> + <project> + <if test="${not pkg-config::exists('mono')}"> +@@ -2518,7 +196,7 @@ + <property name="csc.supportsdocgeneration" value="false" /> + </if> + <if test="${pkg-config::is-atleast-version('mono', '1.1')}"> +- <property name="toolDirectory" value="${path::combine(prefix, 'lib/mono/2.0')}" /> ++ <property name="toolDirectory" value="${path::combine(prefix, 'bin')}" /> + <property name="resgen.tool" value="resgen" /> + <property name="csc.supportsdocgeneration" value="true" /> + </if> +@@ -2529,11 +207,11 @@ + </project> + <tasks> + <task name="al"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="csc"> + <attribute name="exename">gmcs</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + <attribute name="supportspackagereferences">true</attribute> + <attribute name="supportsnowarnlist">true</attribute> + <attribute name="supportsdocgeneration">${csc.supportsdocgeneration}</attribute> +@@ -2544,26 +222,26 @@ + </task> + <task name="jsc"> + <attribute name="exename">mjs</attribute> +- <attribute name="managed">strict</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="vbc"> + <attribute name="exename">vbnc</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="resgen"> + <attribute name="exename">${resgen.tool}</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + <attribute name="supportsexternalfilereferences">${resgen.supportsexternalfilereferences}</attribute> + </task> + <task name="delay-sign"> + <attribute name="exename">sn</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="license"> + <attribute name="hascommandlinecompiler">false</attribute> + </task> + <task name="ilasm"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + </tasks> + </framework> +@@ -2616,10 +294,11 @@ + </task-assemblies> + <tool-paths> + <directory name="${toolDirectory}" /> ++ <!-- unmanaged tools --> ++ <directory name="${prefix}/bin" /> ++ <!-- managed tools --> + <directory name="${path::combine(prefix, 'lib/mono/2.0')}" /> + <directory name="${path::combine(prefix, 'lib/mono/1.0')}" /> +- <!-- unmanaged tools --> +- <directory name="${prefix}/bin" /> + </tool-paths> + <project> + <if test="${not pkg-config::exists('mono')}"> +@@ -2627,15 +306,15 @@ + </if> + <property name="resgen.supportsexternalfilereferences" value="false" /> + <property name="prefix" value="${pkg-config::get-variable('mono', 'prefix')}" /> +- <property name="toolDirectory" value="${path::combine(prefix, 'lib/mono/3.5')}" /> ++ <property name="toolDirectory" value="${path::combine(prefix, 'bin')}" /> + </project> + <tasks> + <task name="al"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="csc"> + <attribute name="exename">gmcs</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + <attribute name="langversion">linq</attribute> + <attribute name="supportspackagereferences">true</attribute> + <attribute name="supportsnowarnlist">true</attribute> +@@ -2647,25 +326,25 @@ + </task> + <task name="jsc"> + <attribute name="exename">mjs</attribute> +- <attribute name="managed">strict</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="vbc"> + <attribute name="exename">vbnc</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="resgen"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + <attribute name="supportsexternalfilereferences">true</attribute> + </task> + <task name="delay-sign"> + <attribute name="exename">sn</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="license"> + <attribute name="hascommandlinecompiler">false</attribute> + </task> + <task name="ilasm"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + </tasks> + </framework> +@@ -2721,11 +400,12 @@ + </task-assemblies> + <tool-paths> + <directory name="${toolDirectory}" /> ++ <!-- unmanaged tools --> ++ <directory name="${prefix}/bin" /> ++ <!-- managed tools --> + <directory name="${path::combine(prefix, 'lib/mono/3.5')}" /> + <directory name="${path::combine(prefix, 'lib/mono/2.0')}" /> + <directory name="${path::combine(prefix, 'lib/mono/1.0')}" /> +- <!-- unmanaged tools --> +- <directory name="${prefix}/bin" /> + </tool-paths> + <project> + <if test="${not pkg-config::exists('mono')}"> +@@ -2733,15 +413,15 @@ + </if> + <property name="resgen.supportsexternalfilereferences" value="false" /> + <property name="prefix" value="${pkg-config::get-variable('mono', 'prefix')}" /> +- <property name="toolDirectory" value="${path::combine(prefix, 'lib/mono/4.0')}" /> ++ <property name="toolDirectory" value="${path::combine(prefix, 'bin')}" /> + </project> + <tasks> + <task name="al"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="csc"> + <attribute name="exename">dmcs</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + <attribute name="langversion">linq</attribute> + <attribute name="supportspackagereferences">true</attribute> + <attribute name="supportsnowarnlist">true</attribute> +@@ -2753,25 +433,25 @@ + </task> + <task name="jsc"> + <attribute name="exename">mjs</attribute> +- <attribute name="managed">strict</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="vbc"> + <attribute name="exename">vbnc</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="resgen"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + <attribute name="supportsexternalfilereferences">true</attribute> + </task> + <task name="delay-sign"> + <attribute name="exename">sn</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + <task name="license"> + <attribute name="hascommandlinecompiler">false</attribute> + </task> + <task name="ilasm"> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + </task> + </tasks> + </framework> +@@ -2824,22 +504,23 @@ + </task-assemblies> + <tool-paths> + <directory name="${toolDirectory}" /> +- <directory name="${path::combine(prefix, 'lib/mono/2.0')}" /> +- <directory name="${path::combine(prefix, 'lib/mono/1.0')}" /> + <!-- unmanaged tools --> + <directory name="${prefix}/bin" /> ++ <!-- managed tools --> ++ <directory name="${path::combine(prefix, 'lib/mono/2.0')}" /> ++ <directory name="${path::combine(prefix, 'lib/mono/1.0')}" /> + </tool-paths> + <project> + <if test="${not pkg-config::exists('mono')}"> + <fail>Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/.</fail> + </if> + <property name="prefix" value="${pkg-config::get-variable('mono', 'prefix')}" /> +- <property name="toolDirectory" value="${path::combine(prefix, 'lib/mono/2.1')}" /> ++ <property name="toolDirectory" value="${path::combine(prefix, 'bin')}" /> + </project> + <tasks> + <task name="csc"> + <attribute name="exename">smcs</attribute> +- <attribute name="managed">true</attribute> ++ <attribute name="managed">false</attribute> + <attribute name="supportspackagereferences">true</attribute> + <attribute name="supportsnowarnlist">true</attribute> + <attribute name="supportsdocgeneration">true</attribute> +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; + } diff --git a/java/not-working/java-asm4/PKGBUILD b/java/not-working/java-asm4/PKGBUILD new file mode 100644 index 000000000..3db06dddc --- /dev/null +++ b/java/not-working/java-asm4/PKGBUILD @@ -0,0 +1,17 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgver=4.1 +. ../java-asm2/common.sh +depends+=('java-bnd') + +#### + +pkgrel=5 +_checksource_ignore=(src/org/objectweb/asm/optimizer/jdk{1.2.2_017,1.3.1_19}.txt.gz) + +mksource() { + cd "$srcdir/$_pkgname-$pkgver" + rm examples/jasmin/test/jasmin.jar +} + +md5sums=('cbfd7445edc517e0867ad410e48cb106') diff --git a/java/not-working/java-asm4/TODO b/java/not-working/java-asm4/TODO new file mode 100644 index 000000000..563c88bc9 --- /dev/null +++ b/java/not-working/java-asm4/TODO @@ -0,0 +1 @@ +Depends on java-bnd, which is not packaged
\ No newline at end of file diff --git a/java/not-working/java-bnd/PKGBUILD b/java/not-working/java-bnd/PKGBUILD new file mode 100644 index 000000000..86820469a --- /dev/null +++ b/java/not-working/java-bnd/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=bnd +pkgname=java-bnd +pkgver=1.50.0 +pkgdesc="A swiss army knife for OSGi" +url="http://www.aqute.biz/Bnd/" +license=('Apache2') + +pkgrel=1 +arch=(any) +makedepends=('apache-ant' 'junit') +source=("git://github.com/bndtools/bnd.git") + +build() { + cd "$srcdir/$_pkgname" + ant dist +} + +package() { + : +} + +md5sums=('SKIP') diff --git a/java/not-working/java-guava/PKGBUILD b/java/not-working/java-guava/PKGBUILD new file mode 100644 index 000000000..0250e7183 --- /dev/null +++ b/java/not-working/java-guava/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=guava +pkgname=java-guava +pkgver=13.0.1 +pkgdesc="Google Core Libraries for Java." +url="https://code.google.com/p/guava-libraries/" +license=('Apache2') + +pkgrel=1 +arch=('any') +depends=('java-runtime>=5') +makedepends=('java-runtime>=6' 'maven' 'junit-truth' 'jh') +conflicts=('openjdk6') # OpenJDK bug 100167 conflicts +source=("$pkgname::git+https://code.google.com/p/guava-libraries/#tag=v$pkgver") + +mksource() { + cd "$srcdir/$pkgname" + rm guava/lib/*.jar + rm guava-test/lib/*.jar +} + +build() { + cd "$srcdir/$pkgname" + eval `jh mksource` + + ln -s /usr/share/java/junit-truth.jar guava-tests/lib/libtruth.java + + mvn package +} + +package() { + : +} diff --git a/java/not-working/java-guava/TODO b/java/not-working/java-guava/TODO new file mode 100644 index 000000000..ee0a18042 --- /dev/null +++ b/java/not-working/java-guava/TODO @@ -0,0 +1,2 @@ +* depends on junit-truth, which does not build yet +* package() hasn't been written diff --git a/java/not-working/junit-truth/PKGBUILD b/java/not-working/junit-truth/PKGBUILD new file mode 100644 index 000000000..61a0ee469 --- /dev/null +++ b/java/not-working/junit-truth/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=junit-truth +pkgdesc="Assertion/Proposition framework for Java unit tests." +url="https://github.com/truth0/truth" +license=('Apache2') + +#_pkgver=0.5.0-beta1 +#pkgver=${_pkgver//-/.} +#_tag=v${_pkgver} + +#pkgver=0.7.0 +#_tag=truth-rel-${pkgver//./-} + +#pkgver=0.8 +#_tag=truth-${pkgver} + +#pkgver=0.9 +#_tag=release_${pkgver//./_} + +pkgver=0.10 +_tag=release_${pkgver//./_} + +pkgrel=1 +arch=('any') +depends=('junit') +makedepends=('maven' 'jh') +conflicts=('openjdk6') # OpenJDK bug 100167 conflicts +source=("$pkgname::git://github.com/truth0/truth.git#tag=$tag") + +build() { + cd "${srcdir}/${pkgname}" + jh checksource + mvn package +} + +package() { + cd "${srcdir}/${pkgname}" + install -d "${pkgdir}"/usr/share/java/${pkgname} + JAR=${pkgname}-${pkgver}.jar + install -Dm 644 target/${JAR} "${pkgdir}"/usr/share/java/${pkgname} + ln -s ${pkgname}/${JAR} "${pkgdir}"/usr/share/java/${pkgname}.jar +} + +md5sums=('SKIP') diff --git a/java/not-working/junit-truth/TODO b/java/not-working/junit-truth/TODO new file mode 100644 index 000000000..d21b3e472 --- /dev/null +++ b/java/not-working/junit-truth/TODO @@ -0,0 +1 @@ +has unpackaged dependencies diff --git a/java/not-working/protobuf/PKGBUILD b/java/not-working/protobuf/PKGBUILD new file mode 100644 index 000000000..699bde0cf --- /dev/null +++ b/java/not-working/protobuf/PKGBUILD @@ -0,0 +1,99 @@ +# Maintainer: Thomas S Hatch <thatch45@gmail.com> +# Contributor: Geoffroy Carrier <geoffroy@archlinux.org> +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> + +pkgbase=protobuf +pkgname=('protobuf' 'python2-protobuf' 'java-protobuf') +pkgver=2.4.1 +pkgrel=2.1 +pkgdesc="A way of encoding structured data in an efficient yet extensible format" +arch=('i686' 'x86_64') +url="http://code.google.com/p/protobuf/" +license=('APACHE') +depends=('gcc-libs' 'zlib') +makedepends=('python2' 'python2-distribute' 'java-environment') +options=(!libtool) +source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2) +md5sums=('ed436802019c9e1f40cc750eaf78f318') + +#### + +build() { + build_protobuf + build_python2-protobuf + build_java-protobuf +} + +check() { + check_protobuf + check_python2-protobuf + check_java-protobuf +} + +package() { + package_protobuf + package_python2-protobuf + package_java-protobuf +} + +#### + +build_protobuf() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr --disable-static + make +} + +check_protobuf() { + cd $srcdir/$pkgname-$pkgver + make check +} + +package_protobuf() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install +} + +#### + +build_python2-protobuf() { + cd $srcdir/$pkgname-$pkgver/python + python2 setup.py build +} + +check_python2-protobuf() { + cd $srcdir/$pkgname-$pkgver/python + python2 setup.py test +} + +package_python2-protobuf() { + pkgdesc="protobuf python2 API" + replaces=('protobuf-python') + provides=("protobuf-python=${pkgver}") + depends=("python2" "protobuf=${pkgver}") + + cd $srcdir/protobuf-$pkgver/python + python2 setup.py install --prefix=/usr --root $pkgdir +} + +#### + +build_java-protobuf() { + cd $srcdir/$pkgname-$pkgver/java + mvn compile +} + +check_java-protobuf() { + cd $srcdir/$pkgname-$pkgver/java + mvn test +} + +package_java-protobuf() { + pkgdesc="protobuf Java API" + replaces=('protobuf-java') + provides=("protobuf-java=${pkgver}") + depends=("java-runtime" "protobuf=${pkgver}") + + cd $srcdir/$pkgname-$pkgver/java + : +} diff --git a/java/not-working/protobuf/TODO b/java/not-working/protobuf/TODO new file mode 100644 index 000000000..6a126b757 --- /dev/null +++ b/java/not-working/protobuf/TODO @@ -0,0 +1,5 @@ +* Missing dependencies: + * junit:junit:4.4 (4.10 is packaged, patch to use 4.10?) + * org.easymock:easymock:2.2 + * org.easymock:easymockclassextension:2.2.1 +* package_java-protobuf() has not been written |