From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4C5F615A7D9 for ; Fri, 17 Mar 2023 20:06:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85BECE0E1D; Fri, 17 Mar 2023 20:06:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 516F3E0E1D for ; Fri, 17 Mar 2023 20:06:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3441A34130B for ; Fri, 17 Mar 2023 20:06:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C045E8DD for ; Fri, 17 Mar 2023 20:06:30 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1679083578.ebc75eeb82462d0e518351a9e3af8dfb7fd1763d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-misc/fortune-mod/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-misc/fortune-mod/Manifest games-misc/fortune-mod/fortune-mod-3.18.0.ebuild X-VCS-Directories: games-misc/fortune-mod/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ebc75eeb82462d0e518351a9e3af8dfb7fd1763d X-VCS-Branch: master Date: Fri, 17 Mar 2023 20:06:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bfb800ca-6872-4ae8-9b00-f27f212b8df5 X-Archives-Hash: ee920f202c588efa7f75885b0f3d2b6c commit: ebc75eeb82462d0e518351a9e3af8dfb7fd1763d Author: Sam James gentoo org> AuthorDate: Fri Mar 17 20:05:30 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Mar 17 20:06:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebc75eeb games-misc/fortune-mod: add 3.18.0 Signed-off-by: Sam James gentoo.org> games-misc/fortune-mod/Manifest | 1 + games-misc/fortune-mod/fortune-mod-3.18.0.ebuild | 66 ++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/games-misc/fortune-mod/Manifest b/games-misc/fortune-mod/Manifest index 91a48daf1c80..26426f3ffff0 100644 --- a/games-misc/fortune-mod/Manifest +++ b/games-misc/fortune-mod/Manifest @@ -2,3 +2,4 @@ DIST fortune-mod-1.99.1.tar.gz 1812089 BLAKE2B a5df4a5a518021073ee95ac7e110ac75b DIST fortune-mod-3.12.0.tar.xz 1427848 BLAKE2B 3a3b0c28a0f7c297294b1788c57e01eb78d5083578aba877b896f41b854d2c34f65c9b46a1efe8bfef669f7ced6bb5e8ba667e3df1391a3cd3e5fed22e9058b6 SHA512 3a25d276219bb4f8a3015cd24b43462844d3be481815b587a365acd31dde31afee110dc5a658dd4df43bc6ba7d19e85afeffb215bd8c8f34640d658edb335089 DIST fortune-mod-3.14.1.tar.xz 1428956 BLAKE2B a62d4056cdceef14f1d63dbc8b98bbd88098c64d0020b949ecc8e6006f1a4b1369211ac8b87a33db60b238cd7e6d3d6f3c4d2e59933a6cf0bd3fa54c439c4330 SHA512 0de0ec033ffc35a7a9ec1a549e6dac425757ec5fcc718c772f0a4e548d23c46451af4a90b0ac548f2ab60d68856ca0fa5e8f10930efe6b199e96b2cc1c568810 DIST fortune-mod-3.16.0.tar.xz 1460580 BLAKE2B f9618d8669442f76843955fa446f565945467cc6a69e7b70131df21ca622e18c0f1c1ab83c32d5e478fd5c5abdb59ed5e009449fcdbc1fd1a2ede6c3d1ecef18 SHA512 ccd81f2c804f785f29e03680c7fb4f3cad7919aa1e265984fc2d6e7316d73d354e3cce285c28ea28662d99ef09aaf6baa5c64cadd0610f8d6a364ccfb9323848 +DIST fortune-mod-3.18.0.tar.xz 1470208 BLAKE2B b975d75aea745f06f26753038416b1cc50b462a11a5cbe71a9aadc44b31f9120ac3e37ed160c9d7f90e379e5ea4c51dc39921362d24811547364e37d64c3faf9 SHA512 b8d16bf5032c1a0fcb161c912109abd24f3b762f3455eaf86d41ed3f16a33db4913d9a21bb6a42f974a3b11cfaedac57cabc4456d178a3d631d8d4a723789798 diff --git a/games-misc/fortune-mod/fortune-mod-3.18.0.ebuild b/games-misc/fortune-mod/fortune-mod-3.18.0.ebuild new file mode 100644 index 000000000000..e4becfef23a3 --- /dev/null +++ b/games-misc/fortune-mod/fortune-mod-3.18.0.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 ~arm ~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 +}