diff --git a/programming/build/ant/actions.py b/programming/build/ant/actions.py new file mode 100644 index 0000000000..65e5825054 --- /dev/null +++ b/programming/build/ant/actions.py @@ -0,0 +1,57 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +import os +import glob + +shelltools.export("JAVA_HOME","/usr/lib/jvm/java-7-openjdk") + +WorkDir = "apache-ant-%s" % get.srcVERSION() +anthome = "/usr/share/ant" +javadir = "/usr/share/java" + +def build(): + shelltools.export("ANT_OPTS", "-Duser.home=%s" % WorkDir) + shelltools.system("./bootstrap.sh") + +def install(): + for d in (anthome, os.path.join(anthome, "lib"), os.path.join(anthome, "etc"), os.path.join(anthome, "bin"), javadir, os.path.join(javadir, "ant")): + pisitools.dodir(d) + + shelltools.cd("build/lib") + + for f in ("ant.jar", "ant-launcher.jar", "ant-bootstrap.jar"): + pisitools.insinto(javadir, f, f.replace(".jar", "-%s.jar" % get.srcVERSION())) + pisitools.dosym(os.path.join(javadir, f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(anthome, "lib", f)) + pisitools.dosym(os.path.join(javadir, f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(javadir, f)) + + #Install optional JAR files to /usr/share/java/ant + for f in ("ant-jmf.jar", "ant-junit.jar", "ant-swing.jar"): + pisitools.insinto(os.path.join(javadir, "ant"), f, f.replace(".jar", "-%s.jar" % get.srcVERSION())) + pisitools.dosym(os.path.join(javadir, "ant", f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(anthome, "lib", f)) + pisitools.dosym(os.path.join(javadir, "ant", f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(javadir, "ant", f)) + + + shelltools.cd("../../src/script") + for f in glob.glob("*.bat"): + shelltools.unlink(f) + + for f in glob.glob("*.cmd"): + shelltools.unlink(f) + + pisitools.dobin("*") + pisitools.domove("/usr/bin/antRun*", os.path.join(anthome, "bin")) + shelltools.cd("../../") + + #Install XSLs + pisitools.insinto(os.path.join(anthome, "etc"), "src/etc/*.xsl") + + pisitools.dodoc("KEYS", "NOTICE", "README", "WHATSNEW", "LICENSE") + #pisitools.dohtml("docs/*") diff --git a/programming/build/ant/files/ant.conf b/programming/build/ant/files/ant.conf new file mode 100644 index 0000000000..207362fdf7 --- /dev/null +++ b/programming/build/ant/files/ant.conf @@ -0,0 +1,4 @@ +# Apache Ant start script configuration file + +# Optional jars and their dependencies +OPT_JAR_LIST=/usr/share/java/junit.jar \ No newline at end of file diff --git a/programming/build/ant/files/ant.csh b/programming/build/ant/files/ant.csh new file mode 100644 index 0000000000..a547db8cd3 --- /dev/null +++ b/programming/build/ant/files/ant.csh @@ -0,0 +1 @@ +setenv ANT_HOME /usr/share/ant \ No newline at end of file diff --git a/programming/build/ant/files/ant.sh b/programming/build/ant/files/ant.sh new file mode 100644 index 0000000000..d390f8842d --- /dev/null +++ b/programming/build/ant/files/ant.sh @@ -0,0 +1 @@ +export ANT_HOME=/usr/share/ant \ No newline at end of file diff --git a/programming/build/ant/files/apache-ant-no-test-jar.patch b/programming/build/ant/files/apache-ant-no-test-jar.patch new file mode 100644 index 0000000000..d4bdfed1bb --- /dev/null +++ b/programming/build/ant/files/apache-ant-no-test-jar.patch @@ -0,0 +1,11 @@ +--- apache-ant-1.8.0.orig/build.xml 2010-04-13 14:09:27.501531982 +0200 ++++ apache-ant-1.8.0/build.xml 2010-04-13 14:57:08.321408006 +0200 +@@ -832,7 +832,7 @@ + =================================================================== + --> + + + \ No newline at end of file diff --git a/programming/build/ant/files/bin_ant b/programming/build/ant/files/bin_ant new file mode 100644 index 0000000000..a88165d71a --- /dev/null +++ b/programming/build/ant/files/bin_ant @@ -0,0 +1,6 @@ +#!/bin/sh + +. /etc/apache-ant/ant.conf + +export LOCALCLASSPATH=${OPT_JAR_LIST} +/usr/share/apache-ant/bin/ant "$@" \ No newline at end of file diff --git a/programming/build/ant/pspec.xml b/programming/build/ant/pspec.xml new file mode 100644 index 0000000000..c21912eee7 --- /dev/null +++ b/programming/build/ant/pspec.xml @@ -0,0 +1,85 @@ + + + + + ant + http://ant.apache.org + + PisiLinux Community + admins@pisilinux.org + + Apache-2.0 + app:console + Java-based build tool + Apache Ant is a Java-based build tool. In theory, it is kind of like Make, but without Make's wrinkles. + http://archive.apache.org/dist/ant/source/apache-ant-1.9.6-src.tar.bz2 + + + + + apache-ant-no-test-jar.patch + + + + + ant + + + + + /etc + /usr/bin + /usr/share/ + + + 20ant + ant.conf + + + + + ant-docs + Documentation package for ant build system + + /usr/share/doc + + + + + + 2015-08-22 + 1.9.6 + Version bump. + Osman Erkan + osman.erkan@pisilinux.org + + + 2014-05-25 + 1.9.4 + Version bump. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-03-03 + 1.8.4 + Rebuild for openjdk. + Serdar Soytetir + kaptan@pisilinux.org + + + 2013-04-20 + 1.8.4 + Fixed + PisiLinux Community + admins@pisilinux.org + + + 2012-10-06 + 1.8.4 + First release + PisiLinux Community + admins@pisilinux.org + + + \ No newline at end of file diff --git a/programming/build/ant/translations.xml b/programming/build/ant/translations.xml new file mode 100644 index 0000000000..86ef1fcfc5 --- /dev/null +++ b/programming/build/ant/translations.xml @@ -0,0 +1,9 @@ + + + + ant + Java tabanlı inşa aracı + Apache ant Java tabanlı bir inşa aracıdır. Teorik olarak make'e benzemektedir ancak make'in kırışıksız halidir + Apache Ant es una herramienta de compilación (build) basado en Java. Teróricamente se puede comparar con Make, pero sin las vueltas que tiene aquel. + +