You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-portage/eclass-manpages/eclass-manpages-99999999.eb...

42 lines
916 B

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
DESCRIPTION="collection of Gentoo eclass manpages"
HOMEPAGE="https://www.gentoo.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND="sys-apps/portage"
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
}