summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/ppsspp/ppsspp-1.1.1.ebuild')
-rw-r--r--games-emulation/ppsspp/ppsspp-1.1.1.ebuild32
1 files changed, 28 insertions, 4 deletions
diff --git a/games-emulation/ppsspp/ppsspp-1.1.1.ebuild b/games-emulation/ppsspp/ppsspp-1.1.1.ebuild
index 6de52a1e6eb8..38dc3920e359 100644
--- a/games-emulation/ppsspp/ppsspp-1.1.1.ebuild
+++ b/games-emulation/ppsspp/ppsspp-1.1.1.ebuild
@@ -8,15 +8,15 @@ inherit eutils cmake-utils qt4-r2 git-r3
DESCRIPTION="A PSP emulator written in C++."
HOMEPAGE="http://www.ppsspp.org/"
-EGIT_REPO_URI="git://github.com/hrydgard/ppsspp.git"
+EGIT_REPO_URI="git://github.com/hrydgard/${PN}.git"
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