-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="ao +alsa openal opengl oss profile_accuracy +profile_balanced profile_performance pulseaudio qt4 +sdl udev xv"
+IUSE="ao +alsa openal opengl oss profile_accuracy +profile_balanced profile_performance pulseaudio +sdl udev xv"
REQUIRED_USE="|| ( ao openal alsa pulseaudio oss )
|| ( xv opengl sdl )
|| ( profile_accuracy profile_balanced profile_performance )"
RDEPEND="
+ x11-libs/gtk+:2
x11-libs/libX11
x11-libs/libXext
ao? ( media-libs/libao )
opengl? ( virtual/opengl )
sdl? ( media-libs/libsdl[X,joystick,video] )
udev? ( virtual/udev )
- !qt4? ( x11-libs/gtk+:2 )
- qt4? ( >=dev-qt/qtgui-4.5:4 )"
+"
DEPEND="${RDEPEND}
virtual/pkgconfig"
use sdl || disable_module input.sdl
use udev || disable_module input.udev
- # regenerate .moc if needed
- if use qt4; then
- cd phoenix/qt || die
- "$(qt4_get_bindir)"/moc -i -I. -o platform.moc platform.moc.hpp || die
- fi
-
for i in profile_accuracy profile_balanced profile_performance ; do
if use ${i} ; then
cp -dRP "${S}" "${S}_${i}" || die
src_compile() {
local mytoolkit i
- if use qt4; then
- mytoolkit="qt"
- else
- mytoolkit="gtk"
- fi
+ mytoolkit="gtk"
for i in profile_accuracy profile_balanced profile_performance ; do
if use ${i} ; then
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="ao +alsa +icarus openal opengl oss pulseaudio qt4 +sdl udev xv"
+IUSE="ao +alsa +icarus openal opengl oss pulseaudio +sdl udev xv"
REQUIRED_USE="|| ( ao openal alsa pulseaudio oss )
|| ( xv opengl sdl )"
RDEPEND="
+ x11-libs/gtk+:2
x11-libs/libX11
x11-libs/libXext
icarus? ( x11-libs/gtksourceview:2.0
opengl? ( virtual/opengl )
sdl? ( media-libs/libsdl[X,joystick,video] )
udev? ( virtual/udev )
- !qt4? ( x11-libs/gtk+:2 )
- qt4? ( dev-qt/qtcore:4
- >=dev-qt/qtgui-4.5:4 )"
+"
DEPEND="${RDEPEND}
app-arch/p7zip
virtual/pkgconfig"
# input modules
use sdl || disable_module input.sdl
use udev || disable_module input.udev
-
- # regenerate .moc if needed
- if use qt4; then
- cd hiro/qt || die
- "$(qt4_get_bindir)"/moc -i -I. -o qt.moc qt.hpp || die
- fi
}
src_compile() {
local mytoolkit
- if use qt4; then
- mytoolkit="qt"
- else
- mytoolkit="gtk"
- fi
+ mytoolkit="gtk"
if use icarus; then
cd "${S}/icarus" || die