diff options
author | 2019-03-14 13:02:04 +0100 | |
---|---|---|
committer | 2019-03-14 13:02:04 +0100 | |
commit | 7bac445e6f8cd06f5ab0be152c7641580a72e3a2 (patch) | |
tree | 24edbf8c1530f91f8070e88ec24675e111466120 /app-doc/eclass-manpages/eclass-manpages-99999999.ebuild | |
parent | gnome-extra/gnome-system-monitor: bump to 3.30.0 (diff) | |
download | gentoo-7bac445e6f8cd06f5ab0be152c7641580a72e3a2.tar.gz gentoo-7bac445e6f8cd06f5ab0be152c7641580a72e3a2.tar.bz2 gentoo-7bac445e6f8cd06f5ab0be152c7641580a72e3a2.zip |
app-portage/eclass-manpages: Move package to app-doc/eclass-manpages.
Closes: https://bugs.gentoo.org/680300
Acked-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-doc/eclass-manpages/eclass-manpages-99999999.ebuild')
-rw-r--r-- | app-doc/eclass-manpages/eclass-manpages-99999999.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild b/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild new file mode 100644 index 000000000000..ea11ad476084 --- /dev/null +++ b/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +DESCRIPTION="Collection of Gentoo eclass manpages" +HOMEPAGE="https://www.gentoo.org/" +SRC_URI="" + +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_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 +} + +src_install() { + doman *.5 +} |