commit:     2f72865ca4077617d2e91ff2a38c9c99946eb9ba
Author:     Chris Mayo <aklhfex <AT> gmail <DOT> com>
AuthorDate: Fri Sep  6 18:26:22 2019 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Fri Sep  6 20:00:41 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f72865c

media-plugins/kodi-pvr-vdr-vnsi: replace unused kodi-platform dependency

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Chris Mayo <aklhfex <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12873
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 ...i-pvr-vdr-vnsi-3.6.3-remove-kodi-platform.patch | 52 ++++++++++++++++++++++
 ...99.ebuild => kodi-pvr-vdr-vnsi-3.6.3-r1.ebuild} |  8 +++-
 .../kodi-pvr-vdr-vnsi-9999.ebuild                  |  2 +-
 3 files changed, 59 insertions(+), 3 deletions(-)

diff --git 
a/media-plugins/kodi-pvr-vdr-vnsi/files/kodi-pvr-vdr-vnsi-3.6.3-remove-kodi-platform.patch
 
b/media-plugins/kodi-pvr-vdr-vnsi/files/kodi-pvr-vdr-vnsi-3.6.3-remove-kodi-platform.patch
new file mode 100644
index 00000000000..1059d5a6264
--- /dev/null
+++ 
b/media-plugins/kodi-pvr-vdr-vnsi/files/kodi-pvr-vdr-vnsi-3.6.3-remove-kodi-platform.patch
@@ -0,0 +1,52 @@
+https://github.com/kodi-pvr/pvr.vdr.vnsi/pull/123
+
+From 7a19dc72df0a299887d08b27973de599dfc39f9e Mon Sep 17 00:00:00 2001
+From: Olaf Hering <o...@aepfle.de>
+Date: Thu, 2 May 2019 13:33:41 +0200
+Subject: [PATCH] [cmake] remove usage of kodi-platform
+
+The pvr.vdr.vnsi binary addon does not use kodi-platform.
+Remove existing references from CMakeLists.txt and debian/control.
+Add dependency to libp8-platform-dev because libkodiplatform-dev
+pulled that dependency in as a side effect. Fix that bug too by
+adding an explicit dependency.
+
+Signed-off-by: Olaf Hering <o...@aepfle.de>
+---
+ CMakeLists.txt | 2 --
+ debian/control | 2 +-
+ 2 files changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bb35dc1..356d4f7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,7 +4,6 @@ project(pvr.vdr.vnsi)
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
+ 
+ find_package(Kodi REQUIRED)
+-find_package(kodiplatform REQUIRED)
+ find_package(p8-platform REQUIRED)
+ 
+ add_definitions(-DUSE_DEMUX)
+@@ -78,7 +77,6 @@ endif()
+ message(STATUS "Configured render system: ${APP_RENDER_SYSTEM}")
+ 
+ include_directories(${INCLUDES}
+-                    ${kodiplatform_INCLUDE_DIRS}
+                     ${p8-platform_INCLUDE_DIRS}
+                     ${KODI_INCLUDE_DIR}/..) # Hack way with "/..", need 
bigger Kodi cmake rework to match right include ways
+ 
+diff --git a/debian/control b/debian/control
+index 45fa8d8..1f0ae38 100644
+--- a/debian/control
++++ b/debian/control
+@@ -2,7 +2,7 @@ Source: kodi-pvr-vdr-vnsi
+ Priority: extra
+ Maintainer: fernetmenta <fernetme...@kodi.tv>
+ Build-Depends: debhelper (>= 9.0.0), cmake, libtinyxml-dev,
+-               libkodiplatform-dev (>= 17.1.0), kodi-addon-dev,
++               libp8-platform-dev, kodi-addon-dev,
+                libgles2-mesa-dev [arm], libgl1-mesa-dev [i386 amd64], 
pkg-config
+ Standards-Version: 3.9.4
+ Section: libs

diff --git a/media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-9999.ebuild 
b/media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-3.6.3-r1.ebuild
similarity index 85%
copy from media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-9999.ebuild
copy to media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-3.6.3-r1.ebuild
index 565b26fff2a..ec16e30ef47 100644
--- a/media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-9999.ebuild
+++ b/media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-3.6.3-r1.ebuild
@@ -28,11 +28,15 @@ SLOT="0"
 IUSE=""
 
 DEPEND="
-       ~media-tv/kodi-9999
-       ~media-libs/kodi-platform-9999
+       =dev-libs/libplatform-2*
+       =media-tv/kodi-18*
        virtual/opengl
        "
 
 RDEPEND="
        ${DEPEND}
        "
+
+PATCHES=(
+       "${FILESDIR}/${P}-remove-kodi-platform.patch"
+)

diff --git a/media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-9999.ebuild 
b/media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-9999.ebuild
index 565b26fff2a..1109235bfe7 100644
--- a/media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-9999.ebuild
+++ b/media-plugins/kodi-pvr-vdr-vnsi/kodi-pvr-vdr-vnsi-9999.ebuild
@@ -28,8 +28,8 @@ SLOT="0"
 IUSE=""
 
 DEPEND="
+       =dev-libs/libplatform-2*
        ~media-tv/kodi-9999
-       ~media-libs/kodi-platform-9999
        virtual/opengl
        "
 

Reply via email to