From 1f1b748787adc86f61cb904b57e7ec87bd7696cb Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 16 May 2020 10:33:28 -0400 Subject: games-misc/fortune-mod: add slot-operator to app-text/recode dep Signed-off-by: Mike Gilbert --- .../fortune-mod/fortune-mod-1.99.1-r2.ebuild | 57 ---------------------- .../fortune-mod/fortune-mod-1.99.1-r3.ebuild | 57 ++++++++++++++++++++++ 2 files changed, 57 insertions(+), 57 deletions(-) delete mode 100644 games-misc/fortune-mod/fortune-mod-1.99.1-r2.ebuild create mode 100644 games-misc/fortune-mod/fortune-mod-1.99.1-r3.ebuild (limited to 'games-misc/fortune-mod') diff --git a/games-misc/fortune-mod/fortune-mod-1.99.1-r2.ebuild b/games-misc/fortune-mod/fortune-mod-1.99.1-r2.ebuild deleted file mode 100644 index 98774bb0f8b6..000000000000 --- a/games-misc/fortune-mod/fortune-mod-1.99.1-r2.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils toolchain-funcs - -DESCRIPTION="The notorious fortune program" -HOMEPAGE="http://www.redellipse.net/code/fortune" -SRC_URI="http://www.redellipse.net/code/downloads/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 hppa ~m68k ~mips ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" -IUSE="offensive elibc_glibc" - -DEPEND="app-text/recode" -RDEPEND="${DEPEND}" - -src_prepare() { - epatch "${FILESDIR}"/${P}-gentoo.patch \ - "${FILESDIR}"/01_all_fortune_all-fix.patch - - sed -i \ - -e 's:/games::' \ - -e 's:/fortunes:/fortune:' \ - -e '/^FORTDIR=/s:=.*:=$(prefix)/usr/bin:' \ - -e '/^all:/s:$: fortune/fortune.man:' \ - -e "/^OFFENSIVE=/s:=.*:=`use offensive && echo 1 || echo 0`:" \ - Makefile || die "sed Makefile failed" - - if ! use elibc_glibc ; then - [[ ${CHOST} == *-*bsd* ]] && local reglibs="-lcompat" - [[ ${CHOST} == *-darwin* ]] && local reglibs="-lc" - has_version "app-text/recode[nls]" && reglibs="${reglibs} -lintl" - sed -i \ - -e "/^REGEXLIBS=/s:=.*:= ${reglibs}:" \ - 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 -} - -src_compile() { - local myrex= - [[ ${CHOST} == *-interix* ]] && myrex="REGEXDEFS=-DNO_REGEX" - emake prefix="${EPREFIX}" CC="$(tc-getCC)" $myrex -} - -src_install() { - emake prefix="${ED}" install - dodoc ChangeLog INDEX Notes Offensive README TODO cookie-files -} 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 new file mode 100644 index 000000000000..0f5e6dbe42d2 --- /dev/null +++ b/games-misc/fortune-mod/fortune-mod-1.99.1-r3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="The notorious fortune program" +HOMEPAGE="http://www.redellipse.net/code/fortune" +SRC_URI="http://www.redellipse.net/code/downloads/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~arm64 hppa ~m68k ~mips ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" +IUSE="offensive elibc_glibc" + +DEPEND="app-text/recode:0=" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/01_all_fortune_all-fix.patch + + sed -i \ + -e 's:/games::' \ + -e 's:/fortunes:/fortune:' \ + -e '/^FORTDIR=/s:=.*:=$(prefix)/usr/bin:' \ + -e '/^all:/s:$: fortune/fortune.man:' \ + -e "/^OFFENSIVE=/s:=.*:=`use offensive && echo 1 || echo 0`:" \ + Makefile || die "sed Makefile failed" + + if ! use elibc_glibc ; then + [[ ${CHOST} == *-*bsd* ]] && local reglibs="-lcompat" + [[ ${CHOST} == *-darwin* ]] && local reglibs="-lc" + has_version "app-text/recode[nls]" && reglibs="${reglibs} -lintl" + sed -i \ + -e "/^REGEXLIBS=/s:=.*:= ${reglibs}:" \ + 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 +} + +src_compile() { + local myrex= + [[ ${CHOST} == *-interix* ]] && myrex="REGEXDEFS=-DNO_REGEX" + emake prefix="${EPREFIX}" CC="$(tc-getCC)" $myrex +} + +src_install() { + emake prefix="${ED}" install + dodoc ChangeLog INDEX Notes Offensive README TODO cookie-files +} -- cgit v1.2.3-65-gdbad