diff --git a/dev-util/lcov/lcov-1.12.recipe b/dev-util/lcov/lcov-1.12.recipe new file mode 100644 index 000000000..e6064e249 --- /dev/null +++ b/dev-util/lcov/lcov-1.12.recipe @@ -0,0 +1,45 @@ +SUMMARY="A graphical front-end for GCC's coverage testing tool gcov" +DESCRIPTION="collects gcov data for multiple source files and \ +creates HTML pages containing the source code annotated with \ +coverage information. It also adds overview pages for easy \ +navigation within the file structure. LCOV supports statement, \ +function and branch coverage measurement." +HOMEPAGE="http://ltp.sourceforge.net/coverage/lcov.php" +SOURCE_URI="https://github.com/linux-test-project/lcov/releases/download/v1.12/lcov-1.12.tar.gz" +CHECKSUM_SHA256="b474e49c6c962754063b3be97a757a2ba9e7a455f0aea612863bf67e9b8b8ea7" +COPYRIGHT="2002 - 2016 The lcov Developers" +LICENSE="GNU GPL v2" +REVISION="1" +PATCHES="lcov-1.12.patchset" + +ARCHITECTURES="any" + +PROVIDES=" + lcov = $portVersion + cmd:gendesc + cmd:genhtml + cmd:geninfo + cmd:genpng + cmd:lcov + " +REQUIRES=" + haiku + perl + " + +BUILD_REQUIRES=" + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +BUILD() +{ + true +} + +INSTALL() +{ + make install CFG_DIR=/etc BIN_DIR=$binDir MAN_DIR=$manDir +} diff --git a/dev-util/lcov/patches/lcov-1.12.patchset b/dev-util/lcov/patches/lcov-1.12.patchset new file mode 100644 index 000000000..f22e023ee --- /dev/null +++ b/dev-util/lcov/patches/lcov-1.12.patchset @@ -0,0 +1,86 @@ +From fd1210ab8cf34aac395ec2153384b19804cadf67 Mon Sep 17 00:00:00 2001 +From: Kostadin Damyanov +Date: Wed, 20 Jan 2016 22:43:28 +0200 +Subject: port to haiku + + +diff --git a/Makefile b/Makefile +index 19af0ca..365734a 100644 +--- a/Makefile ++++ b/Makefile +@@ -15,9 +15,9 @@ VERSION := $(shell bin/get_version.sh --version) + RELEASE := $(shell bin/get_version.sh --release) + FULL := $(shell bin/get_version.sh --full) + +-CFG_DIR := $(PREFIX)/etc +-BIN_DIR := $(PREFIX)/usr/bin +-MAN_DIR := $(PREFIX)/usr/share/man ++#CFG_DIR := $(PREFIX)/etc ++#BIN_DIR := $(PREFIX)/usr/bin ++#MAN_DIR := $(PREFIX)/usr/share/man + TMP_DIR := $(shell mktemp -d) + FILES := $(wildcard bin/*) $(wildcard man/*) README Makefile \ + $(wildcard rpm/*) lcovrc +diff --git a/bin/gendesc b/bin/gendesc +index 7287c83..fb2aa50 100755 +--- a/bin/gendesc ++++ b/bin/gendesc +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl -w ++#!/bin/perl -w + # + # Copyright (c) International Business Machines Corp., 2002 + # +diff --git a/bin/genhtml b/bin/genhtml +index cf1b7f5..21165f7 100755 +--- a/bin/genhtml ++++ b/bin/genhtml +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl -w ++#!/bin/perl -w + # + # Copyright (c) International Business Machines Corp., 2002,2012 + # +diff --git a/bin/geninfo b/bin/geninfo +index 7c4e6cc..0931805 100755 +--- a/bin/geninfo ++++ b/bin/geninfo +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl -w ++#!/bin/perl -w + # + # Copyright (c) International Business Machines Corp., 2002,2012 + # +diff --git a/bin/genpng b/bin/genpng +index 55e013e..a8a502d 100755 +--- a/bin/genpng ++++ b/bin/genpng +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl -w ++#!/bin/perl -w + # + # Copyright (c) International Business Machines Corp., 2002 + # +diff --git a/bin/lcov b/bin/lcov +index 7760ba2..811baca 100755 +--- a/bin/lcov ++++ b/bin/lcov +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl -w ++#!/bin/perl -w + # + # Copyright (c) International Business Machines Corp., 2002,2012 + # +diff --git a/bin/updateversion.pl b/bin/updateversion.pl +index 6c83181..0b6e090 100755 +--- a/bin/updateversion.pl ++++ b/bin/updateversion.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl -w ++#!/bin/perl -w + + use strict; + +-- +2.7.0 +