From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eL9aO79zo2EygAEAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 13:19:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6MIiN79zo2FAZgAAB5/wlQ (envelope-from ) for ; Sun, 28 Nov 2021 12:19: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 0760212ED0 for ; Sun, 28 Nov 2021 13:19:11 +0100 (CET) Received: from localhost ([::1]:33722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrJ9B-0004Ud-6u for larch@yhetil.org; Sun, 28 Nov 2021 07:19:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrJ6B-000290-Er for guix-patches@gnu.org; Sun, 28 Nov 2021 07:16:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrJ6B-0006T4-6E for guix-patches@gnu.org; Sun, 28 Nov 2021 07:16:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrJ6A-00079q-HR for guix-patches@gnu.org; Sun, 28 Nov 2021 07:16:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51534] [PATCH v4] 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 12:16: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.163810171127442 (code B ref 51534); Sun, 28 Nov 2021 12:16:02 +0000 Received: (at 51534) by debbugs.gnu.org; 28 Nov 2021 12:15:11 +0000 Received: from localhost ([127.0.0.1]:35063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrJ5L-00078Y-0Y for submit@debbugs.gnu.org; Sun, 28 Nov 2021 07:15:11 -0500 Received: from mail-ed1-f43.google.com ([209.85.208.43]:40671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrJ5G-00077e-7k for 51534@debbugs.gnu.org; Sun, 28 Nov 2021 07:15:08 -0500 Received: by mail-ed1-f43.google.com with SMTP id r25so59551783edq.7 for <51534@debbugs.gnu.org>; Sun, 28 Nov 2021 04:15:06 -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=m7+ay4OnlWtr9n93FKNbipusSUGB/S0B1FoKhzOtEXs=; b=dbT+vvm9OB0hy1X9B8jzaHWH5fkxIK5kFmBC+h+mJMV8GlhGeRDSnB/P9wDFpjsO30 RBTWyb+AOWOF4qrfueZ1kIyCuIRbDf+EYMRpVQRi4ymPMVhH44Y2OuxEmCsxcyVINwyZ tTik43qtzfU7Y1hjQRQ5IqDveIr7Z+ngxMhYx5aosPG7x8SCYdE7ns17mZVlsGBxrsSI BemZabMj81QCj1BQcYZeLnYpROPI5IrHPkTfGP6Jk7bmVGep4dCwdPYRPgTs+3DlEcK+ NdTkgnrfCal8ArudREX52OVznRxPGhmTXGj88OICVbni5Q/OmdwaIsypKWvqyLsaVDnt Y58A== 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=m7+ay4OnlWtr9n93FKNbipusSUGB/S0B1FoKhzOtEXs=; b=Ymi5d/1HW9FvPbreq2or+0Lk0RXBTr9IgPIWdvnn4Q8RC0ssHbwz0+JfqMptyORyDi UkoC5LvQFoKT7NuJdTdBm4SqZ/biR5qrolCQMr/LHet0q//CpkYGkZ9Be6TXWbi1Zech xLxBFQA7irk1dT8XbHULGqXG9PKPQzHI/UiCRMszSF2GvIpjoOqva7ILEEsR/Zv67EKg QuW6Ztp+Iar19qK5cgxymc7lL6MEC+iqJS/GgNfYoBFnJ4/iWKKRzL24KaVab0KuEBUk msEs1zV124bfv/rtiW6E//7rVVmrHyxrV7By0HKVsItVVkWKXHnfT1/fZhrVK57lvtgf VsYA== X-Gm-Message-State: AOAM531kSBiu9b0K2ifB3puuzylU8sQMXXZO/LrIvXQB3iKnq/WMRyVu Oq5dc+bwx9FbEPeZH7dze33/+ElYjic= X-Google-Smtp-Source: ABdhPJyBh09jziH1fE67ziYkorZwoHw1ZvZ0IPCELEN6GhQJU0A+SeI8rozN2yKMPi9wVxw+sUcUaQ== X-Received: by 2002:a05:6402:90c:: with SMTP id g12mr64650986edz.217.1638101700247; Sun, 28 Nov 2021 04:15:00 -0800 (PST) Received: from localhost.localdomain ([2a02:ab88:3700:b180:6072:12a9:8472:9a8f]) by smtp.gmail.com with ESMTPSA id f7sm7127212edw.44.2021.11.28.04.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Nov 2021 04:14:59 -0800 (PST) From: Attila Lendvai Date: Sun, 28 Nov 2021 13:12:05 +0100 Message-Id: <20211128121204.3348-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638101951; 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=m7+ay4OnlWtr9n93FKNbipusSUGB/S0B1FoKhzOtEXs=; b=p6SGDrI9g483LwQnzBe2tUW17Y0tuZFtHQa5xissIbmLqbgiXqHE72dIs3xl28Yr5qaOHQ xE/mo6DrShfnIacOprRJMMR7+w8cq6Bkh8dfJ/aYH5oNzfbeENmE6bzaRgIkdDH2bTOVw9 li0vccNvQO1HqLzFgV6ks4ZrSgK48blF97Yu+zdicyOTWv2BXrqzBInlkJ0r/3ic13GVus 8klpx/8k4HSplS1mdiMeqpBl8+WdnMk+lCDy8NmbFGA04z1tt4sgYTZstcdKc3+FoM5V+I 1BNbzn44z9CKQDepw9NIIr6dMmPEVM7YNZwSGzvBP58fQbcwJ2h5N3hldpqUgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638101951; a=rsa-sha256; cv=none; b=AQqi6tMBinoS+yRrF8pcUCHrLqPoW4IIr/bwg/rU42CKgNaKte1IOzyGmzP6fg3o/D7JJC X4nNKPGwgvFc2STTKnk8JqN9qT8yYY6rYMh1ejy0KIXHXkDmGWS5BssgVOT1kwzkCgyNhg k5+g/crvlC5I7HNny1Tvf/H+4WyblAbEgQRLr736POz6eRVhSv6lXdiHcbAU2iEi8EN60U opYOwr+9P4MagSKqlY0tQkB+E0zozGGnoBbGZ5tsOPwbVSBoel+6VsyY/tc/ZZr8Z/ft4c cvMW2EZcBDJdfPwGDsNjkWa9d7ZlSdNJWPdQc+Ef/thjl2/owN1H2rlNsozngw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=dbT+vvm9; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=dbT+vvm9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0760212ED0 X-Spam-Score: 3.09 X-Migadu-Scanner: scn1.migadu.com X-TUID: 33+fCwkvNft0 * gnu/packages/video.scm (smplayer): New variable. --- v4 adds bash-minimal to the inputs as per guix lint. sorry for the miss! there's another lint warning that i can't fix: "smplayer@21.10.0: source not archived on Software Heritage and missing from the Disarchive database" and forgot to mention that v3 switched to the qt-build-system. gnu/packages/video.scm | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index ff1abb308f..5cb645baac 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -100,6 +100,7 @@ (define-module (gnu packages video) #:use-module (gnu packages avahi) #:use-module (gnu packages backup) #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages cdrom) @@ -2119,6 +2120,65 @@ (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 + `(("bash-minimal" ,bash-minimal) + ("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