# ChangeLog for app-portage/eclass-manpages
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/ChangeLog,v 1.24 2011/08/22 04:49:21 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/ChangeLog,v 1.25 2011/10/14 18:03:52 vapier Exp $
+
+*eclass-manpages-20111014 (14 Oct 2011)
+
+ 14 Oct 2011; Mike Frysinger <vapier@gentoo.org>
+ +eclass-manpages-20111014.ebuild, +files/eclass-to-manpage.sh:
+ Split out generation logic so people can quickly run it by hand when updating
+ their eclasses.
22 Aug 2011; Mike Frysinger <vapier@gentoo.org> files/eclass-to-manpage.awk:
Add sources.g.o url to SEE ALSO.
Hash: SHA256
AUX eclass-to-manpage.awk 8204 RMD160 043c2a4466d3a23f586fc1f3c367d9900799e214 SHA1 e491bad39a75d8d1d04931342881712da5062d45 SHA256 96e217acdbe7c0f96f89bb9552b8c5ba94821c175dd86feffd832ebfb1b12626
+AUX eclass-to-manpage.sh 597 RMD160 29ec9219c6005b016d685ab855931bae09470ef6 SHA1 3d9eb97a47b7a0be9e0edf0a3bfae5c516a7b5ae SHA256 84d6f8e963206ad6797f236e098c8dfceac5b5b40e9d1b6100fea7b3b08872df
EBUILD eclass-manpages-20100821.ebuild 817 RMD160 d63cb4db8a6573c3ab312aefa060b01e31b032e8 SHA1 b3fea25208292fad5fe4bfbe1f30b70bd0b3bbee SHA256 1fe3f2214afe2f390270972c209e22a3a3948258cfe42cea4516a99740f0d72c
-MISC ChangeLog 3590 RMD160 afa2e5ae027c349b9442dbd1b5e7796ef8f35702 SHA1 e511b3f237b153b03d19dbb25f3ba7bd95d42c69 SHA256 ad813aafb96af743ae21d4a7a8fdd830e3d5a80bf8272f079d7be1478bdcdb85
+EBUILD eclass-manpages-20111014.ebuild 696 RMD160 9106c6c31fa74fbbb9da04b39a5bf940898c2a97 SHA1 2f2fa625b359e1114060d253ebbc6081416427cd SHA256 325dfba9b9e0e006e74e75b874c875eec7d51e33c9c1de885efe3d92714c7f98
+MISC ChangeLog 3845 RMD160 1fa5348b4c06905aca985a6465e2d6afa41f6309 SHA1 eee19591da5fe60c8514c121277e3f037ce4ef2d SHA256 8613c99006c5ff1f3e1bd7c6849cb96e77338a18197077741e6da5eeab28c35d
MISC metadata.xml 227 RMD160 e9d4b9c272d9395c188eb8ac590098a9cfee2b22 SHA1 ce478b95eb207bece7803c6970ea3f02eb471fdf SHA256 9daef2a3e592faedde6cab7914f5245c20b2ba43533ece96dfb84ea875cef96b
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
+Version: GnuPG v2.0.18 (GNU/Linux)
-iF4EAREIAAYFAk5R39cACgkQaC/OocHi7JYXQQD+KrLYFPDDrZj5xA4vsG5XF6MJ
-OoAqBcLt4jaaJmvmy/UA/1v49YLcnM0KXjeptvakDw5CSMZFFgzmiqgUtadffrnU
-=OD+n
+iF4EAREIAAYFAk6YeY4ACgkQaC/OocHi7JayIgD/RaP2VDxWZhSAExSrbE9nEnUI
+FNErVvVc/mhZQKF9VIoA/RQpUKNTHZo5adqahFkWbe+jL7dZjFSQ5iaA08qRGdVx
+=ynpE
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/eclass-manpages-20111014.ebuild,v 1.1 2011/10/14 18:03:52 vapier Exp $
+
+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=""
+
+DEPEND=""
+RDEPEND="!app-portage/portage-manpages"
+
+S=${WORKDIR}
+
+src_compile() {
+ "${FILESDIR}"/eclass-to-manpage.sh || die
+}
+
+src_install() {
+ doman *.5 || die
+}
--- /dev/null
+#!/bin/bash
+
+: ${PORTDIR:=/usr/portage}
+: ${ECLASSDIR:=${0%/*}/../../../eclass}
+: ${FILESDIR:=${ECLASSDIR}/../app-portage/eclass-manpages/files}
+
+while [[ $# -gt 0 ]] ; do
+ case $1 in
+ -e) ECLASSDIR=$2; shift;;
+ -f) FILESDIR=$2; shift;;
+ *) break;;
+ esac
+ shift
+done
+
+if [[ ! -d ${ECLASSDIR} ]] ; then
+ echo "Usage: ${0##*/} [-e eclassdir] [-f eclass-to-manpage.awk FILESDIR] [eclasses]" 1>&2
+ exit 1
+fi
+
+[[ $# -eq 0 ]] && set -- "${ECLASSDIR}"/*.eclass
+
+for e in "$@" ; do
+ gawk \
+ -vPORTDIR="${PORTDIR}" \
+ -f "${FILESDIR}"/eclass-to-manpage.awk \
+ ${e} > ${e##*/}.5 || rm -f ${e##*/}.5
+done