blob: d01b2955a5704de03104584c5ec5d2bdf29143e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Created by: Horia Racoviceanu <horia@racoviceanu.com>
# $FreeBSD$
PORTNAME= cloud_sptheme
PORTVERSION= 1.6
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR= python
MAINTAINER= horia@racoviceanu.com
COMMENT= Sphinx theme
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= python
USE_PYTHON= distutils autoplist
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
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>
|