commit:     0206417870a1fef82a4a54694b18217faa341694
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sun Sep 21 12:36:45 2025 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Wed Jan 14 11:33:10 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02064178

media-plugins/gst-plugins-opencv: manually install libgstopencv.so

Avoids patches that attack the build system with a hatchet.

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 .../gst-plugins-opencv-1.24.13.ebuild              | 30 ++++++++++------------
 1 file changed, 14 insertions(+), 16 deletions(-)

diff --git a/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.24.13.ebuild 
b/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.24.13.ebuild
index f2bbded888ef..e38fb588c342 100644
--- a/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.24.13.ebuild
+++ b/media-plugins/gst-plugins-opencv/gst-plugins-opencv-1.24.13.ebuild
@@ -11,21 +11,19 @@ KEYWORDS="~amd64 ~arm64 ~x86"
 RDEPEND=">=media-libs/opencv-4.1.2-r3:=[contrib,contribdnn,${MULTILIB_USEDEP}]"
 DEPEND="${RDEPEND}"
 
-PATCHES=(
-       "${FILESDIR}"/gst-plugins-bad-1.24.10-use-system-libs-opencv.patch
-)
-
-multilib_src_configure() {
-       local emesonargs=(
-               # We need to disable here to avoid colliding w/ gst-plugins-bad
-               # on translations, because we currently do a "full" install in
-               # multilib_src_install in this package. See bug #907480.
-               -Dnls=disabled
-       )
-
-       gstreamer_multilib_src_configure
-}
-
 multilib_src_install() {
-       DESTDIR="${D}" eninja install
+       gstreamer_multilib_src_install
+
+       # Handhold install of libgstopencv.so outside of gst-plugins-bad
+       for file in gst-libs/gst/opencv/* ; do
+               if [[ -f ${file} ]] && ! [[ -d ${file} ]] && ! [[ -h ${file} 
]]; then
+                       # libgstopencv-1.0.so.0.2413.0 -> libgstopencv-1.0.so.0 
-> libgstopencv-1.0.so
+                       dolib.so "${file}"
+                       file_name="${file##*\/}"
+                       dosym "${file_name}" 
"${EPREFIX}/usr/$(get_libdir)/${file_name%.*.*}"
+                       dosym "${file_name%.*.*}" 
"${EPREFIX}/usr/$(get_libdir)/${file_name%.*.*.*}"
+               fi
+       done
+       insinto /usr/include/gstreamer-${SLOT}/gst/opencv/
+       doins "${S}"/gst-libs/gst/opencv/*.h
 }

Reply via email to