commit:     fcffdce08736d6ca3b88fdb25b609552bc6be4ca
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 10 13:10:08 2020 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Oct 10 13:17:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcffdce0

app-emulation/pcem: update wxGTK:3.0 to wxGTK:3.0-gtk3

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-emulation/pcem/pcem-16-r1.ebuild | 75 ++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/app-emulation/pcem/pcem-16-r1.ebuild 
b/app-emulation/pcem/pcem-16-r1.ebuild
new file mode 100644
index 00000000000..42c969775c8
--- /dev/null
+++ b/app-emulation/pcem/pcem-16-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools desktop wxwidgets
+
+WX_GTK_VER="3.0-gtk3"
+
+DESCRIPTION="A PC emulator that specializes in running old operating systems 
and software"
+HOMEPAGE="
+       https://pcem-emulator.co.uk/
+       https://github.com/sarah-walker-pcem/pcem/
+"
+SRC_URI="https://pcem-emulator.co.uk/files/PCemV${PV}Linux.tar.gz";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE="alsa networking"
+
+S="${WORKDIR}"
+
+RDEPEND="
+       alsa? ( media-libs/alsa-lib )
+       media-libs/libsdl2
+       media-libs/openal
+       x11-libs/wxGTK:${WX_GTK_VER}[tiff,X]
+"
+
+DEPEND="${DEPEND}"
+
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${PN}-15-respect-cflags.patch" )
+
+src_prepare() {
+       default
+
+       eautoreconf
+}
+
+src_configure() {
+       # Does not compile with -fno-common.
+       # See https://pcem-emulator.co.uk/phpBB3/viewtopic.php?f=3&t=3443
+       append-cflags -fcommon
+
+       local myeconfargs=(
+               --enable-release-build
+               $(use_enable alsa)
+               $(use_enable networking)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+
+       insinto /usr/share/pcem
+       doins -r configs nvr roms
+
+       newicon src/icons/32x32/motherboard.png pcem.png
+       make_desktop_entry "pcem" "PCem" pcem "Development;Utility"
+
+       dodoc readme.txt
+}
+
+pkg_postinst() {
+       elog "In order to use PCem, you will need some roms for various 
emulated systems."
+       elog "You can either install globally for all users or locally for 
yourself."
+       elog ""
+       elog "To install globally, put your ROM files into 
'${ROOT}/usr/share/pcem/roms/<system>'."
+       elog "To install locally, put your ROM files into 
'~/.pcem/roms/<system>'."
+}

Reply via email to