Date: Thu, 19 Jul 2012 17:41:47 +0000 (UTC) From: Armin Pirkovitsch <sperber@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r301178 - head/net/py-medusa Message-ID: <201207191741.q6JHfl5g004824@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sperber Date: Thu Jul 19 17:41:47 2012 New Revision: 301178 URL: http://svn.freebsd.org/changeset/ports/301178 Log: - Update MASTER_SITES and WWW: line - Support PORTEXAMPLES - Switch to optionsng PR: ports/169421 Submitted by: KATO Tsuguru <tkato432 _at_ yahoo.com> Approved by: beat (mentor) Modified: head/net/py-medusa/Makefile (contents, props changed) head/net/py-medusa/pkg-descr (contents, props changed) head/net/py-medusa/pkg-plist (contents, props changed) Modified: head/net/py-medusa/Makefile ============================================================================== --- head/net/py-medusa/Makefile Thu Jul 19 17:41:16 2012 (r301177) +++ head/net/py-medusa/Makefile Thu Jul 19 17:41:47 2012 (r301178) @@ -7,30 +7,40 @@ PORTNAME= medusa PORTVERSION= 0.5.4 +PORTREVISION= 1 CATEGORIES= net devel python -MASTER_SITES= http://www.amk.ca/files/python/ +MASTER_SITES= CHEESESHOP/source/m/${PORTNAME} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DIST_SUBDIR= python MAINTAINER= ports@FreeBSD.org COMMENT= Asynchronous socket-based server framework for Python +OPTIONS_DEFINE= DOCS EXAMPLES + USE_PYTHON= yes USE_PYDISTUTILS= yes -DIST_SUBDIR= python -DOCFILES= CHANGES.txt INSTALL.txt LICENSE.txt README.txt TODO.txt -EXAMPLEDIRS= demo test thread -DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} -EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} +DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} + +PORTDOCS= * +PORTEXAMPLES= * + +.include <bsd.port.options.mk> -.if !defined(NOPORTDOCS) post-install: - @${MKDIR} ${DOCSDIR}/docs - @cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/docs -.for exdir in ${EXAMPLEDIRS} - @${MKDIR} ${EXAMPLESDIR}/${exdir} - @${INSTALL_DATA} ${WRKSRC}/${exdir}/* ${EXAMPLESDIR}/${exdir} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} +.for doc in CHANGES.txt INSTALL.txt LICENSE.txt README.txt TODO.txt + ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} +.endfor + @(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${DOCSDIR}) +.endif +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${EXAMPLESDIR} +.for exdir in demo test thread + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${exdir} ${EXAMPLESDIR}) .endfor .endif Modified: head/net/py-medusa/pkg-descr ============================================================================== --- head/net/py-medusa/pkg-descr Thu Jul 19 17:41:16 2012 (r301177) +++ head/net/py-medusa/pkg-descr Thu Jul 19 17:41:47 2012 (r301178) @@ -5,4 +5,4 @@ extremely high-traffic sites to distribu It is an elegant and efficient solution to a difficult programming problem. -WWW: http://www.amk.ca/python/code/medusa.html +WWW: http://pypi.python.org/pypi/medusa/ Modified: head/net/py-medusa/pkg-plist ============================================================================== --- head/net/py-medusa/pkg-plist Thu Jul 19 17:41:16 2012 (r301177) +++ head/net/py-medusa/pkg-plist Thu Jul 19 17:41:47 2012 (r301178) @@ -80,44 +80,3 @@ %%PYTHON_SITELIBDIR%%/medusa/xmlrpc_handler.pyc %%PYTHON_SITELIBDIR%%/medusa/xmlrpc_handler.pyo @dirrm %%PYTHON_SITELIBDIR%%/medusa -%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt -%%PORTDOCS%%%%DOCSDIR%%/INSTALL.txt -%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt -%%PORTDOCS%%%%DOCSDIR%%/README.txt -%%PORTDOCS%%%%DOCSDIR%%/TODO.txt -%%PORTDOCS%%%%DOCSDIR%%/docs/README.html -%%PORTDOCS%%%%DOCSDIR%%/docs/async_blurbs.txt -%%PORTDOCS%%%%DOCSDIR%%/docs/composing_producers.gif -%%PORTDOCS%%%%DOCSDIR%%/docs/data_flow.gif -%%PORTDOCS%%%%DOCSDIR%%/docs/data_flow.html -%%PORTDOCS%%%%DOCSDIR%%/docs/debugging.txt -%%PORTDOCS%%%%DOCSDIR%%/docs/producers.gif -%%PORTDOCS%%%%DOCSDIR%%/docs/programming.html -%%PORTDOCS%%%%DOCSDIR%%/docs/proxy_notes.txt -%%PORTDOCS%%%%DOCSDIR%%/docs/threads.txt -%%PORTDOCS%%%%DOCSDIR%%/docs/tkinter.txt -%%PORTDOCS%%%%EXAMPLESDIR%%/demo/publish.py -%%PORTDOCS%%%%EXAMPLESDIR%%/demo/script_server.py -%%PORTDOCS%%%%EXAMPLESDIR%%/demo/simple_anon_ftpd.py -%%PORTDOCS%%%%EXAMPLESDIR%%/demo/start_medusa.py -%%PORTDOCS%%%%EXAMPLESDIR%%/demo/winFTPserver.py -%%PORTDOCS%%%%EXAMPLESDIR%%/test/asyn_http_bench.py -%%PORTDOCS%%%%EXAMPLESDIR%%/test/bench.py -%%PORTDOCS%%%%EXAMPLESDIR%%/test/max_sockets.py -%%PORTDOCS%%%%EXAMPLESDIR%%/test/test_11.py -%%PORTDOCS%%%%EXAMPLESDIR%%/test/test_lb.py -%%PORTDOCS%%%%EXAMPLESDIR%%/test/test_medusa.py -%%PORTDOCS%%%%EXAMPLESDIR%%/test/test_producers.py -%%PORTDOCS%%%%EXAMPLESDIR%%/test/test_single_11.py -%%PORTDOCS%%%%EXAMPLESDIR%%/test/tests.txt -%%PORTDOCS%%%%EXAMPLESDIR%%/thread/pi_module.py -%%PORTDOCS%%%%EXAMPLESDIR%%/thread/select_trigger.py -%%PORTDOCS%%%%EXAMPLESDIR%%/thread/test_module.py -%%PORTDOCS%%%%EXAMPLESDIR%%/thread/thread_channel.py -%%PORTDOCS%%%%EXAMPLESDIR%%/thread/thread_handler.py -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/thread -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/test -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/demo -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% -%%PORTDOCS%%@dirrm %%DOCSDIR%%/docs -%%PORTDOCS%%@dirrm %%DOCSDIR%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207191741.q6JHfl5g004824>