Tue May 22 08:28:47 2012 UTC ()
Update py-cxfreeze to 4.2.3.

While here,
* register egg-info.
* add patch to enable rpath, custom post-build should not be required anymore.

Changes from 4.2.2 to 4.2.3
 1) Added support for Python 3.2.
 2) Added hook for datetime module which implicitly imports the time module.
 3) Fixed hook for tkinter in Python 3.x.
 4) Always include the zlib module since the zipimport module requires it,
    even when compression is not taking place.
 5) Added sample for a tkinter application.


(obache)
diff -r1.3 -r1.4 pkgsrc/lang/py-cxfreeze/Makefile
diff -r1.2 -r1.3 pkgsrc/lang/py-cxfreeze/PLIST
diff -r1.2 -r1.3 pkgsrc/lang/py-cxfreeze/distinfo
diff -r1.1.1.1 -r1.2 pkgsrc/lang/py-cxfreeze/patches/patch-aa

cvs diff -r1.3 -r1.4 pkgsrc/lang/py-cxfreeze/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/py-cxfreeze/Makefile 2011/12/03 00:02:15 1.3
+++ pkgsrc/lang/py-cxfreeze/Makefile 2012/05/22 08:28:46 1.4
@@ -1,46 +1,28 @@ @@ -1,46 +1,28 @@
1# $NetBSD: Makefile,v 1.3 2011/12/03 00:02:15 joerg Exp $ 1# $NetBSD: Makefile,v 1.4 2012/05/22 08:28:46 obache Exp $
2# 2#
3 3
4VERS= 4.2.2 4VERS= 4.2.3
5DISTNAME= cx_Freeze-${VERS} 5DISTNAME= cx_Freeze-${VERS}
6PKGNAME= ${PYPKGPREFIX}-cxfreeze-${VERS} 6PKGNAME= ${PYPKGPREFIX}-cxfreeze-${VERS}
7CATEGORIES= devel 7CATEGORIES= devel
8MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cx-freeze/} 8MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cx-freeze/}
9 9
10MAINTAINER= helgoman@users.sourceforge.net 10MAINTAINER= helgoman@users.sourceforge.net
11HOMEPAGE= http://cx-freeze.sourceforge.net/ 11HOMEPAGE= http://cx-freeze.sourceforge.net/
12COMMENT= Freezing python scripts into executables 12COMMENT= Freezing python scripts into executables
13LICENSE= python-software-foundation 13LICENSE= python-software-foundation
14 14
15PKG_DESTDIR_SUPPORT= user-destdir 15PKG_DESTDIR_SUPPORT= user-destdir
16 16
17PYTHON_VERSIONS_INCLUDE_3X= yes 17PYTHON_VERSIONS_INCLUDE_3X= yes
18 18
19USE_LANGUAGES= c c++ 19USE_LANGUAGES= c c++
20 20
21PYDISTUTILSPKG= yes 
22PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} 21PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
23 22
24post-extract: 23post-extract:
25 ${MV} ${WRKSRC}/cxfreeze ${WRKSRC}/cxfreeze${PYVERSSUFFIX} 24 ${MV} ${WRKSRC}/cxfreeze ${WRKSRC}/cxfreeze${PYVERSSUFFIX}
26 25
27# XXX this pkg abuses the distutils extension build mechanism to 
28# build executables. The result isn't executable on NetBSD. 
29# Relink to get valid executables. 
30post-build: 
31 cd ${WRKSRC} && ${CC} build/temp.*/source/bases/Console.o \ 
32 -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lpython${PYVERSSUFFIX} \ 
33 -o ${WRKDIR}/Console && \ 
34 ${CC} build/temp.*/source/bases/ConsoleKeepPath.o \ 
35 -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lpython${PYVERSSUFFIX} \ 
36 -o ${WRKDIR}/ConsoleKeepPath 
37 
38post-install: 
39 ${INSTALL_PROGRAM} ${WRKDIR}/Console \ 
40 ${DESTDIR}${PREFIX}/${PYSITELIB}/cx_Freeze/bases 
41 ${INSTALL_PROGRAM} ${WRKDIR}/ConsoleKeepPath \ 
42 ${DESTDIR}${PREFIX}/${PYSITELIB}/cx_Freeze/bases 
43 
44.include "../../lang/python/application.mk" 26.include "../../lang/python/application.mk"
45.include "../../lang/python/extension.mk" 27.include "../../lang/python/distutils.mk"
46.include "../../mk/bsd.pkg.mk" 28.include "../../mk/bsd.pkg.mk"

