mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/cgreen: add 1.6.4
Small style tweaks over 1.6.3. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST cgreen-1.3.0.tar.gz 350959 BLAKE2B 467af04aae61745e1a78e872be9c174a0b21db7a470b48a3d96132f4bc97300b0d51fd4617e4588491a2f032b3ba82e665c7bd49be3d360a33dae0e1323716a5 SHA512 3734be08722900b4c6aaa1cd8a7a31ffd876c12742cf81266014158dad0919db46a457fbc742f3d7e9b1fdf75530ee872045962469eeeb6d1fc45fddf2b6d332
|
||||
DIST cgreen-1.6.3.tar.gz 461875 BLAKE2B 94df8754e164d04f40211a8ec1ca1959d6ad9cfd74ec986cb71e38dfec17f0db762d7b879fd86676553cd3134d966f9cb43a4ba035cf22ac080dfd8a28745dbf SHA512 0dbd637e6d2c0511d5e540107b3a4c7c66c3017e1626e19224e2e79f176f07a518be345689fc543f867dd0b412310f3bf10f4560de11239120bc206a1be3a3d8
|
||||
DIST cgreen-1.6.4.tar.gz 462389 BLAKE2B 3d1082737e75a29efccb405298d5883388bf46fd49b9c97bfb6c92dbc8840ad85544d61cd13b844fe3b16f1506dc86ab5125f2b13fe28280168b4568271e8304 SHA512 ffaf10c1a0445eb957d73d49346547db32fb83160a7edf822583f908c0ab30f9f8f2dea1037337dc4306d6eaa47b8ffe3a8acaf4e8956fdd9e6cfc20bbc09bf2
|
||||
|
||||
43
dev-libs/cgreen/cgreen-1.6.4.ebuild
Normal file
43
dev-libs/cgreen/cgreen-1.6.4.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake flag-o-matic
|
||||
|
||||
DESCRIPTION="Unit test and mocking framework for C and C++"
|
||||
HOMEPAGE="
|
||||
https://cgreen-devs.github.io/cgreen/
|
||||
https://github.com/cgreen-devs/cgreen
|
||||
"
|
||||
SRC_URI="https://github.com/cgreen-devs/cgreen/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE="libxml2 test xml" # doc flag could be added
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="libxml2? ( dev-libs/libxml2:= )"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
${DEPEND}
|
||||
test? ( dev-lang/perl )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.6.3_no-fortify-source.patch )
|
||||
|
||||
src_configure() {
|
||||
# Fails to compile with LTO because of ODR violation
|
||||
filter-lto
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCGREEN_WITH_STATIC_LIBRARY=OFF # upstream default
|
||||
-DCGREEN_WITH_LIBXML2=$(usex libxml2)
|
||||
-DCGREEN_WITH_UNIT_TESTS=$(usex test)
|
||||
-DCGREEN_WITH_XML=$(usex xml)
|
||||
)
|
||||
|
||||
# Makefile is a wrapper for cmake, ignore it
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user