diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2005-09-08 05:36:03 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2005-09-08 05:36:03 +0000 |
commit | 8f564a7366318dc7cad5225c62fcf095a348ef5b (patch) | |
tree | eb3faf3704d9372add62c9bac18d40a38ba0c64a /eclass | |
parent | Interim update for maven... more dependencies packaged / populated in repository (diff) | |
download | java-8f564a7366318dc7cad5225c62fcf095a348ef5b.tar.gz java-8f564a7366318dc7cad5225c62fcf095a348ef5b.tar.bz2 java-8f564a7366318dc7cad5225c62fcf095a348ef5b.zip |
Added more maven dependencies. This included some commons-jelly-tags, and a new eclass, wagon, and several classes which use it.
New 'milestone' of maven can build 9 of the 72 maven plugins :-D
svn path=/gentoo-java-experimental/; revision=723
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/wagon.eclass | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/eclass/wagon.eclass b/eclass/wagon.eclass new file mode 100644 index 00000000..b3d9155b --- /dev/null +++ b/eclass/wagon.eclass @@ -0,0 +1,43 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# +# Original Author: nichoj +# Purpose: +# +inherit java-pkg + +ECLASS="wagon" +INHERITED="$INHERITED $ECLASS" + +HOMEPAGE="" +MY_PV="${PV/_alpha/-alpha-}" +MY_P="${PN}-${MY_PV}" +S="${WORKDIR}/${MY_P}" +SRC_URI="mirror://gentoo/${MY_P}.tar.bz2 mirror://gentoo/build-wagon.xml.bz2" + +DEPEND="virtual/jdk + dev-java/ant-core" +RDEPEND="virtual/jre" + + +wagon_src_unpack() { + unpack ${A} + cd ${S} + cp ${WORKDIR}/build-wagon.xml build.xml +} + +wagon_src_compile() { + local antflags="jar -Dproject.name=${PN}" + use doc && antflags="${antflags} javadoc" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + ant ${antflags} || die "build failed!" +} + +wagon_src_install() { + java-pkg_dojar dist/${PN}.jar + use doc && java-pkg_dohtml -r dist/doc/api +} + +EXPORT_FUNCTIONS src_unpack src_compile src_install |