dev-libs/cgreen: add new package

- required by gvm toolset as a new dependency.

Closes: https://bugs.gentoo.org/730160
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Jonas Licht <jonas.licht@fem.tu-ilmenau.de>
Closes: https://github.com/gentoo/gentoo/pull/16488
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Jonas Licht
2020-07-11 13:42:28 +03:00
committed by Joonas Niilola
parent 3b6c49529b
commit f5a3ab31a3
4 changed files with 54 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST cgreen-1.3.0.tar.gz 350959 BLAKE2B 467af04aae61745e1a78e872be9c174a0b21db7a470b48a3d96132f4bc97300b0d51fd4617e4588491a2f032b3ba82e665c7bd49be3d360a33dae0e1323716a5 SHA512 3734be08722900b4c6aaa1cd8a7a31ffd876c12742cf81266014158dad0919db46a457fbc742f3d7e9b1fdf75530ee872045962469eeeb6d1fc45fddf2b6d332
+25
View File
@@ -0,0 +1,25 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="unit test and mocking framework for C and C++"
HOMEPAGE="https://cgreen-devs.github.io/"
SRC_URI="https://github.com/cgreen-devs/cgreen/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
sys-libs/glibc:=
"
RDEPEND="${DEPEND}"
BDEPEND=""
PATCHES=(
#Patch to fix git directory detection see https://github.com/cgreen-devs/cgreen/issues/234
"${FILESDIR}/${P}-cmake-git.patch"
)
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 350bb89..d496f5a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,7 +62,6 @@ execute_process(
OUTPUT_VARIABLE GITDIR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
-get_filename_component(GITDIR "${GITDIR}" ABSOLUTE)
# config.h checks
include(ConfigureChecks.cmake)
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>jonas.licht@gmail.com</email>
<name>Jonas Licht</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">cgreen-devs/cgreen</remote-id>
</upstream>
</pkgmetadata>