Sun May 31 13:09:51 2015 UTC ()
Update to 1.1.0:

1.1.0
=====

* Out-of-line API mode: we can now declare integer types with
  ``typedef int... foo_t;``.  The exact size and signness of ``foo_t``
  is figured out by the compiler.

* Out-of-line API mode: we can now declare multidimensional arrays
  (as fields or as globals) with ``int n[...][...]``.  Before, only the
  outermost dimension would support the ``...`` syntax.

* Out-of-line ABI mode: we now support any constant declaration,
  instead of only integers whose value is given in the cdef.  Such "new"
  constants, i.e. either non-integers or without a value given in the
  cdef, must correspond to actual symbols in the lib.  At runtime they
  are looked up the first time we access them.  This is useful if the
  library defines ``extern const sometype somename;``.

* ``ffi.addressof(lib, "func_name")`` now returns a regular cdata object
  of type "pointer to function".  You can use it on any function from a
  library in API mode (in ABI mode, all functions are already regular
  cdata objects).  To support this, you need to recompile your cffi
  modules.

* Issue #198: in API mode, if you declare constants of a ``struct``
  type, what you saw from lib.CONSTANT was corrupted.

* Issue #196: ``ffi.set_source("package._ffi", None)`` would
  incorrectly generate the Python source to ``package._ffi.py`` instead
  of ``package/_ffi.py``.  Also fixed: in some cases, if the C file was
  in ``build/foo.c``, the .o file would be put in ``build/build/foo.o``.


(wiz)
diff -r1.7 -r1.8 pkgsrc/devel/py-cffi/Makefile
diff -r1.7 -r1.8 pkgsrc/devel/py-cffi/distinfo

cvs diff -r1.7 -r1.8 pkgsrc/devel/py-cffi/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-cffi/Makefile 2015/05/28 07:06:32 1.7
+++ pkgsrc/devel/py-cffi/Makefile 2015/05/31 13:09:51 1.8
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.7 2015/05/28 07:06:32 wiz Exp $ 1# $NetBSD: Makefile,v 1.8 2015/05/31 13:09:51 wiz Exp $
2 2
3DISTNAME= cffi-1.0.3 3DISTNAME= cffi-1.1.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel 5CATEGORIES= devel
6MASTER_SITES= https://pypi.python.org/packages/source/c/cffi/ 6MASTER_SITES= https://pypi.python.org/packages/source/c/cffi/
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://pypi.python.org/pypi/cffi/ 9HOMEPAGE= https://pypi.python.org/pypi/cffi/
10COMMENT= Foreign Function Interface for Python calling C code 10COMMENT= Foreign Function Interface for Python calling C code
11LICENSE= mit 11LICENSE= mit
12 12
13USE_TOOLS+= pkg-config 13USE_TOOLS+= pkg-config
14 14
15.include "../../devel/libffi/buildlink3.mk" 15.include "../../devel/libffi/buildlink3.mk"
16.include "../../lang/python/egg.mk" 16.include "../../lang/python/egg.mk"

cvs diff -r1.7 -r1.8 pkgsrc/devel/py-cffi/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-cffi/distinfo 2015/05/28 07:06:32 1.7
+++ pkgsrc/devel/py-cffi/distinfo 2015/05/31 13:09:51 1.8
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.7 2015/05/28 07:06:32 wiz Exp $ 1$NetBSD: distinfo,v 1.8 2015/05/31 13:09:51 wiz Exp $
2 2
3SHA1 (cffi-1.0.3.tar.gz) = af4484ec231710368455ad18644ce3b0c28c7c85 3SHA1 (cffi-1.1.0.tar.gz) = 7c36b783156eaf985b35a56c43f3eecac37e262c
4RMD160 (cffi-1.0.3.tar.gz) = 4f533b9bdc30b69cc16cbb45f36bf591446a4e61 4RMD160 (cffi-1.1.0.tar.gz) = abae9d0c46f4db94b06dd6f9036d1ace9c21c366
5Size (cffi-1.0.3.tar.gz) = 317372 bytes 5Size (cffi-1.1.0.tar.gz) = 323962 bytes