1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 MY_P="${PN}_${PV/_p?/}"
8 DESCRIPTION="funny manpages collected from various sources"
9 HOMEPAGE="https://www.debian.org/"
10 SRC_URI="mirror://debian/pool/main/f/funny-manpages/${MY_P}.orig.tar.gz"
12 if [[ "${PV}" = *_p* ]] ; then
13 SRC_URI+=" mirror://debian/pool/main/f/funny-manpages/${MY_P}-${MY_R}.diff.gz"
16 LICENSE="freedist" #465704
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~m68k ~mips ~ppc64 ~s390 ~x86"
23 S="${WORKDIR}/${PN}/man"
26 if [[ "${PV}" = *_p* ]] ; then
27 eapply "${WORKDIR}"/${MY_P}-${MY_R}.diff
32 for f in *.[0-57-9]fun ; do
33 mv ${f} ${f/.?fun/.6fun} || die "renaming ${f} failed"