From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- games-misc/fortune-mod/fortune-mod-1.99.1-r3.ebuild | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'games-misc/fortune-mod/fortune-mod-1.99.1-r3.ebuild') diff --git a/games-misc/fortune-mod/fortune-mod-1.99.1-r3.ebuild b/games-misc/fortune-mod/fortune-mod-1.99.1-r3.ebuild index d9c0b620388c..e3e2019a48a7 100644 --- a/games-misc/fortune-mod/fortune-mod-1.99.1-r3.ebuild +++ b/games-misc/fortune-mod/fortune-mod-1.99.1-r3.ebuild @@ -1,8 +1,9 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit eutils toolchain-funcs +EAPI=7 + +inherit toolchain-funcs DESCRIPTION="The notorious fortune program" HOMEPAGE="http://www.redellipse.net/code/fortune" @@ -16,9 +17,13 @@ IUSE="offensive elibc_glibc" DEPEND="app-text/recode:0=" RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/01_all_fortune_all-fix.patch +) + src_prepare() { - epatch "${FILESDIR}"/${P}-gentoo.patch \ - "${FILESDIR}"/01_all_fortune_all-fix.patch + default sed -i \ -e 's:/games::' \ @@ -37,9 +42,11 @@ src_prepare() { Makefile \ || die "sed REGEXLIBS failed" fi + if [[ ${CHOST} == *-solaris* ]] ; then sed -i -e 's:u_int:uint:g' util/strfile.h || die "sed strfile.h failed" fi + if [[ ${CHOST} == *-darwin* ]] ; then sed -i -e 's/-DBSD_REGEX/-DPOSIX_REGEX/' Makefile || die "sed Makefile failed" fi @@ -48,7 +55,7 @@ src_prepare() { src_compile() { local myrex= [[ ${CHOST} == *-interix* ]] && myrex="REGEXDEFS=-DNO_REGEX" - emake prefix="${EPREFIX}" CC="$(tc-getCC)" $myrex + emake prefix="${EPREFIX}" CC="$(tc-getCC)" ${myrex} } src_install() { -- cgit v1.2.3