Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 13:02:54 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r471041 - in head/devel: . kcov kcov/files
Message-ID:  <201805281302.w4SD2sLA092984@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers (src committer)
Date: Mon May 28 13:02:54 2018
New Revision: 471041
URL: https://svnweb.freebsd.org/changeset/ports/471041

Log:
  devel/kcov: new port
  
  kcov is a coverage analyzer that works with ELF, bash, and python programs.
  Unlike gcov, it works with uninstrumented binaries, requiring only that they
  include debugging symbols.  It is especially popular in the Rust community.
  
  PR:		228308
  Reviewed by:	tobik
  Approved by:	tobik (ports)

Added:
  head/devel/kcov/
  head/devel/kcov/Makefile   (contents, props changed)
  head/devel/kcov/distinfo   (contents, props changed)
  head/devel/kcov/files/
  head/devel/kcov/files/patch-src_CMakeLists.txt   (contents, props changed)
  head/devel/kcov/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon May 28 12:42:37 2018	(r471040)
+++ head/devel/Makefile	Mon May 28 13:02:54 2018	(r471041)
@@ -1263,6 +1263,7 @@
     SUBDIR += kaptain
     SUBDIR += kcachegrind
     SUBDIR += kcachegrind-kde4
+    SUBDIR += kcov
     SUBDIR += kdbg
     SUBDIR += kde-dev-scripts
     SUBDIR += kde-dev-scripts-kde4

Added: head/devel/kcov/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kcov/Makefile	Mon May 28 13:02:54 2018	(r471041)
@@ -0,0 +1,47 @@
+# $FreeBSD$
+
+PORTNAME=	kcov
+DISTVERSIONPREFIX=	v
+DISTVERSION=	35-57
+DISTVERSIONSUFFIX=	-g69dfa9c
+CATEGORIES=	devel
+
+MAINTAINER=	asomers@FreeBSD.org
+COMMENT=	Coverage checker for ELF, Bash, and Python programs
+
+LICENSE=	GPLv2 MIT # MIT for bundled handlebars, jquery, tablesorter
+LICENSE_COMB=	multi
+LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING
+
+BROKEN_FreeBSD_10= PR228478 devel/elfutils: undefined symbols on 10.4-RELEASE
+ONLY_FOR_ARCHS=	amd64
+ONLY_FOR_ARCHS_REASON=	ptrace code is only implemented for amd64
+
+BUILD_DEPENDS=	binutils>=2.30:devel/binutils
+LIB_DEPENDS=	libcurl.so:ftp/curl \
+		libdw.so:devel/elfutils \
+		libelf.so:devel/elfutils
+
+USES=		cmake:outsource shebangfix python:build gettext-runtime
+
+# Remove -DPORTVERSION (and associated patch) when basing the port on an
+# official release
+CMAKE_ARGS=	-DKCOV_INSTALL_MANDIR=${PREFIX}/man -DPORTVERSION=${PORTVERSION}
+
+SHEBANG_GLOB=	*.py
+
+# Use a GitHub tag until version 36 gets released, whenever that might be
+USE_GITHUB=	yes
+GH_ACCOUNT=	SimonKagstrom
+
+PLIST_FILES=	bin/kcov \
+		man/man1/kcov.1.gz
+
+OPTIONS_DEFINE=	DOCS
+PORTDOCS=	COPYING.externals \
+		ChangeLog
+
+post-stage:
+	${RM} ${STAGEDIR}${DOCSDIR}/COPYING
+
+.include <bsd.port.mk>

Added: head/devel/kcov/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kcov/distinfo	Mon May 28 13:02:54 2018	(r471041)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1526570477
+SHA256 (SimonKagstrom-kcov-v35-57-g69dfa9c_GH0.tar.gz) = 67772479b2cdc4bff42788306a786bbd0caf23fe25c67abeb6fa3c73bc66d653
+SIZE (SimonKagstrom-kcov-v35-57-g69dfa9c_GH0.tar.gz) = 301899

Added: head/devel/kcov/files/patch-src_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kcov/files/patch-src_CMakeLists.txt	Mon May 28 13:02:54 2018	(r471041)
@@ -0,0 +1,11 @@
+--- src/CMakeLists.txt.orig	2018-05-17 15:34:12 UTC
++++ src/CMakeLists.txt
+@@ -72,7 +72,7 @@ add_custom_command(
+     OUTPUT version.c
+     COMMAND "${CMAKE_COMMAND}"
+            -E echo
+-           "const char *kcov_version = \\\"${POD_VERSION}\\\"\;"
++	   "const char *kcov_version = \\\"${PORTVERSION}\\\"\;"
+         > version.c
+ )
+ 

Added: head/devel/kcov/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kcov/pkg-descr	Mon May 28 13:02:54 2018	(r471041)
@@ -0,0 +1,8 @@
+Kcov is a FreeBSD/Linux/OSX code coverage tester for compiled languages, Python
+and Bash. Kcov was originally a fork of Bcov, but has since evolved to support
+a large feature set in addition to that of Bcov.
+
+Kcov, like Bcov, uses DWARF debugging information for compiled programs to make
+it possible to collect coverage information without special compiler switches.
+
+WWW: https://simonkagstrom.github.io/kcov/index.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805281302.w4SD2sLA092984>