* [gentoo-commits] repo/gentoo:master commit in: dev-python/sabyenc/files/, dev-python/sabyenc/
@ 2017-06-07 21:56 Justin Bronder
0 siblings, 0 replies; 2+ messages in thread
From: Justin Bronder @ 2017-06-07 21:56 UTC (permalink / raw
To: gentoo-commits
commit: eb697a36540a1c28319b96b92bf165cc003d53f4
Author: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 7 21:31:16 2017 +0000
Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
CommitDate: Wed Jun 7 21:56:10 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb697a36
dev-python/sabyenc: initial import
Replacment of dev-python/yenc for net-nntp/sabnzbd.
Package-Manager: Portage-2.3.5, Repoman-2.3.1
dev-python/sabyenc/Manifest | 1 +
.../files/0001-remove-hardcoded-cflags.patch | 25 ++++++++++++++++++++++
dev-python/sabyenc/metadata.xml | 7 ++++++
dev-python/sabyenc/sabyenc-3.0.2.ebuild | 25 ++++++++++++++++++++++
4 files changed, 58 insertions(+)
diff --git a/dev-python/sabyenc/Manifest b/dev-python/sabyenc/Manifest
new file mode 100644
index 00000000000..38bcbe670d8
--- /dev/null
+++ b/dev-python/sabyenc/Manifest
@@ -0,0 +1 @@
+DIST sabyenc-3.0.2.tar.gz 16081020 SHA256 fd49ebf56a391dca0cd5b42c185329218e21e9fb53130cab7111f7e3fed98a42 SHA512 70890421e87f9829b1ceacc11b7d1059f29e7fb1f33470b50088b38e05ce4d2433c9fda40532a4308bfbc1f01f1bde1670fa993ab7601b81133049a1b45798d5 WHIRLPOOL 4e2ed0dbe5ad14d940f556d2b66714c5e2e7db501a0b41189d5115ecd87357130d07796a9f1f74dc86d026061c2e5190e7564f0ca94f7b2ec16b87e5ffd53cc5
diff --git a/dev-python/sabyenc/files/0001-remove-hardcoded-cflags.patch b/dev-python/sabyenc/files/0001-remove-hardcoded-cflags.patch
new file mode 100644
index 00000000000..8ec43317f44
--- /dev/null
+++ b/dev-python/sabyenc/files/0001-remove-hardcoded-cflags.patch
@@ -0,0 +1,25 @@
+From 3f70d3f955048e31ccac668caa59199d8cb71b50 Mon Sep 17 00:00:00 2001
+From: Justin Bronder <jsbronder@gmail.com>
+Date: Wed, 7 Jun 2017 17:23:37 -0400
+Subject: [PATCH] remove hardcoded cflags
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index d198eac..e2d8f1a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -32,7 +32,7 @@ setup(
+ url = "https://github.com/sabnzbd/sabnzbd-yenc",
+ license = "LGPLv3",
+ package_dir = {'sabyenc': 'src'},
+- ext_modules = [Extension("sabyenc", ["src/sabyenc.c"], extra_compile_args=["-O2"])],
++ ext_modules = [Extension("sabyenc", ["src/sabyenc.c"])],
+ classifiers = [
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 2.7",
+--
+2.10.2
+
diff --git a/dev-python/sabyenc/metadata.xml b/dev-python/sabyenc/metadata.xml
new file mode 100644
index 00000000000..664b1a9c9e0
--- /dev/null
+++ b/dev-python/sabyenc/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jsbronder@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/sabyenc/sabyenc-3.0.2.ebuild b/dev-python/sabyenc/sabyenc-3.0.2.ebuild
new file mode 100644
index 00000000000..bb1f9b3cee1
--- /dev/null
+++ b/dev-python/sabyenc/sabyenc-3.0.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: f817d96e09d5ad0b706abaadace1af19614d1acd $
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Module providing raw yEnc encoding/decoding for SABnzbd"
+HOMEPAGE="https://github.com/sabnzbd/sabyenc/"
+SRC_URI="https://github.com/sabnzbd/${PN}/tarball/v${PV} -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# Remove forced CFLAG on setup.py
+PATCHES=( "${FILESDIR}"/0001-remove-hardcoded-cflags.patch )
+DOCS=( CHANGES.md README.md doc/yenc-draft.1.3.txt )
+
+python_test() {
+ "${PYTHON}" test/test.py || die "Test failed."
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/sabyenc/files/, dev-python/sabyenc/
@ 2022-09-07 4:44 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2022-09-07 4:44 UTC (permalink / raw
To: gentoo-commits
commit: 637e284c75735e485555554709e3c7033d376d5b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 7 04:42:57 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Sep 7 04:42:57 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=637e284c
dev-python/sabyenc: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/sabyenc/Manifest | 1 -
.../sabyenc/files/sabyenc-4.0.2-fix-segfault.patch | 28 ----------------------
dev-python/sabyenc/sabyenc-4.0.2.ebuild | 28 ----------------------
3 files changed, 57 deletions(-)
diff --git a/dev-python/sabyenc/Manifest b/dev-python/sabyenc/Manifest
index 26a0a7656ff2..c3cc9df57aff 100644
--- a/dev-python/sabyenc/Manifest
+++ b/dev-python/sabyenc/Manifest
@@ -1,2 +1 @@
-DIST sabyenc-4.0.2.tar.gz 19579235 BLAKE2B 26af61a979f94b954a6fb7fa425ca07a8d757fb16c9d434e9a1e0019d84d156b527e9309cc65113fef64dd3f2afb92b46619dc9506327273f2ba7822337e9ccf SHA512 88e8b47b1438ca55b51dbf8a407c33ec335f0604abf8a3dcbc45853b6dadadf9932d97cf3f0adabd71a9405e2deaeff2777483d9ea692c9d3cbab99dfbfbc901
DIST sabyenc-5.4.2.gh.tar.gz 19774424 BLAKE2B fbb954435236eb1794611a8e5852534b0f7dbd79806e8a9ca1bb57274df7cc89a6a26aa92c89c596e0c2857d4bfbd4e4c34f1d529cb5d2464a669d6d15a3f392 SHA512 a07a57e6b3416e147fcef4f27e52fea4b3a522ebb722b4d223469b63e9d08f42689950d86c544a41bfe81bba934514a43094c13b98aa585167cae69a5aa1f405
diff --git a/dev-python/sabyenc/files/sabyenc-4.0.2-fix-segfault.patch b/dev-python/sabyenc/files/sabyenc-4.0.2-fix-segfault.patch
deleted file mode 100644
index 1a80d5f13da8..000000000000
--- a/dev-python/sabyenc/files/sabyenc-4.0.2-fix-segfault.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From: Arthur Zamarin <arthurzam@gmail.com>
-Date: Sat, 18 Sep 2021 21:07:45 +0300
-Subject: Fix Segfault during testing
-
-decode_usenet_chunks might receive it argument as bytesarray, or
-as bytes object, but the C code expects only bytesarray.
-Add code, to apply variant for each case, and fail using assert when
-both don't apply.
-
-Signed-off-by: Arthur Zamarin <arthurzam@gmail.com>
-
---- a/src/sabyenc3.c
-+++ b/src/sabyenc3.c
-@@ -593,7 +593,13 @@ PyObject* decode_usenet_chunks(PyObject* self, PyObject* args) {
- num_bytes_reserved = 0;
- lp_max = (int)PyList_Size(Py_input_list);
- for(lp = 0; lp < lp_max; lp++) {
-- num_bytes_reserved += (int)PyByteArray_GET_SIZE(PyList_GetItem(Py_input_list, lp));
-+ PyObject *temp = PyList_GetItem(Py_input_list, lp);
-+ if (PyByteArray_Check(temp))
-+ num_bytes_reserved += (int)PyByteArray_GET_SIZE(temp);
-+ else if (PyBytes_Check(temp))
-+ num_bytes_reserved += (int)PyBytes_GET_SIZE(temp);
-+ else
-+ assert(PyByteArray_Check(temp) || PyBytes_Check(temp));
- }
- }
-
diff --git a/dev-python/sabyenc/sabyenc-4.0.2.ebuild b/dev-python/sabyenc/sabyenc-4.0.2.ebuild
deleted file mode 100644
index d9536017b50b..000000000000
--- a/dev-python/sabyenc/sabyenc-4.0.2.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="Module providing raw yEnc encoding/decoding for SABnzbd"
-HOMEPAGE="https://github.com/sabnzbd/sabyenc"
-SRC_URI="https://github.com/sabnzbd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="amd64 ~x86"
-
-BDEPEND="test? (
- dev-python/chardet[${PYTHON_USEDEP}]
- )"
-
-DOCS=( CHANGES.md README.md doc/yenc-draft.1.3.txt )
-
-PATCHES=(
- "${FILESDIR}/${P}-fix-segfault.patch"
-)
-
-distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-07 4:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-07 4:44 [gentoo-commits] repo/gentoo:master commit in: dev-python/sabyenc/files/, dev-python/sabyenc/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2017-06-07 21:56 Justin Bronder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox