pkgsrc/devel/lcov/Makefile
reed 87b68c98cc Upgrade lcov to 1.9. Branch coverage analysis added and defaults to on.
From the CHANGES:

Version 1.9
===========

genhtml:
- Improved wording for branch representation tooltip text
- Fixed vertical alignment of HTML branch representation

geninfo:
- Improved warning message about --initial not generating branch coverage data
- Debugging messages are now printed to STDERR instead of STDOUT
- Fixed problem with some .gcno files. Reported by gui@futarque.com.
  (file.gcno: reached unexpected end of file)
- Fixed problem with relative build paths. Reported by zhanbiao2000@gmail.com.
  (cannot find an entry for ^#src#test.c.gcov in .gcno file, skipping file!)
- Fixed problem where coverage data is missing for some files. Reported by
  weston_schmidt@open-roadster.com
- Fixed problem where exclusion markers are ignored when gathering
  initial coverage data. Reported by ahmed_osman@mentor.com.
- Fixed large execution counts showing as negative numbers in HTML output.
  Reported by kkyriako@yahoo.com.
- Fixed problem that incorrectly associated branches outside of a block with
  branches inside the first block

lcov:
- Fixed problem that made lcov ignore --kernel-directory parameters when
  specifying --initial. Reported by hjia@redhat.com.
- Added --list-full-path option to prevent lcov from truncating paths in list
  output
- Added lcov_list_width and lcov_list_truncate_max directives to the
  lcov configuration file to allow for list output customization
- Improved list output

COPYING:
- Added license text to better comply with GPL recommendations


Version 1.8
===========

gendesc:
- Fixed problem with single word descriptions

genhtml:
- Added support for branch coverage measurements
- Added --demangle-cpp option to convert C++ function names to human readable
  format. Based on a patch by slava.semushin@gmail.com.
- Improved color legend: legend display takes up less space in HTML output
- Improved coverage rate limits: all coverage types use the same limits
  unless specified otherwise
- Fixed CRLF line breaks in source code when generating html output. Based
  on patch by michael.knigge@set-software.de.
- Fixed warning when $HOME is not set
- Fixed problem with --baseline-file option. Reported by sixarm@gmail.com.
  (Undefined subroutine &main::add_fnccounts called at genhtml line 4560.)
- Fixed problem with --baseline-file option and files without function
  coverage data (Can't use an undefined value as a HASH reference at genhtml
  line 4441.)
- Fixed short-name option ambiguities
- Fixed --highlight option not showing line data from converted test data
- Fixed warnings about undefined value used. Reported by nikita@zhuk.fi.
- Fixed error when processing tracefiles without function data. Reported
  by richard.corden@gmail.com (Can't use an undefined value as a HASH
  reference at genhtml line 1506.)

geninfo:
- Added support for branch coverage measurements
- Added support for exclusion markers: Users can exclude lines of code from
  coverage reports by adding keywords to the source code.
- Added --derive-func-data option
- Added --debug option to better debug problems with graph files
- Fixed CRLF line breaks in source code when generating tracefiles. Based on
  patch by michael.knigge@set-software.de.
- Fixed problems with unnamed source files
- Fixed warning when $HOME is not set. Reported by acalando@free.fr.
- Fixed errors when processing unnamed source files
- Fixed help text typo
- Fixed errors when processing incomplete function names in .bb files
- Fixed filename prefix detection
- Fixed problem with matching filename
- Fixed problem when LANG is set to non-english locale. Reported by
  benoit_belbezet@yahoo.fr.
- Fixed short-name option ambiguities

genpng:
- Fixed runtime-warning

lcov:
- Added support for branch coverage measurements
- Added support for the linux-2.6.31 upstream gcov kernel support
- Added --from-package and --to-package options
- Added --derive-func-data option
- Added overall coverage result output for more operations
- Improved output of lcov --list
- Improved gcov-kernel handling
- Fixed minor problem with --diff
- Fixed double-counting of function data
- Fixed warning when $HOME is not set. Reported by acalando@free.fr.
- Fixed error when combining tracefiles without function data. Reported by
  richard.corden@gmail.com. (Can't use an undefined value as a HASH reference
  at lcov line 1341.)
- Fixed help text typo
- Fixed filename prefix detection
- Fixed lcov ignoring information about converted test data

README:
- Added note to mention required -lgcov switch during linking
2010-12-06 19:19:15 +00:00

43 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2010/12/06 19:19:16 reed Exp $
#
DISTNAME= lcov-1.9
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ltp/}
MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://ltp.sourceforge.net/coverage/lcov.php
COMMENT= Front-end for GCC's coverage testing tool gcov
NO_BUILD= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 share/examples/lcov
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= perl
REPLACE_PERL= bin/gendesc bin/genhtml bin/geninfo bin/genpng bin/lcov
SUBST_CLASSES+= egdir
SUBST_STAGE.egdir= post-patch
SUBST_FILES.egdir= bin/genhtml
SUBST_FILES.egdir+= bin/geninfo
SUBST_FILES.egdir+= bin/lcov
SUBST_SED.egdir= -e 's,"/etc/lcovrc","'${PKG_SYSCONFDIR}/lcovrc'",g'
CONF_FILES= ${PREFIX}/share/examples/lcov/lcovrc \
${PKG_SYSCONFDIR}/lcovrc
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/lcov ${DESTDIR}${PREFIX}/bin/lcov
${INSTALL_SCRIPT} ${WRKSRC}/bin/genhtml ${DESTDIR}${PREFIX}/bin/genhtml
${INSTALL_SCRIPT} ${WRKSRC}/bin/geninfo ${DESTDIR}${PREFIX}/bin/geninfo
${INSTALL_SCRIPT} ${WRKSRC}/bin/genpng ${DESTDIR}${PREFIX}/bin/genpng
${INSTALL_SCRIPT} ${WRKSRC}/bin/gendesc ${DESTDIR}${PREFIX}/bin/gendesc
${INSTALL_MAN} ${WRKSRC}/man/lcov.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/lcov.1
${INSTALL_MAN} ${WRKSRC}/man/genhtml.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/genhtml.1
${INSTALL_MAN} ${WRKSRC}/man/geninfo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/geninfo.1
${INSTALL_MAN} ${WRKSRC}/man/genpng.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/genpng.1
${INSTALL_MAN} ${WRKSRC}/man/gendesc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gendesc.1
${INSTALL_MAN} ${WRKSRC}/man/lcovrc.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/lcovrc.5
${INSTALL_DATA} ${WRKSRC}/lcovrc ${DESTDIR}${PREFIX}/share/examples/lcov/lcovrc
.include "../../mk/bsd.pkg.mk"