From ad1bbf18357af5fc7d4c96ded2bf2b26ebac1eed Mon Sep 17 00:00:00 2001 From: Alexander Botero-Lowry Date: Fri, 8 Dec 2006 21:50:20 +0000 Subject: - Mark devel/py-ctypes IGNORE with Python 2.5 [1] - add a PYCTYPES dependency macro to bsd.python.mk to unbreak ctypes using ports on Python 2.5 [2] - Update two of the four ports using ctypes to this macro [3] PR: 104587 [1] Submitted by: Marcus von Appen [1] Approved by: portmgr (pav, linimon) [2], myself [3] --- Mk/bsd.python.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Mk') diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk index 1e5e354fdd06..6c02eb096d7f 100644 --- a/Mk/bsd.python.mk +++ b/Mk/bsd.python.mk @@ -104,6 +104,12 @@ Python_Include_MAINTAINER= python@FreeBSD.org # PYXML - Dependency line for the XML extension. As of Python-2.0, # this extension is in the base distribution. # +# PYEXPAT - Dependency line for the Expat XML Parser. As of Python-2.3.2, +# this module is in the base distribution. +# +# PYCTYPES - Dependency line for the ctypes package. As of Python-2.5, +# this module is in the base distribution. +# # USE_PYTHON_PREFIX - Says that the port installs in ${PYTHONBASE}. # # USE_PYDISTUTILS - Use distutils as do-configure, do-build and do-install @@ -429,6 +435,12 @@ PYEXPAT= ${PYTHON_SITELIBDIR}/pyexpat.so:${PORTSDIR}/textproc/py-expat PYEXPAT= ${PYTHON_LIBDIR}/lib-dynload/pyexpat.so:${PYTHON_PORTSDIR} .endif +.if defined(PYTHON_REL) && ${PYTHON_REL} < 250 +PYCTYPES= ${PYTHON_SITELIBDIR}/ctypes/__init__.py:${PORTSDIR}/devel/py-ctypes +.else +PYCTYPES= ${PYTHON_LIBDIR}/ctypes/__init__py:${PYTHON_PORTSDIR} +.endif + # dependencies PYTHON_NO_DEPENDS?= NO -- cgit v1.2.3