2014-03-24 17:47:07 +01:00
|
|
|
# Created by: Horia Racoviceanu <horia@racoviceanu.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cloud_sptheme
|
2016-09-09 01:38:33 +02:00
|
|
|
PORTVERSION= 1.7.1
|
2016-09-11 09:14:10 +02:00
|
|
|
PORTREVISION= 1
|
2014-03-24 17:47:07 +01:00
|
|
|
CATEGORIES= textproc python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DIST_SUBDIR= python
|
|
|
|
|
2016-06-28 11:11:31 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-03-24 17:47:07 +01:00
|
|
|
COMMENT= Sphinx theme
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
|
2016-09-09 01:38:33 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.3:textproc/py-sphinx
|
2014-03-24 17:47:07 +01:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
|
2014-12-07 11:01:36 +01:00
|
|
|
USES= python
|
|
|
|
USE_PYTHON= distutils autoplist
|
2014-03-24 17:47:07 +01:00
|
|
|
PYDISTUTILS_BUILDARGS= build_sphinx -E
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2016-04-11 18:16:48 +02:00
|
|
|
post-extract:
|
2016-09-11 09:14:10 +02:00
|
|
|
@${CHMOD} -R a+rX ${WRKSRC}
|
2016-04-11 18:16:48 +02:00
|
|
|
|
2014-03-24 17:47:07 +01:00
|
|
|
post-install:
|
|
|
|
@${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}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|