From owner-svn-ports-head@freebsd.org Mon May 28 13:02:56 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7A58EF617A; Mon, 28 May 2018 13:02:55 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9347F6ED74; Mon, 28 May 2018 13:02:55 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7421B5C5C; Mon, 28 May 2018 13:02:55 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4SD2t75092989; Mon, 28 May 2018 13:02:55 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4SD2sLA092984; Mon, 28 May 2018 13:02:54 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201805281302.w4SD2sLA092984@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Mon, 28 May 2018 13:02:54 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: in head/devel: . kcov kcov/files X-SVN-Commit-Revision: 471041 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2018 13:02:56 -0000 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 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