diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-10-02 17:01:49 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-10-02 17:01:49 +0800 |
commit | 8f5fbe903fd8ab616178274b815f96366be679ca (patch) | |
tree | c67e0c382212653d8a487a6eb23921277f5d6756 /textproc | |
parent | dc9467c6bd74f4812c4ab7e4555ffb2e081b4454 (diff) | |
download | freebsd-ports-gnome-8f5fbe903fd8ab616178274b815f96366be679ca.tar.gz freebsd-ports-gnome-8f5fbe903fd8ab616178274b815f96366be679ca.tar.zst freebsd-ports-gnome-8f5fbe903fd8ab616178274b815f96366be679ca.zip |
- Add LICENSE_FILE
- Add NO_ARCH
- Switch to options helpers
- Deobfuscate documentation installation
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/py-cloud_sptheme/Makefile | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/textproc/py-cloud_sptheme/Makefile b/textproc/py-cloud_sptheme/Makefile index 84679b579e54..40035c571c24 100644 --- a/textproc/py-cloud_sptheme/Makefile +++ b/textproc/py-cloud_sptheme/Makefile @@ -13,44 +13,28 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Sphinx theme LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.3:textproc/py-sphinx -RUN_DEPENDS:= ${BUILD_DEPENDS} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.3:textproc/py-sphinx USES= python USE_PYTHON= distutils autoplist PYDISTUTILS_BUILDARGS= build_sphinx -E +NO_ARCH= yes PORTDOCS= * DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} -DOCSRCDIR1= ${WRKSRC} -DOC_FILES1= README CHANGES - -DOCSDIR2= ${DOCSDIR}/html -DOCSRCDIR2= ${DOCSRCDIR1}/build/sphinx/html -DOC_FILES2= ${DOC_FILES3} *.js - -DOCSDIR3= ${DOCSDIR2}/lib -DOCSRCDIR3= ${DOCSRCDIR2}/lib -DOC_FILES3= *.html - -DOCSDIR4= ${DOCSDIR2}/_static -DOCSRCDIR4= ${DOCSRCDIR2}/_static -DOC_FILES4= *.css *.gif *.js *.png *.svg - OPTIONS_DEFINE= DOCS post-extract: @${CHMOD} -R a+rX ${WRKSRC} -post-install: +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR2} - ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} - @${MKDIR} ${STAGEDIR}${DOCSDIR3} ${STAGEDIR}${DOCSDIR4} - ${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3} - ${INSTALL_DATA} ${DOC_FILES4:S|^|${DOCSRCDIR4}/|} ${STAGEDIR}${DOCSDIR4} + ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/build/sphinx && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |