commit:     8661758a8256de046691782730901271c55916ea
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  6 12:54:22 2017 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Fri Jan  6 12:54:40 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8661758a

dev-util/kdevelop-pg-qt: Fix build w/ sys-devel/flex-2.6.3

Revision bump adds upstream patch to fix build with sys-devel/flex-2.6.3.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../files/kdevelop-pg-qt-2.0.0-flex263.patch       | 31 ++++++++++++++++++++++
 .../kdevelop-pg-qt/kdevelop-pg-qt-2.0.0-r1.ebuild  | 25 +++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.0.0-flex263.patch 
b/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.0.0-flex263.patch
new file mode 100644
index 00000000..2f2fbee
--- /dev/null
+++ b/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.0.0-flex263.patch
@@ -0,0 +1,31 @@
+commit 7aa292e5c4b2dc2b8a420e7e8b8e32f61268fe5b
+Author: Leslie Zhai <[email protected]>
+Date:   Thu Jan 5 11:04:27 2017 +0100
+
+    Fix yymore_used_but_not_detected undefined issue
+    
+    flex-2.6.3 failed to
+    
+    ```
+      #define yymore() yymore_used_but_not_detected
+    ```
+    
+    throw yymore_used_but_not_detected undefined issue, so I simply added 
--yymore option for CMakeLists.txt
+    
+    REVIEW: 129766
+    BUG: 374523
+    FIXED-IN: 2.0.1
+
+diff --git a/kdev-pg/CMakeLists.txt b/kdev-pg/CMakeLists.txt
+index 5490835..19dc3a4 100644
+--- a/kdev-pg/CMakeLists.txt
++++ b/kdev-pg/CMakeLists.txt
+@@ -76,7 +76,7 @@ IF(FLEX_EXECUTABLE)
+         DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/kdev-pg-lexer.ll"
+                  ${OPTIONAL_PARSER_HEADER_DEPENDENCY}
+         COMMAND ${FLEX_EXECUTABLE}
+-        ARGS    --nounistd -o"${CMAKE_CURRENT_BINARY_DIR}/kdev-pg-lexer.cc"
++        ARGS    --yymore --nounistd 
-o"${CMAKE_CURRENT_BINARY_DIR}/kdev-pg-lexer.cc"
+                 "${CMAKE_CURRENT_SOURCE_DIR}/kdev-pg-lexer.ll"
+         )
+ 

diff --git a/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.0.0-r1.ebuild 
b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.0.0-r1.ebuild
new file mode 100644
index 00000000..b760d48
--- /dev/null
+++ b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.0.0-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+EGIT_BRANCH="2.0"
+KDEBASE="kdevelop"
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="LL(1) parser generator used mainly by KDevelop language plugins"
+LICENSE="LGPL-2+ LGPL-2.1+"
+IUSE=""
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+       sys-devel/bison
+       sys-devel/flex
+"
+RDEPEND="
+       !dev-util/kdevelop-pg-qt:4
+"
+
+PATCHES=( "${FILESDIR}/${P}-flex263.patch" )

Reply via email to