ant: depoya eklendi.

This commit is contained in:
namso-01
2015-08-15 14:17:25 +03:00
parent 542766ed39
commit dd834ab0f2
8 changed files with 174 additions and 0 deletions
+57
View File
@@ -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/*")
+4
View File
@@ -0,0 +1,4 @@
# Apache Ant start script configuration file
# Optional jars and their dependencies
OPT_JAR_LIST=/usr/share/java/junit.jar
+1
View File
@@ -0,0 +1 @@
setenv ANT_HOME /usr/share/ant
+1
View File
@@ -0,0 +1 @@
export ANT_HOME=/usr/share/ant
@@ -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 @@
===================================================================
-->
<target name="dist-lite"
- depends="jars,test-jar"
+ depends="jars"
description="--> creates a minimum distribution to run Apache Ant">
<mkdir dir="${dist.dir}"/>
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
. /etc/apache-ant/ant.conf
export LOCALCLASSPATH=${OPT_JAR_LIST}
/usr/share/apache-ant/bin/ant "$@"
+85
View File
@@ -0,0 +1,85 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>ant</Name>
<Homepage>http://ant.apache.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>Apache-2.0</License>
<IsA>app:console</IsA>
<Summary>Java-based build tool</Summary>
<Description>Apache Ant is a Java-based build tool. In theory, it is kind of like Make, but without Make's wrinkles.</Description>
<Archive sha1sum="8eee8f30fecbf16c5bc430969d119d8081521b4d" type="tarbz2">http://archive.apache.org/dist/ant/source/apache-ant-1.9.6-src.tar.bz2</Archive>
<BuildDependencies>
<!--<Dependency>jdk7-openjdk</Dependency>-->
</BuildDependencies>
<Patches>
<Patch level="1">apache-ant-no-test-jar.patch</Patch>
</Patches>
</Source>
<Package>
<Name>ant</Name>
<RuntimeDependencies>
<!--<Dependency>jdk7-openjdk</Dependency>-->
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/share/</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/etc/env.d/20ant">20ant</AdditionalFile>
<AdditionalFile target="/etc/ant.conf" permission="0644" owner="root">ant.conf</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>ant-docs</Name>
<Summary>Documentation package for ant build system</Summary>
<Files>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="6">
<Date>2015-08-22</Date>
<Version>1.9.6</Version>
<Comment>Version bump.</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-05-25</Date>
<Version>1.9.4</Version>
<Comment>Version bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-03-03</Date>
<Version>1.8.4</Version>
<Comment>Rebuild for openjdk.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-04-20</Date>
<Version>1.8.4</Version>
<Comment>Fixed</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-06</Date>
<Version>1.8.4</Version>
<Comment>First release</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>ant</Name>
<Summary xml:lang="tr">Java tabanlı inşa aracı</Summary>
<Description xml:lang="tr">Apache ant Java tabanlı bir inşa aracıdır. Teorik olarak make'e benzemektedir ancak make'in kırışıksız halidir</Description>
<Description xml:lang="es">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.</Description>
</Source>
</PISI>