# ChangeLog for dev-java/tagunit
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/tagunit/ChangeLog,v 1.9 2005/04/30 21:17:18 luckyduck Exp $
+# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/tagunit/ChangeLog,v 1.10 2007/01/28 20:52:04 wltjr Exp $
+
+*tagunit-1.0.1-r1 (28 Jan 2007)
+
+ 28 Jan 2007; William L. Thomson Jr. <wltjr@gentoo.org>
+ +tagunit-1.0.1-r1.ebuild:
+ Migrated to gen 2, updated copyrights
30 Apr 2005; Jan Brinkmann <luckyduck@gentoo.org> tagunit-1.0.1.ebuild:
added ~ppc to KEYWORDS. introduced support for the source useflag
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/tagunit/tagunit-1.0.1-r1.ebuild,v 1.1 2007/01/28 20:52:04 wltjr Exp $
+
+inherit java-ant-2 java-pkg-2
+
+DESCRIPTION="TagUnit is a tag library for testing custom tags within JSP pages."
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
+HOMEPAGE="http://www.tagunit.org"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+IUSE="doc source"
+
+RDEPEND="|| ( =virtual/jre-1.3 =virtual/jre-1.4* )
+ =dev-java/servletapi-2.4*"
+
+DEPEND=" || ( =virtual/jdk-1.3 =virtual/jdk-1.4* )
+ ${RDEPEND}
+ >=dev-java/ant-core-1.6
+ app-arch/unzip
+ source? ( app-arch/zip )"
+
+S="${WORKDIR}/${P}-src/tagunit-core"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ java-ant_rewrite-classpath
+}
+
+src_compile() {
+ echo ${PV} > ../version.txt
+ mkdir ../lib
+
+ local antflags="build"
+ antflags="${antflags} -Dgentoo.classpath=$(java-pkg_getjars ant-core,servletapi-2.4)"
+ eant ${antflags} $(use_doc javadoc)
+}
+
+src_install() {
+ java-pkg_dojar lib/${PN}.jar
+ cd ${S}/..
+ dodoc changes.txt readme.txt
+ use doc && java-pkg_dohtml -r doc/api/*
+ use source && java-pkg_dosrc tagunit-core/src/*
+}
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/tagunit/tagunit-1.0.1.ebuild,v 1.11 2005/07/15 14:39:20 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/tagunit/tagunit-1.0.1.ebuild,v 1.12 2007/01/28 20:52:04 wltjr Exp $
inherit java-pkg