From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KDPqHm9po2EpYAEAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 12:35:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qNaJGm9po2GCVgAAbx9fmQ (envelope-from ) for ; Sun, 28 Nov 2021 11:35:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 229FB2A13D for ; Sun, 28 Nov 2021 12:35:11 +0100 (CET) Received: from localhost ([::1]:50252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrISb-0001sO-PZ for larch@yhetil.org; Sun, 28 Nov 2021 06:35:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrISV-0001s1-1J for guix-patches@gnu.org; Sun, 28 Nov 2021 06:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrISU-0000az-Pj for guix-patches@gnu.org; Sun, 28 Nov 2021 06:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrISU-0006Bi-8j for guix-patches@gnu.org; Sun, 28 Nov 2021 06:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51534] [PATCH v3] gnu: Add smplayer v21.10.0. References: <20211101005935.8731-1-attila@lendvai.name> In-Reply-To: <20211101005935.8731-1-attila@lendvai.name> Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 Nov 2021 11:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51534 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51534@debbugs.gnu.org Cc: Attila Lendvai Received: via spool by 51534-submit@debbugs.gnu.org id=B51534.163809925523729 (code B ref 51534); Sun, 28 Nov 2021 11:35:02 +0000 Received: (at 51534) by debbugs.gnu.org; 28 Nov 2021 11:34:15 +0000 Received: from localhost ([127.0.0.1]:35052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrIRj-0006Ae-CH for submit@debbugs.gnu.org; Sun, 28 Nov 2021 06:34:15 -0500 Received: from mail-ed1-f48.google.com ([209.85.208.48]:36698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrIRh-0006AS-GW for 51534@debbugs.gnu.org; Sun, 28 Nov 2021 06:34:14 -0500 Received: by mail-ed1-f48.google.com with SMTP id z5so59579571edd.3 for <51534@debbugs.gnu.org>; Sun, 28 Nov 2021 03:34:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mdv8E2IiPdnlJRf8DO6qo6xpF3FbdA5ZHkn3FoDaxIs=; b=jsf+HWXacjJC6+EytQKiSZoEKaU8aElaG4fpCg18bqjvwU0QxGxCF4tdJOEoQkBnyo 3p5bumapoTNY+l6YbYSbiSKdHTj3iuaRAWNqvkvVoJG3HOCGKIW9j5MCBQavKWEnRbe0 tAfhvL7B7QhvpTpNaIdZ0i6AX6DVcRrHlIEYEWcSfQbGfSo4Mr70X84qU5Kde45JaIST G6pXxdO5VgXz6Ev5W3qwps00eVy0jZeMRLwAIkEXcxsKX9AtHqsqCWKH9uxz9Zc4LiSV uVugJoLnyD762tA4rYO2o8x+eDdsZ3C1hBKGfNlX3y2wMThaSbAhrVHH3J8xbKbMHmDx Z/qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=mdv8E2IiPdnlJRf8DO6qo6xpF3FbdA5ZHkn3FoDaxIs=; b=wSl/DNvnpJOWNcrjipYrhwUi5LDzNuVJ+KR2ylejBeMaAtO/USD+wsYpZd3If2SjUr rlART8L6gQG/c5PyjKpaswce6PhH1AwAuLjszqD0ef947vUMZov7wM3IZSt59yqHjFYg eWAf3LjfmGlIGp2vJ1o7Vu4sgctxQOeyPlt8mjvDFyan7nIQkDZZUt1IVBWTmCi15EDA O11D9AbRQOBkMLcJjQOcqbjTTpZgkphI4bK8D6R+TS56/a/gspjWE6B8Nva+CKh/uGEN paatriXbrs0TfMXW89o9rk/44nVtHIeM6bbnrmZfdk6Yg39QISZ071b332MVUnb//yDD IiEQ== X-Gm-Message-State: AOAM530AZ0ELmcMNjoAILvNtW0eK4LBh5aQp9liWavc8CxbMbxkrTexv lQW/5jfkCQv8kH+VNRsvJfrZ+MxbitE= X-Google-Smtp-Source: ABdhPJymtrKC02EAlstcvhnpfGFm0+OpofUc+m6Pj/ptzqkszB6PRAA+3kM7qnruXcNTAQTsXrxZ3g== X-Received: by 2002:a05:6402:2756:: with SMTP id z22mr65290912edd.200.1638099247494; Sun, 28 Nov 2021 03:34:07 -0800 (PST) Received: from localhost.localdomain ([2a02:ab88:3700:b180:6072:12a9:8472:9a8f]) by smtp.gmail.com with ESMTPSA id k16sm7029753edq.77.2021.11.28.03.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Nov 2021 03:34:06 -0800 (PST) From: Attila Lendvai Date: Sun, 28 Nov 2021 12:30:04 +0100 Message-Id: <20211128113003.15627-1-attila@lendvai.name> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638099311; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mdv8E2IiPdnlJRf8DO6qo6xpF3FbdA5ZHkn3FoDaxIs=; b=KcRnjMcAvu2Lha6QWykoZ4u2FFhom29i2lcRlWwcAhBP4GWS8cR5sOrGAMNW1AGq08ypI1 +mC1R7XgBsRhMqRltEAX/Z6bhxmgcZv9nXciduVioj4ePiAM/PZXfiCVXvr3xPM2inAAip pbKD/ciwycQB36yQyfOo7JAZkBT6QunIEzABcd1/NcVzaEwZK1K0ZWhIc1sgD3QtsQToNF KkJblL2XwAPuF3DCw7F87JPKafUyITU1OUaok+XbHxMUrDQdQBKBemORTolsOu74XU7S/r IJVvY49PSzwU359/YybyXodd3p1Ri2FLJzv5sjTfGzFzpOBMR+hFYXXWpDR+7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638099311; a=rsa-sha256; cv=none; b=HQhFKBPYp+FPlZ/o6m9Pt+g66EqibHeC8FLl8175vk0whu49pFqRvxkeSE6DE/W0NWRQ48 RuhUm9hbejKvzM1g8KlE93AyaXMkizM8igIyTlyJtvYT3Marz0BUNZfwLTa2eXhwxzi3GT U1F+LdGfRqQxmMVTTeC7+cYf1ym7HbTKskMFsWPALmAzGaLNe1pOWhbSLUlIJeQ0wXvfmM EU3/rSeCAKQe3ddycppshlEW2UC0w09q7LR7SPeKE3l6T826yRnTacYUyxgZjjNqAlJu2L RBlj16yy4NnFmmJur42EOlbsXFvSm1o1FLqvBFckIRptmst3iwWW2AOf45K43g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jsf+HWXa; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jsf+HWXa; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 229FB2A13D X-Spam-Score: -0.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: XPiyPw7NZ3Tf * gnu/packages/video.scm (smplayer): New variable. --- thank you for the feedback Liliana! i have edited the copy-pasted description to be shorter. i've also done some more thourough testing, and indeed wrapping the executable was necessary to add mpv (the media player backend) to the PATH. previously i had it installed in my profile and SMPlayer found it from there. gnu/packages/video.scm | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index ff1abb308f..debc608694 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -2119,6 +2119,64 @@ (define-public mplayer SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.") (license license:gpl2))) +(define-public smplayer + (package + (name "smplayer") + (version "21.10.0") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/smplayer/SMPlayer/" version + "/smplayer-" version ".tar.bz2")) + (sha256 + (base32 + "12nvcl0cfix1xay9hfi7856vg4lpv8y5b0a22212bsjbvl5g22rc")))) + (build-system qt-build-system) + (native-inputs + `(("qttools" ,qttools))) + (inputs + `(("qtbase" ,qtbase-5) + ("zlib" ,zlib) + ("mpv" ,mpv))) + (arguments + `(#:tests? #false ; no tests + #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) + (string-append "CC=" ,(cc-for-target)) + ;; A KLUDGE to turn off invoking lrelease on the + ;; project for now, because it fails consistently + ;; with "WARNING: Could not find qmake spec + ;; 'default'". See below. + "LRELEASE=true") + #:phases + (modify-phases %standard-phases + (delete 'configure) + ;; Due to the above, we must run lrelease separately on each .ts file + ;; (as opposed to running `lrelease-pro smplayer.pro` for the entire + ;; project, as the Makefile does normally without the above kludge). + (add-after 'build 'compile-ts-files + (lambda _ + (for-each (lambda (file) + (invoke "lrelease" file)) + (find-files "./" "\\.ts$")) + #true)) + (add-after 'install 'wrap-executable + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (mpv (assoc-ref inputs "mpv"))) + (wrap-program (string-append out "/bin/smplayer") + `("PATH" ":" prefix + ,(list (string-append mpv "/bin"))))) + #true))))) + (home-page "https://www.smplayer.info") + (synopsis "Complete front-end for MPlayer, a media player") + (description "SMPlayer is a graphical user interface (GUI) for +MPlayer, which is capable of playing almost all known video and audio +formats. Apart from providing access for the most common and useful +options of MPlayer, SMPlayer adds other interesting features like the +possibility to play Youtube videos, download subtitles, remember +the last played position, etc.") + (license license:gpl2+))) + (define-public mpv (package (name "mpv") -- 2.33.0