blob: deee2c93abc7cd330f93dc0225e1ce4b25fb112e (
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
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= uncrustify
PORTVERSION= 0.68.1
DISTVERSIONPREFIX= ${PORTNAME}-
CATEGORIES= textproc
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Highly configurable source code beautifier
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
#BROKEN_mips= fails to compile: cc1plus: error: unrecognized command line option "-std=gnu++0x"
#BROKEN_mips64= fails to compile: cc1plus: error: unrecognized command line option "-std=gnu++0x"
#BROKEN_powerpc64= fails to compile: cc1plus: error: unrecognized command line option "-std=gnu++0x"
USE_GITHUB= yes
GH_TAGNAME= dbe32c0
USES= cmake:outsource
CMAKE_ARGS= -DNoGitVersionString:BOOL=TRUE
TEST_TARGET= test
PORTDOCS= *
OPTIONS_DEFINE= DOCS
# fixes BROKENs above, but may introduce different errors
post-patch:
@${REINPLACE_CMD} -e '/gnu++0x/ d' ${WRKSRC}/CMakeLists.txt
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/*.cfg ${STAGEDIR}${ETCDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/documentation && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
|