summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2020-01-21 06:39:59 +0100
committerAvatar Marvin Schmidt <marv@exherbo.org> 2020-05-03 14:39:45 +0200
commit801ca17bdde8d3e3b2ba019f7db0613c757506f3 (patch)
tree80a198dff2b3adb7548430ecc90bbc98e5f44fbf
parentcc30360f9c327aa7deed6b3af2f5c4a2ebbc25c5 (diff)
downloadmedia-801ca17bdde8d3e3b2ba019f7db0613c757506f3.tar.gz
media-801ca17bdde8d3e3b2ba019f7db0613c757506f3.tar.xz
kodi: Add scm
-rw-r--r--metadata/repository_mask.conf1
-rw-r--r--packages/media/kodi/kodi-scm.exheres-014
-rw-r--r--packages/media/kodi/kodi.exlib41
3 files changed, 52 insertions, 4 deletions
diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf
index b1906911..59a70c24 100644
--- a/metadata/repository_mask.conf
+++ b/metadata/repository_mask.conf
@@ -1,4 +1,5 @@
(
+ media/kodi[~scm]
media/libav[~scm]
media/mpv[~scm]
media/vlc[~scm]
diff --git a/packages/media/kodi/kodi-scm.exheres-0 b/packages/media/kodi/kodi-scm.exheres-0
new file mode 100644
index 00000000..a042d532
--- /dev/null
+++ b/packages/media/kodi/kodi-scm.exheres-0
@@ -0,0 +1,14 @@
+# Copyright 2015-2019 Timo Gurr <tgurr@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+# Based in part upon 'kodi-9999.ebuild' from Gentoo, which is:
+# Copyright 1999-2015 Gentoo Foundation
+
+# tools/depends/target/libdvd{css,nav,read}
+LIBDVDCSS_REV="1.4.2-Leia-Beta-5"
+LIBDVDREAD_REV="6.0.0-Leia-Alpha-3"
+LIBDVDNAV_REV="6.0.0-Leia-Alpha-3"
+
+require kodi
+
+PLATFORMS="~amd64"
+
diff --git a/packages/media/kodi/kodi.exlib b/packages/media/kodi/kodi.exlib
index 7db5957a..231f8bf3 100644
--- a/packages/media/kodi/kodi.exlib
+++ b/packages/media/kodi/kodi.exlib
@@ -7,7 +7,12 @@ require github [ user=xbmc pn=xbmc ] \
cmake \
freedesktop-desktop \
gtk-icon-cache \
- python [ blacklist=3 multibuild=false has_bin=true python_opts=[sqlite] ]
+
+if ever is_scm; then
+ require python [ blacklist=2 multibuild=false has_bin=true python_opts=[sqlite] ]
+else
+ require python [ blacklist=3 multibuild=false has_bin=true python_opts=[sqlite] ]
+fi
export_exlib_phases src_configure pkg_postinst pkg_postrm
@@ -44,8 +49,14 @@ MYOPTIONS="
( providers: libressl openssl ) [[ number-selected = exactly-one ]]
"
-# Doesn't find the kodi-test executable
-RESTRICT="test"
+if ever is_scm; then
+ # Fails a bunch of tests:
+ # 94% tests passed, 33 tests failed out of 577
+ RESTRICT="test"
+else
+ # Doesn't find the kodi-test executable
+ RESTRICT="test"
+fi
DEPENDENCIES="
build:
@@ -72,6 +83,7 @@ DEPENDENCIES="
dev-libs/tinyxml[>=2.6.2]
dev-python/Pillow[>=3.0.0][python_abis:*(-)?]
fonts/dejavu
+ media/dav1d
media/ffmpeg[>=4.0.4][h264]
media-libs/freetype:2
media-libs/giflib:=[>=4.1.6] [[ note = [ for TexturePacker ] ]]
@@ -188,7 +200,27 @@ CMAKE_SRC_CONFIGURE_OPTION_ENABLES=(
'va VAAPI'
'vdpau VDPAU'
)
-CMAKE_SRC_CONFIGURE_TESTS=( '-DBUILD_TESTING:BOOL=TRUE -DBUILD_TESTING:BOOL=FALSE' )
+
+if ever is_scm; then
+ DEPENDENCIES+="
+ build+run:
+ dev-libs/spdlog
+ test:
+ dev-cpp/gtest[>=1.10.0]
+ "
+
+ CMAKE_SRC_CONFIGURE_PARAMS+=(
+ -DENABLE_INTERNAL_DAV1D:BOOL=FALSE
+ -DENABLE_INTERNAL_GTEST:BOOL=FALSE
+ -DENABLE_INTERNAL_SPDLOG:BOOL=FALSE
+
+ # unpackaged
+ -DENABLE_INTERNAL_UDFREAD:BOOL=TRUE
+ )
+ CMAKE_SRC_CONFIGURE_TESTS=( '-DENABLE_TESTING:BOOL=TRUE -DENABLE_TESTING:BOOL=FALSE' )
+else
+ CMAKE_SRC_CONFIGURE_TESTS=( '-DBUILD_TESTING:BOOL=TRUE -DBUILD_TESTING:BOOL=FALSE' )
+fi
kodi_src_configure() {
local args=()
@@ -207,6 +239,7 @@ kodi_src_configure() {
)
else
args+=( -DCORE_PLATFORM_NAME=x11 )
+ ever is_scm && args+=( -DX11_RENDER_SYSTEM=gl )
fi
cmake_src_configure "${args[@]}"