Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: whipper-0.9.0
@ 2020-01-02 12:49 voidlinux-github
  2020-01-02 21:59 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2020-01-02 12:49 UTC (permalink / raw)
  To: ml

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

There is a new pull request by st3r4g against master on the void-packages repository

https://github.com/st3r4g/void-packages whipper
https://github.com/void-linux/void-packages/pull/17985

New package: whipper-0.9.0
https://github.com/whipper-team/whipper

> Whipper is a Python 3 (3.5+) CD-DA ripper based on the morituri project (CDDA ripper for *nix systems aiming for accuracy over speed). It started just as a fork of morituri - which development seems to have halted - merging old ignored pull requests, improving it with bugfixes and new features. Nowadays whipper's codebase diverges significantly from morituri's one.

It was requested multiple times (#2201, #4182) but couldn't be packaged because it used python2 before current release.

Tested on `x86_64` (successfully ripped cd with default configuration).

A patch file from https://github.com/void-linux/void-packages/pull/17985.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-whipper-17985.patch --]
[-- Type: text/x-diff, Size: 3909 bytes --]

From 7484668a3e1b05c52a92c95b832d698d7f569ef8 Mon Sep 17 00:00:00 2001
From: Stefano Ragni <st3r4g@protonmail.com>
Date: Thu, 2 Jan 2020 01:14:10 +0100
Subject: [PATCH 1/2] New package: python3-pycdio-2.1.0

---
 srcpkgs/python3-pycdio/template | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 srcpkgs/python3-pycdio/template

diff --git a/srcpkgs/python3-pycdio/template b/srcpkgs/python3-pycdio/template
new file mode 100644
index 00000000000..9151191c1f4
--- /dev/null
+++ b/srcpkgs/python3-pycdio/template
@@ -0,0 +1,14 @@
+# Template file for 'python3-pycdio'
+pkgname=python3-pycdio
+version=2.1.0
+revision=1
+wrksrc=pycdio-${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools pkg-config swig"
+makedepends="libcdio-devel python3-devel"
+short_desc="Python OO interface to libcdio (CD Input and Control library)"
+maintainer="Stefano Ragni <st3r4g@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://www.gnu.org/software/libcdio"
+distfiles="${GNU_SITE}/libcdio/pycdio-${version}.tar.gz"
+checksum=d6d2e59d16339788835eed62ff75cfa38e7caa6f7e290dcc0d07f8ec30de6705

From 05a27e83af55ebf3dd1688d0bab5976588551734 Mon Sep 17 00:00:00 2001
From: Stefano Ragni <st3r4g@protonmail.com>
Date: Thu, 2 Jan 2020 00:51:53 +0100
Subject: [PATCH 2/2] New package: whipper-0.9.0

---
 .../patches/fix-failed-task-analyzetask.patch | 24 +++++++++++++++++++
 srcpkgs/whipper/template                      | 23 ++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 srcpkgs/whipper/patches/fix-failed-task-analyzetask.patch
 create mode 100644 srcpkgs/whipper/template

diff --git a/srcpkgs/whipper/patches/fix-failed-task-analyzetask.patch b/srcpkgs/whipper/patches/fix-failed-task-analyzetask.patch
new file mode 100644
index 00000000000..361af61042a
--- /dev/null
+++ b/srcpkgs/whipper/patches/fix-failed-task-analyzetask.patch
@@ -0,0 +1,24 @@
+From 305678ec85568e9fdbc888078c11a1f7d4bc0100 Mon Sep 17 00:00:00 2001
+From: Merlijn Wajer <merlijn@wizzup.org>
+Date: Sat, 14 Dec 2019 18:16:30 +0800
+Subject: [PATCH] program/cdparanoia: fix failed() task of AnalyzeTask
+
+---
+ whipper/program/cdparanoia.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/whipper/program/cdparanoia.py b/whipper/program/cdparanoia.py
+index 636e6f5..f071674 100644
+--- a/whipper/program/cdparanoia.py
++++ b/whipper/program/cdparanoia.py
+@@ -603,7 +603,7 @@ class AnalyzeTask(ctask.PopenTask):
+     def failed(self):
+         # cdparanoia exits with return code 1 if it can't determine
+         # whether it can defeat the audio cache
+-        output = "".join(self._output)
++        output = "".join(o.decode() for o in self._output)
+         m = _WARNING_RE.search(output)
+         if m or _ABORTING_RE.search(output):
+             self.defeatsCache = False
+-- 
+2.17.1
diff --git a/srcpkgs/whipper/template b/srcpkgs/whipper/template
new file mode 100644
index 00000000000..9e21890bf0a
--- /dev/null
+++ b/srcpkgs/whipper/template
@@ -0,0 +1,23 @@
+# Template file for 'whipper'
+pkgname=whipper
+version=0.9.0
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+makedepends="libsndfile-devel python3-devel"
+depends="libcdio-paranoia cdrdao python3-gobject python3-musicbrainzngs
+ python3-mutagen python3-requests python3-pycdio python3-discid
+ python3-ruamel.yaml flac sox"
+short_desc="Python CD-DA ripper preferring accuracy over speed"
+maintainer="Stefano Ragni <st3r4g@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/whipper-team/whipper"
+distfiles="https://github.com/whipper-team/whipper/archive/v${version}.tar.gz"
+checksum=3caceeec7ca73c8b73147884b0f8eeacbe66af52900021b564118b88d23afbd2
+
+patch_args="-Np1"
+
+pre_build() {
+# Temporary workaround for https://github.com/whipper-team/whipper/issues/428
+	echo "Version: ${version}" > PKG-INFO
+}

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

* Re: [PR PATCH] [Merged]: New package: whipper-0.9.0
  2020-01-02 12:49 [PR PATCH] New package: whipper-0.9.0 voidlinux-github
@ 2020-01-02 21:59 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2020-01-02 21:59 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

New package: whipper-0.9.0
https://github.com/void-linux/void-packages/pull/17985

Description:
https://github.com/whipper-team/whipper

> Whipper is a Python 3 (3.5+) CD-DA ripper based on the morituri project (CDDA ripper for *nix systems aiming for accuracy over speed). It started just as a fork of morituri - which development seems to have halted - merging old ignored pull requests, improving it with bugfixes and new features. Nowadays whipper's codebase diverges significantly from morituri's one.

It was requested multiple times (#2201, #4182) but couldn't be packaged because it used python2 before current release.

Tested on `x86_64` (successfully ripped cd with default configuration).

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

end of thread, other threads:[~2020-01-02 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-02 12:49 [PR PATCH] New package: whipper-0.9.0 voidlinux-github
2020-01-02 21:59 ` [PR PATCH] [Merged]: " voidlinux-github

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 NNTP newsgroup(s).