Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Sabnzbd python3
@ 2020-10-01  1:30 sgn
  2020-10-01 15:32 ` [PR PATCH] [Merged]: " sgn
  0 siblings, 1 reply; 2+ messages in thread
From: sgn @ 2020-10-01  1:30 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages sabnzbd-python3
https://github.com/void-linux/void-packages/pull/25211

Sabnzbd python3


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

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

From 58d092aed7d62e275333f497d90863c192c499f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Thu, 1 Oct 2020 08:29:28 +0700
Subject: [PATCH 1/2] sabnzbd: update to 3.0.2.

---
 ...-00-system-configobj-feedparser-gntp.patch | 22 --------------
 srcpkgs/sabnzbd/template                      | 29 +++++++++----------
 2 files changed, 14 insertions(+), 37 deletions(-)
 delete mode 100644 srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch

diff --git a/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch b/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch
deleted file mode 100644
index e0b1cb98a0b..00000000000
--- a/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- sabnzbd/config.py.orig
-+++ sabnzbd/config.py
-@@ -30,7 +30,7 @@
- from urlparse import urlparse
- import sabnzbd.misc
- from sabnzbd.constants import CONFIG_VERSION, NORMAL_PRIORITY, DEFAULT_PRIORITY, MAX_WIN_DFOLDER
--from sabnzbd.utils import configobj
-+import configobj
- from sabnzbd.decorators import synchronized
- 
- CONFIG_LOCK = threading.Lock()
---- sabnzbd/rss.py.orig
-+++ sabnzbd/rss.py
-@@ -35,7 +35,7 @@
- import sabnzbd.emailer as emailer
- from sabnzbd.encoding import unicoder, xml_name
- 
--import sabnzbd.utils.feedparser as feedparser
-+import feedparser
- 
- __RSS = None  # Global pointer to RSS-scanner instance
- 
diff --git a/srcpkgs/sabnzbd/template b/srcpkgs/sabnzbd/template
index a45b6535c33..ed3dd23016b 100644
--- a/srcpkgs/sabnzbd/template
+++ b/srcpkgs/sabnzbd/template
@@ -1,40 +1,39 @@
 # Template file for 'sabnzbd'
 pkgname=sabnzbd
-version=2.3.9
+version=3.0.2
 revision=1
-archs=noarch
 wrksrc="SABnzbd-${version}"
 pycompile_dirs="/usr/share/sabnzbd"
-depends="par2cmdline python-cheetah python-configobj python-feedparser
- python-gntp python-openssl python-yenc unzip"
+hostmakedepends="python3 gettext"
+depends="par2cmdline python3-sabyenc3 python3-cheetah3 python3-cryptography
+ python3-feedparser python3-configobj python3-CherryPy
+ python3-portend python3-chardet python3-notify2 unzip"
 short_desc="Open Source Binary Newsreader written in Python"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="GPL-2.0-or-later"
+license="GPL-2.0-or-later, custom:Bundled"
 homepage="https://sabnzbd.org/"
 changelog="https://github.com/sabnzbd/sabnzbd/releases"
 distfiles="https://github.com/sabnzbd/sabnzbd/releases/download/${version}/SABnzbd-${version}-src.tar.gz"
-checksum=f3ab6dffba914e6ddf88f1a755ec3ebaa95f0bdbec6f04b7bf0f90822249bb0c
-python_version=2 #unverified
+checksum=c93f95d9193061ba653c2ab592704c7a8e9b6146817f80e4e2420b3f74b976b2
+python_version=3
 
 post_extract() {
 	rm -rf gntp sabnzbd/utils/{feedparser,configobj}.py
 	rm -f licenses/License-{feedparser,configobj,gntp,Python}.txt
 	rm -rf solaris
+}
 
-	# sabnzbd bundles a heavily modified version of cherrypy. It's
-	# uncertain what base version they use, or where each individual
-	# patch came from, so using upstream cherrypy isn't an option.
-
-	# sabnzbd also bundles a variety of small libraries, some of which
-	# haven't been maintained since 2006. There may be no point to
-	# packaging them separately.
+do_build() {
+	python3 tools/make_mo.py
 }
 
 do_install() {
 	vbin ${FILESDIR}/sabnzbd
-
 	vmkdir usr/share/sabnzbd
 	vcopy "*" usr/share/sabnzbd
+	rm -rf $DESTDIR/usr/share/sabnzbd/po
+	rm -rf $DESTDIR/usr/share/sabnzbd/tools
+	rm -rf $DESTDIR/usr/share/sabnzbd/tests
 
 	for _f in licenses/* COPYRIGHT.txt; do
 		vlicense ${_f}

From e5f3e8ee6555f954b4d08e4d2abf80103a1ef5ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Thu, 1 Oct 2020 08:29:38 +0700
Subject: [PATCH 2/2] New package: python3-sabyenc3-4.0.2

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

diff --git a/srcpkgs/python3-sabyenc3/template b/srcpkgs/python3-sabyenc3/template
new file mode 100644
index 00000000000..7df3ac9bdb0
--- /dev/null
+++ b/srcpkgs/python3-sabyenc3/template
@@ -0,0 +1,15 @@
+# Template file for 'python3-sabyenc3'
+pkgname=python3-sabyenc3
+version=4.0.2
+revision=1
+wrksrc=sabyenc3-$version
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+makedepends="python3-devel"
+depends="python3"
+short_desc="SABYEnc - yEnc Decoding for Python 3"
+maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
+license="LGPL-3.0-or-later"
+homepage="https://github.com/sabnzbd/sabyenc/"
+distfiles="$PYPI_SITE/s/sabyenc3/sabyenc3-$version.tar.gz"
+checksum=dfaa0bdd01752a9cfde0d349a8f4e178b04b1cf9c1bc018b287961192cd2bb90

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

* Re: [PR PATCH] [Merged]: Sabnzbd python3
  2020-10-01  1:30 [PR PATCH] Sabnzbd python3 sgn
@ 2020-10-01 15:32 ` sgn
  0 siblings, 0 replies; 2+ messages in thread
From: sgn @ 2020-10-01 15:32 UTC (permalink / raw)
  To: ml

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

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

Sabnzbd python3
https://github.com/void-linux/void-packages/pull/25211

Description:


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

end of thread, other threads:[~2020-10-01 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01  1:30 [PR PATCH] Sabnzbd python3 sgn
2020-10-01 15:32 ` [PR PATCH] [Merged]: " sgn

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).