From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7B018138334 for ; Thu, 14 Mar 2019 12:39:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7985DE0923; Thu, 14 Mar 2019 12:39:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 526E1E0923 for ; Thu, 14 Mar 2019 12:39:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A4F78335CC8 for ; Thu, 14 Mar 2019 12:39:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4592A326 for ; Thu, 14 Mar 2019 12:39:37 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1552566921.0dded1c44940fa37150be78ea1ae4cc0cf5bbf95.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-doc/eclass-manpages/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-doc/eclass-manpages/eclass-manpages-99999999.ebuild X-VCS-Directories: app-doc/eclass-manpages/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0dded1c44940fa37150be78ea1ae4cc0cf5bbf95 X-VCS-Branch: master Date: Thu, 14 Mar 2019 12:39:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cf0669d7-b5a7-4f20-9ad4-5a09007d77bf X-Archives-Hash: 62748b377d09ad73ce6c3209a85e1056 commit: 0dded1c44940fa37150be78ea1ae4cc0cf5bbf95 Author: Michał Górny gentoo org> AuthorDate: Thu Mar 14 12:35:21 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Mar 14 12:35:21 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dded1c4 app-doc/eclass-manpages: Switch the live ebuild to use git Closes: https://bugs.gentoo.org/571284 Signed-off-by: Michał Górny gentoo.org> .../eclass-manpages-99999999.ebuild | 35 +++++++--------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild b/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild index ea11ad47608..7dfb0d7e0d2 100644 --- a/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild +++ b/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild @@ -1,43 +1,28 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI="7" + +inherit git-r3 DESCRIPTION="Collection of Gentoo eclass manpages" HOMEPAGE="https://www.gentoo.org/" SRC_URI="" +EGIT_REPO_URI="https://anongit.gentoo.org/git/repo/gentoo.git + https://github.com/gentoo/gentoo.git" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="" -DEPEND=" - || ( - sys-apps/portage - sys-apps/portage-mgorny - )" - -S=${WORKDIR} - -genit() { - local e=${1:-${ECLASSDIR}} - einfo "Generating man pages from: ${e}" - # Need `bash` because the .sh isn't +x on the servers #451352 - env ECLASSDIR=${e} bash "${FILESDIR}"/eclass-to-manpage.sh || die +src_unpack() { + git-r3_fetch + git-r3_checkout '' '' '' eclass } src_compile() { - # First process any eclasses found in overlays. Then process - # the main eclassdir last so that its output will clobber anything - # that might have come from overlays. Main tree wins! - local o e - for o in $(portageq get_repos /) ; do - e="$(portageq get_repo_path / ${o})/eclass" - [[ -d ${e} ]] || continue - genit "${e}" || die - done - genit || die + env ECLASSDIR="${S}/eclass" bash "${FILESDIR}"/eclass-to-manpage.sh || die } src_install() {