1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Install header files; they are needed for some third-party extensions.

Requested by:	Dmytro Rud <unixoid@web.de>
This commit is contained in:
Thomas Gellekum 2001-09-28 11:04:47 +00:00
parent 69fa60727b
commit 599e6755bf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48240
2 changed files with 10 additions and 13 deletions

View File

@ -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 <bsd.port.mk>

View File

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