Gentoo Archives: gentoo-commits

From: Tomas Chvatal <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: media-libs/opencv/files/, media-libs/opencv/
Date: Sat, 30 Apr 2011 09:59:10
Message-Id: f6882a3d2fce1d9fcfb9961bc0100cffd29522f2.scarabeus@gentoo
1 commit: f6882a3d2fce1d9fcfb9961bc0100cffd29522f2
2 Author: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 30 09:58:37 2011 +0000
4 Commit: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 30 09:58:37 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=f6882a3d
7
8 [media-libs/opencv] Use proper libdir for pkgconfig file. Do not needlesly optimize python.
9
10 ---
11 .../files/2.2.0-convert_sets_to_options.patch | 12 ++++++++++--
12 .../opencv/files/2.2.0-use_system_libs.patch | 5 ++---
13 media-libs/opencv/opencv-2.2.0.ebuild | 12 ++----------
14 3 files changed, 14 insertions(+), 15 deletions(-)
15
16 diff --git a/media-libs/opencv/files/2.2.0-convert_sets_to_options.patch b/media-libs/opencv/files/2.2.0-convert_sets_to_options.patch
17 index af057fc..7da06cb 100644
18 --- a/media-libs/opencv/files/2.2.0-convert_sets_to_options.patch
19 +++ b/media-libs/opencv/files/2.2.0-convert_sets_to_options.patch
20 @@ -1,6 +1,6 @@
21 diff -urN OpenCV-2.2.0.old/CMakeLists.txt OpenCV-2.2.0.new/CMakeLists.txt
22 --- OpenCV-2.2.0.old/CMakeLists.txt 2010-12-05 04:35:23.000000000 +0100
23 -+++ OpenCV-2.2.0.new/CMakeLists.txt 2011-04-30 10:49:01.000000000 +0200
24 ++++ OpenCV-2.2.0.new/CMakeLists.txt 2011-04-30 11:57:37.000000000 +0200
25 @@ -13,7 +13,7 @@
26 # Add these standard paths to the search paths for FIND_LIBRARY
27 # to find libraries from these locations first
28 @@ -219,7 +219,7 @@ diff -urN OpenCV-2.2.0.old/CMakeLists.txt OpenCV-2.2.0.new/CMakeLists.txt
29
30 exec_program(mkdir ARGS "-p \"${CMAKE_BINARY_DIR}/unix-install/\"" OUTPUT_VARIABLE RET_VAL)
31 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/OpenCVConfig.cmake.in" "${CMAKE_BINARY_DIR}/unix-install/OpenCVConfig.cmake" IMMEDIATE @ONLY)
32 -@@ -1164,7 +1161,7 @@
33 +@@ -1164,14 +1161,14 @@
34 # -------------------------------------------------------------------------------------------
35 set(prefix ${CMAKE_INSTALL_PREFIX})
36 set(exec_prefix "\${prefix}")
37 @@ -228,6 +228,14 @@ diff -urN OpenCV-2.2.0.old/CMakeLists.txt OpenCV-2.2.0.new/CMakeLists.txt
38 set(includedir "\${prefix}/include")
39 set(VERSION ${OPENCV_VERSION})
40
41 + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/opencv.pc.cmake.in" "${CMAKE_BINARY_DIR}/unix-install/opencv.pc" @ONLY IMMEDIATE)
42 +
43 + if(UNIX)
44 +- install(FILES ${CMAKE_BINARY_DIR}/unix-install/opencv.pc DESTINATION lib/pkgconfig)
45 ++ install(FILES ${CMAKE_BINARY_DIR}/unix-install/opencv.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig)
46 + endif()
47 +
48 +
49 @@ -1191,7 +1188,7 @@
50 # CPack target
51 # ----------------------------------------------------------------------------
52
53 diff --git a/media-libs/opencv/files/2.2.0-use_system_libs.patch b/media-libs/opencv/files/2.2.0-use_system_libs.patch
54 index 6685e92..5d22a9b 100644
55 --- a/media-libs/opencv/files/2.2.0-use_system_libs.patch
56 +++ b/media-libs/opencv/files/2.2.0-use_system_libs.patch
57 @@ -24,13 +24,12 @@ diff -urN OpenCV-2.2.0.old/modules/core/CMakeLists.txt OpenCV-2.2.0/modules/core
58 define_opencv_module(core ${deps})
59 diff -urN OpenCV-2.2.0.old/modules/core/src/lapack.cpp OpenCV-2.2.0/modules/core/src/lapack.cpp
60 --- OpenCV-2.2.0.old/modules/core/src/lapack.cpp 2010-12-05 04:35:24.000000000 +0100
61 -+++ OpenCV-2.2.0/modules/core/src/lapack.cpp 2011-04-29 22:11:31.000000000 +0200
62 -@@ -48,7 +48,8 @@
63 ++++ OpenCV-2.2.0/modules/core/src/lapack.cpp 2011-04-30 11:50:09.000000000 +0200
64 +@@ -48,7 +48,7 @@
65 typedef __CLPK_integer integer;
66 typedef __CLPK_real real;
67 #else
68 - #include "clapack.h"
69 -+ #include <f2c.h>
70 + #include <clapack/clapack.h>
71 #endif
72
73
74 diff --git a/media-libs/opencv/opencv-2.2.0.ebuild b/media-libs/opencv/opencv-2.2.0.ebuild
75 index 81e1cd7..0b4465f 100644
76 --- a/media-libs/opencv/opencv-2.2.0.ebuild
77 +++ b/media-libs/opencv/opencv-2.2.0.ebuild
78 @@ -23,7 +23,7 @@ RDEPEND="
79 app-arch/bzip2
80 dev-libs/libf2c
81 sys-libs/zlib
82 - sci-libs/clapack
83 + >=sci-libs/clapack-3.2.1-r4
84 sci-libs/flann
85 virtual/lapack
86 cuda? ( dev-util/nvidia-cuda-toolkit )
87 @@ -146,16 +146,8 @@ src_configure() {
88 mycmakeargs+=(
89 "-DCMAKE_SKIP_RPATH=ON"
90 "-DBUILD_SHARED_LIBS=ON"
91 - "-DOPENCV_DOC_INSTALL_PATH=share/doc/${PF}"
92 + "-DOPENCV_DOC_INSTALL_PATH=${EPREFIX}/usr/share/doc/${PF}"
93 )
94
95 cmake-utils_src_configure
96 }
97 -
98 -pkg_postinst() {
99 - use python && python_mod_optimize opencv
100 -}
101 -
102 -pkg_postrm() {
103 - use python && python_mod_cleanup opencv
104 -}