From 8983718b0a291aac84540d8beda2433f91314379 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Sat, 5 Nov 2022 20:31:41 +0100 Subject: games-emulation/melonds: add qtmultimedia dep; static-link teakra MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/879557 Signed-off-by: Maciej Barć --- games-emulation/melonds/melonds-0.9.5-r1.ebuild | 84 ++++++++++++++++++++++++ games-emulation/melonds/melonds-0.9.5.ebuild | 87 ------------------------- games-emulation/melonds/melonds-9999.ebuild | 7 +- 3 files changed, 86 insertions(+), 92 deletions(-) create mode 100644 games-emulation/melonds/melonds-0.9.5-r1.ebuild delete mode 100644 games-emulation/melonds/melonds-0.9.5.ebuild diff --git a/games-emulation/melonds/melonds-0.9.5-r1.ebuild b/games-emulation/melonds/melonds-0.9.5-r1.ebuild new file mode 100644 index 000000000000..87e563f0f8c2 --- /dev/null +++ b/games-emulation/melonds/melonds-0.9.5-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="melonDS" +MY_P="${MY_PN}-${PV}" + +inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg + +DESCRIPTION="Nintendo DS emulator, sorta" +HOMEPAGE="http://melonds.kuribo64.net + https://github.com/Arisotura/melonDS" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Arisotura/${MY_PN}.git" +else + SRC_URI="https://github.com/Arisotura/${MY_PN}/archive/${PV}.tar.gz + -> ${MY_P}.tar.gz" + S="${WORKDIR}"/${MY_P} + KEYWORDS="~amd64" +fi + +IUSE="+jit +opengl" +LICENSE="BSD-2 GPL-2 GPL-3 Unlicense" +SLOT="0" + +RDEPEND=" + app-arch/libarchive + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + media-libs/libsdl2[sound,video] + net-libs/libpcap + net-libs/libslirp + opengl? ( media-libs/libepoxy ) +" +DEPEND="${RDEPEND}" + +# used for JIT recompiler +QA_EXECSTACK="usr/bin/melonDS" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="You need the following files in order to run melonDS: +- bios7.bin +- bios9.bin +- firmware.bin +- romlist.bin +Place them in ~/.config/melonDS +Those files can be found somewhere on the Internet ;-)" + +src_prepare() { + filter-lto + append-flags -fno-strict-aliasing + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=OFF + -DENABLE_JIT=$(usex jit) + -DENABLE_OGLRENDERER=$(usex opengl) + ) + cmake_src_configure +} + +src_compile() { + tc-export AR + cmake_src_compile +} + +src_install() { + readme.gentoo_create_doc + cmake_src_install +} + +pkg_postinst() { + xdg_pkg_postinst + readme.gentoo_print_elog +} diff --git a/games-emulation/melonds/melonds-0.9.5.ebuild b/games-emulation/melonds/melonds-0.9.5.ebuild deleted file mode 100644 index c5383c9da154..000000000000 --- a/games-emulation/melonds/melonds-0.9.5.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 2019-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PN="melonDS" -MY_P="${MY_PN}-${PV}" - -inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg - -DESCRIPTION="Nintendo DS emulator, sorta" -HOMEPAGE="http://melonds.kuribo64.net - https://github.com/Arisotura/melonDS" - -if [[ ${PV} == *9999* ]] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/Arisotura/${MY_PN}.git" -else - SRC_URI="https://github.com/Arisotura/${MY_PN}/archive/${PV}.tar.gz - -> ${MY_P}.tar.gz" - S="${WORKDIR}"/${MY_P} - KEYWORDS="~amd64" -fi - -IUSE="+jit +opengl" -LICENSE="BSD-2 GPL-2 GPL-3 Unlicense" -SLOT="0" - -# MelonDS bundles libteakra with many changes, -# for now we have to block dev-libs/teakra -RDEPEND=" - !dev-libs/teakra - app-arch/libarchive - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtnetwork:5 - dev-qt/qtwidgets:5 - media-libs/libsdl2[sound,video] - net-libs/libpcap - net-libs/libslirp - opengl? ( media-libs/libepoxy ) -" -DEPEND="${RDEPEND}" - -# used for JIT recompiler -QA_EXECSTACK="usr/bin/melonDS" - -DISABLE_AUTOFORMATTING="yes" -DOC_CONTENTS="You need the following files in order to run melonDS: -- bios7.bin -- bios9.bin -- firmware.bin -- romlist.bin -Place them in ~/.config/melonDS -Those files can be found somewhere on the Internet ;-)" - -src_prepare() { - filter-lto - append-flags -fno-strict-aliasing - - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DENABLE_JIT=$(usex jit) - -DENABLE_OGLRENDERER=$(usex opengl) - ) - cmake_src_configure -} - -src_compile() { - tc-export AR - cmake_src_compile -} - -src_install() { - readme.gentoo_create_doc - cmake_src_install - - dolib.so "${BUILD_DIR}"/src/teakra/src/libteakra.so -} - -pkg_postinst() { - xdg_pkg_postinst - readme.gentoo_print_elog -} diff --git a/games-emulation/melonds/melonds-9999.ebuild b/games-emulation/melonds/melonds-9999.ebuild index c5383c9da154..87e563f0f8c2 100644 --- a/games-emulation/melonds/melonds-9999.ebuild +++ b/games-emulation/melonds/melonds-9999.ebuild @@ -26,13 +26,11 @@ IUSE="+jit +opengl" LICENSE="BSD-2 GPL-2 GPL-3 Unlicense" SLOT="0" -# MelonDS bundles libteakra with many changes, -# for now we have to block dev-libs/teakra RDEPEND=" - !dev-libs/teakra app-arch/libarchive dev-qt/qtcore:5 dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 dev-qt/qtnetwork:5 dev-qt/qtwidgets:5 media-libs/libsdl2[sound,video] @@ -63,6 +61,7 @@ src_prepare() { src_configure() { local mycmakeargs=( + -DBUILD_SHARED_LIBS=OFF -DENABLE_JIT=$(usex jit) -DENABLE_OGLRENDERER=$(usex opengl) ) @@ -77,8 +76,6 @@ src_compile() { src_install() { readme.gentoo_create_doc cmake_src_install - - dolib.so "${BUILD_DIR}"/src/teakra/src/libteakra.so } pkg_postinst() { -- cgit v1.2.3-65-gdbad