unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: 宋文武 <iyzsong@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 4/4] gnu: Add gst-python.
Date: Sun, 6 Mar 2016 09:15:43 +0200	[thread overview]
Message-ID: <20160306091543.16dfc6b0@debian-netbook> (raw)
In-Reply-To: <1457248078-13098-4-git-send-email-iyzsong@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3686 bytes --]

On Sun,  6 Mar 2016 15:07:58 +0800
宋文武 <iyzsong@gmail.com> wrote:

> * gnu/packages/gstreamer.scm (python-gst, python2-gst): New variables.
> ---
>  gnu/packages/gstreamer.scm | 58 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 58 insertions(+)
> 
> diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
> index 5b348b1..b19ea81 100644
> --- a/gnu/packages/gstreamer.scm
> +++ b/gnu/packages/gstreamer.scm
> @@ -24,6 +24,7 @@
>    #:use-module (guix packages)
>    #:use-module (guix download)
>    #:use-module (guix build-system gnu)
> +  #:use-module (guix utils)
>    #:use-module (gnu packages)
>    #:use-module (gnu packages audio)
>    #:use-module (gnu packages bison)
> @@ -400,3 +401,60 @@ distribution problems in some jurisdictions, e.g. due to patent threats.")
>       "This GStreamer plugin supports a large number of audio and video
>  compression formats through the use of the libav library.")
>      (license gpl2+)))
> +
> +(define-public python-gst
> +  (package
> +    (name "python-gst")
> +    (version "1.6.2")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "https://gstreamer.freedesktop.org/src/gst-python/"
> +                    "gst-python-" version ".tar.xz"))
> +              (sha256
> +               (base32
> +                "09ci5zvr7lms7mvgbjgsjwaxcl4nq45n1g9pdwnqmx3rf0qkwxjf"))))
> +    (build-system gnu-build-system)
> +    (arguments
> +     `(#:configure-flags
> +       (let ((python-sitedir
> +              ;; XXX: make this a package property?
> +              ,(string-append "lib/python"
> +                              (version-major+minor (package-version python))
> +                              "/site-packages")))
> +         (list (string-append
> +                "--with-pygi-overrides-dir=" %output "/" python-sitedir
> +                "/gi/overrides")))))
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config)
> +       ("python" ,python)))
> +    (propagated-inputs
> +     `(("gst-plugins-base" ,gst-plugins-base)
> +       ("python-pygobject" ,python-pygobject)))
> +    (home-page "http://gstreamer.freedesktop.org/")
> +    (synopsis "GStreamer GObject Introspection overrides for Python")
> +    (description
> +     "This package contains GObject Introspection overrides for Python that can
> +be used by Python applications using GStreamer.")
> +    (license lgpl2.1+)
> +    (properties `((python2-variant . ,(delay python2-gst))))))
> +
> +(define-public python2-gst
> +  (package (inherit python-gst)
> +    (name "python2-gst")
> +    (arguments
> +     `(#:configure-flags
> +       (let ((python-sitedir
> +              ;; XXX: make this a package property?
> +              ,(string-append "lib/python"
> +                              (version-major+minor (package-version python-2))
> +                              "/site-packages")))
> +         (list (string-append
> +                "--with-pygi-overrides-dir=" %output "/" python-sitedir
> +                "/gi/overrides")))))
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config)
> +       ("python" ,python-2)))
> +    (propagated-inputs
> +     `(("gst-plugins-base" ,gst-plugins-base)
> +       ("python-pygobject" ,python2-pygobject)))))

are you sure this should use the gnu-build-system and not the
python-build-system?

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-03-06  7:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-06  7:07 [PATCH 1/4] gnu: orc: Update to 0.4.25 宋文武
2016-03-06  7:07 ` [PATCH 2/4] gnu: python-pygobject: Add search path for GI_TYPELIB_PATH 宋文武
2016-03-06 23:15   ` Ludovic Courtès
2016-03-06  7:07 ` [PATCH 3/4] gnu: python-pygobject: Propagate glib and libffi 宋文武
2016-03-06 23:17   ` Ludovic Courtès
2016-03-06  7:07 ` [PATCH 4/4] gnu: Add gst-python 宋文武
2016-03-06  7:15   ` Efraim Flashner [this message]
2016-03-06  7:25     ` 宋文武
2016-03-06 23:20   ` Ludovic Courtès
2016-03-07  1:59     ` 宋文武
2016-03-06 23:14 ` [PATCH 1/4] gnu: orc: Update to 0.4.25 Ludovic Courtès

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=20160306091543.16dfc6b0@debian-netbook \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    --cc=iyzsong@gmail.com \
    /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).