mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
devel/covtool: support stage and unbreak
This commit is contained in:
parent
5baa7cef3b
commit
90d35aefe8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364107
@ -7,21 +7,15 @@ PORTREVISION= 2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/rel_2.0
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= C++ test coverage analyzer
|
||||
|
||||
WRKSRC= ${WRKDIR}
|
||||
USES= gmake zip
|
||||
USE_GCC= yes
|
||||
MAKEFILE= makefile
|
||||
MAKE_ARGS= CC=${CXX} LN=${CXX} INSTALL_DIR=${STAGEDIR}${PREFIX}
|
||||
|
||||
MAN1= cov++.1 \
|
||||
covannotate.1 \
|
||||
covmerge.1 \
|
||||
covtool.1 \
|
||||
gen_html.1
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
-e 's|%%PORTNAME%%|${PORTNAME}|g' ${WRKSRC}/cov++
|
||||
@ -29,11 +23,8 @@ post-patch:
|
||||
${WRKSRC}/rules.FreeBSD
|
||||
|
||||
post-install:
|
||||
@${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/man/man1/,} \
|
||||
${MANPREFIX}/man/man1/
|
||||
@${INSTALL_DATA} ${WRKSRC}/cov++.cfg ${PREFIX}/etc/cov++.cfg.sample
|
||||
@if [ ! -f ${PREFIX}/etc/cov++.cfg ]; then \
|
||||
${CP} -p ${PREFIX}/etc/cov++.cfg.sample ${PREFIX}/etc/cov++.cfg ; \
|
||||
fi
|
||||
${INSTALL_MAN} ${WRKSRC}/man/man1/*.1 \
|
||||
${STAGEDIR}${MANPREFIX}/man/man1/
|
||||
${INSTALL_DATA} ${WRKSRC}/cov++.cfg ${STAGEDIR}${PREFIX}/etc/cov++.cfg.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
10
devel/covtool/files/patch-covmerge.c
Normal file
10
devel/covtool/files/patch-covmerge.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- covmerge.c.orig 2014-08-05 11:26:54.373266288 -0300
|
||||
+++ covmerge.c 2014-08-05 11:27:07.809636312 -0300
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
|
||||
#include <read_database.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
|
||||
//
|
10
devel/covtool/files/patch-covstream.c
Normal file
10
devel/covtool/files/patch-covstream.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- covstream.c.orig 2014-08-05 11:23:02.593282007 -0300
|
||||
+++ covstream.c 2014-08-05 11:23:04.274285503 -0300
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include <algorithm>
|
||||
+#include <string.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -3,12 +3,15 @@ bin/covmerge
|
||||
bin/covannotate
|
||||
bin/cov++
|
||||
bin/gen_html
|
||||
@unexec if cmp -s %D/etc/cov++.cfg.sample %D/etc/cov++.cfg; then rm -f %D/etc/cov++.cfg; fi
|
||||
etc/cov++.cfg.sample
|
||||
@exec if [ ! -f %D/etc/cov++.cfg ] ; then cp -p %D/%F %B/cov++.cfg; fi
|
||||
@sample etc/cov++.cfg.sample
|
||||
libexec/covtool/covtoolhelper.o
|
||||
libexec/covtool/covtoolhelper_debug.o
|
||||
libexec/covtool/covtoolhelper.c
|
||||
man/man1/cov++.1.gz
|
||||
man/man1/covannotate.1.gz
|
||||
man/man1/covmerge.1.gz
|
||||
man/man1/covtool.1.gz
|
||||
man/man1/gen_html.1.gz
|
||||
%%DATADIR%%/README
|
||||
%%DATADIR%%/COPYRIGHT
|
||||
%%DATADIR%%/covtool_version
|
||||
|
Loading…
Reference in New Issue
Block a user