# ChangeLog for dev-java/commons-codec
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-codec/ChangeLog,v 1.18 2006/07/22 22:29:27 nelchael Exp $
+# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-codec/ChangeLog,v 1.19 2007/02/13 19:17:13 betelgeuse Exp $
+
+ 13 Feb 2007; Petteri Räty <betelgeuse@gentoo.org>
+ commons-codec-1.3-r1.ebuild:
+ Ebuild cleanup.
*commons-codec-1.3-r1 (22 Jul 2006)
-# Copyright 1999-2006 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/commons-codec/commons-codec-1.3-r1.ebuild,v 1.1 2006/07/22 22:29:27 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-codec/commons-codec-1.3-r1.ebuild,v 1.2 2007/02/13 19:17:13 betelgeuse Exp $
inherit java-pkg-2 java-ant-2
DEPEND=">=virtual/jdk-1.3
${RDEPEND}
- dev-java/ant-core
source? ( app-arch/zip )"
S="${WORKDIR}"
src_unpack() {
unpack ${A}
- cd ${S}
+ cd "${S}"
sed -i "s_../LICENSE_LICENSE.txt_" build.xml || die "sed failed"
echo "conf.home=./src/conf" >> build.properties
echo "source.home=./src/java" >> build.properties
echo "final.name=commons-codec" >> build.properties
}
-src_compile() {
- local antflags="compile"
- use doc && antflags="${antflags} javadoc"
- eant ${antflags} jar || die "compile problem"
-}
+EANT_BUILD_TARGET="compile"
src_install() {
java-pkg_dojar output/dist/${PN}.jar
- dodoc RELEASE-NOTES.txt
- use doc && java-pkg_dohtml -r output/dist/docs/
+ dodoc RELEASE-NOTES.txt || die
+ use doc && java-pkg_dojavadoc output/dist/docs
use source && java-pkg_dosrc src/java/*
}