mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: mediastreamer2: Move the tester files and HTML doc to separate outputs.
The tester binary generated gets installed with about 20 MiB of data files, and the HTML documentation weighs another 500 KiB or so. Move them to separate outputs. * gnu/packages/patches/mediastreamer-srtp2.patch: Rename to... * gnu/packages/patches/mediastreamer2-srtp2.patch: ...this, to please 'guix lint'. * gnu/local.mk (dist_patch_DATA): Adapt. * gnu/packages/linphone.scm (mediastreamer2)[patches]: Likewise. [outputs]: Add the "doc" and "tester" outputs. [phases]: Add a phase to move the HTML doc and tester binary and data to the 'doc' and 'tester' outputs, respectively. [description]: Remove the unicode characters surrounding the word 'powerful'.
This commit is contained in:
parent
6978df6abb
commit
fe6ccb8552
3 changed files with 36 additions and 8 deletions
|
@ -1196,7 +1196,7 @@ dist_patch_DATA = \
|
|||
%D%/packages/patches/mcrypt-CVE-2012-4426.patch \
|
||||
%D%/packages/patches/mcrypt-CVE-2012-4527.patch \
|
||||
%D%/packages/patches/libmemcached-build-with-gcc7.patch \
|
||||
%D%/packages/patches/mediastreamer-srtp2.patch \
|
||||
%D%/packages/patches/mediastreamer2-srtp2.patch \
|
||||
%D%/packages/patches/mesa-skip-disk-cache-test.patch \
|
||||
%D%/packages/patches/mescc-tools-boot.patch \
|
||||
%D%/packages/patches/meson-for-build-rpath.patch \
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;;
|
||||
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
|
||||
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -324,8 +325,8 @@ (define-public mediastreamer2
|
|||
"mediastreamer/mediastreamer-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32 "0whpqr69wz0pnzvragkpfblxhd0rds8k06c3mw5a0ag216a1yd9k"))
|
||||
(patches
|
||||
(list (search-patch "mediastreamer-srtp2.patch")))))
|
||||
(patches (search-patches "mediastreamer2-srtp2.patch"))))
|
||||
(outputs '("out" "doc" "tester"))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f ; No test target
|
||||
|
@ -335,7 +336,33 @@ (define-public mediastreamer2
|
|||
"-DENABLE_STRICT=NO" ; Would otherwise treat warnings as err
|
||||
"-DENABLE_BV16=NO" ; Not available
|
||||
"-DCMAKE_C_FLAGS=-DMS2_GIT_VERSION=\\\"unknown\\\""
|
||||
"-DCMAKE_CXX_FLAGS=-DMS2_GIT_VERSION=\\\"unknown\\\"")))
|
||||
"-DCMAKE_CXX_FLAGS=-DMS2_GIT_VERSION=\\\"unknown\\\"")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'separate-outputs
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(doc (assoc-ref outputs "doc"))
|
||||
(tester (assoc-ref outputs "tester"))
|
||||
(tester-name (string-append ,name "_tester")))
|
||||
;; Copy the tester executable.
|
||||
(mkdir-p (string-append tester "/bin"))
|
||||
(rename-file (string-append out "/bin/" tester-name)
|
||||
(string-append tester "/bin/" tester-name))
|
||||
;; Copy the tester data files.
|
||||
(copy-recursively (string-append out "/share/" tester-name)
|
||||
(string-append tester "/share/" tester-name))
|
||||
(delete-file-recursively (string-append out "/share/"
|
||||
tester-name))
|
||||
;; Copy the HTML documentation.
|
||||
(copy-recursively (string-append out "/share/doc/"
|
||||
,name "-" ,version "/html")
|
||||
(string-append doc "/share/doc/"
|
||||
,name "-" ,version "/html"))
|
||||
(delete-file-recursively (string-append out "/share/doc/"
|
||||
,name "-" ,version
|
||||
"/html"))
|
||||
#t))))))
|
||||
(native-inputs
|
||||
`(("dot" ,graphviz)
|
||||
("doxygen" ,doxygen)
|
||||
|
@ -368,10 +395,11 @@ (define-public mediastreamer2
|
|||
("xv" ,libxv)
|
||||
("zrtp", bzrtp)))
|
||||
(synopsis "Belledonne Communications Streaming Engine")
|
||||
(description "Mediastreamer is a powerful and lightweight streaming
|
||||
engine for telephony applications. This media processing and streaming toolkit
|
||||
is responsible for receiving and sending all multimedia streams in Linphone,
|
||||
including media capture, encoding and decoding, and rendering.")
|
||||
(description "Mediastreamer2 is a powerful and lightweight
|
||||
streaming engine for telephony applications. This media processing
|
||||
and streaming toolkit is responsible for receiving and sending all
|
||||
multimedia streams in Linphone, including media capture, encoding and
|
||||
decoding, and rendering.")
|
||||
(home-page "https://gitlab.linphone.org/BC/public/mediastreamer2")
|
||||
(license license:gpl2+)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue