Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/punes/, app-emulation/punes/files/
Date: Tue, 02 Feb 2021 13:08:40
Message-Id: 1612268958.49379b99eb646946f88437cdb56f30644e164516.juippis@gentoo
1 commit: 49379b99eb646946f88437cdb56f30644e164516
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Thu Jan 21 09:40:29 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 2 12:29:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49379b99
7
8 app-emulation/punes: update to 0.107
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 app-emulation/punes/Manifest | 1 +
15 .../punes/files/punes-0.107_ffmpeg-configure.patch | 27 +++++++++
16 app-emulation/punes/punes-0.107.ebuild | 64 ++++++++++++++++++++++
17 3 files changed, 92 insertions(+)
18
19 diff --git a/app-emulation/punes/Manifest b/app-emulation/punes/Manifest
20 index 44c8a05db29..a7985c2b638 100644
21 --- a/app-emulation/punes/Manifest
22 +++ b/app-emulation/punes/Manifest
23 @@ -1 +1,2 @@
24 DIST punes-0.106.tar.gz 5595484 BLAKE2B aa3bb5c869e679b19829a3d1de970517d6d626e0ed2404a9ed09d16af8fabb1ee3258ec8fbb4027fb6b70b5449b2bb7ac6880f43c3ba846687c65d8a0eeaf3f2 SHA512 f35c5cee05464cb11f130938cf7aa519d4dea35dbf52ce3606c3c6bb2596bc59b75e11816a5b44c7b1c9d402a299b4db49727087b4c93c3cb2ba473adfdd4fa2
25 +DIST punes-0.107.tar.gz 44024138 BLAKE2B 048df5bc9b019bafcd4eec75dc027de7cde9f8aa0d484ef96e5c41b091ba55c13b84ef7c7c36987b53206b1b7027758534479d0cc9fde63d89a48092c3f9d26d SHA512 eb3b7aa1c18765402e1e57e23dd4b019255320b795c0f578a4d5ae9f4e0c163613da07280e2a5abed80b9ba90e74c80b53b5fdd80e405103f0063ca55d0ee7bd
26
27 diff --git a/app-emulation/punes/files/punes-0.107_ffmpeg-configure.patch b/app-emulation/punes/files/punes-0.107_ffmpeg-configure.patch
28 new file mode 100644
29 index 00000000000..fd70e0d49ef
30 --- /dev/null
31 +++ b/app-emulation/punes/files/punes-0.107_ffmpeg-configure.patch
32 @@ -0,0 +1,27 @@
33 +From 241b71fdacad10ad1e790e5a4e380ea1ffbe8a93 Mon Sep 17 00:00:00 2001
34 +From: "Azamat H. Hackimov" <azamat.hackimov@×××××.com>
35 +Date: Thu, 21 Jan 2021 12:32:31 +0300
36 +Subject: [PATCH] Fix ffmpeg configure switch option
37 +
38 +autoconf's --with-PACKAGE/--without-PACKAGE requires $withval, not
39 +$enableval.
40 +---
41 + configure.ac | 2 +-
42 + 1 file changed, 1 insertion(+), 1 deletion(-)
43 +
44 +diff --git a/configure.ac b/configure.ac
45 +index fd9e0365..f63d50ea 100644
46 +--- a/configure.ac
47 ++++ b/configure.ac
48 +@@ -38,7 +38,7 @@ AC_ARG_WITH([ffmpeg],
49 + AS_HELP_STRING([--with-ffmpeg],
50 + [Build with support for FFmpeg [autodetect] @<:@default: yes@:>@]
51 + ),
52 +- [with_ffmpeg=$enableval], [with_ffmpeg=yes])
53 ++ [with_ffmpeg=$withval], [with_ffmpeg=yes])
54 +
55 + AC_ARG_ENABLE([release],
56 + AS_HELP_STRING([--disable-release],
57 +--
58 +2.26.2
59 +
60
61 diff --git a/app-emulation/punes/punes-0.107.ebuild b/app-emulation/punes/punes-0.107.ebuild
62 new file mode 100644
63 index 00000000000..db719a74f5f
64 --- /dev/null
65 +++ b/app-emulation/punes/punes-0.107.ebuild
66 @@ -0,0 +1,64 @@
67 +# Copyright 1999-2021 Gentoo Authors
68 +# Distributed under the terms of the GNU General Public License v2
69 +
70 +EAPI=7
71 +
72 +inherit autotools xdg-utils
73 +
74 +DESCRIPTION="Nintendo Entertainment System (NES) emulator"
75 +HOMEPAGE="https://github.com/punesemu/puNES"
76 +SRC_URI="https://github.com/punesemu/puNES/archive/v${PV}.tar.gz -> ${P}.tar.gz"
77 +
78 +LICENSE="GPL-2+"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~x86"
81 +IUSE="cg ffmpeg"
82 +
83 +RDEPEND="
84 + ffmpeg? ( media-video/ffmpeg:= )
85 + dev-qt/qtcore:5
86 + dev-qt/qtgui:5
87 + dev-qt/qtsvg:5
88 + dev-qt/qtwidgets:5
89 + media-libs/alsa-lib
90 + virtual/glu
91 + virtual/opengl"
92 +DEPEND="${RDEPEND}"
93 +BDEPEND="
94 + cg? ( media-gfx/nvidia-cg-toolkit )
95 + dev-qt/linguist-tools:5
96 + virtual/pkgconfig"
97 +
98 +S="${WORKDIR}/puNES-${PV}"
99 +
100 +PATCHES=(
101 + "${FILESDIR}/${P}_ffmpeg-configure.patch"
102 +)
103 +
104 +src_prepare() {
105 + default
106 +
107 + sed -i "/update-desktop-database/d" misc/Makefile.am || die
108 + eautoreconf
109 + # FIXME why eautoreconf can't handle this?
110 + cd "src/extra/lib7zip-1.6.5" || die
111 + eautoreconf
112 +}
113 +
114 +src_configure() {
115 + econf \
116 + $(use_with cg opengl-nvidia-cg) \
117 + $(use_with ffmpeg)
118 +}
119 +
120 +pkg_postinst() {
121 + xdg_icon_cache_update
122 + xdg_desktop_database_update
123 + xdg_mimeinfo_database_update
124 +}
125 +
126 +pkg_postrm() {
127 + xdg_icon_cache_update
128 + xdg_desktop_database_update
129 + xdg_mimeinfo_database_update
130 +}