diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-08-14 00:02:28 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-08-14 00:05:34 -0400 |
commit | 5647e582ed96f9cdaa81cdaacf60e544049780bd (patch) | |
tree | 9edf6708893c16d8d401b3a6a60c6218ed78feca /app-portage/eclass-manpages/eclass-manpages-20150814.ebuild | |
parent | eclass: fix various doc errors #537392 (diff) | |
download | gentoo-5647e582ed96f9cdaa81cdaacf60e544049780bd.tar.gz gentoo-5647e582ed96f9cdaa81cdaacf60e544049780bd.tar.bz2 gentoo-5647e582ed96f9cdaa81cdaacf60e544049780bd.zip |
app-portage/eclass-manpages: update URL after git migration
Diffstat (limited to 'app-portage/eclass-manpages/eclass-manpages-20150814.ebuild')
-rw-r--r-- | app-portage/eclass-manpages/eclass-manpages-20150814.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/app-portage/eclass-manpages/eclass-manpages-20150814.ebuild b/app-portage/eclass-manpages/eclass-manpages-20150814.ebuild new file mode 100644 index 000000000000..44353c2dd4c2 --- /dev/null +++ b/app-portage/eclass-manpages/eclass-manpages-20150814.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +DESCRIPTION="collection of Gentoo eclass manpages" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +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" +IUSE="" + +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 ${PORTDIR_OVERLAY} ; do + e="${o}/eclass" + [[ -d ${e} ]] || continue + genit "${e}" + done + genit +} + +src_install() { + doman *.5 +} |