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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 19CB5138346 for ; Wed, 8 Jan 2020 13:58:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 494FDE0823; Wed, 8 Jan 2020 13:58:20 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A7A5E0823 for ; Wed, 8 Jan 2020 13:58:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F38C34DCB6 for ; Wed, 8 Jan 2020 13:58:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7301990 for ; Wed, 8 Jan 2020 13:58:16 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1578491886.d54af530b136a21f35e3355495919bbcdae7b915.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/pcsxr/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-emulation/pcsxr/pcsxr-9999.ebuild X-VCS-Directories: games-emulation/pcsxr/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: d54af530b136a21f35e3355495919bbcdae7b915 X-VCS-Branch: master Date: Wed, 8 Jan 2020 13:58:16 +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: a542be0c-2fda-46c7-809c-e196cd720faa X-Archives-Hash: c273c35653f84b0e7e6a0bccc341c101 commit: d54af530b136a21f35e3355495919bbcdae7b915 Author: Michał Górny gentoo org> AuthorDate: Wed Jan 8 13:57:43 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jan 8 13:58:06 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d54af530 games-emulation/pcsxr: Add the missing ebuild file Signed-off-by: Michał Górny gentoo.org> games-emulation/pcsxr/pcsxr-9999.ebuild | 88 +++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/games-emulation/pcsxr/pcsxr-9999.ebuild b/games-emulation/pcsxr/pcsxr-9999.ebuild new file mode 100644 index 00000000000..765aaa96848 --- /dev/null +++ b/games-emulation/pcsxr/pcsxr-9999.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake-utils git-r3 xdg-utils + +DESCRIPTION="PCSX-Reloaded: a fork of PCSX, the discontinued Playstation emulator" +HOMEPAGE="https://github.com/iCatButler/pcsxr" +EGIT_REPO_URI="https://github.com/iCatButler/pcsxr" + +LICENSE="GPL-2 public-domain" +SLOT="0" +KEYWORDS="" + +IUSE="alsa archive ccdda cdio libav openal oss pulseaudio +sdl" +REQUIRED_USE="?? ( alsa openal oss pulseaudio sdl )" + +RDEPEND=" + dev-libs/glib:2 + media-libs/libsdl2[joystick] + sys-libs/zlib:= + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXtst + x11-libs/libXv + x11-libs/libXxf86vm + virtual/libintl + virtual/opengl + archive? ( app-arch/libarchive:= ) + alsa? ( media-libs/alsa-lib:= ) + cdio? ( dev-libs/libcdio:= ) + ccdda? ( + !libav? ( >=media-video/ffmpeg-3:= ) + libav? ( media-video/libav:= ) + ) + openal? ( media-libs/openal:= ) + pulseaudio? ( media-sound/pulseaudio:= ) + sdl? ( media-libs/libsdl2:=[sound] ) +" +DEPEND="${RDEPEND} + x11-base/xorg-proto" +BDEPEND=" + app-arch/unzip + dev-util/intltool + sys-devel/gettext:0 +" + +src_configure() { + local sound_backend + + if use pulseaudio; then + sound_backend=pulse + elif use sdl; then + sound_backend=sdl + elif use openal; then + sound_backend=openal + elif use alsa; then + sound_backend=alsa + elif use oss; then + sound_backend=oss + else + sound_backend=null + fi + + local mycmakeargs=( + -DENABLE_CCDDA=$(usex ccdda) + -DUSE_LIBARCHIVE=$(usex archive) + -DUSE_LIBCDIO=$(usex cdio) + -DSND_BACKEND=${sound_backend} + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + mv "${ED}"/usr/share/doc/pcsxr/* "${ED}/usr/share/doc/${PF}/" || die + rmdir "${ED}"/usr/share/doc/pcsxr || die +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}