Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=18ee0bb256a95065a711aa6ab4cd096d9fee98fa
commit 18ee0bb256a95065a711aa6ab4cd096d9fee98fa Author: Marius Cirsta <mcir...@frugalware.org> Date: Sat Jul 7 22:37:40 2012 +0000 jgoodies-common-1.3.1-1-x86_64 * new package diff --git a/source/devel-extra/jgoodies-common/FrugalBuild b/source/devel-extra/jgoodies-common/FrugalBuild new file mode 100644 index 0000000..73b562a --- /dev/null +++ b/source/devel-extra/jgoodies-common/FrugalBuild @@ -0,0 +1,27 @@ +# Compiling Time: 0.03 SBU +# Maintainer: Marius Cirsta <mcir...@frugalware.org> + +pkgname=jgoodies-common +pkgver=1.3.1 +pkgrel=1 +pkgdesc="JGoodies Common Library" +url="http://www.jgoodies.com/" +Finclude openjava +groups=('devel-extra') +archs=('i686' 'x86_64') +up2date="lynx -dump http://www.jgoodies.com/download/libraries/common/RELEASE-NOTES.txt | grep -m1 'CHANGES in ' \ + | sed 's/CHANGES\ in\ \([0-9\.]*\).*/\1/'" +source=($url/download/libraries/common/${pkgname}-${pkgver//./_}.zip build.xml) +sha1sums=('16cc5b68b317e7ef78747d0770ece1f346907351' \ + 'e2832174a1c2023096e38389d6faaceaf4e6d678') + +build() { + Fcd + mv jgoodies-common-${pkgver}-sources.{jar,zip} || Fdie + cp ../build.xml ./ || Fdie + Fextract jgoodies-common-${pkgver}-sources.zip + Fjavacleanup + antflags="-Dproject.name=${pkgname} jar" + Fant ${antflags} + Fjar dist/$pkgname.jar +} diff --git a/source/devel-extra/jgoodies-common/build.xml b/source/devel-extra/jgoodies-common/build.xml new file mode 100644 index 0000000..5c21582 --- /dev/null +++ b/source/devel-extra/jgoodies-common/build.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--- + notes: Call using the following: Fant -Dpackage.name=${package name} +--> +<project name="Frugalware" default="jar" basedir="."> + <property name="src" value="com"/> + <property name="build" value="build"/> + <property name="dist" value="dist"/> + + <property name="pkg" value="${package.name}"/> + <property name="jar" value="${project.name}.jar"/> + + <!-- Override any defined properties --> + <property file="build.properties"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${dist}"/> + <mkdir dir="${dist}/doc"/> + </target> + + <target name="compile" depends="init"> + <javac srcdir="${src}" destdir="${build}" classpath="${classpath}"/> + </target> + + <target name="manifest" depends="init"> + <manifest file="${build}/MANIFEST.MF" mode="update"> + <attribute name="Built-By" value="Frugalware"/> + </manifest> + </target> + + <target name="jar" depends="compile,manifest"> + <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF"> + <fileset dir="${build}"/> + </jar> + </target> + + <target name="javadoc" depends="compile"> + <javadoc sourcepath="${src}" destdir="${dist}/doc" packagenames="${pkg}"/> + </target> + + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git