From 81be6aa7d2869cdc6aeb3fffb67a09af3d9bdf64 Mon Sep 17 00:00:00 2001 From: pav Date: Thu, 2 Aug 2007 09:46:18 +0000 Subject: - Fix packaging with new python - track egg-info files properly --- x11-toolkits/py-wxPython26/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'x11-toolkits/py-wxPython26') diff --git a/x11-toolkits/py-wxPython26/Makefile b/x11-toolkits/py-wxPython26/Makefile index 47810884e91..4f9cf5ff50f 100644 --- a/x11-toolkits/py-wxPython26/Makefile +++ b/x11-toolkits/py-wxPython26/Makefile @@ -35,6 +35,18 @@ WX_PREMK= yes DEMO_DIR= ${PYTHONPREFIX_SITELIBDIR}/wxPython/demo WXPORT= gtk2 +.if defined(WITH_COMMON_ONLY) +PYDISTUTILS_NOEGGINFO= yes +.else +.if defined(WITH_WXPYTHON_UNICODE) +WX_PYTHON_DIR= wx-${USE_WX}-${WXPORT}-unicode +.else +WX_PYTHON_DIR= wx-${USE_WX}-${WXPORT}-ansi +.endif +PYDISTUTILS_EGGINFO= ${WX_PYTHON_DIR}/wxPython-${PORTVERSION}-${PYTHON_VERSION:S/thon//}.egg-info \ + wxaddons-${PORTVERSION}-${PYTHON_VERSION:S/thon//}.egg-info +.endif + post-extract: # only keep the scripts we need @${RM} ${WRKSRC}/scripts/*.py @@ -102,9 +114,6 @@ PKGNAMESUFFIX= -unicode PYDISTUTILS_BUILDARGS+= \ UNICODE=1 -WX_PYTHON_DIR= wx-${WX_VERSION}-${WXPORT}-unicode -. else -WX_PYTHON_DIR=wx-${WX_VERSION}-${WXPORT}-ansi . endif # defined(WITH_WXPYTHON_UNICODE) # plist substitutions and library dirs -- cgit