actions.py 1021 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import pisitools
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import get
  8. WorkDir = "."
  9. shelltools.export("LC_ALL", "C")
  10. shelltools.export("JAVA_HOME","/usr/lib/jvm/java-8-openjdk")
  11. def setup():
  12. shelltools.export("LANG", "en_US.UTF-8")
  13. shelltools.system("sed -i -e 's|debuglevel=\"lines,source\"|debug=\"yes\"|g' build.xml")
  14. shelltools.system('sed -i -e "s/Xlint:none/Xlint:none -encoding cp1252/g" build.xml')
  15. shelltools.system("ant build")
  16. def install():
  17. pisitools.insinto("/usr/share/man/man1/","ecj.1")
  18. pisitools.insinto("/usr/share/java/", "ecj.jar", "eclipse-ecj-4.4.jar")
  19. shelltools.cd("%s/usr/share/java/" % get.installDIR())
  20. pisitools.dosym("eclipse-ecj-4.4.jar", "/usr/share/java/ecj.jar")
  21. pisitools.dosym("eclipse-ecj-4.4.jar", "/usr/share/java/eclipse-ecj.jar")