public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/mcl/, dev-libs/mcl/files/
@ 2025-07-12 13:47 Pavel Sobolev
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Sobolev @ 2025-07-12 13:47 UTC (permalink / raw
  To: gentoo-commits

commit:     f385307acef50835a7acb963029d592c171f4303
Author:     Pavel Sobolev <contact <AT> paveloom <DOT> dev>
AuthorDate: Wed Jul  9 16:21:01 2025 +0000
Commit:     Pavel Sobolev <contact <AT> paveloom <DOT> dev>
CommitDate: Sat Jul 12 13:43:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f385307a

dev-libs/mcl: new package, add 0.1.13

Signed-off-by: Pavel Sobolev <contact <AT> paveloom.dev>

 dev-libs/mcl/Manifest                              |  1 +
 ...cl-0.1.13-build-tests-only-when-requested.patch | 29 +++++++++++++++++
 dev-libs/mcl/mcl-0.1.13.ebuild                     | 36 ++++++++++++++++++++++
 dev-libs/mcl/metadata.xml                          | 12 ++++++++
 4 files changed, 78 insertions(+)

diff --git a/dev-libs/mcl/Manifest b/dev-libs/mcl/Manifest
new file mode 100644
index 0000000000..bf02a14b3b
--- /dev/null
+++ b/dev-libs/mcl/Manifest
@@ -0,0 +1 @@
+DIST mcl-0.1.13.tar.gz 25663 BLAKE2B 3dbd667338a4697b9a044dca363cbf6f92de51d173116110694d34f6796a3ed2ebc056fa2ce3015ee3840b1435eb367a714ccbe24b4807c7d139ecb446279b6f SHA512 ed394edead795d04583034f569ada69a9ee893431159cb8ee2cc8f47509ad5e4ffdcfdefdeae06a118305b61f74d420f421125fc2e038c21d7ff08612e03ad24

diff --git a/dev-libs/mcl/files/mcl-0.1.13-build-tests-only-when-requested.patch b/dev-libs/mcl/files/mcl-0.1.13-build-tests-only-when-requested.patch
new file mode 100644
index 0000000000..8087c822c0
--- /dev/null
+++ b/dev-libs/mcl/files/mcl-0.1.13-build-tests-only-when-requested.patch
@@ -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()

diff --git a/dev-libs/mcl/mcl-0.1.13.ebuild b/dev-libs/mcl/mcl-0.1.13.ebuild
new file mode 100644
index 0000000000..ab7df6462d
--- /dev/null
+++ b/dev-libs/mcl/mcl-0.1.13.ebuild
@@ -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
+}

diff --git a/dev-libs/mcl/metadata.xml b/dev-libs/mcl/metadata.xml
new file mode 100644
index 0000000000..705a27f2fc
--- /dev/null
+++ b/dev-libs/mcl/metadata.xml
@@ -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>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/mcl/, dev-libs/mcl/files/
@ 2025-09-18 13:59 Violet Purcell
  0 siblings, 0 replies; 2+ messages in thread
From: Violet Purcell @ 2025-09-18 13:59 UTC (permalink / raw
  To: gentoo-commits

commit:     7f80124ed0ecb7d702b69c011b847cb0c7367204
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Thu Sep 18 13:59:27 2025 +0000
Commit:     Violet Purcell <vimproved <AT> inventati <DOT> org>
CommitDate: Thu Sep 18 13:59:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7f80124e

dev-libs/mcl: backport musl lift_sequence fix from azahar fork

Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>

 .../files/mcl-0.1.13-musl-lift_sequence-fix.patch  | 27 ++++++++++++++++++++++
 dev-libs/mcl/mcl-0.1.13.ebuild                     |  1 +
 2 files changed, 28 insertions(+)

diff --git a/dev-libs/mcl/files/mcl-0.1.13-musl-lift_sequence-fix.patch b/dev-libs/mcl/files/mcl-0.1.13-musl-lift_sequence-fix.patch
new file mode 100644
index 0000000000..d74774bf9f
--- /dev/null
+++ b/dev-libs/mcl/files/mcl-0.1.13-musl-lift_sequence-fix.patch
@@ -0,0 +1,27 @@
+From https://github.com/azahar-emu/mcl/commit/7b08d83418f628b800dfac1c9a16c3f59036fbad Mon Sep 17 00:00:00 2001
+From: PabloMK7 <hackyglitch2@gmail.com>
+Date: Sun, 16 Mar 2025 22:27:04 +0000
+Subject: [PATCH] Fix lift_sequence in msys2
+
+--- a/include/mcl/mp/typelist/lift_sequence.hpp
++++ b/include/mcl/mp/typelist/lift_sequence.hpp
+@@ -5,6 +5,7 @@
+ #pragma once
+ 
+ #include <type_traits>
++#include <utility>
+ 
+ #include "mcl/mp/typelist/list.hpp"
+ 
+@@ -20,6 +21,11 @@ struct lift_sequence_impl<VLT<T, values...>> {
+     using type = list<std::integral_constant<T, values>...>;
+ };
+ 
++template<class T, T... values>
++struct lift_sequence_impl<std::integer_sequence<T, values...>> {
++    using type = list<std::integral_constant<T, values>...>;
++};
++
+ }  // namespace detail
+ 
+ /// Lifts values in value list VL to create a type list.

diff --git a/dev-libs/mcl/mcl-0.1.13.ebuild b/dev-libs/mcl/mcl-0.1.13.ebuild
index ab7df6462d..d8e63364de 100644
--- a/dev-libs/mcl/mcl-0.1.13.ebuild
+++ b/dev-libs/mcl/mcl-0.1.13.ebuild
@@ -25,6 +25,7 @@ BDEPEND="
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-0.1.13-build-tests-only-when-requested.patch
+	"${FILESDIR}"/${PN}-0.1.13-musl-lift_sequence-fix.patch
 )
 
 src_configure() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-18 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-12 13:47 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/mcl/, dev-libs/mcl/files/ Pavel Sobolev
  -- strict thread matches above, loose matches on Subject: below --
2025-09-18 13:59 Violet Purcell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox