libopenshot: 0.1.4 -> 0.1.7

Removes ruby to fix compilation errors.
This commit is contained in:
Bastian Köcher 2017-08-29 12:30:47 +02:00
parent 75f86ae831
commit f5f0d83890

View File

@ -1,34 +1,32 @@
{ stdenv, fetchFromGitHub { stdenv, fetchFromGitHub, fetchpatch
, pkgconfig, cmake, doxygen , pkgconfig, cmake, doxygen
, libopenshot-audio, imagemagick, ffmpeg , libopenshot-audio, imagemagick, ffmpeg
, swig, python3, ruby , swig, python3
, unittest-cpp, cppzmq, czmqpp , unittest-cpp, cppzmq, czmqpp
, qtbase, qtmultimedia }: , qtbase, qtmultimedia }:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libopenshot-${version}"; name = "libopenshot-${version}";
version = "0.1.4"; version = "0.1.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OpenShot"; owner = "OpenShot";
repo = "libopenshot"; repo = "libopenshot";
rev = "v${version}"; rev = "v${version}";
sha256 = "1mqci103kn4l7w8i9kqzi705kxn4q596vw0sh05r1w5nbyjwcyp6"; sha256 = "1dk40qild8d3s99p2kkm0mjvxfxrz2wns7ij1brzqmcdnaxqdhlp";
}; };
patchPhase = '' patchPhase = ''
sed -i 's/{UNITTEST++_INCLUDE_DIR}/ENV{UNITTEST++_INCLUDE_DIR}/g' tests/CMakeLists.txt sed -i 's/{UNITTEST++_INCLUDE_DIR}/ENV{UNITTEST++_INCLUDE_DIR}/g' tests/CMakeLists.txt
sed -i 's/{_REL_PYTHON_MODULE_PATH}/ENV{_REL_PYTHON_MODULE_PATH}/g' src/bindings/python/CMakeLists.txt sed -i 's/{_REL_PYTHON_MODULE_PATH}/ENV{_REL_PYTHON_MODULE_PATH}/g' src/bindings/python/CMakeLists.txt
sed -i 's/{RUBY_VENDOR_ARCH_DIR}/ENV{RUBY_VENDOR_ARCH_DIR}/g' src/bindings/ruby/CMakeLists.txt
export _REL_PYTHON_MODULE_PATH=$(toPythonPath $out) export _REL_PYTHON_MODULE_PATH=$(toPythonPath $out)
export RUBY_VENDOR_ARCH_DIR=$out/lib/ruby/site-packages
''; '';
nativeBuildInputs = [ pkgconfig cmake doxygen ]; nativeBuildInputs = [ pkgconfig cmake doxygen ];
buildInputs = buildInputs =
[ imagemagick ffmpeg swig python3 ruby unittest-cpp [ imagemagick ffmpeg swig python3 unittest-cpp
cppzmq czmqpp qtbase qtmultimedia ]; cppzmq czmqpp qtbase qtmultimedia ];
LIBOPENSHOT_AUDIO_DIR = "${libopenshot-audio}"; LIBOPENSHOT_AUDIO_DIR = "${libopenshot-audio}";
@ -36,6 +34,8 @@ stdenv.mkDerivation rec {
doCheck = false; doCheck = false;
cmakeFlags = [ "-DENABLE_RUBY=OFF" ];
meta = { meta = {
homepage = http://openshot.org/; homepage = http://openshot.org/;
description = "Free, open-source video editor library"; description = "Free, open-source video editor library";