git.iko.soy/typeable/nixpkgs
on master help sign in
linuxstopmotion: 0.8.0 -> 0.8.5

and qt4 -> qt5

commit0126c86672b7d14843225df16ddfefd7091eabe7 authorajs124 <git@ajs124.de> dateFri 30 Oct 2020, 16:33 (6 years ago) parent3a12f85
3 files changed+14−53
pkgs/applications/video/linuxstopmotion/default.nix+13−19 pkgs/applications/video/linuxstopmotion/linuxstopmotion-fix-wrong-isProcess-logic.patch−33 pkgs/top-level/all-packages.nix+1−1
pkgs/applications/video/linuxstopmotion/default.nix+13−19
@@ -1,32 +1,26 @@
1−{ stdenv, fetchgit, pkgconfig, qt4, SDL, SDL_image, libvorbis, libtar, libxml2
2−, gamin, qmake4Hook
3−}:
1+{ mkDerivation, lib, fetchgit, pkgconfig, qmake, qtbase, qttools, qtmultimedia, libvorbis, libtar, libxml2 }:
42
5−stdenv.mkDerivation rec {
6− version = "0.8";
3+mkDerivation rec {
4+ version = "0.8.5";
75 pname = "linuxstopmotion";
8−
6+
97 src = fetchgit {
10− url = "git://git.code.sf.net/p/linuxstopmotion/code";
11− rev = "refs/tags/${version}";
12− sha256 = "19v9d0v3laiwi0f1n92lvj2s5s1mxsrfygna0xyw9pkcnk3b26q6";
8+ url = "https://git.code.sf.net/p/linuxstopmotion/code";
9+ rev = version;
10+ sha256 = "1612lkwsfzc59wvdj2zbj5cwsyw66bwn31jrzjrxvygxdh4ab069";
1311 };
1412
15− nativeBuildInputs = [ pkgconfig ];
16− buildInputs = [ qt4 SDL SDL_image libvorbis libtar libxml2 gamin qmake4Hook ];
17−
18− patches = [ ./linuxstopmotion-fix-wrong-isProcess-logic.patch ];
13+ nativeBuildInputs = [ qmake pkgconfig ];
14+ buildInputs = [ qtbase qttools qtmultimedia libvorbis libtar libxml2 ];
1915
20− # Installation breaks without this
21− preInstall = ''
22− mkdir -p "$out/share/stopmotion/translations/"
23− cp -v build/*.qm "$out/share/stopmotion/translations/"
16+ postPatch = ''
17+ substituteInPlace stopmotion.pro --replace '$$[QT_INSTALL_BINS]' '${lib.getDev qttools}/bin'
2418 '';
2519
26− meta = with stdenv.lib; {
20+ meta = with lib; {
2721 description = "Create stop-motion animation movies";
2822 homepage = "http://linuxstopmotion.org/";
29− license = licenses.gpl2;
23+ license = licenses.gpl2Plus;
3024 platforms = platforms.linux;
3125 maintainers = [ maintainers.bjornfor ];
3226 };
pkgs/applications/video/linuxstopmotion/linuxstopmotion-fix-wrong-isProcess-logic.patchdeleted−33
@@ -1,33 +0,0 @@
1−From b23b7dab1d540b0710fcb9ded1c6256a49844906 Mon Sep 17 00:00:00 2001
2−From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= <bjorn.forsman@gmail.com>
3−Date: Wed, 20 Aug 2014 22:22:00 +0200
4−Subject: [PATCH] Fix wrong "isProcess" logic
5−
6−Stopmotion wrongly thinks that uvccapture should be run as a daemon,
7−even though configuration for uvccapture has no "daemon-like" command
8−line to be run (according to "preferences"). The result is an error
9−popup instead of video/image grabbing.
10−
11−This brings back the "isProcess" logic that was in stopmotion v0.7.2,
12−because it seems to work, while the current logic (v0.8.0) seems to
13−fail.
14−---
15− src/presentation/frontends/qtfrontend/frameview.cpp | 2 +-
16− 1 file changed, 1 insertion(+), 1 deletion(-)
17−
18−diff --git a/src/presentation/frontends/qtfrontend/frameview.cpp b/src/presentation/frontends/qtfrontend/frameview.cpp
19−index e44dca7..d2c41fd 100644
20−--- a/src/presentation/frontends/qtfrontend/frameview.cpp
21−+++ b/src/presentation/frontends/qtfrontend/frameview.cpp
22−@@ -270,7 +270,7 @@ bool FrameView::on() {
23− Preference device(QString("device%1")
24− .arg(activeDev).toLatin1().constData(), "");
25− QString pre = QString(prepoll.get()).replace("$VIDEODEVICE", device.get());
26−- bool isProcess = startDaemon.get();
27−+ bool isProcess = (strcmp(startDaemon.get(), "") == 0) ? false : true;
28−
29− bool isCameraReady = true;
30− this->grabber = new CommandLineGrabber(capturedFile.path(), isProcess);
31−--
32−2.0.2
33−
pkgs/top-level/all-packages.nix+1−1
@@ -23403,7 +23403,7 @@ in
2340323403
2340423404 stella = callPackage ../misc/emulators/stella { };
2340523405
23406− linuxstopmotion = callPackage ../applications/video/linuxstopmotion { };
23406+ linuxstopmotion = libsForQt5.callPackage ../applications/video/linuxstopmotion { };
2340723407
2340823408 sweethome3d = recurseIntoAttrs ( (callPackage ../applications/misc/sweethome3d {
2340923409 jre = jre8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731