From 599e6755bfa03d741a72a10ad9acf0e87491eb77 Mon Sep 17 00:00:00 2001 From: Thomas Gellekum Date: Fri, 28 Sep 2001 11:04:47 +0000 Subject: [PATCH] Install header files; they are needed for some third-party extensions. Requested by: Dmytro Rud --- lang/py-mx-base/Makefile | 8 +++++--- lang/py-mx-base/pkg-plist | 15 +++++---------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/lang/py-mx-base/Makefile b/lang/py-mx-base/Makefile index 983a0fdaa569..757e0d1ec176 100644 --- a/lang/py-mx-base/Makefile +++ b/lang/py-mx-base/Makefile @@ -21,6 +21,7 @@ BUILD_DEPENDS= ${PYDISTUTILS} USE_PYTHON= yes DOCDIR= ${PREFIX}/share/doc/py-mx +MXHDRDIR= ${PYTHON_SITELIBDIR}/mx/stdlib do-build: @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py build) @@ -29,12 +30,13 @@ do-install: @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py install) post-install: -.for dir in DateTime Proxy Stack TextTools Tools - @cd ${PYTHON_SITELIBDIR} && ${LN} -sf mx/${dir} ${dir} -.endfor @${MKDIR} ${DOCDIR} @${SED} -e "s;%%PYTHON_SITELIBDIR%%;${PYTHON_SITELIBDIR};g" \ < ${FILESDIR}/index.html.in > ${DOCDIR}/index.html @${CHMOD} 644 ${DOCDIR}/index.html + @${MKDIR} ${MXHDRDIR} +.for file in mx.h mxh.h mxpyapi.h mxstdlib.h + ${INSTALL_DATA} ${WRKSRC}/mx/stdlib/${file} ${MXHDRDIR} +.endfor .include diff --git a/lang/py-mx-base/pkg-plist b/lang/py-mx-base/pkg-plist index 125717b7cb50..e87c7599d4bb 100644 --- a/lang/py-mx-base/pkg-plist +++ b/lang/py-mx-base/pkg-plist @@ -333,18 +333,13 @@ lib/%%PYTHON_VERSION%%/site-packages/mx/Tools/mxTools/xmap.so lib/%%PYTHON_VERSION%%/site-packages/mx/__init__.py lib/%%PYTHON_VERSION%%/site-packages/mx/__init__.pyc lib/%%PYTHON_VERSION%%/site-packages/mx/__init__.pyo +lib/%%PYTHON_VERSION%%/site-packages/mx/stdlib/mx.h +lib/%%PYTHON_VERSION%%/site-packages/mx/stdlib/mxh.h +lib/%%PYTHON_VERSION%%/site-packages/mx/stdlib/mxpyapi.h +lib/%%PYTHON_VERSION%%/site-packages/mx/stdlib/mxstdlib.h share/doc/py-mx/index.html -@exec ln -sf mx/DateTime %D/lib/%%PYTHON_VERSION%%/site-packages/DateTime -@exec ln -sf mx/Proxy %D/lib/%%PYTHON_VERSION%%/site-packages/Proxy -@exec ln -sf mx/Stack %D/lib/%%PYTHON_VERSION%%/site-packages/Stack -@exec ln -sf mx/TextTools %D/lib/%%PYTHON_VERSION%%/site-packages/TextTools -@exec ln -sf mx/Tools %D/lib/%%PYTHON_VERSION%%/site-packages/Tools -@unexec rm -f %D/lib/%%PYTHON_VERSION%%/site-packages/Tools -@unexec rm -f %D/lib/%%PYTHON_VERSION%%/site-packages/TextTools -@unexec rm -f %D/lib/%%PYTHON_VERSION%%/site-packages/Stack -@unexec rm -f %D/lib/%%PYTHON_VERSION%%/site-packages/Proxy -@unexec rm -f %D/lib/%%PYTHON_VERSION%%/site-packages/DateTime @dirrm share/doc/py-mx +@dirrm lib/%%PYTHON_VERSION%%/site-packages/mx/stdlib @dirrm lib/%%PYTHON_VERSION%%/site-packages/mx/Tools/mxTools @dirrm lib/%%PYTHON_VERSION%%/site-packages/mx/Tools/Examples @dirrm lib/%%PYTHON_VERSION%%/site-packages/mx/Tools/Doc