summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmy Liffey <amynka@gentoo.org>2018-02-05 18:44:07 +0100
committerAmy Liffey <amynka@gentoo.org>2018-02-05 18:49:47 +0100
commit40e8ca0d2be44a4aaa1947e945c38630f7cc9119 (patch)
tree6d021ae55c8c2a2a294356e25011391b41f6f452 /media-libs/opencv/files
parentsys-apps/portage: remove old versions (diff)
downloadgentoo-40e8ca0d2be44a4aaa1947e945c38630f7cc9119.tar.gz
gentoo-40e8ca0d2be44a4aaa1947e945c38630f7cc9119.tar.bz2
gentoo-40e8ca0d2be44a4aaa1947e945c38630f7cc9119.zip
media-libs/opencv: add missing patch
Closes: https://bugs.gentoo.org/646582 Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'media-libs/opencv/files')
-rw-r--r--media-libs/opencv/files/opencv-3.3.0-remove-tiny-dnn-autodownload.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/media-libs/opencv/files/opencv-3.3.0-remove-tiny-dnn-autodownload.patch b/media-libs/opencv/files/opencv-3.3.0-remove-tiny-dnn-autodownload.patch
new file mode 100644
index 000000000000..6929a4c2ce4c
--- /dev/null
+++ b/media-libs/opencv/files/opencv-3.3.0-remove-tiny-dnn-autodownload.patch
@@ -0,0 +1,27 @@
+diff -purN a/modules/dnn_modern/CMakeLists.txt b/modules/dnn_modern/CMakeLists.txt
+--- a/modules/dnn_modern/CMakeLists.txt 2017-07-31 15:58:38.000000000 +0100
++++ b/modules/dnn_modern/CMakeLists.txt 2018-01-15 17:15:15.202454388 +0000
+@@ -15,23 +15,6 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CU
+ # MODULE REQUIREMENTS
+ # ----------------------------------------------------------------------------
+
+-set(TINY_DNN_CPP_PATH "${OpenCV_BINARY_DIR}/3rdparty/tinydnn")
+-set(TINY_DNN_CPP_ROOT "${TINY_DNN_CPP_PATH}/tiny-dnn-1.0.0a3")
+-ocv_download(FILENAME "v1.0.0a3.tar.gz"
+- HASH "adb1c512e09ca2c7a6faef36f9c53e59"
+- URL
+- "${OPENCV_TINY_DNN_URL}"
+- "$ENV{OPENCV_TINY_DNN_URL}"
+- "https://github.com/tiny-dnn/tiny-dnn/archive/"
+- DESTINATION_DIR "${TINY_DNN_CPP_PATH}"
+- STATUS TINY_DNN_DOWNLOAD_SUCCESS
+- ID "tiny-dnn"
+- UNPACK RELATIVE_URL)
+-
+-if(NOT TINY_DNN_DOWNLOAD_SUCCESS)
+- message(STATUS "Failed to download tiny-dnn sources")
+-endif()
+-
+ find_package(TinyDNN QUIET)
+
+ include(CheckCXXCompilerFlag)