cvs diff -r1.2 -r1.3 pkgsrc/lang/py-cxfreeze/PLIST (expand / switch to unified diff)

--- pkgsrc/lang/py-cxfreeze/PLIST 2011/01/11 11:39:50 1.2
+++ pkgsrc/lang/py-cxfreeze/PLIST 2012/05/22 08:28:47 1.3
@@ -1,15 +1,16 @@ @@ -1,15 +1,16 @@
1@comment $NetBSD: PLIST,v 1.2 2011/01/11 11:39:50 drochner Exp $ 1@comment $NetBSD: PLIST,v 1.3 2012/05/22 08:28:47 obache Exp $
2bin/cxfreeze${PYVERSSUFFIX} 2bin/cxfreeze${PYVERSSUFFIX}
 3${PYSITELIB}/${EGG_FILE}
3${PYSITELIB}/cx_Freeze/__init__.py 4${PYSITELIB}/cx_Freeze/__init__.py
4${PYSITELIB}/cx_Freeze/__init__.pyc 5${PYSITELIB}/cx_Freeze/__init__.pyc
5${PYSITELIB}/cx_Freeze/__init__.pyo 6${PYSITELIB}/cx_Freeze/__init__.pyo
6${PYSITELIB}/cx_Freeze/bases/Console 7${PYSITELIB}/cx_Freeze/bases/Console
7${PYSITELIB}/cx_Freeze/bases/ConsoleKeepPath 8${PYSITELIB}/cx_Freeze/bases/ConsoleKeepPath
8${PYSITELIB}/cx_Freeze/dist.py 9${PYSITELIB}/cx_Freeze/dist.py
9${PYSITELIB}/cx_Freeze/dist.pyc 10${PYSITELIB}/cx_Freeze/dist.pyc
10${PYSITELIB}/cx_Freeze/dist.pyo 11${PYSITELIB}/cx_Freeze/dist.pyo
11${PYSITELIB}/cx_Freeze/finder.py 12${PYSITELIB}/cx_Freeze/finder.py
12${PYSITELIB}/cx_Freeze/finder.pyc 13${PYSITELIB}/cx_Freeze/finder.pyc
13${PYSITELIB}/cx_Freeze/finder.pyo 14${PYSITELIB}/cx_Freeze/finder.pyo
14${PYSITELIB}/cx_Freeze/freezer.py 15${PYSITELIB}/cx_Freeze/freezer.py
15${PYSITELIB}/cx_Freeze/freezer.pyc 16${PYSITELIB}/cx_Freeze/freezer.pyc
@@ -19,26 +20,28 @@ ${PYSITELIB}/cx_Freeze/hooks.pyc @@ -19,26 +20,28 @@ ${PYSITELIB}/cx_Freeze/hooks.pyc
19${PYSITELIB}/cx_Freeze/hooks.pyo 20${PYSITELIB}/cx_Freeze/hooks.pyo
20${PYSITELIB}/cx_Freeze/initscripts/Console.py 21${PYSITELIB}/cx_Freeze/initscripts/Console.py
21${PYSITELIB}/cx_Freeze/initscripts/Console3.py 22${PYSITELIB}/cx_Freeze/initscripts/Console3.py
22${PYSITELIB}/cx_Freeze/initscripts/ConsoleKeepPath.py 23${PYSITELIB}/cx_Freeze/initscripts/ConsoleKeepPath.py
23${PYSITELIB}/cx_Freeze/initscripts/ConsoleKeepPath3.py 24${PYSITELIB}/cx_Freeze/initscripts/ConsoleKeepPath3.py
24${PYSITELIB}/cx_Freeze/initscripts/ConsoleSetLibPath.py 25${PYSITELIB}/cx_Freeze/initscripts/ConsoleSetLibPath.py
25${PYSITELIB}/cx_Freeze/initscripts/SharedLib.py 26${PYSITELIB}/cx_Freeze/initscripts/SharedLib.py
26${PYSITELIB}/cx_Freeze/initscripts/SharedLibSource.py 27${PYSITELIB}/cx_Freeze/initscripts/SharedLibSource.py
27${PYSITELIB}/cx_Freeze/main.py 28${PYSITELIB}/cx_Freeze/main.py
28${PYSITELIB}/cx_Freeze/main.pyc 29${PYSITELIB}/cx_Freeze/main.pyc
29${PYSITELIB}/cx_Freeze/main.pyo 30${PYSITELIB}/cx_Freeze/main.pyo
30${PYSITELIB}/cx_Freeze/samples/PyQt4/PyQt4app.py 31${PYSITELIB}/cx_Freeze/samples/PyQt4/PyQt4app.py
31${PYSITELIB}/cx_Freeze/samples/PyQt4/setup.py 32${PYSITELIB}/cx_Freeze/samples/PyQt4/setup.py
 33${PYSITELIB}/cx_Freeze/samples/Tkinter/SimpleTkApp.py
 34${PYSITELIB}/cx_Freeze/samples/Tkinter/setup.py
