1 |
commit: 504ad285e2f64861207ad68eca72d96d40ce0c41 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 2 21:21:24 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 2 21:22:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=504ad285 |
7 |
|
8 |
app-emulation/pcem: bump to version 17 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
app-emulation/pcem/Manifest | 1 + |
14 |
.../pcem/files/pcem-17-respect-cflags.patch | 13 ++++ |
15 |
app-emulation/pcem/pcem-17.ebuild | 77 ++++++++++++++++++++++ |
16 |
3 files changed, 91 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/pcem/Manifest b/app-emulation/pcem/Manifest |
19 |
index 3129bda1758..eb463379e2e 100644 |
20 |
--- a/app-emulation/pcem/Manifest |
21 |
+++ b/app-emulation/pcem/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST PCemV16Linux.tar.gz 1859892 BLAKE2B e388031e661b9320cc783e6400bdb7c191a2f946d9c207d9a58daa9270115b32ed55ac6a0b87227b51d10168e7d161bb03811eb83f5405ed1a71f7bfc6fd8aa5 SHA512 97d33ae1c4b59f281abe553ed4297c0d6c3956cf32b44474bfd5773700dd5c4ea6c209c679b9add5d4a7cba61748ee9794afa3c59af3230fa2a15812e13fd1c5 |
24 |
+DIST PCemV17Linux.tar.gz 1880868 BLAKE2B 64068f0f98e8fe3e9bfe42a04f462375a7ee0cb8259b103237f3b0542f54ad13ed625a55c8379e2c54a87348ed504496a6b163419855ceeda8e4f18e1ea5dcd9 SHA512 6d84c8cbe9b6116f6439f542ac08139cfc5652a34b615a1ed841a6f8c227e77f1d26573ec35d57511b9a69e7472fbe51f2abb9307f8f8c1207c74fbe8107cadd |
25 |
|
26 |
diff --git a/app-emulation/pcem/files/pcem-17-respect-cflags.patch b/app-emulation/pcem/files/pcem-17-respect-cflags.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..73cac4541bf |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/pcem/files/pcem-17-respect-cflags.patch |
31 |
@@ -0,0 +1,13 @@ |
32 |
+--- a/configure.ac |
33 |
++++ b/configure.ac |
34 |
+@@ -31,8 +31,8 @@ |
35 |
+ CXXFLAGS="-Wall -O0 -g -D_DEBUG -fcommon" |
36 |
+ AC_MSG_RESULT([yes]) |
37 |
+ else |
38 |
+- CFLAGS="-O3 -fcommon" |
39 |
+- CXXFLAGS="-O3 -fcommon" |
40 |
++ CFLAGS?="-O3 -fcommon" |
41 |
++ CXXFLAGS?="-O3 -fcommon" |
42 |
+ AC_MSG_RESULT([no]) |
43 |
+ fi |
44 |
+ |
45 |
|
46 |
diff --git a/app-emulation/pcem/pcem-17.ebuild b/app-emulation/pcem/pcem-17.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..825619a6ac6 |
49 |
--- /dev/null |
50 |
+++ b/app-emulation/pcem/pcem-17.ebuild |
51 |
@@ -0,0 +1,77 @@ |
52 |
+# Copyright 1999-2020 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+ |
57 |
+inherit autotools desktop flag-o-matic wxwidgets |
58 |
+ |
59 |
+WX_GTK_VER="3.0-gtk3" |
60 |
+ |
61 |
+DESCRIPTION="A PC emulator that specializes in running old operating systems and software" |
62 |
+HOMEPAGE=" |
63 |
+ https://pcem-emulator.co.uk/ |
64 |
+ https://github.com/sarah-walker-pcem/pcem/ |
65 |
+" |
66 |
+SRC_URI="https://pcem-emulator.co.uk/files/PCemV${PV}Linux.tar.gz" |
67 |
+ |
68 |
+LICENSE="GPL-2+" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64" |
71 |
+IUSE="alsa networking" |
72 |
+ |
73 |
+S="${WORKDIR}" |
74 |
+ |
75 |
+RDEPEND=" |
76 |
+ alsa? ( media-libs/alsa-lib ) |
77 |
+ media-libs/libsdl2 |
78 |
+ media-libs/openal |
79 |
+ x11-libs/wxGTK:${WX_GTK_VER}[tiff,X] |
80 |
+" |
81 |
+ |
82 |
+DEPEND="${DEPEND}" |
83 |
+ |
84 |
+BDEPEND="virtual/pkgconfig" |
85 |
+ |
86 |
+DOCS=( "README.md" "TESTED.md" ) |
87 |
+ |
88 |
+PATCHES=( "${FILESDIR}/${PN}-17-respect-cflags.patch" ) |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ default |
92 |
+ |
93 |
+ eautoreconf |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ # Does not compile with -fno-common. |
98 |
+ # See https://pcem-emulator.co.uk/phpBB3/viewtopic.php?f=3&t=3443 |
99 |
+ append-cflags -fcommon |
100 |
+ |
101 |
+ local myeconfargs=( |
102 |
+ --enable-release-build |
103 |
+ $(use_enable alsa) |
104 |
+ $(use_enable networking) |
105 |
+ ) |
106 |
+ |
107 |
+ econf "${myeconfargs[@]}" |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ default |
112 |
+ |
113 |
+ insinto /usr/share/pcem |
114 |
+ doins -r configs nvr roms |
115 |
+ |
116 |
+ newicon src/icons/32x32/motherboard.png pcem.png |
117 |
+ make_desktop_entry "pcem" "PCem" pcem "Development;Utility" |
118 |
+ |
119 |
+ einstalldocs |
120 |
+} |
121 |
+ |
122 |
+pkg_postinst() { |
123 |
+ elog "In order to use PCem, you will need some roms for various emulated systems." |
124 |
+ elog "You can either install globally for all users or locally for yourself." |
125 |
+ elog "" |
126 |
+ elog "To install globally, put your ROM files into '${ROOT}/usr/share/pcem/roms/<system>'." |
127 |
+ elog "To install locally, put your ROM files into '~/.pcem/roms/<system>'." |
128 |
+} |