Browse Source

Link eclass references

Signed-off-by: Michał Górny <mgorny@gentoo.org>
pull/2/head
Michał Górny 2 years ago
parent
commit
73b5b8121f
No known key found for this signature in database GPG Key ID: 639ADAE2329E240E
  1. 6
      any.rst
  2. 6
      distutils.rst
  3. 13
      helper.rst
  4. 6
      multi.rst
  5. 6
      single.rst

6
any.rst

@ -7,6 +7,8 @@ python-any-r1 — build-time dependency
The ``python-any-r1`` eclass is used to enable Python support
in packages needing it purely at build time.
Eclass reference: `python-any-r1.eclass(5)`_
Basic use for unconditional Python
==================================
@ -266,3 +268,7 @@ USE conditional blocks inside ``python_gen_any_dep``:
pkg_setup() {
use test && python-any-r1_pkg_setup
}
.. _python-any-r1.eclass(5):
https://devmanual.gentoo.org/eclass-reference/python-any-r1.eclass/index.html

6
distutils.rst

@ -10,6 +10,8 @@ or ``pyproject.toml`` (flit, poetry). It is built on top
of ``python-r1`` and ``python-single-r1``, and therefore supports
efficiently building multi-impl and single-impl packages.
Eclass reference: `distutils-r1.eclass(5)`_
Basic use
=========
@ -865,3 +867,7 @@ must be used instead.
The eclass tries to automatically determine whether ``--no-autodoc``
should be used, and issue a warning if it's missing or incorrect.
.. _distutils-r1.eclass(5):
https://devmanual.gentoo.org/eclass-reference/distutils-r1.eclass/index.html

13
helper.rst

@ -2,6 +2,15 @@
Common helper functions
=======================
The functions described in this chapter are common to all three basic
eclasses. To facilitate code reuse, they are declared
in ``python-utils-r1.eclass``. However, you should not inherit this
eclass directly and instead assume the functions are provided as part
of the API of other eclasses.
Eclass reference: `python-utils-r1.eclass(5)`_
.. index:: python_doexe
.. index:: python_newexe
.. index:: python_doscript
@ -257,3 +266,7 @@ helpers`_ instead.
PYLIB="$(python_get_LIBS)" \
check
}
.. _python-utils-r1.eclass(5):
https://devmanual.gentoo.org/eclass-reference/python-utils-r1.eclass/index.html

6
multi.rst

@ -10,6 +10,8 @@ using ``python-single-r1`` instead. For packages using distutils
or a similar Python build system, ``distutils-r1`` eclass should be used
instead.
Eclass reference: `python-r1.eclass(5)`_
.. index:: python_foreach_impl
@ -371,3 +373,7 @@ Note that the parts affecting installation of runtime components
(``RDEPEND``, ``python_foreach_impl``) are made conditional to the USE
flag, while parts affecting build time (``REQUIRED_USE``, ``BDEPEND``,
``python_setup``) are unconditional.
.. _python-r1.eclass(5):
https://devmanual.gentoo.org/eclass-reference/python-r1.eclass/index.html

6
single.rst

@ -10,6 +10,8 @@ It is probably the easiest eclass to use, and it is recommended over
complexity. However, for packages using distutils or a similar Python
build system, ``distutils-r1`` eclass should be used instead.
Eclass reference: `python-single-r1.eclass(5)`_
Basic use for unconditional Python
==================================
@ -298,3 +300,7 @@ can be installed via one of the installation helpers.
python_domodule pyduali
python_doscript duali dict2db trans2arabic arabic2trans
}
.. _python-single-r1.eclass(5):
https://devmanual.gentoo.org/eclass-reference/python-single-r1.eclass/index.html

Loading…
Cancel
Save