emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#31017: closed ([PATCH] gnu: Add subdl)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#31017: closed ([PATCH] gnu: Add subdl)
Date: Thu, 05 Apr 2018 06:31:01 +0000

Your message dated Thu, 5 Apr 2018 02:30:03 -0400
with message-id <address@hidden>
and subject line Re: [bug#31017] [PATCH] gnu: Add subdl
has caused the debbugs.gnu.org bug report #31017,
regarding [PATCH] gnu: Add subdl
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
31017: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31017
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: Add subdl Date: Sun, 1 Apr 2018 20:45:02 +0530
* gnu/packages/video.scm (subdl): New variable.
---
 gnu/packages/video.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 3937c52c0..fe1badee9 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -56,6 +56,7 @@
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
   #:use-module (guix build-system waf)
+  #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
   #:use-module (gnu packages algebra)
   #:use-module (gnu packages audio)
@@ -2821,3 +2822,41 @@ changed.  Or in other words, it can detect motion.")
 
     ;; Some files say "version 2" and others "version 2 or later".
     (license license:gpl2)))
+
+(define-public subdl
+  (let
+      ((commit "4cf5789b11f0ff3f863b704b336190bf968cd471")
+       (revision "1"))
+    (package
+      (name "subdl")
+      (version (string-append "1.0.3-" revision "." (string-take commit 7)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/alexanderwink/subdl.git";)
+                      (commit commit)))
+                (sha256 (base32 
"0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8"))))
+      (build-system trivial-build-system)
+      (arguments
+       `(#:modules ((guix build utils))
+         #:builder (begin
+                     (use-modules (guix build utils))
+                     (let* ((out (assoc-ref %outputs "out"))
+                            (bin (string-append out "/bin"))
+                            (source (assoc-ref %build-inputs "source"))
+                            (python (assoc-ref %build-inputs "python")))
+                       (mkdir-p bin)
+                       (with-directory-excursion bin
+                         (copy-file (string-append source "/subdl") "subdl")
+                         (patch-shebang "subdl"
+                                        (list (string-append python "/bin")))
+                         (chmod "subdl" #o555))))))
+      (inputs `(("python" ,python)))
+      (synopsis "Command-line tool for downloading subtitles from 
opensubtitles.org")
+      (description
+       "Subdl is a command-line tool for downloading subtitles from 
opensubtitles.org.
+By default, it will search for English subtitles, display the results,
+download the highest-rated result in the requested language and save it to the
+appropriate filename.")
+      (license license:gpl3+)
+      (home-page "https://github.com/alexanderwink/subdl";))))
-- 
2.16.3




--- End Message ---
--- Begin Message --- Subject: Re: [bug#31017] [PATCH] gnu: Add subdl Date: Thu, 5 Apr 2018 02:30:03 -0400 User-agent: Mutt/1.9.4 (2018-02-28)
On Tue, Apr 03, 2018 at 09:49:24AM +0530, Pierre Neidhardt wrote:
> 
> Thank you very much for this detailed review!
> 
> As for the copyright, the same as this e-mail should show will do:
> 
>     Pierre Neidhardt <address@hidden>

Thanks! I pushed the patch as f27f264e51a8de77f01d6798eb9c991cecbcdedb.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]