summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/ppsspp/ppsspp-1.1.0.ebuild')
-rw-r--r--games-emulation/ppsspp/ppsspp-1.1.0.ebuild30
1 files changed, 27 insertions, 3 deletions
diff --git a/games-emulation/ppsspp/ppsspp-1.1.0.ebuild b/games-emulation/ppsspp/ppsspp-1.1.0.ebuild
index 6bc431f28603..38dc3920e359 100644
--- a/games-emulation/ppsspp/ppsspp-1.1.0.ebuild
+++ b/games-emulation/ppsspp/ppsspp-1.1.0.ebuild
@@ -14,9 +14,9 @@ EGIT_COMMIT="v${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="qt4 +sdl"
+IUSE="qt4 qt5 +sdl"
REQUIRED_USE="
- ?? ( qt4 sdl )
+ ?? ( qt4 qt5 sdl )
"
RDEPEND=""
@@ -36,6 +36,15 @@ DEPEND="
dev-qt/qtmultimedia:4
dev-qt/qt-mobility[multimedia]
)
+ qt5? (
+ dev-qt/qtsvg:5
+ dev-qt/qtgui:5
+ dev-qt/qtcore:5
+ dev-qt/qtopengl:5
+ dev-qt/qtmultimedia:5
+ dev-qt/qtwidgets
+ dev-qt/qt-mobility[multimedia]
+ )
"
src_unpack() {
@@ -44,8 +53,10 @@ src_unpack() {
if use qt4 ; then
cd "${WORKDIR}"/"${P}"/Qt || die
qt4-r2_src_unpack
+ elif use qt5 ; then
+ cd "${WORKDIR}"/"${P}"/Qt || die
+ qt4-r2_src_unpack
fi
- cp /usr/portage/distfiles/ppsspp-icon.png "${WORKDIR}"/"${P}"/
}
src_prepare() {
@@ -56,6 +67,9 @@ src_prepare() {
if use qt4 ; then
cd "${WORKDIR}"/"${P}"/Qt || die
qt4-r2_src_prepare
+ elif use qt5 ; then
+ cd "${WORKDIR}"/"${P}"/Qt || die
+ qt4-r2_src_prepare
else
cmake-utils_src_prepare
fi
@@ -66,6 +80,10 @@ src_configure() {
cd "${WORKDIR}"/"${P}"/Qt || die
qt4-r2_src_configure
eqmake4 "${WORKDIR}"/"${P}"/Qt/PPSSPPQt.pro
+ elif use qt5 ; then
+ cd "${WORKDIR}"/"${P}"/Qt || die
+ qt4-r2_src_configure
+ eqmake5 "${WORKDIR}"/"${P}"/Qt/PPSSPPQt.pro
else
cmake-utils_src_configure
fi
@@ -75,6 +93,9 @@ src_compile() {
if use qt4 ; then
cd "${WORKDIR}"/"${P}"/Qt || die
qt4-r2_src_compile
+ elif use qt5 ; then
+ cd "${WORKDIR}"/"${P}"/Qt || die
+ qt4-r2_src_compile
else
cmake-utils_src_compile
fi
@@ -84,6 +105,9 @@ src_install() {
if use qt4 ; then
exeinto /usr/games/bin
newexe "${WORKDIR}"/"${P}"/Qt/ppsspp ppsspp
+ elif use qt5 ; then
+ exeinto /usr/games/bin
+ newexe "${WORKDIR}"/"${P}"/Qt/ppsspp ppsspp
else
exeinto /usr/games
dobin "${FILESDIR}"/ppsspp