diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-22 20:29:22 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-22 20:29:22 +0000 |
commit | 71fb24e4cc15fe73651423df81c5e6a79fa8c142 (patch) | |
tree | 962fbc79d3fbda0c4123d5119df5e728d4d7b18c /games-misc/fortune-mod/fortune-mod-3.16.0-r1.ebuild | |
parent | aae71b4d8e684ca22d28ef0f1da0989e7bf6468d (diff) |
gentoo auto-resync : 22:02:2023 - 20:29:22
Diffstat (limited to 'games-misc/fortune-mod/fortune-mod-3.16.0-r1.ebuild')
-rw-r--r-- | games-misc/fortune-mod/fortune-mod-3.16.0-r1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/games-misc/fortune-mod/fortune-mod-3.16.0-r1.ebuild b/games-misc/fortune-mod/fortune-mod-3.16.0-r1.ebuild new file mode 100644 index 000000000000..5ec04e9ca029 --- /dev/null +++ b/games-misc/fortune-mod/fortune-mod-3.16.0-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="The notorious fortune program" +HOMEPAGE="https://www.shlomifish.org/open-source/projects/fortune-mod/ http://www.redellipse.net/code/fortune" +SRC_URI="https://www.shlomifish.org/open-source/projects/${PN}/arcs/${P}.tar.xz + https://github.com/shlomif/fortune-mod/releases/download/${P}/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~m68k ~mips ~ppc64 ~riscv ~x86" +IUSE="offensive test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-text/recode:= + dev-libs/rinutils + !games-misc/fortune-mod-tao +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-text/App-XML-DocBook-Builder + dev-lang/perl + test? ( + dev-perl/File-Find-Object + dev-perl/IO-All + dev-perl/Test-Differences + dev-perl/Test-Trap + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.14.0-valgrind-tests.patch +) + +src_configure() { + local mycmakeargs=( + -DNO_OFFENSIVE=$(usex !offensive) + # bug #857246 + -DLOCALDIR="/usr/local/share/fortune" + -DCOOKIEDIR="/usr/share/fortune" + ) + + cmake_src_configure +} + +src_test() { + cmake_src_compile check +} + +src_install() { + cmake_src_install + + # We don't want to create the dir if it doesn't exist + rm -rf "${ED}"//usr/local || die + + mkdir -p "${ED}"/usr/bin || die + mv "${ED}"/usr/games/fortune "${ED}"/usr/bin/fortune || die + rm -rf "${ED}"/usr/games || die + + dodoc ChangeLog INDEX Notes Offensive README TODO cookie-files +} |