summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2007-10-09 20:26:04 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2007-10-09 20:26:04 +0000
commit59483cb8f140da4d6b3fe81e82dc4770a3d3934e (patch)
tree2847aa4e159be3f1dd6affd9945e8a77a5368c45 /dev-java/jcs/jcs-1.3.ebuild
parentBuild with user selected CFLAGS. Cleanup the ebuild code. Add ~x86 keyword. A... (diff)
downloadgentoo-2-59483cb8f140da4d6b3fe81e82dc4770a3d3934e.tar.gz
gentoo-2-59483cb8f140da4d6b3fe81e82dc4770a3d3934e.tar.bz2
gentoo-2-59483cb8f140da4d6b3fe81e82dc4770a3d3934e.zip
Version bump, see bug #195073.
(Portage version: 2.1.3.12)
Diffstat (limited to 'dev-java/jcs/jcs-1.3.ebuild')
-rw-r--r--dev-java/jcs/jcs-1.3.ebuild66
1 files changed, 66 insertions, 0 deletions
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/*
+}