1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

- Update to 0.9.32

- Add a secondary download site
- Add files/patch-doc-txt2html.py
- Fix build of docs with different PREFIX of installation
- Fix instructions for running examples in pkg-descr
- Use ${COPYTREE_SHARE} to install docs and examples
This commit is contained in:
Nicola Vitale 2009-02-15 09:43:22 +00:00
parent e5776e40b8
commit abe01b4889
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228373
4 changed files with 772 additions and 698 deletions

View File

@ -6,10 +6,11 @@
#
PORTNAME= nevow
PORTVERSION= 0.9.18
PORTREVISION= 2
PORTVERSION= 0.9.32
PORTREVISION= 0
CATEGORIES= www python devel
MASTER_SITES= http://divmod.org/trac/attachment/wiki/SoftwareReleases/
MASTER_SITES= http://divmod.org/trac/attachment/wiki/SoftwareReleases/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Nevow-${PORTVERSION}
EXTRACT_SUFX= .tar.gz?format=raw
@ -27,10 +28,18 @@ PYDISTUTILS_PKGNAME= Nevow
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKSRC}/pkg-message
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/docutils/__init__.py:${PORTSDIR}/textproc/py-docutils
.endif
REINPLACE_ARGS= -i '' -e 's,%%PYTHONPREFIX_SITELIBDIR%%,${PYTHONPREFIX_SITELIBDIR},g'
post-patch:
${REINPLACE_CMD} ${WRKSRC}/doc/txt2html.py
${RM} ${WRKSRC}/doc/txt2html.py.orig
post-install:
.if !defined(NOPORTDOCS)
@${ECHO_MSG} ">> Build documents ..."
@ -39,18 +48,17 @@ post-install:
@${ECHO_CMD} -n ">> Installing documents to ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/doc && \
${FIND} . -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
.endif
.if !defined(NOPORTEXAMPLES)
@${PYTHON_CMD} -c "import compileall; compileall.compile_dir('${WRKSRC}/examples')"
@${ECHO_CMD} -n ">> Installing examples to ${EXAMPLESDIR}..."
@cd ${WRKSRC}/examples && \
${FIND} . -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \
${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \;
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
@${ECHO_MSG} " [ DONE ]"
.endif
@${CAT} ${PKGMESSAGE}

View File

@ -1,3 +1,3 @@
MD5 (Nevow-0.9.18.tar.gz?format=raw) = bfe34b75fe2264041511c76d312f700c
SHA256 (Nevow-0.9.18.tar.gz?format=raw) = f7ebe384899f2879a39df68341e475d26ee855cb2758d1d7b012e566875a28bf
SIZE (Nevow-0.9.18.tar.gz?format=raw) = 461144
MD5 (Nevow-0.9.32.tar.gz?format=raw) = 75828090af2b26f69fe4a7f148a400f6
SHA256 (Nevow-0.9.32.tar.gz?format=raw) = bc35ce187481db91f047055b3edbce49c14d291b1a2eb3e915e9c1c511620f9a
SIZE (Nevow-0.9.32.tar.gz?format=raw) = 530459

View File

@ -1,5 +1,13 @@
to execute examples try below
************************************************************************
$ cd %%EXAMPLESDIR%% && PYTHONPATH=`pwd` twistd -noy examples.tac
To execute the examples copy
and navigate http://localhost:8080/
%%EXAMPLESDIR%%/*
in a directory writable by you, then run
$ env PYTHONPATH=`pwd` twistd -noy examples.tac
and navigate http://localhost:8080/
************************************************************************

File diff suppressed because it is too large Load Diff