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 2CF5115803E for ; Wed, 3 Jan 2024 16:54:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B0812BC0A2; Wed, 3 Jan 2024 16:54:08 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 346D62BC0A4 for ; Wed, 3 Jan 2024 16:54:08 +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 E2594343028 for ; Wed, 3 Jan 2024 16:54:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 968C714C8 for ; Wed, 3 Jan 2024 16:54:04 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1704270131.c0dbb49c82467c2035eac1ae2e7051e8e1e0207d.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: games-rpg/open-adventure/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-rpg/open-adventure/Manifest games-rpg/open-adventure/open-adventure-1.17.ebuild X-VCS-Directories: games-rpg/open-adventure/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: c0dbb49c82467c2035eac1ae2e7051e8e1e0207d X-VCS-Branch: master Date: Wed, 3 Jan 2024 16:54:04 +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: cad06b2c-561e-401c-afa9-4c6c6975c40b X-Archives-Hash: 5d88377634eef7f8b2c35310f148afe1 commit: c0dbb49c82467c2035eac1ae2e7051e8e1e0207d Author: Nicola Smaniotto gmail com> AuthorDate: Wed Jan 3 08:20:54 2024 +0000 Commit: David Roman gmail com> CommitDate: Wed Jan 3 08:22:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c0dbb49c games-rpg/open-adventure: add 1.17 Signed-off-by: Nicola Smaniotto gmail.com> games-rpg/open-adventure/Manifest | 1 + .../open-adventure/open-adventure-1.17.ebuild | 69 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/games-rpg/open-adventure/Manifest b/games-rpg/open-adventure/Manifest index 653b92b764..ffca07cfb4 100644 --- a/games-rpg/open-adventure/Manifest +++ b/games-rpg/open-adventure/Manifest @@ -1 +1,2 @@ DIST open-adventure-1.16.tar.bz2 211155 BLAKE2B 2c54bf8b30fefb5b52cd69d5c315e0c628ee51d514f545d2830ca809c40f3824e20eb5c06ad94b6fbf3aaeb9c9c2bad72b9217dfbabc33ec8cd469690ddab125 SHA512 4b58937a20200a081bc44464f5132ea33a010756831f95d5be75916f01b70bc54bd9f5606823fee5fbe2de1dd2e558325f516f050bc40e48cd8d840e65c17e07 +DIST open-adventure-1.17.tar.bz2 212254 BLAKE2B 0d19acae39bb58b3cb7ca240552c8f796be73ea4dde44ed60429f3e8cf51ebecbdf71d6ffca08f00ad35f8eb78f1d7f9cb50a336c73e874f8bde81c1cb88acb4 SHA512 bfd4a8f3720aaa98ffcd3d302df79d0f9b4d183797f1067f198c2deb1e11465ec40e2164aa92705de436ba767954e2c18f1d38fdba0e8ece19868fa7ec64af85 diff --git a/games-rpg/open-adventure/open-adventure-1.17.ebuild b/games-rpg/open-adventure/open-adventure-1.17.ebuild new file mode 100644 index 0000000000..0fa1e0eb24 --- /dev/null +++ b/games-rpg/open-adventure/open-adventure-1.17.ebuild @@ -0,0 +1,69 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit desktop flag-o-matic python-any-r1 + +DESCRIPTION="Forward-port of the Crowther/Woods Adventure 2.5" +HOMEPAGE="http://www.catb.org/~esr/open-adventure/" +SRC_URI="https://gitlab.com/esr/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="autosave nosave test" +# autosave and nosave are mutually exclusive +# tests require that they are both disabled +REQUIRED_USE=" + ?? ( autosave nosave ) + test? ( !autosave !nosave ) +" +RESTRICT="!test? ( test )" + +DEPEND="dev-libs/libedit" +RDEPEND="${DEPEND}" +BDEPEND=" + $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]' ) +" + +DOCS=( NEWS.adoc hints.adoc history.adoc README.adoc notes.adoc ) + +python_check_deps() { + python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +src_prepare() { + # remove uncommon flags + sed -e 's/-D_FORTIFY_SOURCE=2 -fstack-protector-all $(CFLAGS) -g/$(CFLAGS)/' \ + -i Makefile || die "Makefile patching failed" + + eapply_user +} + +src_compile() { + if use autosave; then + append-cflags "-DADVENT_AUTOSAVE" + fi + if use nosave; then + append-cflags "-DADVENT_NOSAVE" + fi + + emake advent advent.6 +} + +src_install() { + einstalldocs + doman advent.6 + + dobin advent + + doicon -s scalable advent.svg + domenu advent.desktop +} + +src_test() { + # parallel tests often fail + emake -j1 check +}