All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegorslists@googlemail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [V3 1/1] python-mutagen: new package
Date: Wed, 25 Jan 2017 15:59:59 +0100	[thread overview]
Message-ID: <CAGm1_ktit-ps2vjfb86oXjNfnZLPHB-7un9FgiVY4+qmU7Ugug@mail.gmail.com> (raw)
In-Reply-To: <20170125142945.11040-1-aduskett@codeblue.com>

On Wed, Jan 25, 2017 at 3:29 PM, Adam Duskett <aduskett@gmail.com> wrote:
> Mutagen is a Python module to handle audio metadata.
> It supports ASF, FLAC, MP4, Monkey?s Audio, MP3, Musepack, Ogg Opus,
> Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack,
> OptimFROG, and AIFF audio files. All versions of ID3v2 are supported,
> and all standard ID3v2.4 frames are parsed.
>
> It can read Xing headers to accurately calculate the bitrate and
> length of MP3s. ID3 and APEv2 tags can be edited regardless of
> audio format. It can also manipulate Ogg streams on an individual
> packet/page level.
>
> Mutagen works with Python 2.7, 3.3+ (CPython and PyPy) on Linux,
> Windows and macOS, and has no dedependencies outside the
> Python standard library.
>
> Signed-off-by: Adam Duskett <aduskett@codeblue.com>
> ---
> v2 - v3:
>   - Readded longer help explination.
>   - Added check for python2 or python3 zlib.
>
> v1 - v2:
>   - Added BR2_PACKAGE_PYTHON_ZLIB as a requirement.  Without
>    this dependency, programs using python-mutagen will
>    fail to load with a import error complaining about not
>    being able to find zlib in python.
>  package/Config.in                          |  1 +
>  package/python-mutagen/Config.in           | 18 ++++++++++++++++++
>  package/python-mutagen/python-mutagen.hash |  3 +++
>  package/python-mutagen/python-mutagen.mk   | 14 ++++++++++++++
>  4 files changed, 36 insertions(+)
>  create mode 100644 package/python-mutagen/Config.in
>  create mode 100644 package/python-mutagen/python-mutagen.hash
>  create mode 100644 package/python-mutagen/python-mutagen.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index c7b6862..0023e7b 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -724,6 +724,7 @@ menu "External python modules"
>         source "package/python-meld3/Config.in"
>         source "package/python-mistune/Config.in"
>         source "package/python-msgpack/Config.in"
> +       source "package/python-mutagen/Config.in"
>         source "package/python-mwclient/Config.in"
>         source "package/python-mwscrape/Config.in"
>         source "package/python-mwscrape2slob/Config.in"
> diff --git a/package/python-mutagen/Config.in b/package/python-mutagen/Config.in
> new file mode 100644
> index 0000000..faaff39
> --- /dev/null
> +++ b/package/python-mutagen/Config.in
> @@ -0,0 +1,18 @@
> +config BR2_PACKAGE_PYTHON_MUTAGEN
> +       bool "python-mutagen"
> +       select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON # runtime
> +       select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3 # runtime
> +       select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime
> +       select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3 # runtime
> +       help
> +         Mutagen is a Python module to handle audio metadata.
> +         It supports ASF, FLAC, MP4, Monkey?s Audio, MP3, Musepack, Ogg Opus,
> +         Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack,
> +         OptimFROG, and AIFF audio files. All versions of ID3v2 are supported,
> +         and all standard ID3v2.4 frames are parsed.
> +
> +         It can read Xing headers to accurately calculate the bitrate and length
> +         of MP3s. ID3 and APEv2 tags can be edited regardless of audio format.
> +         It can also manipulate Ogg streams on an individual packet/page level.
> +
> +         https://mutagen.readthedocs.io/en/latest/#
> diff --git a/package/python-mutagen/python-mutagen.hash b/package/python-mutagen/python-mutagen.hash
> new file mode 100644
> index 0000000..8970a23
> --- /dev/null
> +++ b/package/python-mutagen/python-mutagen.hash
> @@ -0,0 +1,3 @@
> +# md5 from https://pypi.python.org/pypi/mutagen, sha256 locally computed
> +md5    2bd50519d64411626fa22d405afbf078  mutagen-1.36.tar.gz
> +sha256 d7ee37e33b8c5893c3ebf66edac31241eb9d48e1dc7ec647bbfbc180565a4bcd  mutagen-1.36.tar.gz
> diff --git a/package/python-mutagen/python-mutagen.mk b/package/python-mutagen/python-mutagen.mk
> new file mode 100644
> index 0000000..b8c37d3
> --- /dev/null
> +++ b/package/python-mutagen/python-mutagen.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# python-mutagen
> +#
> +################################################################################
> +
> +PYTHON_MUTAGEN_VERSION = 1.36
> +PYTHON_MUTAGEN_SOURCE = mutagen-$(PYTHON_MUTAGEN_VERSION).tar.gz
> +PYTHON_MUTAGEN_SITE = https://pypi.python.org/packages/69/14/4a5c8360a727563291a7159de935ffff2b99ee783928169f0fea7445370f
> +PYTHON_MUTAGEN_LICENSE = LGPLv3+

this is actually GPLv2+

> +PYTHON_MUTAGEN_LICENSE_FILES = COPYING.LESSER

this is actually COPYING

Make sure "make legal-info" can be invoked without errors.

With these changes apploed you can add my

Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>

Yegor

      reply	other threads:[~2017-01-25 14:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25 14:29 [Buildroot] [V3 1/1] python-mutagen: new package Adam Duskett
2017-01-25 14:59 ` Yegor Yefremov [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGm1_ktit-ps2vjfb86oXjNfnZLPHB-7un9FgiVY4+qmU7Ugug@mail.gmail.com \
    --to=yegorslists@googlemail.com \
    --cc=buildroot@busybox.net \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.