# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ At_Pck="jmx-1_2_1" At=${At_Pck}-scsl.zip DOWNLOADSITE="http://wwws.sun.com/software/communitysource/jmx/download.html" inherit java-pkg S=${WORKDIR}/${At_Pck}-src DESCRIPTION="Java Management Extensions for managing and monitoring devices, applications, and services." HOMEPAGE="http://java.sun.com/products/JavaManagement/index.jsp" SRC_URI="" LICENSE="sun-csl" SLOT="0" KEYWORDS="~x86" IUSE="jikes doc" DEPEND=" >=virtual/jdk-1.4" RDEPEND=">=virtual/jdk-1.4" src_unpack() { # Stolen Wholesale from the jmf ebuild if [ ! -f "${DISTDIR}/${At}" ] ; then echo " " echo "!!! Missing ${DISTDIR}/${At}" echo " " einfo " " einfo " Due to license restrictions, we cannot fetch the" einfo " distributables automagically." einfo " " einfo " 1. Visit ${DOWNLOADSITE} and follow instructions" einfo " 2. Download ${At}" einfo " 3. Move file to ${DISTDIR}" einfo " 4. Run emerge on this package again to complete" einfo " " die "User must manually download distfile" fi unzip -qq ${DISTDIR}/${At} } src_compile() { if [ -n `use jikes` ]; then buildopts="${buildopts} -Dbuild.compiler=jikes" fi ant || die # For some reason the main build cant use jikes if [ ! -n `use doc` ]; then ANT_OPTS=${buildopts} ant examples || die fi # I feel cheated by this build processes i really do } src_install() { java-pkg_dojar lib/*.jar use doc && dohtml -r docs/* use doc && dohtml -f examples/* }