eclipse-ecj: depoya eklendi.

This commit is contained in:
namso-01
2015-08-15 14:15:50 +03:00
parent ff163ccc52
commit 2891861708
6 changed files with 132 additions and 0 deletions
@@ -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")
@@ -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>
@@ -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}">
@@ -0,0 +1,4 @@
#!/bin/sh
CLASSPATH=/usr/share/java/ecj.jar${CLASSPATH:+:}$CLASSPATH \
java org.eclipse.jdt.internal.compiler.batch.Main "$@"
@@ -0,0 +1,66 @@
<PISI>
<Source>
<Name>eclipse-ecj</Name>
<Homepage>http://www.eclipse.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>EPL</License>
<IsA>app:web</IsA>
<Summary>Eclipse java bytecode compiler</Summary>
<Description>Eclipse java bytecode compiler</Description>
<Archive sha1sum="903e8c2cb521cc91636eccae66b8594435516ff5" type="zip">http://download.eclipse.org/eclipse/downloads/drops4/R-4.4.2-201502041700/ecjsrc-4.4.2.jar</Archive>
<BuildDependencies>
<Dependency>ant</Dependency>
<Dependency>jre7-openjdk-headless</Dependency>
</BuildDependencies>
<Patches>
<Patch level="0">01-ecj-include-props.patch</Patch>
<Patch level="0">02-buildxml-fix-manifest.patch</Patch>
</Patches>
</Source>
<Package>
<Name>eclipse-ecj</Name>
<Files>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share/java</Path>
</Files>
<AdditionalFiles>
<AdditionalFile target="/usr/bin/ecj" permission="0755" owner="root">ecj</AdditionalFile>
</AdditionalFiles>
</Package>
<History>
<Update release="4">
<Date>2015-05-19</Date>
<Version>4.4.2_201502041700</Version>
<Comment>Version Bump.</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-06-04</Date>
<Version>4.4.1_201409250400</Version>
<Comment>Version Bump.</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-06-04</Date>
<Version>4.3.1_201309111000</Version>
<Comment>Rebuild for new gcc.</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2014-02-27</Date>
<Version>4.3.1_201309111000</Version>
<Comment>First Release</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>eclipse-ecj</Name>
<Summary xml:lang="en">Eclipse java bytecode compiler</Summary>
<Description xml:lang="en">Eclipse java bytecode compiler</Description>
</Source>
</PISI>