mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
dev-libs/mcl: new package, add 0.1.13
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
1
dev-libs/mcl/Manifest
Normal file
1
dev-libs/mcl/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST mcl-0.1.13.tar.gz 25663 BLAKE2B 3dbd667338a4697b9a044dca363cbf6f92de51d173116110694d34f6796a3ed2ebc056fa2ce3015ee3840b1435eb367a714ccbe24b4807c7d139ecb446279b6f SHA512 ed394edead795d04583034f569ada69a9ee893431159cb8ee2cc8f47509ad5e4ffdcfdefdeae06a118305b61f74d420f421125fc2e038c21d7ff08612e03ad24
|
||||
@@ -0,0 +1,29 @@
|
||||
From: Pavel Sobolev <contact@paveloom.dev>
|
||||
Subject: [PATCH] Build tests only when requested.
|
||||
|
||||
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -102,8 +102,10 @@ endif()
|
||||
|
||||
# Project files
|
||||
|
||||
+include(CTest)
|
||||
+
|
||||
add_subdirectory(src)
|
||||
-if (TARGET Catch2::Catch2 AND MASTER_PROJECT)
|
||||
+if (BUILD_TESTING)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -10,7 +10,6 @@ target_include_directories(mcl-tests PUBLIC .)
|
||||
target_compile_options(mcl-tests PRIVATE ${STAMINA_CXX_FLAGS})
|
||||
target_link_libraries(mcl-tests PRIVATE Catch2::Catch2WithMain mcl)
|
||||
|
||||
-include(CTest)
|
||||
include(Catch)
|
||||
catch_discover_tests(mcl-tests)
|
||||
enable_testing()
|
||||
36
dev-libs/mcl/mcl-0.1.13.ebuild
Normal file
36
dev-libs/mcl/mcl-0.1.13.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="merry's common library"
|
||||
HOMEPAGE="https://github.com/merryhime/mcl"
|
||||
SRC_URI="https://github.com/merryhime/mcl/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libfmt:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
test? ( dev-cpp/catch )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.1.13-build-tests-only-when-requested.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
12
dev-libs/mcl/metadata.xml
Normal file
12
dev-libs/mcl/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>contact@paveloom.dev</email>
|
||||
<name>Pavel Sobolev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/merryhime/mcl/issues</bugs-to>
|
||||
<remote-id type="github">merryhime/mcl</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user