Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-doc/eclass-manpages/
Date: Thu, 14 Mar 2019 12:39:42
Message-Id: 1552566921.0dded1c44940fa37150be78ea1ae4cc0cf5bbf95.mgorny@gentoo
1 commit: 0dded1c44940fa37150be78ea1ae4cc0cf5bbf95
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 14 12:35:21 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 14 12:35:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dded1c4
7
8 app-doc/eclass-manpages: Switch the live ebuild to use git
9
10 Closes: https://bugs.gentoo.org/571284
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 .../eclass-manpages-99999999.ebuild | 35 +++++++---------------
14 1 file changed, 10 insertions(+), 25 deletions(-)
15
16 diff --git a/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild b/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild
17 index ea11ad47608..7dfb0d7e0d2 100644
18 --- a/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild
19 +++ b/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild
20 @@ -1,43 +1,28 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 +# Copyright 1999-2019 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI="6"
26 +EAPI="7"
27 +
28 +inherit git-r3
29
30 DESCRIPTION="Collection of Gentoo eclass manpages"
31 HOMEPAGE="https://www.gentoo.org/"
32 SRC_URI=""
33 +EGIT_REPO_URI="https://anongit.gentoo.org/git/repo/gentoo.git
34 + https://github.com/gentoo/gentoo.git"
35
36 LICENSE="GPL-2"
37 SLOT="0"
38 KEYWORDS=""
39 IUSE=""
40
41 -DEPEND="
42 - || (
43 - sys-apps/portage
44 - sys-apps/portage-mgorny
45 - )"
46 -
47 -S=${WORKDIR}
48 -
49 -genit() {
50 - local e=${1:-${ECLASSDIR}}
51 - einfo "Generating man pages from: ${e}"
52 - # Need `bash` because the .sh isn't +x on the servers #451352
53 - env ECLASSDIR=${e} bash "${FILESDIR}"/eclass-to-manpage.sh || die
54 +src_unpack() {
55 + git-r3_fetch
56 + git-r3_checkout '' '' '' eclass
57 }
58
59 src_compile() {
60 - # First process any eclasses found in overlays. Then process
61 - # the main eclassdir last so that its output will clobber anything
62 - # that might have come from overlays. Main tree wins!
63 - local o e
64 - for o in $(portageq get_repos /) ; do
65 - e="$(portageq get_repo_path / ${o})/eclass"
66 - [[ -d ${e} ]] || continue
67 - genit "${e}" || die
68 - done
69 - genit || die
70 + env ECLASSDIR="${S}/eclass" bash "${FILESDIR}"/eclass-to-manpage.sh || die
71 }
72
73 src_install() {