Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/fs-uae/, app-emulation/fs-uae/files/
Date: Sat, 20 Apr 2019 23:24:19
Message-Id: 1555754627.061131ac2bfd6a8ee8795e2c4b6c503ba11f4015.chewi@gentoo
1 commit: 061131ac2bfd6a8ee8795e2c4b6c503ba11f4015
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 20 10:03:47 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 20 10:03:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=061131ac
7
8 app-emulation/fs-uae: New Amiga emulator package
9
10 Closes: https://bugs.gentoo.org/403913
11 Package-Manager: Portage-2.3.64, Repoman-2.3.12
12 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
13
14 app-emulation/fs-uae/Manifest | 1 +
15 .../fs-uae/files/fs-uae-2.8.3-libmpeg2.patch | 36 +++++++
16 app-emulation/fs-uae/fs-uae-2.8.3.ebuild | 116 +++++++++++++++++++++
17 app-emulation/fs-uae/metadata.xml | 15 +++
18 4 files changed, 168 insertions(+)
19
20 diff --git a/app-emulation/fs-uae/Manifest b/app-emulation/fs-uae/Manifest
21 new file mode 100644
22 index 00000000000..7ddd296728c
23 --- /dev/null
24 +++ b/app-emulation/fs-uae/Manifest
25 @@ -0,0 +1 @@
26 +DIST fs-uae-2.8.3.tar.gz 5017047 BLAKE2B 3d921446381b56d39410e4d68291c1cb696abd5e1b25105bdcc367c07112e79197d8267cfcb21f3f844cf5ac0a02a19ebec76611f34e747c6d03fefc2858a020 SHA512 1ccab4329a6b678a97f336b963bfaf9ea26bccccba31c90f1b7a8c2a6d3a9f343f9095733be744d4357495c808216d32c08a2bd8ce05bba73017147616d5e8cf
27
28 diff --git a/app-emulation/fs-uae/files/fs-uae-2.8.3-libmpeg2.patch b/app-emulation/fs-uae/files/fs-uae-2.8.3-libmpeg2.patch
29 new file mode 100644
30 index 00000000000..660cd2fc903
31 --- /dev/null
32 +++ b/app-emulation/fs-uae/files/fs-uae-2.8.3-libmpeg2.patch
33 @@ -0,0 +1,36 @@
34 +From 5937f7587de5b96cbab120e99b6ae3a0cd722c53 Mon Sep 17 00:00:00 2001
35 +From: James Le Cuirot <chewi@g.o>
36 +Date: Fri, 19 Apr 2019 21:56:58 +0100
37 +Subject: [PATCH] Only run configure in libmpeg2 when using built-in version
38 +
39 +---
40 + configure.ac | 6 ++++--
41 + 1 file changed, 4 insertions(+), 2 deletions(-)
42 +
43 +diff --git a/configure.ac b/configure.ac
44 +index 39958ad..941391a 100644
45 +--- a/configure.ac
46 ++++ b/configure.ac
47 +@@ -200,7 +200,7 @@ AS_IF([test "x$with_glew" = xyes], [
48 + ])
49 +
50 + AC_ARG_WITH(libmpeg2, AS_HELP_STRING(
51 +- [--without-libmpeg2], [or --with-libmpeg=builtin to use included version]))
52 ++ [--without-libmpeg2], [or --with-libmpeg2=builtin to use included version]))
53 + AM_CONDITIONAL([BUILTIN_LIBMPEG2], [test x$with_libmpeg2 = xbuiltin])
54 + AS_IF([test "x$with_libmpeg2" != xno], [
55 + AS_IF([test "x$with_libmpeg2" = xbuiltin], [
56 +@@ -776,7 +776,9 @@ OPT_FEATURE([A_ZIP], [zip], [zip],
57 +
58 + AC_DEFINE([FPU_UAE], [1], [Define to 1])
59 +
60 +-AC_CONFIG_SUBDIRS([libmpeg2])
61 ++AS_IF([test "x$with_libmpeg2" = xbuiltin], [
62 ++ AC_CONFIG_SUBDIRS([libmpeg2])
63 ++])
64 +
65 + # Write Makefile
66 +
67 +--
68 +2.20.1
69 +
70
71 diff --git a/app-emulation/fs-uae/fs-uae-2.8.3.ebuild b/app-emulation/fs-uae/fs-uae-2.8.3.ebuild
72 new file mode 100644
73 index 00000000000..698c12210c5
74 --- /dev/null
75 +++ b/app-emulation/fs-uae/fs-uae-2.8.3.ebuild
76 @@ -0,0 +1,116 @@
77 +# Copyright 1999-2019 Gentoo Authors
78 +# Distributed under the terms of the GNU General Public License v2
79 +
80 +EAPI=7
81 +
82 +inherit autotools xdg-utils
83 +
84 +DESCRIPTION="Integrates the most accurate Amiga emulation code available from WinUAE"
85 +HOMEPAGE="https://fs-uae.net/"
86 +SRC_URI="https://fs-uae.net/stable/${PV}/${P}.tar.gz"
87 +LICENSE="GPL-2"
88 +SLOT="0"
89 +KEYWORDS="~amd64"
90 +IUSE="fmv glew"
91 +
92 +RDEPEND="
93 + dev-libs/glib:2
94 + media-libs/libpng:0=
95 + media-libs/libsdl2[opengl]
96 + media-libs/openal
97 + virtual/opengl
98 + x11-libs/libdrm
99 + x11-libs/libX11
100 + fmv? ( media-libs/libmpeg2 )
101 + glew? ( media-libs/glew:0= )
102 +"
103 +
104 +DEPEND="
105 + ${RDEPEND}
106 +"
107 +
108 +BDEPEND="
109 + sys-devel/gettext
110 + virtual/pkgconfig
111 +"
112 +
113 +PATCHES=(
114 + "${FILESDIR}"/${PN}-2.8.3-libmpeg2.patch
115 +)
116 +
117 +src_prepare() {
118 + default
119 + AT_NO_RECURSIVE=1 eautoreconf
120 +
121 + # Ensure bundled libraries are not used. GLee and Udis86 are unused
122 + # regardless. Only FLAC headers are bundled and the library is never
123 + # used? Lua is bundled but differs from upstream. We keep the
124 + # default of disabling the Lua feature anyway as it is unfinished.
125 + rm -r glee/ libmpeg2/ libudis86/ || die
126 +}
127 +
128 +src_configure() {
129 + # Qt and Udis86 are unused.
130 + econf \
131 + --enable-a2065 \
132 + --enable-action-replay \
133 + --enable-aga \
134 + --enable-arcadia \
135 + --enable-bsdsocket \
136 + --enable-caps \
137 + --enable-cd32 \
138 + --enable-cdtv \
139 + --enable-codegen \
140 + --enable-dms \
141 + --enable-drivesound \
142 + --enable-fdi2raw \
143 + --enable-gfxboard \
144 + --enable-jit \
145 + --enable-jit-fpu \
146 + --enable-ncr9x \
147 + --enable-ncr \
148 + --enable-netplay \
149 + --enable-parallel-port \
150 + --enable-prowizard \
151 + --enable-qemu-cpu \
152 + --enable-qemu-slirp \
153 + --enable-savestate \
154 + --enable-scp \
155 + --enable-serial-port \
156 + --enable-slirp \
157 + --enable-softfloat \
158 + --enable-uaenative \
159 + --enable-uaenet \
160 + --enable-uaescsi \
161 + --enable-uaeserial \
162 + --disable-udis86 \
163 + --enable-vpar \
164 + --enable-xml-shader \
165 + --enable-zip \
166 + --with-glad \
167 + --without-qt \
168 + $(use_with fmv libmpeg2) \
169 + $(use_with glew)
170 +}
171 +
172 +src_install() {
173 + default
174 +
175 + # Needed for QEMU-UAE.
176 + insinto /usr/include/uae
177 + doins src/include/uae/{api,attributes,log,ppc,qemu,types}.h
178 +}
179 +
180 +pkg_postinst() {
181 + xdg_desktop_database_update
182 + xdg_mimeinfo_database_update
183 + xdg_icon_cache_update
184 +
185 + elog "Install app-emulation/fs-uae-launcher for a better graphical interface."
186 +}
187 +
188 +pkg_postrm() {
189 + xdg_desktop_database_update
190 + xdg_mimeinfo_database_update
191 + xdg_icon_cache_update
192 +}
193
194 diff --git a/app-emulation/fs-uae/metadata.xml b/app-emulation/fs-uae/metadata.xml
195 new file mode 100644
196 index 00000000000..e92d93d760f
197 --- /dev/null
198 +++ b/app-emulation/fs-uae/metadata.xml
199 @@ -0,0 +1,15 @@
200 +<?xml version="1.0" encoding="UTF-8"?>
201 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
202 +<pkgmetadata>
203 + <maintainer type="person">
204 + <email>chewi@g.o</email>
205 + <name>James Le Cuirot</name>
206 + </maintainer>
207 + <upstream>
208 + <remote-id type="github">FrodeSolheim/fs-uae</remote-id>
209 + </upstream>
210 + <use>
211 + <flag name="fmv">Enable support for CD32 FMV (full motion video)</flag>
212 + <flag name="glew">Enable support for The OpenGL Extension Wrangler Library (<pkg>media-libs/glew</pkg>)</flag>
213 + </use>
214 +</pkgmetadata>