ports/132181: [patch] x11-toolkits/py-tkinter to follow TK_VER

Hirohisa Yamaguchi umq at ueo.co.jp
Fri Feb 27 23:50:02 UTC 2009


>Number:         132181
>Category:       ports
>Synopsis:       [patch] x11-toolkits/py-tkinter to follow TK_VER update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 27 23:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Hirohisa Yamaguchi
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: FreeBSD calliope.****.org 8.0-CURRENT FreeBSD 8.0-CURRENT #19: Thu Feb 26 05:44:54 JST 2009 root at calliope.****.org:/usr/obj/usr/src/sys/CALLIOPE64 amd64

>Description:
	The setup.py for x11-toolkits/py-tkinter requires x11-toolkits/tk84.
	The recent default TK_VER is 85, the port should work okay
	with the default value.
>How-To-Repeat:
	1. portinstall lang/tcl85 x11-toolkits/tk85
	2. portinstall x11-toolkits/py-tkinter
	  x11-toolkits/tk84 will be installed
>Fix:

	the patch follows:

cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/x11-toolkits/py-tkinter/Makefile,v
retrieving revision 1.16
diff -p -u -r1.16 Makefile
--- Makefile	30 Jul 2007 09:42:26 -0000	1.16
+++ Makefile	27 Feb 2009 23:36:52 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	tkinter
 PORTVERSION=	${PYTHON_PORTVERSION}
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	x11-toolkits python
 MASTER_SITES=	${PYTHON_MASTER_SITES}
 MASTER_SITE_SUBDIR=	${PYTHON_MASTER_SITE_SUBDIR}
@@ -17,18 +17,17 @@ DISTFILES=	${PYTHON_DISTFILE}
 MAINTAINER=	perky at FreeBSD.org
 COMMENT=	Python bindings to the Tk widget set
 
-LIB_DEPENDS=	tk84.1:${PORTSDIR}/x11-toolkits/tk84
-
 DIST_SUBDIR=	python
 PLIST_FILES=	lib/%%PYTHON_VERSION%%/site-packages/_tkinter.so
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
 PYDISTUTILS_PKGNAME=	Tkinter
 PYDISTUTILS_PKGVERSION=	0.0.0
+USE_TK=	82+
 WRKSRC=		${PYTHON_WRKSRC}/Modules
 MD5_FILE=	${PORTSDIR}/lang/python/distinfo
 
 post-extract:
-	@${CP} ${FILESDIR}/setup.py ${WRKSRC}
+	@${SED} -e "s|%%TK_VER%%|${TK_VER}|" ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
 
 .include <bsd.port.mk>
cvs diff: Diffing files
Index: files/setup.py
===================================================================
RCS file: /home/ncvs/ports/x11-toolkits/py-tkinter/files/setup.py,v
retrieving revision 1.3
diff -p -u -r1.3 setup.py
--- files/setup.py	19 Apr 2008 17:55:34 -0000	1.3
+++ files/setup.py	27 Feb 2009 23:36:53 -0000
@@ -15,7 +15,7 @@ try:
 except:
     raise SystemExit, "Distutils problem"
 
-tkversion = "8.4"
+tkversion = "%%TK_VER%%"
 prefix = sysconfig.PREFIX
 # Python 1.5 doesn't have os.getenv()?
 x11base = os.environ['LOCALBASE'] or '/usr/X11R6'
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list