summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-util/qjoypad')
-rw-r--r--games-util/qjoypad/files/qjoypad-4.3.0-cmake.patch14
-rw-r--r--games-util/qjoypad/qjoypad-4.3.0.ebuild10
2 files changed, 21 insertions, 3 deletions
diff --git a/games-util/qjoypad/files/qjoypad-4.3.0-cmake.patch b/games-util/qjoypad/files/qjoypad-4.3.0-cmake.patch
new file mode 100644
index 000000000000..da2ce50c8020
--- /dev/null
+++ b/games-util/qjoypad/files/qjoypad-4.3.0-cmake.patch
@@ -0,0 +1,14 @@
+--- a/CMakeLists.txt 2016-04-03 01:17:15.000000000 +0200
++++ b/CMakeLists.txt 2019-11-08 21:38:16.713130838 +0100
+@@ -39,11 +39,6 @@
+ add_definitions(-DPLAIN_KEYS)
+ endif()
+
+-if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -pedantic -Wno-variadic-macros")
+- set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
+-endif()
+-
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
+
+ # for config.h
diff --git a/games-util/qjoypad/qjoypad-4.3.0.ebuild b/games-util/qjoypad/qjoypad-4.3.0.ebuild
index a1572020293d..71d99ae8ad0c 100644
--- a/games-util/qjoypad/qjoypad-4.3.0.ebuild
+++ b/games-util/qjoypad/qjoypad-4.3.0.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit cmake-utils desktop
@@ -14,6 +14,9 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
+BDEPEND="
+ dev-qt/linguist-tools:5
+"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
@@ -24,10 +27,11 @@ RDEPEND="
x11-libs/libXtst
"
DEPEND="${RDEPEND}
- dev-qt/linguist-tools:5
x11-base/xorg-proto
"
+PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
+
src_install() {
cmake-utils_src_install