summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-04 08:50:12 +0000
committerSam James <sam@gentoo.org>2021-04-04 09:15:47 +0000
commitdc8b7e67e41621b2e3bb31c27753e6439c6b0229 (patch)
treeb2ccd28eebc5505e3b51492fa928b8eded63b55b /games-misc/fortune-mod-it
parentgames-misc/fortune-mod-fvl: port to EAPI 7 (diff)
downloadgentoo-dc8b7e67e41621b2e3bb31c27753e6439c6b0229.tar.gz
gentoo-dc8b7e67e41621b2e3bb31c27753e6439c6b0229.tar.bz2
gentoo-dc8b7e67e41621b2e3bb31c27753e6439c6b0229.zip
games-misc/fortune-mod-it: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-misc/fortune-mod-it')
-rw-r--r--games-misc/fortune-mod-it/fortune-mod-it-1.99.ebuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/games-misc/fortune-mod-it/fortune-mod-it-1.99.ebuild b/games-misc/fortune-mod-it/fortune-mod-it-1.99.ebuild
index 9b8290d1d2f7..95613acea165 100644
--- a/games-misc/fortune-mod-it/fortune-mod-it-1.99.ebuild
+++ b/games-misc/fortune-mod-it/fortune-mod-it-1.99.ebuild
@@ -1,10 +1,12 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
+
DESCRIPTION="Database of the Italian cookies for the fortune program"
HOMEPAGE="http://www.fortune-it.net/"
SRC_URI="http://www.fortune-it.net/download/fortune-it-${PVR}.tar.gz"
+S="${WORKDIR}"/fortune-it-${PVR}
LICENSE="freedist"
SLOT="0"
@@ -13,10 +15,12 @@ IUSE="offensive"
DEPEND="games-misc/fortune-mod"
-S=${WORKDIR}/fortune-it-${PVR}
-
src_prepare() {
- use offensive || rm -f testi/*-o
+ default
+
+ if ! use offensive ; then
+ rm -f testi/*-o || die
+ fi
}
src_compile() {