summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-03-08 10:43:50 +0100
committerLars Wendler <polynomial-c@gentoo.org>2018-03-08 10:43:50 +0100
commit3b4f4bcf42427a4074655d9c9d1c46c70d187e2c (patch)
tree6973d1cf9365eac6e7d5838e2207abd840ae92dd /games-misc/funny-manpages/funny-manpages-2.3.ebuild
parentdev-libs/libinput: Removed old. (diff)
downloadgentoo-3b4f4bcf42427a4074655d9c9d1c46c70d187e2c.tar.gz
gentoo-3b4f4bcf42427a4074655d9c9d1c46c70d187e2c.tar.bz2
gentoo-3b4f4bcf42427a4074655d9c9d1c46c70d187e2c.zip
games-misc/funny-manpages: Bump to version 2.3
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'games-misc/funny-manpages/funny-manpages-2.3.ebuild')
-rw-r--r--games-misc/funny-manpages/funny-manpages-2.3.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/games-misc/funny-manpages/funny-manpages-2.3.ebuild b/games-misc/funny-manpages/funny-manpages-2.3.ebuild
new file mode 100644
index 00000000000..3e8d108bf0b
--- /dev/null
+++ b/games-misc/funny-manpages/funny-manpages-2.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_R="${PV:0-1}"
+MY_P="${PN}_${PV/_p?/}"
+DESCRIPTION="funny manpages collected from various sources"
+HOMEPAGE="https://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
+
+LICENSE="freedist" #465704
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~m68k ~mips ~ppc64 ~s390 ~sh ~x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+S="${WORKDIR}/${PN}/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
+}