diff options
-rw-r--r-- | dev-java/jcs/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/jcs/files/build-1.3.xml | 40 | ||||
-rw-r--r-- | dev-java/jcs/files/digest-jcs-1.3 | 3 | ||||
-rw-r--r-- | dev-java/jcs/jcs-1.3.ebuild | 66 |
4 files changed, 116 insertions, 1 deletions
diff --git a/dev-java/jcs/ChangeLog b/dev-java/jcs/ChangeLog index 291c389d8f81..bb293c7294fb 100644 --- a/dev-java/jcs/ChangeLog +++ b/dev-java/jcs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/jcs # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jcs/ChangeLog,v 1.11 2007/05/06 09:33:17 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jcs/ChangeLog,v 1.12 2007/10/09 20:26:03 nelchael Exp $ + +*jcs-1.3 (09 Oct 2007) + + 09 Oct 2007; Krzysiek Pawlik <nelchael@gentoo.org> +files/build-1.3.xml, + +jcs-1.3.ebuild: + Version bump, see bug #195073. 06 May 2007; Tobias Scherbaum <dertobi123@gentoo.org> jcs-1.2.7.9.ebuild: ppc stable, bug #176079 diff --git a/dev-java/jcs/files/build-1.3.xml b/dev-java/jcs/files/build-1.3.xml new file mode 100644 index 000000000000..f3623a42de76 --- /dev/null +++ b/dev-java/jcs/files/build-1.3.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<project name="Gentoo_Builder" default="jar" basedir="."> + <property name="src" value="src/java"/> + <property name="build" value="build"/> + <property name="dist" value="dist"/> + <property name="pkg" value="${package.name}"/> + <property name="jar" value="${project.name}.jar"/> + <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="Gentoo Portage"/> + </manifest> + </target> + <target name="jar" depends="compile,manifest"> + <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF"> + <fileset dir="${build}"/> + <fileset dir="${src}"> + <include name="**/*.vm"/> + </fileset> + </jar> + </target> + <target name="javadoc" depends="compile"> + <javadoc destdir="${dist}/doc/api"> + <fileset dir="${src}"/> + </javadoc> + </target> + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> diff --git a/dev-java/jcs/files/digest-jcs-1.3 b/dev-java/jcs/files/digest-jcs-1.3 new file mode 100644 index 000000000000..e01c7b0f9058 --- /dev/null +++ b/dev-java/jcs/files/digest-jcs-1.3 @@ -0,0 +1,3 @@ +MD5 adeac768fa51f3d2a0160a48b366a7df jcs-1.3-src.tar.gz 608600 +RMD160 184c0748bfa290c216321a03352e32a5bcf0edac jcs-1.3-src.tar.gz 608600 +SHA256 cb5534698e77e04715e634ed748941e3c24ecc0be6b8db1731a131848a51f611 jcs-1.3-src.tar.gz 608600 diff --git a/dev-java/jcs/jcs-1.3.ebuild b/dev-java/jcs/jcs-1.3.ebuild new file mode 100644 index 000000000000..9a1100dd6dab --- /dev/null +++ b/dev-java/jcs/jcs-1.3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jcs/jcs-1.3.ebuild,v 1.1 2007/10/09 20:26:03 nelchael Exp $ + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="JCS is a distributed caching system written in java for server-side java applications" +HOMEPAGE="http://jakarta.apache.org/jcs/" +SRC_URI="mirror://apache/jakarta/jcs/source/${P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="1.3" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="admin doc source" + +RDEPEND=">=virtual/jre-1.4 + =dev-java/commons-lang-2.0* + =dev-java/jisp-2.5* + =dev-java/servletapi-2.3* + dev-db/hsqldb + dev-java/commons-dbcp + dev-java/commons-logging + dev-java/commons-pool + dev-java/concurrent-util + dev-java/xmlrpc + admin? ( dev-java/velocity )" +DEPEND=">=virtual/jdk-1.4 + dev-java/ant-core + source? ( app-arch/zip ) + ${RDEPEND}" + +LIBRARY_PKGS="servletapi-2.3,commons-lang,commons-logging,commons-pool,commons-dbcp,xmlrpc,concurrent-util,jisp-2.5,hsqldb" + +src_unpack() { + unpack ${A} + + cd "${S}" + + # use our own build.xml because jcs's is demented by maven + cp "${FILESDIR}/build-${PV}.xml" build.xml + + if use admin; then + LIBRARY_PKGS="${LIBRARY_PKGS},velocity" + else + ewarn + ewarn "JCS Admin is disabled, if you want it hit Ctrl-C and add" + ewarn "\"admin\" USE flag." + ewarn + rm -fr "${S}/src/java/org/apache/jcs/admin" + fi + + cat > build.properties <<-END + classpath=$(java-pkg_getjars ${LIBRARY_PKGS}) + END +} + +src_compile() { + eant jar -Dproject.name=${PN} $(use_doc) +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + + use doc && java-pkg_dojavadoc dist/doc/api + use source && java-pkg_dosrc src/java/* +} |