From 365ee2f3fd20a6c02f5bd63ac1d509859febc1db Mon Sep 17 00:00:00 2001 From: William Thomson Date: Thu, 14 Feb 2008 03:06:43 +0000 Subject: Switched to java-virtuals/servlet-api, set EAPI=1 and switched to slot deps. Set JAVA_PKG_IUSE. Removed previous version. (Portage version: 2.1.4.1) --- dev-java/cos/cos-20021105-r1.ebuild | 48 ----------------------------------- dev-java/cos/cos-20021105-r2.ebuild | 50 +++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 48 deletions(-) delete mode 100644 dev-java/cos/cos-20021105-r1.ebuild create mode 100644 dev-java/cos/cos-20021105-r2.ebuild (limited to 'dev-java') diff --git a/dev-java/cos/cos-20021105-r1.ebuild b/dev-java/cos/cos-20021105-r1.ebuild deleted file mode 100644 index 571b92d03fd6..000000000000 --- a/dev-java/cos/cos-20021105-r1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/cos/cos-20021105-r1.ebuild,v 1.3 2007/05/04 16:15:13 betelgeuse Exp $ - -inherit java-pkg-2 java-ant-2 - -MY_PV=05Nov2002 -MY_P=${PN}-${MY_PV} -DESCRIPTION="The com.oreilly.servlet package is a class library for servlet developers." -HOMEPAGE="http://servlets.com/cos/" -SRC_URI="http://servlets.com/${PN}/${MY_P}.zip" - -LICENSE="cos" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc" - -RDEPEND=">=virtual/jre-1.4 - =dev-java/servletapi-2.3*" -DEPEND=">=virtual/jdk-1.4 - app-arch/unzip - ${RDEPEND}" -S=${WORKDIR} - -src_unpack() { - unpack ${A} - - rm -r lib classes *.war - # TODO I'm not sure how to fix the compilation error for this class - # so i'll just delete it for now.. - rm src/com/oreilly/servlet/CacheHttpServlet.java - - cp ${FILESDIR}/build-${PV}.xml build.xml - cat > build.properties <<-EOF - classpath=$(java-pkg_getjars servletapi-2.3) - EOF -} - -src_compile() { - eant -Dproject.name=${PN} jar $(use_doc) -} - -src_install() { - java-pkg_dojar dist/${PN}.jar - dodoc readme.txt license.txt || die - - use doc && java-pkg_dojavadoc dist/doc/api -} diff --git a/dev-java/cos/cos-20021105-r2.ebuild b/dev-java/cos/cos-20021105-r2.ebuild new file mode 100644 index 000000000000..b0aeca67f433 --- /dev/null +++ b/dev-java/cos/cos-20021105-r2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/cos/cos-20021105-r2.ebuild,v 1.1 2008/02/14 03:06:43 wltjr Exp $ + +EAPI=1 +JAVA_PKG_IUSE="doc source" +inherit java-pkg-2 java-ant-2 + +MY_PV=05Nov2002 +MY_P=${PN}-${MY_PV} +DESCRIPTION="The com.oreilly.servlet package is a class library for servlet developers." +HOMEPAGE="http://servlets.com/cos/" +SRC_URI="http://servlets.com/${PN}/${MY_P}.zip" + +LICENSE="cos" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.4 + java-virtuals/servlet-api:2.3" +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND}" +S=${WORKDIR} + +src_unpack() { + unpack ${A} + + rm -r lib classes *.war + # TODO I'm not sure how to fix the compilation error for this class + # so i'll just delete it for now.. + rm src/com/oreilly/servlet/CacheHttpServlet.java + + cp "${FILESDIR}"/build-${PV}.xml build.xml + cat > build.properties <<-EOF + classpath=$(java-pkg_getjars servlet-api-2.3) + EOF +} + +src_compile() { + eant -Dproject.name=${PN} jar $(use_doc) +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + dodoc readme.txt license.txt || die + + use doc && java-pkg_dojavadoc dist/doc/api + use source && java-pkg_dosrc src/com +} -- cgit v1.2.3-65-gdbad