summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2012-07-21 11:57:30 +0000
committerRalph Sennhauser <sera@gentoo.org>2012-07-21 11:57:30 +0000
commit3e8e54b6bd4a48ac5d97cdf74fe39f7c076eff79 (patch)
tree0dab1cfd4180f8e97e6856c2d902bbd553fccb22 /eclass/java-pkg-2.eclass
parentVersion bump. (diff)
downloadgentoo-2-3e8e54b6bd4a48ac5d97cdf74fe39f7c076eff79.tar.gz
gentoo-2-3e8e54b6bd4a48ac5d97cdf74fe39f7c076eff79.tar.bz2
gentoo-2-3e8e54b6bd4a48ac5d97cdf74fe39f7c076eff79.zip
Convert documentation to eclass-manpages.
Diffstat (limited to 'eclass/java-pkg-2.eclass')
-rw-r--r--eclass/java-pkg-2.eclass103
1 files changed, 50 insertions, 53 deletions
diff --git a/eclass/java-pkg-2.eclass b/eclass/java-pkg-2.eclass
index b7f9346ca7e9..592ae80512a3 100644
--- a/eclass/java-pkg-2.eclass
+++ b/eclass/java-pkg-2.eclass
@@ -5,42 +5,33 @@
#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.38 2012/06/04 08:27:42 sera Exp $
-
-inherit java-utils-2
-
-# -----------------------------------------------------------------------------
-# @eclass-begin
-# @eclass-summary Eclass for Java Packages
-#
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.39 2012/07/21 11:57:30 sera Exp $
+
+# @ECLASS: java-pkg-2.eclass
+# @MAINTAINER:
+# java@gentoo.org
+# @AUTHOR:
+# Thomas Matthijs <axxo@gentoo.org>
+# @BLURB: Eclass for Java Packages
+# @DESCRIPTION:
# This eclass should be inherited for pure Java packages, or by packages which
# need to use Java.
-# -----------------------------------------------------------------------------
-# ------------------------------------------------------------------------------
-# @IUSE
-#
+inherit java-utils-2
+
+# @ECLASS-VARIABLE: JAVA_PKG_IUSE
+# @DEFAULT_UNSET
+# @DESCRIPTION:
# Use JAVA_PKG_IUSE instead of IUSE for doc, source and examples so that
# the eclass can automatically add the needed dependencies for the java-pkg_do*
# functions.
-#
-# ------------------------------------------------------------------------------
IUSE="${JAVA_PKG_IUSE}"
-# ------------------------------------------------------------------------------
-# @depend
-#
# Java packages need java-config, and a fairly new release of Portage.
-#
# JAVA_PKG_E_DEPEND is defined in java-utils.eclass.
-# ------------------------------------------------------------------------------
DEPEND="${JAVA_PKG_E_DEPEND}"
-# ------------------------------------------------------------------------------
-# @rdepend
-#
# Nothing special for RDEPEND... just the same as DEPEND.
-# ------------------------------------------------------------------------------
RDEPEND="${DEPEND}"
# Commons packages follow the same rules so do it here
@@ -54,39 +45,40 @@ case "${EAPI:-0}" in
*) EXPORT_FUNCTIONS pkg_setup src_prepare src_compile pkg_preinst ;;
esac
-# ------------------------------------------------------------------------------
-# @eclass-pkg_setup
-#
+# @FUNCTION: java-pkg-2_pkg_setup
+# @DESCRIPTION:
# pkg_setup initializes the Java environment
-# ------------------------------------------------------------------------------
+
java-pkg-2_pkg_setup() {
java-pkg_init
}
-# ------------------------------------------------------------------------------
-# @eclass-src_prepare
-#
+
+# @FUNCTION: java-pkg-2_src_prepare
+# @DESCRIPTION:
# wrapper for java-utils-2_src_prepare
-# ------------------------------------------------------------------------------
+
java-pkg-2_src_prepare() {
java-utils-2_src_prepare
}
-# ------------------------------------------------------------------------------
-# @eclass-src_compile
-#
+
+# @FUNCTION: java-pkg-2_src_compile
+# @DESCRIPTION:
# Default src_compile for java packages
-# variables:
-# EANT_BUILD_XML - controls the location of the build.xml (default: ./build.xml)
-# EANT_FILTER_COMPILER - Calls java-pkg_filter-compiler with the value
-# EANT_BUILD_TARGET - the ant target/targets to execute (default: jar)
-# EANT_DOC_TARGET - the target to build extra docs under the doc use flag
-# (default: javadoc; declare empty to disable completely)
-# EANT_GENTOO_CLASSPATH - @see eant documention in java-utils-2.eclass
-# EANT_EXTRA_ARGS - extra arguments to pass to eant
-# EANT_ANT_TASKS - modifies the ANT_TASKS variable in the eant environment
-# param: Parameters are passed to ant verbatim
-# ------------------------------------------------------------------------------
+#
+# @CODE
+# Variables:
+# EANT_BUILD_XML - controls the location of the build.xml (default: ./build.xml)
+# EANT_FILTER_COMPILER - Calls java-pkg_filter-compiler with the value
+# EANT_BUILD_TARGET - the ant target/targets to execute (default: jar)
+# EANT_DOC_TARGET - the target to build extra docs under the doc use flag
+# (default: javadoc; declare empty to disable completely)
+# EANT_GENTOO_CLASSPATH - @see eant documention in java-utils-2.eclass
+# EANT_EXTRA_ARGS - extra arguments to pass to eant
+# EANT_ANT_TASKS - modifies the ANT_TASKS variable in the eant environment
+# @CODE
+
java-pkg-2_src_compile() {
if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
[[ "${EANT_FILTER_COMPILER}" ]] && \
@@ -104,6 +96,12 @@ java-pkg-2_src_compile() {
fi
}
+
+# @FUNCTION: java-pkg-2_supports-test
+# @INTERNAL
+# @DESCRIPTION:
+# test whether a build.xml has a test target.
+
java-pkg-2_supports-test() {
python << EOF
from xml.dom.minidom import parse
@@ -117,6 +115,10 @@ EOF
return $?
}
+# @FUNCTION: java-pkg-2_src_test
+# @DESCRIPTION:
+# src_test, not exported.
+
java-pkg-2_src_test() {
[[ -e "${EANT_BUILD_XML:=build.xml}" ]] || return
@@ -159,15 +161,10 @@ java-pkg-2_src_test() {
fi
}
-# ------------------------------------------------------------------------------
-# @eclass-pkg_preinst
-#
+# @FUNCTION: java-pkg-2_pkg_preinst
+# @DESCRIPTION:
# wrapper for java-utils-2_pkg_preinst
-# ------------------------------------------------------------------------------
+
java-pkg-2_pkg_preinst() {
java-utils-2_pkg_preinst
}
-
-# ------------------------------------------------------------------------------
-# @eclass-end
-# ------------------------------------------------------------------------------