summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-12-18 20:04:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-12-18 20:04:27 (GMT)
commit23c5c45e0c9c4db5e9d6a0ed4d1e709db43d5522 (patch)
tree40670a4f69aacb922e11d6834202b569ae12c0ce /abs/extra
parentb05a4e7019876e795451ac8dae3a5906e2cc8c3a (diff)
downloadlinhes_pkgbuild-23c5c45e0c9c4db5e9d6a0ed4d1e709db43d5522.zip
linhes_pkgbuild-23c5c45e0c9c4db5e9d6a0ed4d1e709db43d5522.tar.gz
linhes_pkgbuild-23c5c45e0c9c4db5e9d6a0ed4d1e709db43d5522.tar.bz2
eclipse-ecj: initial include: dep of java7-openjdk
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/eclipse-ecj/01-ecj-include-props.patch15
-rw-r--r--abs/extra/eclipse-ecj/02-buildxml-fix-manifest.patch11
-rw-r--r--abs/extra/eclipse-ecj/PKGBUILD40
-rw-r--r--abs/extra/eclipse-ecj/ecj4
4 files changed, 70 insertions, 0 deletions
diff --git a/abs/extra/eclipse-ecj/01-ecj-include-props.patch b/abs/extra/eclipse-ecj/01-ecj-include-props.patch
new file mode 100644
index 0000000..3276626
--- /dev/null
+++ b/abs/extra/eclipse-ecj/01-ecj-include-props.patch
@@ -0,0 +1,15 @@
+--- build.xml 2012-09-14 18:22:48.000000000 +0000
++++ build.xml.patched 2013-01-09 10:19:28.414079935 +0000
+@@ -46,9 +46,10 @@
+ <include name="**/*.rsc"/>
+ <include name="META-INF/**"/>
+ <include name="**/*.properties"/>
++ <include name="**/*.props"/>
+ <exclude name="META-INF/eclipse.inf"/>
+ </fileset>
+ </zip>
+ <delete dir="${output}" />
+ </target>
+-</project>
+\ No newline at end of file
++</project>
diff --git a/abs/extra/eclipse-ecj/02-buildxml-fix-manifest.patch b/abs/extra/eclipse-ecj/02-buildxml-fix-manifest.patch
new file mode 100644
index 0000000..ba9cd0a
--- /dev/null
+++ b/abs/extra/eclipse-ecj/02-buildxml-fix-manifest.patch
@@ -0,0 +1,11 @@
+--- build.xml.orig 2013-10-03 13:55:28.579003290 +0000
++++ build.xml 2013-10-03 13:57:52.971400439 +0000
+@@ -39,8 +39,6 @@
+ <compilerarg line="-Xlint:none"/>
+ </javac>
+
+- <delete file="${basedir}/META-INF/MANIFEST.MF" failonerror="false"/>
+- <copy tofile="${basedir}/META-INF/MANIFEST.MF" file="${basedir}/scripts/binary/META-INF/MANIFEST.MF"/>
+ <zip destfile="${basedir}/${jar_file}">
+ <fileset dir="${output}" />
+ <fileset dir="${basedir}">
diff --git a/abs/extra/eclipse-ecj/PKGBUILD b/abs/extra/eclipse-ecj/PKGBUILD
new file mode 100644
index 0000000..1d8f473
--- /dev/null
+++ b/abs/extra/eclipse-ecj/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+# Contributor: Allan McRae <allan@archlinux.org>
+
+pkgname=eclipse-ecj
+pkgver=4.4
+pkgrel=1
+_date=201406061215
+pkgdesc='Eclipse java bytecode compiler'
+arch=('any')
+license=('EPL')
+url='http://www.eclipse.org/'
+depends=('java-runtime')
+makedepends=('apache-ant' 'java-environment')
+source=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/ecjsrc-${pkgver}.jar
+ 01-ecj-include-props.patch
+ 02-buildxml-fix-manifest.patch
+ ecj)
+sha256sums=('429a65013ae9740e4f05451f8e2968b389ec04ef2c7178ccfa5ef6714488fd12'
+ '8f6259c76dfe493549bbaec3c8a7ba29e82c70e127c918adca28737dcb570f6b'
+ '5ca6bd94c2b1cb4c6f116d38c160edf1c4ca520647ac74b26486f958254767af'
+ '63aff3d126243d303ddc4305cfa77827df72e87ccf85bd8a22a2f832357e396c')
+
+build() {
+ cd "${srcdir}"
+ for p in 01-ecj-include-props 02-buildxml-fix-manifest; do
+ patch -p0 < ${p}.patch
+ done
+ export LANG=en_US.UTF-8
+ ant build
+}
+
+package() {
+ install -Dm644 "${srcdir}/ecj.jar" "${pkgdir}/usr/share/java/eclipse-ecj-${pkgver}.jar"
+ ln -s eclipse-ecj-${pkgver}.jar "${pkgdir}/usr/share/java/ecj.jar"
+ ln -s eclipse-ecj-${pkgver}.jar "${pkgdir}/usr/share/java/eclipse-ecj.jar"
+ install -Dm755 ecj "${pkgdir}/usr/bin/ecj"
+ install -D -m 644 ecj.1 "${pkgdir}/usr/share/man/man1/ecj.1"
+}
diff --git a/abs/extra/eclipse-ecj/ecj b/abs/extra/eclipse-ecj/ecj
new file mode 100644
index 0000000..6d3557a
--- /dev/null
+++ b/abs/extra/eclipse-ecj/ecj
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+CLASSPATH=/usr/share/java/ecj.jar${CLASSPATH:+:}$CLASSPATH \
+java org.eclipse.jdt.internal.compiler.batch.Main "$@"