32${PYSITELIB}/cx_Freeze/samples/advanced/advanced_1.py 35${PYSITELIB}/cx_Freeze/samples/advanced/advanced_1.py
33${PYSITELIB}/cx_Freeze/samples/advanced/advanced_2.py 36${PYSITELIB}/cx_Freeze/samples/advanced/advanced_2.py
34${PYSITELIB}/cx_Freeze/samples/advanced/modules/testfreeze_1.py 37${PYSITELIB}/cx_Freeze/samples/advanced/modules/testfreeze_1.py
35${PYSITELIB}/cx_Freeze/samples/advanced/modules/testfreeze_2.py 38${PYSITELIB}/cx_Freeze/samples/advanced/modules/testfreeze_2.py
36${PYSITELIB}/cx_Freeze/samples/advanced/setup.py 39${PYSITELIB}/cx_Freeze/samples/advanced/setup.py
37${PYSITELIB}/cx_Freeze/samples/matplotlib/setup.py 40${PYSITELIB}/cx_Freeze/samples/matplotlib/setup.py
38${PYSITELIB}/cx_Freeze/samples/matplotlib/test_matplotlib.py 41${PYSITELIB}/cx_Freeze/samples/matplotlib/test_matplotlib.py
39${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/__init__.py 42${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/__init__.py
40${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/pkg2/__init__.py 43${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/pkg2/__init__.py
41${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/pkg2/sub3.py 44${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/pkg2/sub3.py
42${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/pkg2/sub5.py 45${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/pkg2/sub5.py
43${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/sub1.py 46${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/sub1.py
44${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/sub2.py 47${PYSITELIB}/cx_Freeze/samples/relimport/pkg1/sub2.py

cvs diff -r1.2 -r1.3 pkgsrc/lang/py-cxfreeze/distinfo (expand / switch to unified diff)

--- pkgsrc/lang/py-cxfreeze/distinfo 2011/01/11 11:39:50 1.2
+++ pkgsrc/lang/py-cxfreeze/distinfo 2012/05/22 08:28:47 1.3
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.2 2011/01/11 11:39:50 drochner Exp $ 1$NetBSD: distinfo,v 1.3 2012/05/22 08:28:47 obache Exp $
2 2
3SHA1 (cx_Freeze-4.2.2.tar.gz) = bb5c63ab2b4ef20ba2b88517118f3bfb2493f1a0 3SHA1 (cx_Freeze-4.2.3.tar.gz) = 860de723365f2994f94f242f1147f89e09ed1ee9
4RMD160 (cx_Freeze-4.2.2.tar.gz) = 48396e18de29b65a441bd101337b63ed6c503d8d 4RMD160 (cx_Freeze-4.2.3.tar.gz) = 92dbdd14315bc4b02d98649b8c6b2982b06ad2e7
5Size (cx_Freeze-4.2.2.tar.gz) = 61971 bytes 5Size (cx_Freeze-4.2.3.tar.gz) = 62436 bytes
6SHA1 (patch-aa) = 8ae98e1ac3a0962bf6ed28c8c4c7d2a2de012172 6SHA1 (patch-aa) = fd0b9d5537fac3c9d881b55f5eb8173a05adf109

cvs diff -r1.1.1.1 -r1.2 pkgsrc/lang/py-cxfreeze/patches/Attic/patch-aa (expand / switch to unified diff)

--- pkgsrc/lang/py-cxfreeze/patches/Attic/patch-aa 2010/08/15 10:45:57 1.1.1.1
+++ pkgsrc/lang/py-cxfreeze/patches/Attic/patch-aa 2012/05/22 08:28:47 1.2
@@ -1,13 +1,39 @@ @@ -1,13 +1,39 @@
1$NetBSD: patch-aa,v 1.1.1.1 2010/08/15 10:45:57 drochner Exp $ 1$NetBSD: patch-aa,v 1.2 2012/05/22 08:28:47 obache Exp $
2 2
3--- setup.py.orig 2010-07-19 19:00:21.000000000 +0000 3--- setup.py.orig 2011-03-19 17:27:27.000000000 +0000
4+++ setup.py 4+++ setup.py
5@@ -238,7 +238,7 @@ setup(name = "cx_Freeze", 5@@ -61,6 +61,7 @@ class build_ext(distutils.command.build_
 6 fileName = os.path.splitext(self.get_ext_filename(ext.name))[0]
 7 fullName = os.path.join(self.build_lib, fileName)
 8 libraryDirs = ext.library_dirs or []
 9+ runtimeLibraryDirs = ext.runtime_library_dirs or []
 10 libraries = self.get_libraries(ext)
 11 extraArgs = ext.extra_link_args or []
 12 if sys.platform != "win32":
 13@@ -78,6 +79,8 @@ class build_ext(distutils.command.build_
 14 extraArgs.extend(vars["BASEMODLIBS"].split())
 15 if vars["LOCALMODLIBS"]:
 16 extraArgs.extend(vars["LOCALMODLIBS"].split())
 17+ else:
 18+ runtimeLibraryDirs.append(sys.prefix + "/lib")
 19 extraArgs.append("-s")
 20 elif ext.name.find("Win32GUI") > 0 \
 21 and self.compiler.compiler_type == "mingw32":
 22@@ -85,7 +88,7 @@ class build_ext(distutils.command.build_
 23 self.compiler.link_executable(objects, fullName,
 24 libraries = libraries,
 25 library_dirs = libraryDirs,
 26- runtime_library_dirs = ext.runtime_library_dirs,
 27+ runtime_library_dirs = runtimeLibraryDirs,
 28 extra_postargs = extraArgs,
 29 debug = self.debug)
 30
 31@@ -238,7 +241,7 @@ setup(name = "cx_Freeze",
6 maintainer="Anthony Tuininga", 32 maintainer="Anthony Tuininga",
7 maintainer_email="anthony.tuininga@gmail.com", 33 maintainer_email="anthony.tuininga@gmail.com",
8 url = "http://cx-freeze.sourceforge.net", 34 url = "http://cx-freeze.sourceforge.net",
9- scripts = ["cxfreeze"], 35- scripts = ["cxfreeze"],
10+ scripts = ["cxfreeze" + sys.version[:3]], 36+ scripts = ["cxfreeze" + sys.version[:3]],
11 classifiers = classifiers, 37 classifiers = classifiers,
12 keywords = "freeze", 38 keywords = "freeze",
13 license = "Python Software Foundation License") 39 license = "Python Software Foundation License")