summaryrefslogtreecommitdiff
path: root/sci-libs/libgeodecomp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
commit129160ec854dca4c3fedb5bcfbcb56930371da0f (patch)
tree53bf797418ac5e9b99c41ca0382c87b82421e5de /sci-libs/libgeodecomp
parent441d1370330332b7d78f238d2f5e13f7aed5e4e0 (diff)
gentoo new year resync : 01.01.2021
Diffstat (limited to 'sci-libs/libgeodecomp')
-rw-r--r--sci-libs/libgeodecomp/Manifest3
-rw-r--r--sci-libs/libgeodecomp/files/libgeodecomp-0.5.0_pre20201009-opencv.patch186
-rw-r--r--sci-libs/libgeodecomp/libgeodecomp-0.5.0_pre20201009.ebuild5
3 files changed, 192 insertions, 2 deletions
diff --git a/sci-libs/libgeodecomp/Manifest b/sci-libs/libgeodecomp/Manifest
index 9098e3462e23..fce978984a62 100644
--- a/sci-libs/libgeodecomp/Manifest
+++ b/sci-libs/libgeodecomp/Manifest
@@ -1,4 +1,5 @@
AUX libgeodecomp-0.5.0_pre20201009-mpi.patch 13752 BLAKE2B ed5e2cafc0c8777e30ecf7e3b896aab1226b110c948e984dabf15d0bb85fa931f6991e1c108e55bab4016131c6f142d589500004e4ac76cb840c41eb975f41ea SHA512 b33ddbe1e0293e14b9f6b2a982cf8717d5c6dbceb34c476a5896c2eb3776ecbac9e219f11b9aea6a10a108b1fae3a2b373976e7636ff80b0f381b6bd4e1b0722
+AUX libgeodecomp-0.5.0_pre20201009-opencv.patch 8236 BLAKE2B 34225d96e409d5c6921042279cef75f1affd3ce0fc038cbd8f9dfd591bfbded0a38e9b88603730954c3b0babc81f89fbb850bacb200b3c1145277903cb01b314 SHA512 5345088f5b6ea4ccb8c40e77c1eb949695aa4a0a2d82b703caa2bcd4f54952c335e0e8fba433b8c4a6a4695637387a9d42d4e880022654bc8abb2c8640bb820a
DIST libgeodecomp-0.5.0_pre20201009.tar.gz 1510212 BLAKE2B fdddf8ef8dd93d0a4860dbde27d1e59bda039b27ff7526a1ddfb6cfe8103f54edd2a847dad2ffa1cdc0c4454b2d48e0df7e5f941ad2a9df9c848868817413b03 SHA512 42a28fcce6408c610265f8cde9c9d46e83519a8ec4a3e6b1f0e6637597b4b9a702c43655f9c1cf5a159012533f2c2e937de21bda2aed54cdd6acd19ec5b4030a
-EBUILD libgeodecomp-0.5.0_pre20201009.ebuild 1673 BLAKE2B b00edfd28376b55f0c5772d6bff2994ea151bd2e29822594059678e262b324925fdd14e4f4e5fa415ed26e08267ef1ac926e942c0dedeab20e142527fdedc178 SHA512 6c9b30a02ad8cf246b0c5fb26c113671875426213320f6f80b33b92a99ad0a8ae7e7930c436fdf4e1af8de9cb0d0787bc9f2b1ee290400862a6a2fab8a76e315
+EBUILD libgeodecomp-0.5.0_pre20201009.ebuild 1707 BLAKE2B db611929f80ba61f318722b4748d8a6e7fb3960a4586a86068445929895984c58c9cc807d94ca9c3f7a220aca69cdccff3d39dc9194926b5a95e740a129fa5df SHA512 d8cd7e45686cf0d40cfd19c347fccf5bf13e435c49bb27b7411f602357c7fac9346af91ab5468b44415a912ff5d9e53a03da549f0f67738532160c00b0b6aad9
MISC metadata.xml 1345 BLAKE2B d6cb11021ade1a8c9007bf7a57c1e9355e19331498b66f746405bbd52dd5562656e827ab1db290190c37b283f579512609cf730d0ea27f6c31629d7e1fc38266 SHA512 f377ab4249dc9bb3dc2518e7d86ad6c2b44cd1249474480a5a71aa5b944c220ddc1608a8171d1abeaffa3d4628f4f327956cfb412ac14336f75705b7d8fe0fd9
diff --git a/sci-libs/libgeodecomp/files/libgeodecomp-0.5.0_pre20201009-opencv.patch b/sci-libs/libgeodecomp/files/libgeodecomp-0.5.0_pre20201009-opencv.patch
new file mode 100644
index 000000000000..0a0632812493
--- /dev/null
+++ b/sci-libs/libgeodecomp/files/libgeodecomp-0.5.0_pre20201009-opencv.patch
@@ -0,0 +1,186 @@
+From 3a20ca303ccc8d9d7cfd9787b392f1436d266243 Mon Sep 17 00:00:00 2001
+From: Kurt Kanzenbach <kurt@kmk-computers.de>
+Date: Mon, 28 Dec 2020 15:03:16 +0100
+Subject: [PATCH] cmake: Fix build with OpenCV
+
+The FindOpenCV module assumes that OpenCV in installed into a separate
+directory which makes sense for cluster machines etc.
+
+However, on Gentoo OpenCV is installed by portage and the corresponding Cmake
+module can be used directly.
+
+Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
+---
+ CMakeModules/FindOpenCV.cmake | 160 ----------------------------------
+ 1 file changed, 160 deletions(-)
+ delete mode 100644 CMakeModules/FindOpenCV.cmake
+
+diff --git a/CMakeModules/FindOpenCV.cmake b/CMakeModules/FindOpenCV.cmake
+deleted file mode 100644
+index 68d629da5a4d..000000000000
+--- a/CMakeModules/FindOpenCV.cmake
++++ /dev/null
+@@ -1,160 +0,0 @@
+-###########################################################
+-# Find OpenCV Library
+-# See http://sourceforge.net/projects/opencvlibrary/
+-#----------------------------------------------------------
+-#
+-## 1: Setup:
+-# The following variables are optionally searched for defaults
+-# OpenCV_DIR: Base directory of OpenCv tree to use.
+-#
+-## 2: Variable
+-# The following are set after configuration is done:
+-#
+-# OpenCV_FOUND
+-# OpenCV_LIBS
+-# OpenCV_INCLUDE_DIR
+-# OpenCV_VERSION (OpenCV_VERSION_MAJOR, OpenCV_VERSION_MINOR, OpenCV_VERSION_PATCH)
+-#
+-#
+-# Deprecated variable are used to maintain backward compatibility with
+-# the script of Jan Woetzel (2006/09): www.mip.informatik.uni-kiel.de/~jw
+-# OpenCV_INCLUDE_DIRS
+-# OpenCV_LIBRARIES
+-# OpenCV_LINK_DIRECTORIES
+-#
+-## 3: Version
+-#
+-# 2010/04/07 Benoit Rat, Correct a bug when OpenCVConfig.cmake is not found.
+-# 2010/03/24 Benoit Rat, Add compatibility for when OpenCVConfig.cmake is not found.
+-# 2010/03/22 Benoit Rat, Creation of the script.
+-#
+-#
+-# tested with:
+-# - OpenCV 2.1: MinGW, MSVC2008
+-# - OpenCV 2.0: MinGW, MSVC2008, GCC4
+-#
+-#
+-## 4: Licence:
+-#
+-# LGPL 2.1 : GNU Lesser General Public License Usage
+-# Alternatively, this file may be used under the terms of the GNU Lesser
+-
+-# General Public License version 2.1 as published by the Free Software
+-# Foundation and appearing in the file LICENSE.LGPL included in the
+-# packaging of this file. Please review the following information to
+-# ensure the GNU Lesser General Public License version 2.1 requirements
+-# will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+-#
+-#----------------------------------------------------------
+-
+-
+-find_path(OpenCV_DIR "OpenCVConfig.cmake" /usr/share/OpenCV DOC "Root directory of OpenCV")
+-
+-##====================================================
+-## Find OpenCV libraries
+-##----------------------------------------------------
+-if(EXISTS "${OpenCV_DIR}")
+-
+- #When its possible to use the Config script use it.
+- if(EXISTS "${OpenCV_DIR}/OpenCVConfig.cmake")
+-
+- ## Include the standard CMake script
+- include("${OpenCV_DIR}/OpenCVConfig.cmake")
+-
+- ## Search for a specific version
+- set(CVLIB_SUFFIX "${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH}")
+-
+- #Otherwise it try to guess it.
+- else(EXISTS "${OpenCV_DIR}/OpenCVConfig.cmake")
+-
+- set(OPENCV_LIB_COMPONENTS cxcore cv ml highgui cvaux)
+- find_path(OpenCV_INCLUDE_DIR "cv.h" PATHS "${OpenCV_DIR}" PATH_SUFFIXES "include" "include/opencv" DOC "")
+- if(EXISTS ${OpenCV_INCLUDE_DIR})
+- include_directories(${OpenCV_INCLUDE_DIR})
+- endif(EXISTS ${OpenCV_INCLUDE_DIR})
+-
+- #Find OpenCV version by looking at cvver.h
+- file(STRINGS ${OpenCV_INCLUDE_DIR}/cvver.h OpenCV_VERSIONS_TMP REGEX "^#define CV_[A-Z]+_VERSION[ \t]+[0-9]+$")
+- string(REGEX REPLACE ".*#define CV_MAJOR_VERSION[ \t]+([0-9]+).*" "\\1" OpenCV_VERSION_MAJOR ${OpenCV_VERSIONS_TMP})
+- string(REGEX REPLACE ".*#define CV_MINOR_VERSION[ \t]+([0-9]+).*" "\\1" OpenCV_VERSION_MINOR ${OpenCV_VERSIONS_TMP})
+- string(REGEX REPLACE ".*#define CV_SUBMINOR_VERSION[ \t]+([0-9]+).*" "\\1" OpenCV_VERSION_PATCH ${OpenCV_VERSIONS_TMP})
+- set(OpenCV_VERSION ${OpenCV_VERSION_MAJOR}.${OpenCV_VERSION_MINOR}.${OpenCV_VERSION_PATCH} CACHE STRING "" FORCE)
+- set(CVLIB_SUFFIX "${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH}")
+-
+- endif(EXISTS "${OpenCV_DIR}/OpenCVConfig.cmake")
+-
+-
+-
+-
+- ## Initiate the variable before the loop
+- set(GLOBAL OpenCV_LIBS "")
+- set(OpenCV_FOUND_TMP true)
+-
+- ## Loop over each components
+- foreach(__CVLIB ${OPENCV_LIB_COMPONENTS})
+-
+- find_library(OpenCV_${__CVLIB}_LIBRARY_DEBUG NAMES "${__CVLIB}${CVLIB_SUFFIX}d" "lib${__CVLIB}${CVLIB_SUFFIX}d" PATHS "${OpenCV_DIR}/lib" NO_DEFAULT_PATH)
+- find_library(OpenCV_${__CVLIB}_LIBRARY_RELEASE NAMES "${__CVLIB}${CVLIB_SUFFIX}" "lib${__CVLIB}${CVLIB_SUFFIX}" PATHS "${OpenCV_DIR}/lib" NO_DEFAULT_PATH)
+-
+- #Remove the cache value
+- set(OpenCV_${__CVLIB}_LIBRARY "" CACHE STRING "" FORCE)
+-
+- #both debug/release
+- if(OpenCV_${__CVLIB}_LIBRARY_DEBUG AND OpenCV_${__CVLIB}_LIBRARY_RELEASE)
+- set(OpenCV_${__CVLIB}_LIBRARY debug ${OpenCV_${__CVLIB}_LIBRARY_DEBUG} optimized ${OpenCV_${__CVLIB}_LIBRARY_RELEASE} CACHE STRING "" FORCE)
+- #only debug
+- elseif(OpenCV_${__CVLIB}_LIBRARY_DEBUG)
+- set(OpenCV_${__CVLIB}_LIBRARY ${OpenCV_${__CVLIB}_LIBRARY_DEBUG} CACHE STRING "" FORCE)
+- #only release
+- elseif(OpenCV_${__CVLIB}_LIBRARY_RELEASE)
+- set(OpenCV_${__CVLIB}_LIBRARY ${OpenCV_${__CVLIB}_LIBRARY_RELEASE} CACHE STRING "" FORCE)
+- #no library found
+- else()
+- set(OpenCV_FOUND_TMP false)
+- endif()
+-
+- #Add to the general list
+- if(OpenCV_${__CVLIB}_LIBRARY)
+- set(OpenCV_LIBS ${OpenCV_LIBS} ${OpenCV_${__CVLIB}_LIBRARY})
+- endif(OpenCV_${__CVLIB}_LIBRARY)
+-
+- endforeach(__CVLIB)
+-
+-
+- set(OpenCV_FOUND ${OpenCV_FOUND_TMP} CACHE BOOL "" FORCE)
+-
+-
+-else(EXISTS "${OpenCV_DIR}")
+- set(ERR_MSG "Please specify OpenCV directory using OpenCV_DIR env. variable")
+-endif(EXISTS "${OpenCV_DIR}")
+-##====================================================
+-
+-
+-##====================================================
+-## Print message
+-##----------------------------------------------------
+-if(NOT OpenCV_FOUND)
+- # make FIND_PACKAGE friendly
+- if(NOT OpenCV_FIND_QUIETLY)
+- if(OpenCV_FIND_REQUIRED)
+- message(FATAL_ERROR "OpenCV required but some headers or libs not found. ${ERR_MSG}")
+- else(OpenCV_FIND_REQUIRED)
+- message(STATUS "WARNING: OpenCV was not found. ${ERR_MSG}")
+- endif(OpenCV_FIND_REQUIRED)
+- endif(NOT OpenCV_FIND_QUIETLY)
+-endif(NOT OpenCV_FOUND)
+-##====================================================
+-
+-
+-##====================================================
+-## Backward compatibility
+-##----------------------------------------------------
+-if(OpenCV_FOUND)
+- option(OpenCV_BACKWARD_COMPA "Add some variable to make this script compatible with the other version of FindOpenCV.cmake" false)
+- if(OpenCV_BACKWARD_COMPA)
+- find_path(OpenCV_INCLUDE_DIRS "cv.h" PATHS "${OpenCV_DIR}" PATH_SUFFIXES "include" "include/opencv" DOC "Include directory")
+- find_path(OpenCV_INCLUDE_DIR "cv.h" PATHS "${OpenCV_DIR}" PATH_SUFFIXES "include" "include/opencv" DOC "Include directory")
+- set(OpenCV_LIBRARIES "${OpenCV_LIBS}" CACHE STRING "" FORCE)
+- endif(OpenCV_BACKWARD_COMPA)
+-endif(OpenCV_FOUND)
+-##====================================================
+--
+2.26.2
+
diff --git a/sci-libs/libgeodecomp/libgeodecomp-0.5.0_pre20201009.ebuild b/sci-libs/libgeodecomp/libgeodecomp-0.5.0_pre20201009.ebuild
index 70aa22852709..3b63da935131 100644
--- a/sci-libs/libgeodecomp/libgeodecomp-0.5.0_pre20201009.ebuild
+++ b/sci-libs/libgeodecomp/libgeodecomp-0.5.0_pre20201009.ebuild
@@ -42,7 +42,10 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/libgeodecomp-${MY_COMMIT}"
-PATCHES=( "${FILESDIR}/${P}-mpi.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-mpi.patch"
+ "${FILESDIR}/${P}-opencv.patch"
+)
DOCS=( README )