commit:     cc419635e82f708fa6c189ea40a31a2bd2ad5c06
Author:     Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Wed Apr 28 21:40:14 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 28 21:40:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cc419635

games-emulation/mupen64plus-qt: new ebuild https://bugs.gentoo.org/562444

Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>

 games-emulation/mupen64plus-qt/metadata.xml        |  8 ++++
 .../mupen64plus-qt/mupen64plus-qt-1.14.ebuild      | 45 ++++++++++++++++++++++
 .../mupen64plus-qt/mupen64plus-qt-9999.ebuild      | 45 ++++++++++++++++++++++
 3 files changed, 98 insertions(+)

diff --git a/games-emulation/mupen64plus-qt/metadata.xml 
b/games-emulation/mupen64plus-qt/metadata.xml
new file mode 100644
index 000000000..ffffe4022
--- /dev/null
+++ b/games-emulation/mupen64plus-qt/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<maintainer type="person">
+       <name>mazes-80</name>
+       <email>mazes...@none.org</email>
+</maintainer>
+</pkgmetadata>

diff --git a/games-emulation/mupen64plus-qt/mupen64plus-qt-1.14.ebuild 
b/games-emulation/mupen64plus-qt/mupen64plus-qt-1.14.ebuild
new file mode 100644
index 000000000..f1f885f7c
--- /dev/null
+++ b/games-emulation/mupen64plus-qt/mupen64plus-qt-1.14.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop qmake-utils
+
+DESCRIPTION="A basic launcher for Mupen64Plus"
+HOMEPAGE="https://github.com/dh4/mupen64plus-qt";
+SRC_URI="https://github.com/dh4/${PN}/archive/${PV}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-qt/qtcore:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtxml:5
+       dev-qt/qtsql:5
+       dev-qt/qtwidgets:5
+       dev-libs/quazip
+"
+DEPEND=">=games-emulation/mupen64plus-core-2.5
+               ${RDEPEND}"
+
+src_prepare() {
+       sed -i -e '/MatchWildcard/{s/Wildcard/RegExp/; s/"\*"/".*"/}' 
src/dialogs/settingsdialog.cpp || die
+       sed -i -e '/include.*quazip5/s/quazip5/QuaZip-Qt5-1.1\/quazip/' \
+               src/emulation/emulatorhandler.cpp src/common.cpp || die
+       sed -i -e 's/lquazip5/lquazip1-qt5/' mupen64plus-qt.pro || die
+       default
+}
+
+src_configure() {
+       eqmake5
+}
+
+src_install() {
+       dobin ${PN}
+       dodoc README.md
+       doman resources/${PN}.6
+       domenu resources/${PN}.desktop
+       newicon resources/images/mupen64plus.png ${PN}.png
+}

diff --git a/games-emulation/mupen64plus-qt/mupen64plus-qt-9999.ebuild 
b/games-emulation/mupen64plus-qt/mupen64plus-qt-9999.ebuild
new file mode 100644
index 000000000..93dd2d71b
--- /dev/null
+++ b/games-emulation/mupen64plus-qt/mupen64plus-qt-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2018-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop git-r3 qmake-utils
+
+DESCRIPTION="A basic launcher for Mupen64Plus"
+HOMEPAGE="https://github.com/dh4/mupen64plus-qt";
+EGIT_REPO_URI="https://github.com/dh4/mupen64plus-qt";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND="
+       dev-qt/qtcore:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtxml:5
+       dev-qt/qtsql:5
+       dev-qt/qtwidgets:5
+       dev-libs/quazip
+"
+DEPEND=">=games-emulation/mupen64plus-core-2.5
+               ${RDEPEND}"
+
+src_prepare() {
+       sed -i -e '/MatchWildcard/{s/Wildcard/RegExp/; s/"\*"/".*"/}' 
src/dialogs/settingsdialog.cpp || die
+       sed -i -e '/include.*quazip5/s/quazip5/QuaZip-Qt5-1.1\/quazip/' \
+               src/emulation/emulatorhandler.cpp src/common.cpp || die
+       sed -i -e 's/lquazip5/lquazip1-qt5/' mupen64plus-qt.pro || die
+       default
+}
+
+src_configure() {
+       eqmake5
+}
+
+src_install() {
+       dobin ${PN}
+       dodoc README.md
+       doman resources/${PN}.6
+       domenu resources/${PN}.desktop
+       newicon resources/images/mupen64plus.png ${PN}.png
+}

Reply via email to