with opencv-4.2.1-r1 installed pkg-config --cflags opencv4 gives -I/usr/include/opencv4/opencv -I/usr/include/opencv4 BUT all headers are installed into /usr/include/opencv4/opencv2
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93efdf78e5dea766ec0fb02840a59698a88b905b commit 93efdf78e5dea766ec0fb02840a59698a88b905b Author: Amy Liffey <amynka@gentoo.org> AuthorDate: 2019-12-06 20:35:45 +0000 Commit: Amy Liffey <amynka@gentoo.org> CommitDate: 2019-12-06 20:37:03 +0000 media-libs/opencv: fix pkg-config file generation Closes: https://bugs.gentoo.org/701662 Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Amy Liffey <amynka@gentoo.org> .../files/opencv-4.1.2-pkg-config-file.patch | 11 + media-libs/opencv/opencv-4.1.2-r2.ebuild | 497 +++++++++++++++++++++ 2 files changed, 508 insertions(+)