diff options
author | Sam James <sam@gentoo.org> | 2022-08-13 14:04:31 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-08-13 14:31:44 +0100 |
commit | 93b0f1403db4317d5a8211090bd4c2b28b3b1da0 (patch) | |
tree | 340e0d8d8040c331534b9ff1ce207deeba754618 /games-misc/fortune-mod | |
parent | dev-python/coverage: Stabilize 6.4.3 sparc, #865083 (diff) | |
download | gentoo-93b0f1403db4317d5a8211090bd4c2b28b3b1da0.tar.gz gentoo-93b0f1403db4317d5a8211090bd4c2b28b3b1da0.tar.bz2 gentoo-93b0f1403db4317d5a8211090bd4c2b28b3b1da0.zip |
games-misc/fortune-mod: add 3.14.1
Closes: https://bugs.gentoo.org/857246
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-misc/fortune-mod')
-rw-r--r-- | games-misc/fortune-mod/Manifest | 1 | ||||
-rw-r--r-- | games-misc/fortune-mod/fortune-mod-3.14.1.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/games-misc/fortune-mod/Manifest b/games-misc/fortune-mod/Manifest index 45fff48026fa..f2d33499e0fc 100644 --- a/games-misc/fortune-mod/Manifest +++ b/games-misc/fortune-mod/Manifest @@ -2,4 +2,5 @@ DIST fortune-mod-1.99.1.tar.gz 1812089 BLAKE2B a5df4a5a518021073ee95ac7e110ac75b DIST fortune-mod-3.10.0.tar.xz 1429132 BLAKE2B e2dcfccee0c8d897971e742e4a5e345f9e825ba73479e2dc056891e16f005dc1d1f843573565741d1b35e4e1d1020cd382db9706f34b0caa4000d265a2c4dd30 SHA512 cb4d171405324a8ebac55ca5c7c8d8f5c06b594c2ded1b1c97fb599a4eaf638317f613fbeee4b3ca9ba7060ba4eeff7e678acddac12d49555a33d33017a90f4d DIST fortune-mod-3.12.0.tar.xz 1427848 BLAKE2B 3a3b0c28a0f7c297294b1788c57e01eb78d5083578aba877b896f41b854d2c34f65c9b46a1efe8bfef669f7ced6bb5e8ba667e3df1391a3cd3e5fed22e9058b6 SHA512 3a25d276219bb4f8a3015cd24b43462844d3be481815b587a365acd31dde31afee110dc5a658dd4df43bc6ba7d19e85afeffb215bd8c8f34640d658edb335089 DIST fortune-mod-3.14.0.tar.xz 1428984 BLAKE2B 9b7df93cd7ced677a391ed30a84503cbd36689de406bbeb346bc9e465420908c9115b0d58e8e0b245f554557f032a014cc52418da4a69281e3844412c8e9641d SHA512 289f11923bd91ac0c46d8879c57c1f4da20ef2ef165be2eea9635b3aca5fc18bfc2438e85bfbc2a872671f41658b68bb3f7dd74bef7e4268889371ff702d7cae +DIST fortune-mod-3.14.1.tar.xz 1428956 BLAKE2B a62d4056cdceef14f1d63dbc8b98bbd88098c64d0020b949ecc8e6006f1a4b1369211ac8b87a33db60b238cd7e6d3d6f3c4d2e59933a6cf0bd3fa54c439c4330 SHA512 0de0ec033ffc35a7a9ec1a549e6dac425757ec5fcc718c772f0a4e548d23c46451af4a90b0ac548f2ab60d68856ca0fa5e8f10930efe6b199e96b2cc1c568810 DIST fortune-mod-3.6.1.tar.xz 1419132 BLAKE2B 0ff684ee8aaf5eaabd75f187a3bff533ab4ee6e66c47c57fc700d2671006c8dff42f732fde78b40516f8ee907a52fc1965fb0ff257b12563d645f97c5ebc0031 SHA512 3f35bf35d62c46dfeaca450a127a7444bb870f6345c92afe626f81548ac375d21306c00a56d31982b8e25129acd6f829402d5afaec676e1200ad5bf586f7a8f1 diff --git a/games-misc/fortune-mod/fortune-mod-3.14.1.ebuild b/games-misc/fortune-mod/fortune-mod-3.14.1.ebuild new file mode 100644 index 000000000000..71c733aee02a --- /dev/null +++ b/games-misc/fortune-mod/fortune-mod-3.14.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 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="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc64 ~riscv ~sparc ~x86" +IUSE="offensive test" +RESTRICT="!test? ( test )" + +RDEPEND="app-text/recode:= + !games-misc/fortune-mod-tao" +DEPEND="${DEPEND}" +BDEPEND="app-text/App-XML-DocBook-Builder + 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 +} |