diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2013-03-02 04:12:01 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2013-03-02 04:12:01 +0800 |
commit | 9bc3ee581b0cc5b1f7144cfecbdc00972900b851 (patch) | |
tree | 9e4d3fe5352ce6de3984761a86925f44ac9e3e62 /x11-toolkits | |
parent | e5e5aa152223883b60df474dbf646577cb3f1e51 (diff) | |
download | freebsd-ports-gnome-9bc3ee581b0cc5b1f7144cfecbdc00972900b851.tar.gz freebsd-ports-gnome-9bc3ee581b0cc5b1f7144cfecbdc00972900b851.tar.zst freebsd-ports-gnome-9bc3ee581b0cc5b1f7144cfecbdc00972900b851.zip |
- Install standard libraries separated as other ports to the same place
with other standard libraries (${PYTHON_LIBDIR}/lib-dynload)
- Improve consistency of the Makefile(s)
- Whitespace cleanup for the patches
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/py-tkinter/Makefile | 26 | ||||
-rw-r--r-- | x11-toolkits/py-tkinter/files/setup.py | 5 | ||||
-rw-r--r-- | x11-toolkits/py-tkinter/files/setup3.py | 4 |
3 files changed, 20 insertions, 15 deletions
diff --git a/x11-toolkits/py-tkinter/Makefile b/x11-toolkits/py-tkinter/Makefile index 93b9235edc81..f69a1c4aa88e 100644 --- a/x11-toolkits/py-tkinter/Makefile +++ b/x11-toolkits/py-tkinter/Makefile @@ -1,32 +1,32 @@ -# New ports collection makefile for: py-Tkinter -# Date created: 12 Jan 1999 -# Whom: Thomas Gellekum <tg@FreeBSD.org> -# +# Created by: Thomas Gellekum <tg@FreeBSD.org> # $FreeBSD$ -# PORTNAME= tkinter PORTVERSION= ${PYTHON_PORTVERSION} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= x11-toolkits python MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${PYTHON_DISTFILE} -MAINTAINER?= python@FreeBSD.org +MAINTAINER= python@FreeBSD.org COMMENT= Python bindings to the Tk widget set -DIST_SUBDIR= python -PLIST_FILES= %%PYTHON_SITELIBDIR%%/_tkinter.so USE_PYTHON= yes USE_PYDISTUTILS=yes +USE_TK= yes USE_XZ= yes -PYDISTUTILS_PKGNAME= Tkinter -PYDISTUTILS_PKGVERSION= 0.0.0 -USE_TK= 83+ -WRKSRC= ${PYTHON_WRKSRC}/Modules + +DIST_SUBDIR= python DISTINFO_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo +WRKSRC= ${PYTHON_WRKSRC}/Modules + +PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHON_LIBDIR}/lib-dynload +PYDISTUTILS_NOEGGINFO= yes +PYDISTUTILS_PKGNAME= Tkinter + +PLIST_FILES= %%PYTHON_LIBDIR%%/lib-dynload/_tkinter.so .include <bsd.port.pre.mk> diff --git a/x11-toolkits/py-tkinter/files/setup.py b/x11-toolkits/py-tkinter/files/setup.py index 2d6100c2ff61..f94cefa943eb 100644 --- a/x11-toolkits/py-tkinter/files/setup.py +++ b/x11-toolkits/py-tkinter/files/setup.py @@ -15,6 +15,9 @@ try: except: raise SystemExit, "Distutils problem" +install.sub_commands = filter(lambda (cmd, avl): 'egg' not in cmd, + install.sub_commands) + tkversion = "%%TK_VER%%" prefix = sysconfig.PREFIX # Python 1.5 doesn't have os.getenv()? @@ -31,7 +34,7 @@ libs = ["tcl" + string.replace(tkversion, ".", ""), setup(name = "Tkinter", description = "Tk Extension to Python", - + ext_modules = [Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'], define_macros=[('WITH_APPINIT', 1)], include_dirs = inc_dirs, diff --git a/x11-toolkits/py-tkinter/files/setup3.py b/x11-toolkits/py-tkinter/files/setup3.py index 25c3bbc672f2..7b672a053eb0 100644 --- a/x11-toolkits/py-tkinter/files/setup3.py +++ b/x11-toolkits/py-tkinter/files/setup3.py @@ -15,6 +15,8 @@ try: except: raise SystemExit("Distutils problem") +install.sub_commands = [x for x in install.sub_commands if 'egg' not in x[0]] + tkversion = "%%TK_VER%%" prefix = sysconfig.PREFIX # Python 1.5 doesn't have os.getenv()? @@ -31,7 +33,7 @@ libs = ["tcl" + tkversion.replace(".", ""), setup(name = "Tkinter", description = "Tk Extension to Python", - + ext_modules = [Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'], define_macros=[('WITH_APPINIT', 1)], include_dirs = inc_dirs, |