-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
-inherit base toolchain-funcs cmake-utils python-single-r1 java-pkg-opt-2 java-ant-2
+inherit toolchain-funcs cmake-utils python-single-r1 java-pkg-opt-2 java-ant-2
DESCRIPTION="A collection of algorithms and sample code for various computer vision problems"
HOMEPAGE="http://opencv.org"
java? ( >=virtual/jdk-1.6 )
"
-PATCHES=(
- "${FILESDIR}/${P}-gles.patch"
-)
-
pkg_setup() {
use python && python-single-r1_pkg_setup
java-pkg-opt-2_pkg_setup
}
src_prepare() {
- base_src_prepare
+ epatch "${FILESDIR}/${P}-gles.patch"
# remove bundled stuff
rm -rf 3rdparty
CMakeLists.txt cmake/*cmake || die
#removing broken sample bug #558104
- rm ../opencv_contrib-master/modules/ximgproc/samples/disparity_filtering.cpp
+ if use contrib; then
+ rm ../opencv_contrib-master/modules/ximgproc/samples/disparity_filtering.cpp
+ fi
java-pkg-opt-2_src_prepare
}