diff --git a/programming/language/java/eclipse-ecj/actions.py b/programming/language/java/eclipse-ecj/actions.py new file mode 100644 index 0000000000..807893ced9 --- /dev/null +++ b/programming/language/java/eclipse-ecj/actions.py @@ -0,0 +1,28 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/copyleft/gpl.txt + +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +WorkDir = "." +shelltools.export("LC_ALL", "C") +shelltools.export("JAVA_HOME","/usr/lib/jvm/java-7-openjdk") + +def setup(): + shelltools.export("LANG", "en_US.UTF-8") + shelltools.system("sed -i -e 's|debuglevel=\"lines,source\"|debug=\"yes\"|g' build.xml") + shelltools.system('sed -i -e "s/Xlint:none/Xlint:none -encoding cp1252/g" build.xml') + shelltools.system("ant build") + +def install(): + pisitools.insinto("/usr/share/man/man1/","ecj.1") + + pisitools.insinto("/usr/share/java/", "ecj.jar", "eclipse-ecj-4.4.jar") + + shelltools.cd("%s/usr/share/java/" % get.installDIR()) + + pisitools.dosym("eclipse-ecj-4.4.jar", "/usr/share/java/ecj.jar") + pisitools.dosym("eclipse-ecj-4.4.jar", "/usr/share/java/eclipse-ecj.jar") \ No newline at end of file diff --git a/programming/language/java/eclipse-ecj/files/01-ecj-include-props.patch b/programming/language/java/eclipse-ecj/files/01-ecj-include-props.patch new file mode 100644 index 0000000000..32766266b3 --- /dev/null +++ b/programming/language/java/eclipse-ecj/files/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 @@ + + + ++ + + + + + +- +\ No newline at end of file ++ diff --git a/programming/language/java/eclipse-ecj/files/02-buildxml-fix-manifest.patch b/programming/language/java/eclipse-ecj/files/02-buildxml-fix-manifest.patch new file mode 100644 index 0000000000..ba9cd0a64c --- /dev/null +++ b/programming/language/java/eclipse-ecj/files/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 @@ + + + +- +- + + + diff --git a/programming/language/java/eclipse-ecj/files/ecj b/programming/language/java/eclipse-ecj/files/ecj new file mode 100644 index 0000000000..6d3557a74a --- /dev/null +++ b/programming/language/java/eclipse-ecj/files/ecj @@ -0,0 +1,4 @@ +#!/bin/sh + +CLASSPATH=/usr/share/java/ecj.jar${CLASSPATH:+:}$CLASSPATH \ +java org.eclipse.jdt.internal.compiler.batch.Main "$@" diff --git a/programming/language/java/eclipse-ecj/pspec.xml b/programming/language/java/eclipse-ecj/pspec.xml new file mode 100644 index 0000000000..2314090e4e --- /dev/null +++ b/programming/language/java/eclipse-ecj/pspec.xml @@ -0,0 +1,66 @@ + + + eclipse-ecj + http://www.eclipse.org + + PisiLinux Community + admins@pisilinux.org + + EPL + app:web + Eclipse java bytecode compiler + Eclipse java bytecode compiler + http://download.eclipse.org/eclipse/downloads/drops4/R-4.4.2-201502041700/ecjsrc-4.4.2.jar + + ant + jre7-openjdk-headless + + + 01-ecj-include-props.patch + 02-buildxml-fix-manifest.patch + + + + + eclipse-ecj + + /usr/share/man + /usr/bin + /usr/share/java + + + ecj + + + + + + 2015-05-19 + 4.4.2_201502041700 + Version Bump. + Osman Erkan + osman.erkan@pisilinux.org + + + 2014-06-04 + 4.4.1_201409250400 + Version Bump. + PisiLinux Community + admins@pisilinux.org + + + 2014-06-04 + 4.3.1_201309111000 + Rebuild for new gcc. + PisiLinux Community + admins@pisilinux.org + + + 2014-02-27 + 4.3.1_201309111000 + First Release + PisiLinux Community + admins@pisilinux.org + + + \ No newline at end of file diff --git a/programming/language/java/eclipse-ecj/translations.xml b/programming/language/java/eclipse-ecj/translations.xml new file mode 100644 index 0000000000..33586a5790 --- /dev/null +++ b/programming/language/java/eclipse-ecj/translations.xml @@ -0,0 +1,8 @@ + + + + eclipse-ecj + Eclipse java bytecode compiler + Eclipse java bytecode compiler + + \ No newline at end of file