gnu: gst-plugins-ugly: Update package definition.
* gnu/packages/gstreamer.scm (gst-plugins-ugly): Update package definition. [arguments]<#:glib-or-gtk?>: New argument. <#:phases>['patch-docbook-xml]: New phase. ['pre-check]: New phase. [native-inputs]: Add docbook-xml, gettext-minimal, gsettings-desktop-schemas, perl and xorg-server-for-tests. [inputs]: Add glib, glib-networking and opencore-amr. Remove gst-plugins-base. [propagated-inputs]: Add gstreamer and gst-plugins-base. [synopsis]: Modify. [description]: Modify. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>master
parent
ce49fdc62b
commit
f65cfc6d67
|
@ -716,35 +716,66 @@ par compared to the rest.")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://gstreamer.freedesktop.org/src/"
|
(uri
|
||||||
name "/" name "-" version ".tar.xz"))
|
(string-append "https://gstreamer.freedesktop.org/src/"
|
||||||
|
name "/" name "-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1jpvc32x6q01zjkfgh6gmq6aaikiyfwwnhj7bmvn52syhrdl202m"))))
|
||||||
"1jpvc32x6q01zjkfgh6gmq6aaikiyfwwnhj7bmvn52syhrdl202m"))))
|
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
|
||||||
,@%common-gstreamer-phases)))
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-docbook-xml
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(with-directory-excursion "docs"
|
||||||
|
(substitute* "plugins/gst-plugins-ugly-plugins-docs.sgml"
|
||||||
|
(("http://www.oasis-open.org/docbook/xml/4.1.2/")
|
||||||
|
(string-append (assoc-ref inputs "docbook-xml")
|
||||||
|
"/xml/dtd/docbook/"))))
|
||||||
|
#t))
|
||||||
|
(add-before
|
||||||
|
'check 'pre-check
|
||||||
|
(lambda _
|
||||||
|
;; Tests require a running X server.
|
||||||
|
(system "Xvfb :1 +extension GLX &")
|
||||||
|
(setenv "DISPLAY" ":1")
|
||||||
|
;; Tests write to $HOME.
|
||||||
|
(setenv "HOME" (getcwd))
|
||||||
|
;; Tests look for $XDG_RUNTIME_DIR.
|
||||||
|
(setenv "XDG_RUNTIME_DIR" (getcwd))
|
||||||
|
;; For missing '/etc/machine-id'.
|
||||||
|
(setenv "DBUS_FATAL_WARNINGS" "0")
|
||||||
|
#t)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("docbook-xml" ,docbook-xml-4.1.2)
|
||||||
|
("gettext" ,gettext-minimal)
|
||||||
|
("glib:bin" ,glib "bin")
|
||||||
|
("gobject-introspection" ,gobject-introspection)
|
||||||
|
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
||||||
|
("perl" ,perl)
|
||||||
|
("pkg-config" ,pkg-config)
|
||||||
|
("python-wrapper" ,python-wrapper)
|
||||||
|
("xorg-server" ,xorg-server-for-tests)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("gst-plugins-base" ,gst-plugins-base)
|
`(("glib" ,glib)
|
||||||
|
("glib-networking" ,glib-networking)
|
||||||
("liba52" ,liba52)
|
("liba52" ,liba52)
|
||||||
("libcdio" ,libcdio)
|
("libcdio" ,libcdio)
|
||||||
|
("libdvdread" ,libdvdread)
|
||||||
("libmpeg2" ,libmpeg2)
|
("libmpeg2" ,libmpeg2)
|
||||||
("libdvdread" ,libdvdread)
|
("libdvdread" ,libdvdread)
|
||||||
("libx264" ,libx264)
|
("libx264" ,libx264)
|
||||||
;; TODO:
|
("opencore-amr" ,opencore-amr)
|
||||||
;; * opencore-amr (for the AMR-NB decoder and encoder and the
|
|
||||||
;; AMR-WB decoder) <http://sourceforge.net/projects/opencore-amr/>
|
|
||||||
("orc" ,orc)))
|
("orc" ,orc)))
|
||||||
(native-inputs
|
(propagated-inputs
|
||||||
`(("glib:bin" ,glib "bin")
|
`(("gstreamer" ,gstreamer)
|
||||||
("pkg-config" ,pkg-config)
|
("gst-plugins-base" ,gst-plugins-base)))
|
||||||
("python-wrapper" ,python-wrapper)))
|
(synopsis "GStreamer plugins and helper libraries")
|
||||||
|
(description "Gst-Plugins-Ugly are the ones that might have a patent noose
|
||||||
|
around their neck, or a lock-up license, or any other problem that makes you
|
||||||
|
think twice about shipping them.")
|
||||||
(home-page "https://gstreamer.freedesktop.org/")
|
(home-page "https://gstreamer.freedesktop.org/")
|
||||||
(synopsis "GStreamer plugins from the \"ugly\" set")
|
|
||||||
(description "GStreamer Ugly Plug-ins. This set contains those plug-ins
|
|
||||||
which the developers consider to have good quality code but that might pose
|
|
||||||
distribution problems in some jurisdictions, e.g. due to patent threats.")
|
|
||||||
(license license:lgpl2.0+)))
|
(license license:lgpl2.0+)))
|
||||||
|
|
||||||
(define-public gst-libav
|
(define-public gst-libav
|
||||||
|
|
Reference in New Issue