summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2010-05-15 05:40:46 +0000
committerRyan Hill <rhill@gentoo.org>2010-05-15 05:40:46 +0000
commit4880c86673dd749cad4b37397de0ed4da77060e6 (patch)
treedbb92f29205ccc69535ec47f4854b5aa5b1dab54 /eclass
parentImprove documentation. (diff)
downloadhistorical-4880c86673dd749cad4b37397de0ed4da77060e6.tar.gz
historical-4880c86673dd749cad4b37397de0ed4da77060e6.tar.bz2
historical-4880c86673dd749cad4b37397de0ed4da77060e6.zip
Document for eclass-manpages.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/virtualx.eclass49
1 files changed, 31 insertions, 18 deletions
diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
index e915bb875eae..52d1284c2eca 100644
--- a/eclass/virtualx.eclass
+++ b/eclass/virtualx.eclass
@@ -1,22 +1,31 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.34 2010/03/04 21:18:27 abcd Exp $
-#
-# Author: Martin Schlemmer <azarah@gentoo.org>
-#
-# This eclass can be used for packages that needs a working X environment to build
-
-# Is a dependency on xorg-server and xhost needed?
-# Valid values are "always", "optional", and "manual"
-# "tests" is treated as a synonym for "optional"
+# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.35 2010/05/15 05:40:46 dirtyepic Exp $
+
+# Original author: Martin Schlemmer <azarah@gentoo.org>
+
+# @ECLASS: virtualx.eclass
+# @MAINTAINER:
+# x11@gentoo.org
+# @BLURB: This eclass can be used for packages that needs a working X environment to build.
+
+# @ECLASS-VARIABLE: VIRTUALX_REQUIRED
+# @DESCRIPTION:
+# Is a dependency on xorg-server and xhost needed?
+# Valid values are "always", "optional", and "manual".
+# "tests" is a synonym for "optional".
: ${VIRTUALX_REQUIRED:=optional}
-# If VIRTUALX_REQUIRED=optional, what use flag should control
-# the dependency? Default is "test"
+# @ECLASS-VARIABLE: VIRTUALX_USE
+# @DESCRIPTION:
+# If VIRTUALX_REQUIRED=optional, what USE flag should control
+# the dependency?
: ${VIRTUALX_USE:=test}
-# Dep string available for use outside of eclass, in case a more
-# complicated dep is needed
+# @ECLASS-VARIABLE: VIRTUALX_DEPEND
+# @DESCRIPTION:
+# Dep string available for use outside of eclass, in case a more
+# complicated dep is needed.
VIRTUALX_DEPEND="!prefix? ( x11-base/xorg-server )
x11-apps/xhost"
@@ -42,8 +51,6 @@ case ${VIRTUALX_REQUIRED} in
;;
esac
-DESCRIPTION="Based on the $ECLASS eclass"
-
virtualmake() {
local retval=0
local OLD_SANDBOX_ON="${SANDBOX_ON}"
@@ -131,19 +138,25 @@ virtualmake() {
return ${retval}
}
-#Same as "make", but setup the Xvfb hack if needed
+# @FUNCTION: Xmake
+# @DESCRIPTION:
+# Same as "make", but set up the Xvfb hack if needed.
Xmake() {
export maketype="make"
virtualmake "$@"
}
-#Same as "emake", but setup the Xvfb hack if needed
+# @FUNCTION: Xemake
+# @DESCRIPTION:
+# Same as "emake", but set up the Xvfb hack if needed.
Xemake() {
export maketype="emake"
virtualmake "$@"
}
-#Same as "econf", but setup the Xvfb hack if needed
+# @FUNCTION: Xeconf
+# @DESCRIPTION:
+# Same as "econf", but set up the Xvfb hack if needed.
Xeconf() {
export maketype="econf"
virtualmake "$@"