mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
Update to 0.9.2
This commit is contained in:
parent
03d386ad48
commit
bbaed92336
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120449
4 changed files with 7 additions and 44 deletions
|
@ -6,13 +6,11 @@
|
|||
#
|
||||
|
||||
PORTNAME= ctypes
|
||||
PORTVERSION= 0.6.3
|
||||
PORTVERSION= 0.9.2
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%/,ctypes/:pyctypes,g} \
|
||||
${MASTER_SITE_LOCAL:S,%SUBDIR%/,perky/:libffi,g}
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%/,ctypes/,g}
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTFILES= ctypes-${PORTVERSION}.tar.gz:pyctypes \
|
||||
libffi-${LIBFFIVERSION}.tar.gz:libffi
|
||||
DISTFILES= ctypes-${PORTVERSION}.tar.gz
|
||||
|
||||
MAINTAINER= perky@FreeBSD.org
|
||||
COMMENT= Python module allowing to create and manipulate C data types
|
||||
|
@ -21,36 +19,16 @@ USE_PYTHON= yes
|
|||
USE_PYDISTUTILS=yes
|
||||
USE_REINPLACE= yes
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
# libffi on ports is incompatible with this port. so, we link the recent
|
||||
# version of it static.
|
||||
LIBFFIVERSION= 030511
|
||||
LIBFFIWRKSRC= ${WRKDIR}/libffi-${LIBFFIVERSION}
|
||||
CONFIGURE_ARGS= --enable-static --disable-shared
|
||||
CONFIGURE_WRKSRC=${LIBFFIWRKSRC}
|
||||
|
||||
ONLY_FOR_ARCHS= i386 alpha powerpc
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
${LN} -sf ${LIBFFIWRKSRC}/config-ml.in ${LIBFFIWRKSRC}/..
|
||||
${REINPLACE_CMD} -e 's|\(include_dirs = \).*|\1["${LIBFFIWRKSRC}/include"]|' \
|
||||
-e 's|\(libraries=\["ffi"\]\)|\1,library_dirs=["${LIBFFIWRKSRC}/.libs"]|' \
|
||||
${REINPLACE_CMD} \
|
||||
-e 's|\(Extension(.*\)$$|\1 define_macros=[("ffi_type_schar", \
|
||||
"ffi_type_sint8"), ("ffi_type_sshort","ffi_type_sint16")],|' \
|
||||
-e 's|define_macros=\[.*CAN_PASS_BY_VALUE.*\],||' \
|
||||
${WRKSRC}/setup.py
|
||||
${REINPLACE_CMD} -e 's,\(alpha\*-.*-osf.*\)),\1 | alpha*-*-freebsd*),' \
|
||||
${LIBFFIWRKSRC}/configure
|
||||
.if ${ARCH} == "ia64"
|
||||
${LN} -sf ${LIBFFIWRKSRC}/${ARCH}/${ARCH}_flags.h ${LIBFFIWRKSRC}/
|
||||
${REINPLACE_CMD} -e 's|defined(IA64)|defined(__ia64__)|' \
|
||||
${LIBFFIWRKSRC}/include/ffi.h
|
||||
.endif
|
||||
|
||||
pre-build:
|
||||
cd ${LIBFFIWRKSRC}; ${MAKE_ENV} ${GMAKE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
MD5 (ctypes-0.6.3.tar.gz) = db17353042d9b96c9187fb8c4507f79f
|
||||
SIZE (ctypes-0.6.3.tar.gz) = 150590
|
||||
MD5 (ctypes-0.9.2.tar.gz) = 1acd425fcb69722aca1ab0395d66d780
|
||||
SIZE (ctypes-0.9.2.tar.gz) = 502482
|
||||
MD5 (libffi-030511.tar.gz) = dcce311e68911b3d16729ce8602fd946
|
||||
SIZE (libffi-030511.tar.gz) = 190872
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
--- source/callproc.c.orig Mon Jun 9 13:22:12 2003
|
||||
+++ source/callproc.c Mon Jun 9 13:22:58 2003
|
||||
@@ -505,6 +505,13 @@
|
||||
#undef ffi_type_slong
|
||||
#define ffi_type_slong ffi_type_sint32
|
||||
#define ffi_type_slonglong ffi_type_sint64
|
||||
+#elif (SIZEOF_LONG_LONG == 8 && SIZEOF_LONG == 8)
|
||||
+#undef ffi_type_ulong
|
||||
+#define ffi_type_ulong ffi_type_uint64
|
||||
+#define ffi_type_ulonglong ffi_type_uint64
|
||||
+#undef ffi_type_slong
|
||||
+#define ffi_type_slong ffi_type_sint64
|
||||
+#define ffi_type_slonglong ffi_type_sint64
|
||||
#endif
|
||||
|
||||
atypes = (ffi_type **)alloca(argcount * sizeof(ffi_type *));
|
|
@ -1,4 +1,5 @@
|
|||
%%PYTHON_SITELIBDIR%%/_ctypes.so
|
||||
%%PYTHON_SITELIBDIR%%/_ctypes_test.so
|
||||
%%PYTHON_SITELIBDIR%%/ctypes/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/ctypes/__init__.pyc
|
||||
%%PYTHON_SITELIBDIR%%/ctypes/__init__.pyo
|
||||
|
|
Loading…
Add table
Reference in a new issue