net/py-medusa: support staging

This commit is contained in:
William Grzybowski 2013-12-28 11:32:57 +00:00
parent ba7e2f2fd6
commit 9de4196b5e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337861
2 changed files with 6 additions and 94 deletions

View file

@ -16,6 +16,7 @@ OPTIONS_DEFINE= DOCS EXAMPLES
USE_PYTHON= yes USE_PYTHON= yes
USE_PYDISTUTILS= yes USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
@ -23,22 +24,15 @@ EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= * PORTDOCS= *
PORTEXAMPLES= * PORTEXAMPLES= *
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install: post-install:
.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${DOCSDIR}
.for doc in CHANGES.txt INSTALL.txt LICENSE.txt README.txt TODO.txt .for doc in CHANGES.txt INSTALL.txt LICENSE.txt README.txt TODO.txt
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor .endfor
@(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${DOCSDIR}) @(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR})
.endif @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
.for exdir in demo test thread .for exdir in demo test thread
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${exdir} ${EXAMPLESDIR}) @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${exdir} ${STAGEDIR}${EXAMPLESDIR})
.endfor .endfor
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,82 +0,0 @@
%%PYTHON_SITELIBDIR%%/medusa/__init__.py
%%PYTHON_SITELIBDIR%%/medusa/__init__.pyc
%%PYTHON_SITELIBDIR%%/medusa/__init__.pyo
%%PYTHON_SITELIBDIR%%/medusa/auth_handler.py
%%PYTHON_SITELIBDIR%%/medusa/auth_handler.pyc
%%PYTHON_SITELIBDIR%%/medusa/auth_handler.pyo
%%PYTHON_SITELIBDIR%%/medusa/chat_server.py
%%PYTHON_SITELIBDIR%%/medusa/chat_server.pyc
%%PYTHON_SITELIBDIR%%/medusa/chat_server.pyo
%%PYTHON_SITELIBDIR%%/medusa/counter.py
%%PYTHON_SITELIBDIR%%/medusa/counter.pyc
%%PYTHON_SITELIBDIR%%/medusa/counter.pyo
%%PYTHON_SITELIBDIR%%/medusa/default_handler.py
%%PYTHON_SITELIBDIR%%/medusa/default_handler.pyc
%%PYTHON_SITELIBDIR%%/medusa/default_handler.pyo
%%PYTHON_SITELIBDIR%%/medusa/event_loop.py
%%PYTHON_SITELIBDIR%%/medusa/event_loop.pyc
%%PYTHON_SITELIBDIR%%/medusa/event_loop.pyo
%%PYTHON_SITELIBDIR%%/medusa/filesys.py
%%PYTHON_SITELIBDIR%%/medusa/filesys.pyc
%%PYTHON_SITELIBDIR%%/medusa/filesys.pyo
%%PYTHON_SITELIBDIR%%/medusa/ftp_server.py
%%PYTHON_SITELIBDIR%%/medusa/ftp_server.pyc
%%PYTHON_SITELIBDIR%%/medusa/ftp_server.pyo
%%PYTHON_SITELIBDIR%%/medusa/http_date.py
%%PYTHON_SITELIBDIR%%/medusa/http_date.pyc
%%PYTHON_SITELIBDIR%%/medusa/http_date.pyo
%%PYTHON_SITELIBDIR%%/medusa/http_server.py
%%PYTHON_SITELIBDIR%%/medusa/http_server.pyc
%%PYTHON_SITELIBDIR%%/medusa/http_server.pyo
%%PYTHON_SITELIBDIR%%/medusa/logger.py
%%PYTHON_SITELIBDIR%%/medusa/logger.pyc
%%PYTHON_SITELIBDIR%%/medusa/logger.pyo
%%PYTHON_SITELIBDIR%%/medusa/m_syslog.py
%%PYTHON_SITELIBDIR%%/medusa/m_syslog.pyc
%%PYTHON_SITELIBDIR%%/medusa/m_syslog.pyo
%%PYTHON_SITELIBDIR%%/medusa/medusa_gif.py
%%PYTHON_SITELIBDIR%%/medusa/medusa_gif.pyc
%%PYTHON_SITELIBDIR%%/medusa/medusa_gif.pyo
%%PYTHON_SITELIBDIR%%/medusa/monitor.py
%%PYTHON_SITELIBDIR%%/medusa/monitor.pyc
%%PYTHON_SITELIBDIR%%/medusa/monitor.pyo
%%PYTHON_SITELIBDIR%%/medusa/monitor_client.py
%%PYTHON_SITELIBDIR%%/medusa/monitor_client.pyc
%%PYTHON_SITELIBDIR%%/medusa/monitor_client.pyo
%%PYTHON_SITELIBDIR%%/medusa/monitor_client_win32.py
%%PYTHON_SITELIBDIR%%/medusa/monitor_client_win32.pyc
%%PYTHON_SITELIBDIR%%/medusa/monitor_client_win32.pyo
%%PYTHON_SITELIBDIR%%/medusa/producers.py
%%PYTHON_SITELIBDIR%%/medusa/producers.pyc
%%PYTHON_SITELIBDIR%%/medusa/producers.pyo
%%PYTHON_SITELIBDIR%%/medusa/put_handler.py
%%PYTHON_SITELIBDIR%%/medusa/put_handler.pyc
%%PYTHON_SITELIBDIR%%/medusa/put_handler.pyo
%%PYTHON_SITELIBDIR%%/medusa/redirecting_handler.py
%%PYTHON_SITELIBDIR%%/medusa/redirecting_handler.pyc
%%PYTHON_SITELIBDIR%%/medusa/redirecting_handler.pyo
%%PYTHON_SITELIBDIR%%/medusa/resolver.py
%%PYTHON_SITELIBDIR%%/medusa/resolver.pyc
%%PYTHON_SITELIBDIR%%/medusa/resolver.pyo
%%PYTHON_SITELIBDIR%%/medusa/rpc_client.py
%%PYTHON_SITELIBDIR%%/medusa/rpc_client.pyc
%%PYTHON_SITELIBDIR%%/medusa/rpc_client.pyo
%%PYTHON_SITELIBDIR%%/medusa/rpc_server.py
%%PYTHON_SITELIBDIR%%/medusa/rpc_server.pyc
%%PYTHON_SITELIBDIR%%/medusa/rpc_server.pyo
%%PYTHON_SITELIBDIR%%/medusa/script_handler.py
%%PYTHON_SITELIBDIR%%/medusa/script_handler.pyc
%%PYTHON_SITELIBDIR%%/medusa/script_handler.pyo
%%PYTHON_SITELIBDIR%%/medusa/status_handler.py
%%PYTHON_SITELIBDIR%%/medusa/status_handler.pyc
%%PYTHON_SITELIBDIR%%/medusa/status_handler.pyo
%%PYTHON_SITELIBDIR%%/medusa/unix_user_handler.py
%%PYTHON_SITELIBDIR%%/medusa/unix_user_handler.pyc
%%PYTHON_SITELIBDIR%%/medusa/unix_user_handler.pyo
%%PYTHON_SITELIBDIR%%/medusa/virtual_handler.py
%%PYTHON_SITELIBDIR%%/medusa/virtual_handler.pyc
%%PYTHON_SITELIBDIR%%/medusa/virtual_handler.pyo
%%PYTHON_SITELIBDIR%%/medusa/xmlrpc_handler.py
%%PYTHON_SITELIBDIR%%/medusa/xmlrpc_handler.pyc
%%PYTHON_SITELIBDIR%%/medusa/xmlrpc_handler.pyo
@dirrm %%PYTHON_SITELIBDIR%%/medusa