git.iko.soy/typeable/nixpkgs
on master help sign in
libcec: 2.1.4 -> 2.2.0
commitc998edfb6d0e492b3d3f924d0c14324d57db70db authorDomen Kožar <domen@dev.si> dateWed 24 Dec 2014, 10:57 (12 years ago) parent157e63c
3 files changed+38−4
pkgs/applications/video/xbmc/0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patch+32 pkgs/applications/video/xbmc/default.nix+2 pkgs/development/libraries/libcec/default.nix+4−4
pkgs/applications/video/xbmc/0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patchnew file+32
@@ -0,0 +1,32 @@
1+From 9f1e45a10860dd23239de35673643e9e0e4a74f8 Mon Sep 17 00:00:00 2001
2+From: Lars Op den Kamp <lars@opdenkamp.eu>
3+Date: Tue, 28 Oct 2014 14:52:16 +0100
4+Subject: [PATCH 5/8] [CEC] renamed the iDoubleTapTimeoutMs in the new libCEC
5+ for clarity. does not change binary compatibility
6+
7+---
8+ xbmc/peripherals/devices/PeripheralCecAdapter.cpp | 7 ++++++-
9+ 1 file changed, 6 insertions(+), 1 deletion(-)
10+
11+diff --git a/xbmc/peripherals/devices/PeripheralCecAdapter.cpp b/xbmc/peripherals/devices/PeripheralCecAdapter.cpp
12+index 1d068dc..ad123d9 100644
13+--- a/xbmc/peripherals/devices/PeripheralCecAdapter.cpp
14++++ b/xbmc/peripherals/devices/PeripheralCecAdapter.cpp
15+@@ -1347,8 +1347,13 @@ void CPeripheralCecAdapter::SetConfigurationFromSettings(void)
16+ m_configuration.bPowerOffOnStandby = iStandbyAction == 13011 ? 1 : 0;
17+ m_configuration.bShutdownOnStandby = iStandbyAction == 13005 ? 1 : 0;
18+
19++#if defined(CEC_DOUBLE_TAP_TIMEOUT_MS_OLD)
20+ // double tap prevention timeout in ms
21+- m_configuration.iDoubleTapTimeoutMs = GetSettingInt("double_tap_timeout_ms");
22++ m_configuration.iDoubleTapTimeout50Ms = GetSettingInt("double_tap_timeout_ms") / 50;
23++#else
24++ // backwards compatibility. will be removed once the next major release of libCEC is out
25++ m_configuration.iDoubleTapTimeoutMs = GetSettingInt("double_tap_timeout_ms");
26++#endif
27+ }
28+
29+ void CPeripheralCecAdapter::ReadLogicalAddresses(const CStdString &strString, cec_logical_addresses &addresses)
30+--
31+2.1.2
32+
pkgs/applications/video/xbmc/default.nix+2
@@ -72,6 +72,8 @@ stdenv.mkDerivation rec {
7272
7373 dontUseCmakeConfigure = true;
7474
75+ patches = [ ./0005-CEC-renamed-the-iDoubleTapTimeoutMs-in-the-new-libCE.patch ];
76+
7577 preConfigure = ''
7678 substituteInPlace xbmc/linux/LinuxTimezone.cpp \
7779 --replace 'usr/share/zoneinfo' 'etc/zoneinfo'
pkgs/development/libraries/libcec/default.nix+4−4
@@ -1,13 +1,13 @@
11{ stdenv, fetchurl, autoreconfHook, pkgconfig, udev }:
22
3−let version = "2.1.4"; in
3+let version = "2.2.0"; in
44
55stdenv.mkDerivation {
66 name = "libcec-${version}";
77
88 src = fetchurl {
9− url = "https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz";
10− sha256 = "0iz11zclbs3gk4ddq0pm4vyq015qmvy4nb9sra3vk6jw58izbgkr";
9+ url = "https://github.com/Pulse-Eight/libcec/archive/libcec-${version}-repack.tar.gz";
10+ sha256 = "1kdfak8y96v14d5vp2apkjjs0fvvim9phc0nkhlq5pjlagk8v32x";
1111 };
1212
1313 buildInputs = [ autoreconfHook pkgconfig udev ];
@@ -18,7 +18,7 @@ stdenv.mkDerivation {
1818 '';
1919
2020 meta = with stdenv.lib; {
21− description = "USB CEC adapter communication library";
21+ description = "Allows you (with the right hardware) to control your device with your TV remote control using existing HDMI cabling";
2222 homepage = "http://libcec.pulse-eight.com";
2323 repositories.git = "https://github.com/Pulse-Eight/libcec.git";
2424 license = stdenv.lib.licenses.gpl2Plus;