Skip to content

Commit

Permalink
app-accessibility/simon: Fix build w/ opencv3, bug 558534
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.24
  • Loading branch information
a17r authored and Michael Palimaka committed Dec 27, 2015
1 parent 7791140 commit 3ffe920
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
20 changes: 20 additions & 0 deletions app-accessibility/simon/files/simon-0.4.1-opencv-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
From: Peter Grasch <[email protected]>
Date: Sat, 25 Jul 2015 08:45:03 +0000
Subject: Adding OpenCV include directories to include path
X-Git-Url: http://quickgit.kde.org/?p=simon.git&a=commitdiff&h=b4e663e5cc36511b15ef20865c723182cd3d88c9
---
Adding OpenCV include directories to include path
---


--- a/cmake/FindOpenCV.cmake
+++ b/cmake/FindOpenCV.cmake
@@ -61,6 +61,7 @@

## Include the standard CMake script
include("${OpenCV_DIR}/OpenCVConfig.cmake")
+ include_directories(${OpenCV_INCLUDE_DIRS})

## Search for a specific version
set(CVLIB_SUFFIX "${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH}")

11 changes: 6 additions & 5 deletions app-accessibility/simon/simon-0.4.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"

src_prepare() {
epatch "${FILESDIR}"/${P}-libdir.patch \
"${FILESDIR}"/${P}-linguas.patch \
"${FILESDIR}"/${P}-sphinx.patch
}
PATCHES=(
"${FILESDIR}"/${P}-libdir.patch
"${FILESDIR}"/${P}-linguas.patch
"${FILESDIR}"/${P}-sphinx.patch
"${FILESDIR}"/${P}-opencv-include.patch
)

src_configure() {
local mycmakeargs=(
Expand Down

0 comments on commit 3ffe920

Please sign in to comment.