summaryrefslogtreecommitdiff
path: root/dev-libs/cgreen
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/cgreen')
-rw-r--r--dev-libs/cgreen/Manifest4
-rw-r--r--dev-libs/cgreen/cgreen-1.3.0.ebuild22
-rw-r--r--dev-libs/cgreen/files/cgreen-1.3.0-cmake-git.patch13
-rw-r--r--dev-libs/cgreen/metadata.xml15
4 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/cgreen/Manifest b/dev-libs/cgreen/Manifest
new file mode 100644
index 000000000000..0f2d5ccd887f
--- /dev/null
+++ b/dev-libs/cgreen/Manifest
@@ -0,0 +1,4 @@
+AUX cgreen-1.3.0-cmake-git.patch 326 BLAKE2B f58e5c57429311b70285f2605d3f21f8f6545d379909dda17460d855eadb5545a746a6122fee31c41cbd86410db08a460937ee70af6a0e5aaef997632bcae180 SHA512 76e4b2e0fdaafb50006733eb198b5b97ea2874957efed81552a279680d03b59ad20935c6f9e4835f39019f5646be72d7fa00c6825f86e6a502743f3bb466c340
+DIST cgreen-1.3.0.tar.gz 350959 BLAKE2B 467af04aae61745e1a78e872be9c174a0b21db7a470b48a3d96132f4bc97300b0d51fd4617e4588491a2f032b3ba82e665c7bd49be3d360a33dae0e1323716a5 SHA512 3734be08722900b4c6aaa1cd8a7a31ffd876c12742cf81266014158dad0919db46a457fbc742f3d7e9b1fdf75530ee872045962469eeeb6d1fc45fddf2b6d332
+EBUILD cgreen-1.3.0.ebuild 544 BLAKE2B a0c2b449eac53fe0f0116bbe5b925c50b5c530ef4b31c23c3ce29321bc9e5102169d66d95f684fdf5a246faf70285564d532f8956a67da94f1c803603e7bc664 SHA512 bfe132b82435338870f4f418853404ffe2ab1342494f4856e016c50facfc0f32b88c4c2e84a3ae10da7b4900172167f44085fedaedb65186e9f878e9de273a71
+MISC metadata.xml 448 BLAKE2B 40d2658060ee754b9647cd977d40dfad04d3c4c0f5877d58f88ccd3700c7cbb414b5c451a6548daa58b9f567915cb7b78fe635ca5993aed0e4980e1a2f2d2671 SHA512 ea44b83deb6442cee3860f2af55dec6486d1813cb3ef2a875ae338c9ec3607e7d8269c78e3641cd921f9c691864de35c62ca7870c115b2778ccdaf0e5ceecf49
diff --git a/dev-libs/cgreen/cgreen-1.3.0.ebuild b/dev-libs/cgreen/cgreen-1.3.0.ebuild
new file mode 100644
index 000000000000..1b1189420def
--- /dev/null
+++ b/dev-libs/cgreen/cgreen-1.3.0.ebuild
@@ -0,0 +1,22 @@
+# 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}"
+
+PATCHES=(
+ #Patch to fix git directory detection see https://github.com/cgreen-devs/cgreen/issues/234
+ "${FILESDIR}/${P}-cmake-git.patch"
+)
diff --git a/dev-libs/cgreen/files/cgreen-1.3.0-cmake-git.patch b/dev-libs/cgreen/files/cgreen-1.3.0-cmake-git.patch
new file mode 100644
index 000000000000..283ada2aa70e
--- /dev/null
+++ b/dev-libs/cgreen/files/cgreen-1.3.0-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)
+
diff --git a/dev-libs/cgreen/metadata.xml b/dev-libs/cgreen/metadata.xml
new file mode 100644
index 000000000000..7cd1d64d499c
--- /dev/null
+++ b/dev-libs/cgreen/metadata.xml
@@ -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>