blob: 06dc4fd58a0d7b2246e23e3f15276500f77b7afd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 2018-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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 -> ${P}.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-1.3 >=dev-libs/quazip-1.3[qt5] )
"
DEPEND=">=games-emulation/mupen64plus-core-2.5
${RDEPEND}"
src_prepare() {
sed -i -e '/include.*quazip5/s:quazip5/::' \
src/emulation/emulatorhandler.cpp src/common.cpp || die
sed -i -e 's/lquazip5/lquazip1-qt5/' mupen64plus-qt.pro || die
default
}
src_configure() {
eqmake5
sed -i -e "/INCPATH/s:\$: $(pkg-config --cflags-only-I quazip1-qt5):" Makefile || die
}
src_install() {
dobin ${PN}
dodoc README.md
doman resources/${PN}.6
domenu resources/${PN}.desktop
newicon resources/images/mupen64plus.png ${PN}.png
}
|