unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: Leo Famulari <leo@famulari.name>
Cc: 25356@debbugs.gnu.org, dian_cecht@zoho.com
Subject: bug#25356: livestreamer no longer supported
Date: Thu, 25 Jan 2018 02:13:42 +0300	[thread overview]
Message-ID: <87k1w6g89l.fsf@gmail.com> (raw)
In-Reply-To: <20180124222737.GA1969@jasmine.lan> (Leo Famulari's message of "Wed, 24 Jan 2018 17:27:37 -0500")


[-- Attachment #1.1: Type: text/plain, Size: 655 bytes --]

Leo Famulari <leo@famulari.name> writes:

[...]

>> The streamlink package is available now from
>> f48feaa2848d999e100f27301680a01dc3bd7733
>> 
>> Should we still hold livestreamer?
>
> If streamlink is really a continuation of the livestreamer codebase,
> then we can mark the livestreamer package as superseded by streamlink.

Seems it is a fork according to
<https://github.com/streamlink/streamlink>.

> This will cause the livestreamer package in one's profile to be
> automatically replaced by streamlink when doing `guix package
> --upgrade`.
>
> Ideally both packages' executables would have the same name.

Symlink?  :-)


[-- Attachment #1.2: [PATCH] gnu: livestreamer: Deprecate in favour of streamlink. --]
[-- Type: text/x-patch, Size: 3048 bytes --]

From 4f1d5095d15b79d9f90253f6aa67719bcd14918f Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@gmail.com>
Date: Thu, 25 Jan 2018 02:06:32 +0300
Subject: [PATCH] gnu: livestreamer: Deprecate in favour of streamlink.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* gnu/packages/video.scm (livestreamer): Redefine using ‘deprecated-package’.
  (streamlink): Create ‘livestreamer’ symlink.
---
 gnu/packages/video.scm | 36 ++++++++++++------------------------
 1 file changed, 12 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index d2599345d..9adc29c3b 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1703,30 +1703,6 @@ pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
 and custom quantization matrices.")
     (license license:gpl2+)))
 
-(define-public livestreamer
-  (package
-    (name "livestreamer")
-    (version "1.12.2")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append
-                    "https://github.com/chrippa/livestreamer/archive/v"
-                    version ".tar.gz"))
-              (file-name (string-append "livestreamer-" version ".tar.gz"))
-              (sha256
-               (base32
-                "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd"))))
-    (build-system python-build-system)
-    (arguments
-     '(#:tests? #f)) ; tests rely on external web servers
-    (propagated-inputs
-     `(("python-requests" ,python-requests)))
-    (synopsis "Internet video stream viewer")
-    (description "Livestreamer is a command-line utility that extracts streams
-from various services and pipes them into a video playing application.")
-    (home-page "http://livestreamer.io/")
-    (license license:bsd-2)))
-
 (define-public streamlink
   (package
     (name "streamlink")
@@ -1751,11 +1727,23 @@ from various services and pipes them into a video playing application.")
        ("python-iso639" ,python-iso639)
        ("python-pycryptodome" ,python-pycryptodome)
        ("python-requests" ,python-requests)))
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-livestreamer-symlink
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; Add a `livestreamer' -> `streamlink' link.
+             (let ((out (assoc-ref outputs "out")))
+               (with-directory-excursion (string-append out "/bin")
+                 (symlink "streamlink" "livestreamer"))))))))
     (synopsis "Extract streams from various services")
     (description "Streamlink is command-line utility that extracts streams
 from sites like Twitch.tv and pipes them into a video player of choice.")
     (license license:bsd-2)))
 
+(define-public livestreamer
+  (deprecated-package "livestreamer" streamlink))
+
 (define-public mlt
   (package
     (name "mlt")
-- 
2.15.1


[-- Attachment #1.3: Type: text/plain, Size: 8 bytes --]



Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2018-01-24 23:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-04 16:05 bug#25356: livestreamer no longer supported dian_cecht
2018-01-24 22:17 ` Oleg Pykhalov
2018-01-24 22:27   ` Leo Famulari
2018-01-24 23:13     ` Oleg Pykhalov [this message]
2018-01-30  5:01       ` Leo Famulari
2018-01-30  7:10         ` Oleg Pykhalov
2018-01-30 22:46           ` Leo Famulari
2018-01-31  3:41             ` Oleg Pykhalov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k1w6g89l.fsf@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=25356@debbugs.gnu.org \
    --cc=dian_cecht@zoho.com \
    --cc=leo@famulari.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).