Update to py-sabyenc-5.1.0

While here drop RCS Ids
This commit is contained in:
bket 2022-03-11 19:18:29 +00:00
parent ffa1cebd1b
commit 8e4ff7cd9e
4 changed files with 18 additions and 8 deletions

View File

@ -1,11 +1,8 @@
# $OpenBSD: Makefile,v 1.5 2021/11/02 00:01:53 sthen Exp $
COMMENT = yEnc Module for Python modified for SABnzbd
MODPY_EGG_VERSION = 4.0.2
MODPY_EGG_VERSION = 5.1.0
DISTNAME = sabyenc3-${MODPY_EGG_VERSION}
PKGNAME = py-sabyenc-${MODPY_EGG_VERSION}
REVISION = 1
CATEGORIES = news
@ -14,7 +11,9 @@ HOMEPAGE = https://github.com/sabnzbd/sabyenc
# LGPLv3
PERMIT_PACKAGE = Yes
WANTLIB += ${MODPY_WANTLIB} pthread
WANTLIB = ${COMPILER_LIBCXX} m
COMPILER = base-clang ports-gcc base-gcc
MODULES = lang/python
MODPY_PI = Yes

View File

@ -1,2 +1,2 @@
SHA256 (sabyenc3-4.0.2.tar.gz) = 36oL3QF1Kpz94NNJqPTheLBLHPnBvAGLKHlhGSzSu5A=
SIZE (sabyenc3-4.0.2.tar.gz) = 10633
SHA256 (sabyenc3-5.1.0.tar.gz) = y2I/kSyPIPSz7PrwW/AbP4BsEXHWQgXRb1VT0nTHQcE=
SIZE (sabyenc3-5.1.0.tar.gz) = 224159

View File

@ -0,0 +1,12 @@
Index: src/yencode/common.h
--- src/yencode/common.h.orig
+++ src/yencode/common.h
@@ -39,7 +39,7 @@
#include <stdlib.h> // MSVC ARM64 seems to need this
#define ALIGN_ALLOC(buf, len, align) *(void**)&(buf) = _aligned_malloc((len), align)
#define ALIGN_FREE _aligned_free
-#elif defined(__cplusplus) && __cplusplus >= 201100 && !(defined(_MSC_VER) && (defined(__clang__) || defined(_M_ARM64) || defined(_M_ARM))) && !defined(__APPLE__)
+#elif defined(__cplusplus) && __cplusplus >= 201100 && !(defined(_MSC_VER) && (defined(__clang__) || defined(_M_ARM64) || defined(_M_ARM))) && !defined(__APPLE__) && !defined(__OpenBSD__)
// C++11 method
// len needs to be a multiple of alignment, although it sometimes works if it isn't...
#include <cstdlib>

View File

@ -1,4 +1,3 @@
@comment $OpenBSD: PLIST,v 1.3 2021/01/04 14:06:36 sthen Exp $
@conflict py-sabyenc-*
@pkgpath news/py-sabyenc
lib/python${MODPY_VERSION}/site-packages/sabyenc3-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/