unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#31260] [PATCH] gnu: Add l-smash.
@ 2018-04-25 11:15 Clément Lassieur
  2018-04-25 12:15 ` Clément Lassieur
  2018-04-25 20:57 ` Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Clément Lassieur @ 2018-04-25 11:15 UTC (permalink / raw)
  To: 31260

* gnu/packages/video.scm (l-smash): New variable.
---
 gnu/packages/video.scm | 40 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index dc5a37566..8e7fa116a 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -19,7 +19,7 @@
 ;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
 ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
-;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
+;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
 ;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
 ;;; Copyright © 2018 Roel Janssen <roel@gnu.org>
@@ -2852,3 +2852,41 @@ 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"))))
+
+(define-public l-smash
+  (package
+    (name "l-smash")
+    (version "2.14.5")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/" name "/" name "/archive/v"
+                    version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0dary0h65kq6sv93iabv25djlvzr5ckdcp3ywagbix44wqfw7xz6"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f                      ;no tests
+       #:make-flags
+       (list (string-append "LDFLAGS=-Wl,-L.,-rpath="
+                            (assoc-ref %outputs "out") "/lib"))
+       #:phases
+       (modify-phases %standard-phases
+         ;; configure fails if it is followed by CONFIG_SHELL
+         (replace 'configure
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (zero? (system* "./configure" (string-append "--prefix=" out)
+                               "--disable-static"))))))))
+    (native-inputs
+     `(("which" ,which)))
+    (home-page "https://l-smash.github.io/l-smash/")
+    (synopsis "MP4 multiplexer and demultiplexer library")
+    (description
+     "L-SMASH is a cross-platform library that handles the ISO base media file
+format and some of its derived file formats, including MP4.  It operates as a
+multiplexer and demultiplexer, and can mux video and audio in several formats
+using standalone executable files.")
+    (license license:isc)))
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#31260] [PATCH] gnu: Add l-smash.
  2018-04-25 11:15 [bug#31260] [PATCH] gnu: Add l-smash Clément Lassieur
@ 2018-04-25 12:15 ` Clément Lassieur
  2018-04-25 20:57 ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Clément Lassieur @ 2018-04-25 12:15 UTC (permalink / raw)
  To: 31260

Clément Lassieur <clement@lassieur.org> writes:

> +         (replace 'configure
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let ((out (assoc-ref outputs "out")))
> +               (zero? (system* "./configure" (string-append "--prefix=" out)
> +                               "--disable-static"))))))))

I'll also use invoke instead of system*.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#31260] [PATCH] gnu: Add l-smash.
  2018-04-25 11:15 [bug#31260] [PATCH] gnu: Add l-smash Clément Lassieur
  2018-04-25 12:15 ` Clément Lassieur
@ 2018-04-25 20:57 ` Ludovic Courtès
  2018-04-25 22:49   ` bug#31260: " Clément Lassieur
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2018-04-25 20:57 UTC (permalink / raw)
  To: Clément Lassieur; +Cc: 31260

Clément Lassieur <clement@lassieur.org> skribis:

> * gnu/packages/video.scm (l-smash): New variable.

With the ‘invoke’ change it LGTM, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#31260: [PATCH] gnu: Add l-smash.
  2018-04-25 20:57 ` Ludovic Courtès
@ 2018-04-25 22:49   ` Clément Lassieur
  0 siblings, 0 replies; 4+ messages in thread
From: Clément Lassieur @ 2018-04-25 22:49 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31260-done

Ludovic Courtès <ludo@gnu.org> writes:

> Clément Lassieur <clement@lassieur.org> skribis:
>
>> * gnu/packages/video.scm (l-smash): New variable.
>
> With the ‘invoke’ change it LGTM, thanks!
>
> Ludo’.

Pushed, thank you Ludo!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-25 22:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-25 11:15 [bug#31260] [PATCH] gnu: Add l-smash Clément Lassieur
2018-04-25 12:15 ` Clément Lassieur
2018-04-25 20:57 ` Ludovic Courtès
2018-04-25 22:49   ` bug#31260: " Clément Lassieur

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).