From patchwork Mon Nov 1 00:59:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Attila Lendvai X-Patchwork-Id: 34191 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 391E927BBE4; Mon, 1 Nov 2021 01:00:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B09AE27BBE3 for ; Mon, 1 Nov 2021 01:00:12 +0000 (GMT) Received: from localhost ([::1]:51370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhLgJ-0001RP-MB for patchwork@mira.cbaines.net; Sun, 31 Oct 2021 21:00:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhLgA-0001R9-W5 for guix-patches@gnu.org; Sun, 31 Oct 2021 21:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhLgA-0000RW-Hb for guix-patches@gnu.org; Sun, 31 Oct 2021 21:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhLgA-0001C4-Fv for guix-patches@gnu.org; Sun, 31 Oct 2021 21:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51534] [PATCH] gnu: Add smplayer. Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Nov 2021 01:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51534 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51534@debbugs.gnu.org Cc: Attila Lendvai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16357283984547 (code B ref -1); Mon, 01 Nov 2021 01:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Nov 2021 00:59:58 +0000 Received: from localhost ([127.0.0.1]:33348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhLg6-0001BH-4P for submit@debbugs.gnu.org; Sun, 31 Oct 2021 20:59:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:53024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhLg3-0001B9-P2 for submit@debbugs.gnu.org; Sun, 31 Oct 2021 20:59:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhLg3-0001Qb-HU for guix-patches@gnu.org; Sun, 31 Oct 2021 20:59:55 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:36749) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhLg1-0000Pt-7j for guix-patches@gnu.org; Sun, 31 Oct 2021 20:59:55 -0400 Received: by mail-wr1-x432.google.com with SMTP id s13so18730021wrb.3 for ; Sun, 31 Oct 2021 17:59:52 -0700 (PDT) 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=GOvF/TRfgMLyuvfAwKSTqed9Oe6OyoY6ya+ViCvyZFo=; b=mcC/ot3OOh5CA81hl74obze10c+jPofpHFF8QkBdP9GTCweAKMoAe1z2Z158HOJ5KL wOjn48KgvwrGuVSlHh4onkx1kDltjwgmptYxfQaDRNXCwa8xCdNubSLNPREO+EmeQKv4 CSmYBthTuJJXq6qhM13rGasMOUBOeymR+YOq99wyginMStvePs1gXqw65Wq2jO+W1JAo F90v1Ny4tGd/D8LArbtF7PbY35HuXr46jpiViQNRNG6NLBgwfIgI9bsqRfXqx+6A+mZF PAx3mLJ3KDVCbpA3SG16/eaj7cVDNY11GhdJ2TC+rK0Lo+ZzVODWj/n1T4aGf8GM7tzU s0Jw== 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=GOvF/TRfgMLyuvfAwKSTqed9Oe6OyoY6ya+ViCvyZFo=; b=XdwK6ZUUCMSeOw5s/4VW0IBr83kK0mzfjEN+WEMqHmLCWDGDqPN68m3QeCT0jXvP+j ccK0ShJ61HKdQNINYhcqb0BuSbifC4k6SuSXpUE+Sd1PnsaC3WvK5iGqOBzYFmAlSS+W 6e05AhYF9ZLDQ1qEn3VBcV6rOYYcLK8cSMrc45IhurnTKO6Q8gnd+LJEmq+9J9cDfKOd UjC6V03kAlN4OYbJ5TJJvcYlZBJIYemy0xI/bEFBkOh/oLGlIozCbf9q9/eqRj5znvDm t5p/ZO3gm/IQVFiA9DzO0KHWeJFPEVCJzfgTx2vq7Mhw0nQngGwUofDlUKvL8mN61ojJ n1Dw== X-Gm-Message-State: AOAM531bdLKXdcty0UE04JA/T6SLqtG+mRmn6VFycWgMEASDaLU5eoIv MVEHnDKsW30huB3/DwcexVGpkTUlNyg= X-Google-Smtp-Source: ABdhPJyDfAEcLfh/CCNEGTqSczh99F/iwD026NUbEAC0P2DtfQ8vIhrOp6/qRyLmklg7yF/dMJd5IA== X-Received: by 2002:a05:6000:156e:: with SMTP id 14mr34412195wrz.358.1635728390517; Sun, 31 Oct 2021 17:59:50 -0700 (PDT) Received: from lelap.lan (catv-89-132-208-37.catv.broadband.hu. [89.132.208.37]) by smtp.gmail.com with ESMTPSA id e18sm10921188wrs.48.2021.10.31.17.59.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Oct 2021 17:59:50 -0700 (PDT) From: Attila Lendvai Date: Mon, 1 Nov 2021 01:59:36 +0100 Message-Id: <20211101005935.8731-1-attila@lendvai.name> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=attila.lendvai@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_PDS_PRO_TLD=0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/video.scm (smplayer): New variable. --- gnu/packages/video.scm | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 245007f294..ecd5ab8728 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -2092,6 +2092,66 @@ (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 gnu-build-system) + (native-inputs + `(("qttools" ,qttools))) + (inputs + `(("qtbase" ,qtbase-5) + ("zlib" ,zlib) + ("mplayer" ,mplayer))) + (arguments + `(#:modules (,@%gnu-build-system-modules + (srfi srfi-26)) + #: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 (cut invoke "lrelease" <>) + (find-files "./" "\\.ts$"))))))) + (home-page "https://www.smplayer.info") + (synopsis "Complete front-end for MPlayer, a media player") + (description "SMPlayer is a free media player for Windows and Linux +with built-in codecs that can play virtually all video and audio formats. +It doesn't need any external codecs. Just install SMPlayer and you'll be +able to play all formats without the hassle to find and install codec packs. + +One of the most interesting features of SMPlayer: it remembers the +settings of all files you play. So you start to watch a movie but you have +to leave... don't worry, when you open that movie again it will be resumed +at the same point you left it, and with the same settings: audio track, +subtitles, volume... + +SMPlayer is a graphical user interface (GUI) for the award-winning +MPlayer, which is capable of playing almost all known video and audio +formats. But 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 or download subtitles.") + (license license:gpl3+))) + (define-public mpv (package (name "mpv")