Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/eclass-manpages/
Date: Mon, 21 Dec 2015 14:26:15
Message-Id: 1450707895.c14fee852bfbf9a4681123e09a9048ee89accb8d.jlec@gentoo
1 commit: c14fee852bfbf9a4681123e09a9048ee89accb8d
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 21 14:24:46 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 21 14:24:55 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c14fee85
7
8 app-portage/eclass-manpages: Use portageq to detect overlay locations
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 .../eclass-manpages-20150814-r1.ebuild | 40 ++++++++++++++++++++++
14 1 file changed, 40 insertions(+)
15
16 diff --git a/app-portage/eclass-manpages/eclass-manpages-20150814-r1.ebuild b/app-portage/eclass-manpages/eclass-manpages-20150814-r1.ebuild
17 new file mode 100644
18 index 0000000..eafea7c
19 --- /dev/null
20 +++ b/app-portage/eclass-manpages/eclass-manpages-20150814-r1.ebuild
21 @@ -0,0 +1,40 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI="5"
27 +
28 +DESCRIPTION="collection of Gentoo eclass manpages"
29 +HOMEPAGE="https://www.gentoo.org/"
30 +SRC_URI=""
31 +
32 +LICENSE="GPL-2"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
35 +IUSE=""
36 +
37 +S=${WORKDIR}
38 +
39 +genit() {
40 + local e=${1:-${ECLASSDIR}}
41 + einfo "Generating man pages from: ${e}"
42 + # Need `bash` because the .sh isn't +x on the servers #451352
43 + env ECLASSDIR=${e} bash "${FILESDIR}"/eclass-to-manpage.sh || die
44 +}
45 +
46 +src_compile() {
47 + # First process any eclasses found in overlays. Then process
48 + # the main eclassdir last so that its output will clobber anything
49 + # that might have come from overlays. Main tree wins!
50 + local o e
51 + for o in $(portageq get_repos /) ; do
52 + e="$(portageq get_repo_path / ${o})/eclass"
53 + [[ -d ${e} ]] || continue
54 + genit "${e}" || die
55 + done
56 + genit || die
57 +}
58 +
59 +src_install() {
60 + doman *.5
61 +}