Skip to content

Commit

Permalink
media-libs/opencv: 3.0.0 base migration, use contrib repaired
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.24
  • Loading branch information
Amynka committed Jan 19, 2016
1 parent 75b7f6b commit 0480aac
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions media-libs/opencv/opencv-3.0.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# 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"
Expand Down Expand Up @@ -84,17 +84,13 @@ DEPEND="${RDEPEND}
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
Expand All @@ -103,7 +99,9 @@ src_prepare() {
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
}
Expand Down

0 comments on commit 0480aac

Please sign in to comment.