Gentoo Archives: gentoo-dev

From: "Haelwenn (lanodan) Monnier" <contact@×××××××××.me>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Fwd: New eclass suggestion: docs.eclass
Date: Mon, 27 Apr 2020 20:37:53
Message-Id: 20200427203743.GD18139@cloudsdale.the-delta.net.eu.org
In Reply to: [gentoo-dev] Fwd: New eclass suggestion: docs.eclass by Andrew Ammerlaan
1 [2020-04-27 18:10:43+0200] Andrew Ammerlaan:
2 > # Copyright 1999-2020 Gentoo Authors
3 > # Distributed under the terms of the GNU General Public License v2
4 >
5 > # @ECLASS: docs.eclass
6 > # @MAINTAINER:
7 > # Andrew Ammerlaan <andrewammerlaan@××××××.net>
8 > # @AUTHOR:
9 > # Author: Andrew Ammerlaan <andrewammerlaan@××××××.net>
10 > # Based on the work of: Michał Górny <mgorny@g.o>
11 > # @SUPPORTED_EAPIS: 5 6 7
12 > # @BLURB: A simple eclass to build documentation.
13 > # @DESCRIPTION:
14 > # A simple eclass providing functions to build documentation.
15 > #
16 > # Please note that docs sets RDEPEND and DEPEND unconditionally
17 > # for you.
18 > #
19 > # This eclass also appends "doc" to IUSE, and sets HTML_DOCS
20 > # to the location of the compiled documentation
21 > #
22 > # The aim of this eclass is to make it easy to add additional
23 > # doc builders. To do this, add a <DOCBUILDER>-setup and
24 > # <DOCBUILDER>-build function for your doc builder.
25 > # For python based doc builders you can use the
26 > # python_append_deps function to append [${PYTHON_USEDEP}]
27 > # automatically to additional dependencies
28 > #
29 > # For more information, please see the Python Guide:
30 > # https://dev.gentoo.org/~mgorny/python-guide/
31
32 Should change this part to not be about python docs, right?
33
34 >
35 > case "${EAPI:-0}" in
36 > 0|1|2|3|4)
37 > die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
38 > ;;
39 > 5|6|7)
40 > ;;
41 > *)
42 > die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
43 > ;;
44 > esac
45 >
46 > # @ECLASS-VARIABLE: DOCBUILDER
47 > # @REQUIRED
48 > # @PRE_INHERIT
49 > # @DESCRIPTION:
50 > # Sets the doc builder to use, currently supports
51 > # sphinx and mkdocs
52 >
53 > # @ECLASS-VARIABLE: DOCDIR
54 > # @DESCRIPTION:
55 > # Sets the location of the doc builder config file.
56
57 Suggestion:
58 Path containing the doc builder config file(s).