Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/pcem/
Date: Sat, 10 Oct 2020 13:17:36
Message-Id: 1602335828.fcffdce08736d6ca3b88fdb25b609552bc6be4ca.conikost@gentoo
1 commit: fcffdce08736d6ca3b88fdb25b609552bc6be4ca
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 13:10:08 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 13:17:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcffdce0
7
8 app-emulation/pcem: update wxGTK:3.0 to wxGTK:3.0-gtk3
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 app-emulation/pcem/pcem-16-r1.ebuild | 75 ++++++++++++++++++++++++++++++++++++
14 1 file changed, 75 insertions(+)
15
16 diff --git a/app-emulation/pcem/pcem-16-r1.ebuild b/app-emulation/pcem/pcem-16-r1.ebuild
17 new file mode 100644
18 index 00000000000..42c969775c8
19 --- /dev/null
20 +++ b/app-emulation/pcem/pcem-16-r1.ebuild
21 @@ -0,0 +1,75 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit autotools desktop wxwidgets
28 +
29 +WX_GTK_VER="3.0-gtk3"
30 +
31 +DESCRIPTION="A PC emulator that specializes in running old operating systems and software"
32 +HOMEPAGE="
33 + https://pcem-emulator.co.uk/
34 + https://github.com/sarah-walker-pcem/pcem/
35 +"
36 +SRC_URI="https://pcem-emulator.co.uk/files/PCemV${PV}Linux.tar.gz"
37 +
38 +LICENSE="GPL-2+"
39 +SLOT="0"
40 +KEYWORDS="amd64"
41 +IUSE="alsa networking"
42 +
43 +S="${WORKDIR}"
44 +
45 +RDEPEND="
46 + alsa? ( media-libs/alsa-lib )
47 + media-libs/libsdl2
48 + media-libs/openal
49 + x11-libs/wxGTK:${WX_GTK_VER}[tiff,X]
50 +"
51 +
52 +DEPEND="${DEPEND}"
53 +
54 +BDEPEND="virtual/pkgconfig"
55 +
56 +PATCHES=( "${FILESDIR}/${PN}-15-respect-cflags.patch" )
57 +
58 +src_prepare() {
59 + default
60 +
61 + eautoreconf
62 +}
63 +
64 +src_configure() {
65 + # Does not compile with -fno-common.
66 + # See https://pcem-emulator.co.uk/phpBB3/viewtopic.php?f=3&t=3443
67 + append-cflags -fcommon
68 +
69 + local myeconfargs=(
70 + --enable-release-build
71 + $(use_enable alsa)
72 + $(use_enable networking)
73 + )
74 +
75 + econf "${myeconfargs[@]}"
76 +}
77 +
78 +src_install() {
79 + default
80 +
81 + insinto /usr/share/pcem
82 + doins -r configs nvr roms
83 +
84 + newicon src/icons/32x32/motherboard.png pcem.png
85 + make_desktop_entry "pcem" "PCem" pcem "Development;Utility"
86 +
87 + dodoc readme.txt
88 +}
89 +
90 +pkg_postinst() {
91 + elog "In order to use PCem, you will need some roms for various emulated systems."
92 + elog "You can either install globally for all users or locally for yourself."
93 + elog ""
94 + elog "To install globally, put your ROM files into '${ROOT}/usr/share/pcem/roms/<system>'."
95 + elog "To install locally, put your ROM files into '~/.pcem/roms/<system>'."
96 +}