diff options
author | Markus Meier <maekke@gentoo.org> | 2010-06-04 23:11:46 +0200 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2010-08-24 12:47:30 +0300 |
commit | 24401e85a47d6a8f51588814b5b919cd136753de (patch) | |
tree | 54de87079eaca2b3aa377082a12191984ff526be /ebuild-writing/functions/pkg_info/text.xml | |
parent | move autopackage to src_prepare (diff) | |
download | devmanual-24401e85a47d6a8f51588814b5b919cd136753de.tar.gz devmanual-24401e85a47d6a8f51588814b5b919cd136753de.tar.bz2 devmanual-24401e85a47d6a8f51588814b5b919cd136753de.zip |
add pkg_info
Diffstat (limited to 'ebuild-writing/functions/pkg_info/text.xml')
-rw-r--r-- | ebuild-writing/functions/pkg_info/text.xml | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/ebuild-writing/functions/pkg_info/text.xml b/ebuild-writing/functions/pkg_info/text.xml new file mode 100644 index 0000000..44f3c77 --- /dev/null +++ b/ebuild-writing/functions/pkg_info/text.xml @@ -0,0 +1,68 @@ +<?xml version="1.0"?> +<guide self="ebuild-writing/functions/pkg_info/"> +<chapter> +<title>pkg_info</title> + +<body> +<table> + <tr> + <th>Function</th> + <ti><c>pkg_info</c></ti> + </tr> + <tr> + <th>Purpose</th> + <ti>display information about a package</ti> + </tr> + <tr> + <th>Sandbox</th> + <ti>?</ti> + </tr> + <tr> + <th>Privilege</th> + <ti>root</ti> + </tr> + <tr> + <th>Called for</th> + <ti>ebuild</ti> + </tr> +</table> +</body> + +<section> +<title>Default <c>pkg_info</c></title> +<body> +<codesample lang="ebuild"> +pkg_info() +{ + return +} +</codesample> +</body> +</section> + +<section> +<title>Sample <c>pkg_info</c></title> +<body> +<codesample lang="ebuild"> +pkg_info() { + "${ROOT}"/usr/bin/mythfrontend --version +} +</codesample> +</body> +</section> + +<section> +<title>Notes on <c>pkg_info</c></title> +<body> +<p> +this phase will be called when a package manager displays +information about a package. +within EAPI=4, this phase can also be called for non-installed +packages. +</p> +</body> +</section> + +</chapter> +</guide> + |