blob: bca0c4938079d6b462fe3a9a1100d1a6b7fd08c1 (
plain)
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
|
# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$
PORTNAME= pure-stllib
PORTVERSION= 0.6
PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= https://bitbucket.org/purelang/pure-lang/downloads/
DIST_SUBDIR= pure
MAINTAINER= lichray@gmail.com
COMMENT= Pure interface to C++ STL map and vectors
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
DEPRECATED= Depends on expiring devel/llvm35
EXPIRATION_DATE=2019-08-31
USES= compiler:c++11-lib pkgconfig pure
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= README
DOCSRCDIR2= ${WRKSRC}/doc
DOCSDIR2= ${DOCSDIR}/doc
DOC_FILES2= *.pdf
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS ?=|' \
${WRKSRC}/Makefile ${WRKSRC}/pure-stlmap/Makefile ${WRKSRC}/pure-stlvec/Makefile
@${MKDIR} ${WRKSRC}/examples/
@${MV} ${WRKSRC}/pure-stlmap/examples/* \
${WRKSRC}/pure-stlvec/examples/* ${WRKSRC}/examples/
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|