2020-04-11 00:21:32 +02:00
|
|
|
# Copyright 2019-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
MY_PN="melonDS"
|
|
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
|
2020-07-24 06:04:00 +02:00
|
|
|
inherit eutils xdg cmake
|
2020-04-11 00:21:32 +02:00
|
|
|
|
2020-09-07 00:14:02 +02:00
|
|
|
DESCRIPTION="Nintendo DS emulator, sorta"
|
2020-04-11 00:21:32 +02:00
|
|
|
HOMEPAGE="http://melonds.kuribo64.net/"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
RESTRICT="mirror"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="
|
2020-09-07 00:14:02 +02:00
|
|
|
dev-qt/qtcore:5
|
|
|
|
dev-qt/qtdeclarative:5
|
|
|
|
dev-qt/qtgui:5
|
|
|
|
dev-qt/qtwidgets:5
|
2020-04-11 00:21:32 +02:00
|
|
|
media-libs/libsdl2[sound,video]
|
2020-09-07 00:14:02 +02:00
|
|
|
net-libs/gnutls
|
2020-04-11 00:21:32 +02:00
|
|
|
net-libs/libpcap
|
2020-07-30 00:24:35 +02:00
|
|
|
net-libs/libslirp
|
2020-04-11 00:21:32 +02:00
|
|
|
net-misc/curl
|
|
|
|
x11-libs/cairo
|
|
|
|
x11-libs/gtk+:3
|
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
${DEPEND}
|
|
|
|
"
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
xdg_desktop_database_update
|
2020-07-24 06:04:00 +02:00
|
|
|
xdg_icon_cache_update
|
2020-09-07 00:14:02 +02:00
|
|
|
|
2020-04-11 00:21:32 +02:00
|
|
|
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"
|
2020-09-07 00:26:30 +02:00
|
|
|
elog "Those files can be found somewhere on the Internet ;-)"
|
2020-04-11 00:21:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
xdg_desktop_database_update
|
2020-07-24 06:04:00 +02:00
|
|
|
xdg_icon_cache_update
|
2020-04-11 00:21:32 +02:00
|
|
|
}
|