diff options
author | Maciej Barć <xgqt@gentoo.org> | 2021-11-26 11:01:13 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2021-11-26 11:01:28 +0100 |
commit | fc66d7d2a987626a597f05485a3ad5c0f06a638e (patch) | |
tree | 4e33111fbbf4bf58c23bd0c6edd1953f3018473b /games-emulation/melonds/melonds-0.9.3.ebuild | |
parent | dev-util/yamllint: initial import (diff) | |
download | gentoo-fc66d7d2a987626a597f05485a3ad5c0f06a638e.tar.gz gentoo-fc66d7d2a987626a597f05485a3ad5c0f06a638e.tar.bz2 gentoo-fc66d7d2a987626a597f05485a3ad5c0f06a638e.zip |
games-emulation/melonds: new package; add version 0.9.3 and live
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'games-emulation/melonds/melonds-0.9.3.ebuild')
-rw-r--r-- | games-emulation/melonds/melonds-0.9.3.ebuild | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/games-emulation/melonds/melonds-0.9.3.ebuild b/games-emulation/melonds/melonds-0.9.3.ebuild new file mode 100644 index 000000000000..840aa5476022 --- /dev/null +++ b/games-emulation/melonds/melonds-0.9.3.ebuild @@ -0,0 +1,83 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# NOTICE: +# melonds bundles teakra, its upstream haven't had a release since 2020 + +EAPI=8 + +MY_PN="melonDS" +MY_P="${MY_PN}-${PV}" + +inherit cmake flag-o-matic 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" + KEYWORDS="~amd64" + S="${WORKDIR}/${MY_P}" +fi + +IUSE="+jit +opengl" +LICENSE="BSD-2 GPL-2 GPL-3 Unlicense" +SLOT="0" + +DEPEND=" + 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 ) +" +RDEPEND="${DEPEND}" + +# used for JIT recompiler +QA_EXECSTACK="usr/bin/melonDS" + +src_prepare() { + 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() { + # install teakra + dolib.so "${BUILD_DIR}/src/teakra/src/libteakra.so" + + cmake_src_install +} + +pkg_postinst() { + xdg_pkg_postinst + + elog "You need the following files in order to run melonDS:" + elog "- bios7.bin" + elog "- bios9.bin" + elog "- firmware.bin" + elog "- romlist.bin" + elog "Place them in ~/.config/melonDS" + elog "Those files can be found somewhere on the Internet ;-)" +} |