- Convert to USE_TK and allow on any tk (changes default package to use tk85)

PR:		ports/132181
Submitted by:	Hirohisa Yamaguchi <umq@ueo.co.jp>
Approved by:	maintainer timeout (perky; 1 month)
This commit is contained in:
Pav Lucistnik 2009-03-30 20:19:19 +00:00
parent c84b851cac
commit d3c45e5f78
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=231327
2 changed files with 4 additions and 5 deletions

View file

@ -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@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>

View file

@ -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'