gentoo-ebuilds/games-misc/funny-manpages/funny-manpages-2.3.ebuild
Matoro Mahri 3b90d05679
games-misc/funny-manpages: unkeyword 2.3 for ~alpha
Bug: https://bugs.gentoo.org/873523
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2023-12-07 18:25:13 +02:00

38 lines
822 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_R="${PV:0-1}"
MY_P="${PN}_${PV/_p?/}"
DESCRIPTION="funny manpages collected from various sources"
HOMEPAGE="https://www.debian.org/"
SRC_URI="mirror://debian/pool/main/f/funny-manpages/${MY_P}.orig.tar.gz"
if [[ "${PV}" == *_p* ]] ; then
SRC_URI+=" mirror://debian/pool/main/f/funny-manpages/${MY_P}-${MY_R}.diff.gz"
fi
S="${WORKDIR}/${PN}/man"
LICENSE="freedist" #465704
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~m68k ~mips ~ppc64 ~s390 ~x86"
RDEPEND="virtual/man"
src_prepare() {
if [[ "${PV}" == *_p* ]] ; then
eapply "${WORKDIR}"/${MY_P}-${MY_R}.diff
fi
eapply_user
for f in *.[0-57-9]fun ; do
mv ${f} ${f/.?fun/.6fun} || die "renaming ${f} failed"
done
}
src_install() {
doman *.6fun
}