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 B836B158041 for ; Fri, 23 Feb 2024 09:22:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEBD0E29B8; Fri, 23 Feb 2024 09:22:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 94C4AE29B8 for ; Fri, 23 Feb 2024 09:22:21 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 882C5343064 for ; Fri, 23 Feb 2024 09:22:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BB8DC131B for ; Fri, 23 Feb 2024 09:22:18 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1708680127.00afd8addb1784b03b0bb637ca6c2fd85676044f.ceamac@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/gambatte-jg/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-emulation/gambatte-jg/gambatte-jg-9999.ebuild games-emulation/gambatte-jg/metadata.xml X-VCS-Directories: games-emulation/gambatte-jg/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: 00afd8addb1784b03b0bb637ca6c2fd85676044f X-VCS-Branch: master Date: Fri, 23 Feb 2024 09:22:18 +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: 49c62c55-b2b5-4cd9-9040-5b08ddb6b412 X-Archives-Hash: d9a9ecf878510daab79c5ef18507013a commit: 00afd8addb1784b03b0bb637ca6c2fd85676044f Author: orbea riseup net> AuthorDate: Sun Jan 28 23:00:25 2024 +0000 Commit: Viorel Munteanu gentoo org> CommitDate: Fri Feb 23 09:22:07 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00afd8ad games-emulation/gambatte-jg: new USE flags * examples: Install the example frontend for libgambatte * jgmodule: Install the module for The Jolly Good API * shared: Install the shared libgambatte library The old behavior was to only build the Jollygood module. Signed-off-by: orbea riseup.net> Closes: https://github.com/gentoo/gentoo/pull/35060 Signed-off-by: Viorel Munteanu gentoo.org> .../gambatte-jg/gambatte-jg-9999.ebuild | 51 +++++++++++++++++----- games-emulation/gambatte-jg/metadata.xml | 4 ++ 2 files changed, 44 insertions(+), 11 deletions(-) diff --git a/games-emulation/gambatte-jg/gambatte-jg-9999.ebuild b/games-emulation/gambatte-jg/gambatte-jg-9999.ebuild index bc00ccf2fcc5..1c1fd17466dd 100644 --- a/games-emulation/gambatte-jg/gambatte-jg-9999.ebuild +++ b/games-emulation/gambatte-jg/gambatte-jg-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,32 +15,61 @@ if [[ "${PV}" == *9999 ]] ; then else SRC_URI="https://gitlab.com/jgemu/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2" S="${WORKDIR}/${MY_P}" - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" fi -LICENSE="BSD GPL-2" +LICENSE=" + GPL-2 + examples? ( 0BSD ) + jgmodule? ( BSD ) +" SLOT="1" +IUSE="examples +jgmodule shared" +REQUIRED_USE="|| ( examples jgmodule shared )" DEPEND=" - media-libs/jg:1= - media-libs/soxr + examples? ( + media-libs/libsdl2[opengl,sound,video] + media-libs/speexdsp + ) + jgmodule? ( + media-libs/jg:1= + media-libs/soxr + ) " RDEPEND=" ${DEPEND} - games-emulation/jgrf + jgmodule? ( games-emulation/jgrf ) " BDEPEND=" virtual/pkgconfig " +pkg_setup() { + local makeopts=( + DISABLE_MODULE=$(usex jgmodule 0 1) + ENABLE_EXAMPLE=$(usex examples 1 0) + ENABLE_SHARED=$(usex shared 1 0) + ) + export MY_MAKEOPTS="${makeopts[@]}" +} + src_compile() { - emake CXX="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)" + local mymakeargs=( + CXX="$(tc-getCXX)" + PKG_CONFIG="$(tc-getPKG_CONFIG)" + ${MY_MAKEOPTS} + ) + emake "${mymakeargs[@]}" } src_install() { - emake install \ - DESTDIR="${D}" \ - PREFIX="${EPREFIX}"/usr \ - DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + local mymakeargs=( + DESTDIR="${D}" + PREFIX="${EPREFIX}"/usr + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} LIBDIR="${EPREFIX}/usr/$(get_libdir)" + ${MY_MAKEOPTS} + ) + emake install "${mymakeargs[@]}" } diff --git a/games-emulation/gambatte-jg/metadata.xml b/games-emulation/gambatte-jg/metadata.xml index 184d31eac85b..537d0c732c6f 100644 --- a/games-emulation/gambatte-jg/metadata.xml +++ b/games-emulation/gambatte-jg/metadata.xml @@ -9,6 +9,10 @@ sam@gentoo.org Sam James + + Build module for The Jolly Good API + Build shared library + Gambatte JG is an emulator for the Nintendo Game Boy/Game Boy Color. This is a fork of the final public revision of Gambatte.