pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lcov-current: Import lcov-1.12 as wip/lcov-current
Module Name: pkgsrc-wip
Committed By: Mateusz Poszwa <old4%o2.pl@localhost>
Pushed By: f8l
Date: Wed Sep 14 23:42:06 2016 +0200
Changeset: 6a38c72594c4d17fdf4f3b9700a1e5594f1e6bd0
Modified Files:
Makefile
Added Files:
lcov-current/DESCR
lcov-current/Makefile
lcov-current/PLIST
lcov-current/distinfo
lcov-current/patches/patch-bin_copy__dates.sh
lcov-current/patches/patch-bin_get__changes.sh
lcov-current/patches/patch-bin_get__version.sh
lcov-current/patches/patch-bin_install.sh
Log Message:
lcov-current: Import lcov-1.12 as wip/lcov-current
LCOV is an extension of GCOV, a GNU tool which provides information
about what parts of a program are actually executed (i.e. "covered")
while running a particular test case. The extension consists of
a set of Perl scripts which build on the textual GCOV output
to implement the following enhanced functionality:
* HTML based output: coverage rates are additionally
indicated using bar graphs and specific colors.
* Support for large projects: overview pages allow quick
browsing of coverage data by providing three levels of
detail: directory view, file view and source code view.
LCOV was initially designed to support Linux kernel
coverage measurements, but works as well for coverage
measurements on standard user space applications.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6a38c72594c4d17fdf4f3b9700a1e5594f1e6bd0
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
lcov-current/DESCR | 16 +++++++++
lcov-current/Makefile | 37 +++++++++++++++++++
lcov-current/PLIST | 13 +++++++
lcov-current/distinfo | 6 ++++
lcov-current/patches/patch-bin_copy__dates.sh | 12 +++++++
lcov-current/patches/patch-bin_get__changes.sh | 12 +++++++
lcov-current/patches/patch-bin_get__version.sh | 43 ++++++++++++++++++++++
lcov-current/patches/patch-bin_install.sh | 49 ++++++++++++++++++++++++++
9 files changed, 189 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index edd97c3..bd9f37e 100644
--- a/Makefile
+++ b/Makefile
@@ -1521,6 +1521,7 @@ SUBDIR+= lbt
SUBDIR+= lcalc
SUBDIR+= lcdproc
SUBDIR+= lci
+SUBDIR+= lcov-current
SUBDIR+= lcrack
SUBDIR+= ldapbrowser
SUBDIR+= ldapdns
diff --git a/lcov-current/DESCR b/lcov-current/DESCR
new file mode 100644
index 0000000..1b3ca5e
--- /dev/null
+++ b/lcov-current/DESCR
@@ -0,0 +1,16 @@
+LCOV is an extension of GCOV, a GNU tool which provides information
+about what parts of a program are actually executed (i.e. "covered")
+while running a particular test case. The extension consists of
+a set of Perl scripts which build on the textual GCOV output
+to implement the following enhanced functionality:
+
+ * HTML based output: coverage rates are additionally
+ indicated using bar graphs and specific colors.
+
+ * Support for large projects: overview pages allow quick
+ browsing of coverage data by providing three levels of
+ detail: directory view, file view and source code view.
+
+LCOV was initially designed to support Linux kernel
+coverage measurements, but works as well for coverage
+measurements on standard user space applications.
diff --git a/lcov-current/Makefile b/lcov-current/Makefile
new file mode 100644
index 0000000..5f6f083
--- /dev/null
+++ b/lcov-current/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+DISTNAME= lcov-${LCOV_FULL}
+LCOV_VERSION= 1
+LCOV_RELEASE= 12
+LCOV_FULL= ${LCOV_VERSION}.${LCOV_RELEASE}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=linux-test-project/}
+
+GIT_REPOSITORIES= lcov
+GIT_REPO.lcov= https://github.com/linux-test-project/lcov.git
+WRKSRC= ${WRKDIR}/lcov
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/linux-test-project/lcov/
+COMMENT= Extension of GCOV
+LICENSE= gnu-gpl-v2
+
+EGDIR= ${PREFIX}/share/examples/lcov
+CONF_FILES+= ${EGDIR}/lcovrc ${PKG_SYSCONFDIR}/lcovrc
+
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= CFG_DIR=${EGDIR}
+MAKE_FLAGS+= MAN_DIR=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+= VERSION=${LCOV_VERSION}
+MAKE_FLAGS+= RELEASE=${LCOV_RELEASE}
+MAKE_FLAGS+= FULL=${LCOV_FULL}
+
+REPLACE_PERL+= bin/gendesc
+REPLACE_PERL+= bin/genhtml
+REPLACE_PERL+= bin/geninfo
+REPLACE_PERL+= bin/genpng
+REPLACE_PERL+= bin/lcov
+REPLACE_PERL+= bin/updateversion.pl
+
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lcov-current/PLIST b/lcov-current/PLIST
new file mode 100644
index 0000000..466121f
--- /dev/null
+++ b/lcov-current/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD$
+bin/gendesc
+bin/genhtml
+bin/geninfo
+bin/genpng
+bin/lcov
+man/man1/gendesc.1
+man/man1/genhtml.1
+man/man1/geninfo.1
+man/man1/genpng.1
+man/man1/lcov.1
+man/man5/lcovrc.5
+share/examples/lcov/lcovrc
diff --git a/lcov-current/distinfo b/lcov-current/distinfo
new file mode 100644
index 0000000..21e19f5
--- /dev/null
+++ b/lcov-current/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (patch-bin_copy__dates.sh) = 8e7e04bda15321e5393d893fdcc2fcf68a5fbeb5
+SHA1 (patch-bin_get__changes.sh) = 86ce47d35cfea167eb3c73b4457c409a8dbbe198
+SHA1 (patch-bin_get__version.sh) = 4eb4ab689df37f1fcf0aa26a744a3baed5905975
+SHA1 (patch-bin_install.sh) = bcfc8504ad875aa92c504439d2cacdaa31d259b0
diff --git a/lcov-current/patches/patch-bin_copy__dates.sh b/lcov-current/patches/patch-bin_copy__dates.sh
new file mode 100644
index 0000000..cc49781
--- /dev/null
+++ b/lcov-current/patches/patch-bin_copy__dates.sh
@@ -0,0 +1,12 @@
+$NetBSD$
+
+Get rid of Bash
+
+--- bin/copy_dates.sh.orig 2016-09-14 18:39:15.000000000 +0000
++++ bin/copy_dates.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ #
+ # Usage: copy_dates.sh SOURCE TARGET
+ #
diff --git a/lcov-current/patches/patch-bin_get__changes.sh b/lcov-current/patches/patch-bin_get__changes.sh
new file mode 100644
index 0000000..7abcfa7
--- /dev/null
+++ b/lcov-current/patches/patch-bin_get__changes.sh
@@ -0,0 +1,12 @@
+$NetBSD$
+
+Get rid of Bash
+
+--- bin/get_changes.sh.orig 2016-09-14 18:39:15.000000000 +0000
++++ bin/get_changes.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ #
+ # Usage: get_changes.sh
+ #
diff --git a/lcov-current/patches/patch-bin_get__version.sh b/lcov-current/patches/patch-bin_get__version.sh
new file mode 100644
index 0000000..2c9e679
--- /dev/null
+++ b/lcov-current/patches/patch-bin_get__version.sh
@@ -0,0 +1,43 @@
+$NetBSD$
+
+Get rid of Bash
+
+--- bin/get_version.sh.orig 2016-09-14 18:39:15.000000000 +0000
++++ bin/get_version.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ #
+ # Usage: get_version.sh --version|--release|--full
+ #
+@@ -11,16 +11,16 @@ GITVER=$(cd $TOOLDIR ; git describe --ta
+ if [ -z "$GITVER" ] ; then
+ # Get version information from file
+ if [ -e "$TOOLDIR/../.version" ] ; then
+- source "$TOOLDIR/../.version"
++ . "$TOOLDIR/../.version"
+ fi
+ else
+ # Get version information from git
+- FULL=${GITVER:1}
++ FULL=${GITVER#?}
+ VERSION=${GITVER%%-*}
+- VERSION=${VERSION:1}
++ VERSION=${VERSION#?}
+ if [ "${GITVER#*-}" != "$GITVER" ] ; then
+ RELEASE=${GITVER#*-}
+- RELEASE=${RELEASE/-/.}
++ RELEASE=$(echo $RELEASE | tr - .)
+ fi
+ fi
+
+@@ -29,6 +29,6 @@ fi
+ [ -z "$RELEASE" ] && RELEASE="1"
+ [ -z "$FULL" ] && FULL="$VERSION"
+
+-[ "$1" == "--version" ] && echo -n "$VERSION"
+-[ "$1" == "--release" ] && echo -n "$RELEASE"
+-[ "$1" == "--full" ] && echo -n "$FULL"
++[ "$1" = "--version" ] && echo -n "$VERSION"
++[ "$1" = "--release" ] && echo -n "$RELEASE"
++[ "$1" = "--full" ] && echo -n "$FULL"
diff --git a/lcov-current/patches/patch-bin_install.sh b/lcov-current/patches/patch-bin_install.sh
new file mode 100644
index 0000000..4e8fa02
--- /dev/null
+++ b/lcov-current/patches/patch-bin_install.sh
@@ -0,0 +1,49 @@
+$NetBSD$
+
+Get rid of Bash
+Try to use install(1) in a more portable way
+
+--- bin/install.sh.orig 2016-09-14 18:39:15.000000000 +0000
++++ bin/install.sh
+@@ -1,11 +1,11 @@
+-#!/bin/bash
++#!/bin/sh
+ #
+ # install.sh [--uninstall] sourcefile targetfile [install options]
+ #
+
+
+ # Check for uninstall option
+-if test "x$1" == "x--uninstall" ; then
++if test "x$1" = "x--uninstall" ; then
+ UNINSTALL=true
+ SOURCE=$2
+ TARGET=$3
+@@ -30,11 +30,12 @@ fi
+
+ do_install()
+ {
+- local SOURCE=$1
+- local TARGET=$2
+- local PARAMS=$3
++ local SOURCE="$1"
++ local TARGET="$2"
++ local PARAMS="$3"
+
+- install -p -D $PARAMS $SOURCE $TARGET
++ install -d "${TARGET%/*}"
++ install -p $PARAMS "$SOURCE" "$TARGET"
+ }
+
+
+@@ -44,8 +45,8 @@ do_install()
+
+ do_uninstall()
+ {
+- local SOURCE=$1
+- local TARGET=$2
++ local SOURCE="$1"
++ local TARGET="$2"
+
+ # Does target exist?
+ if test -r $TARGET ; then
Home |
Main Index |
Thread Index |
Old Index