dev-util/mdds: add 3.0.0

Thanks to jospezial for rebasing the build system patch.

Closes: https://bugs.gentoo.org/938111
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-02-22 19:51:25 +00:00
parent dabf8ed9b9
commit 562a30ba96
5 changed files with 132 additions and 3 deletions

View File

@@ -1 +1,2 @@
DIST mdds-2.1.1.tar.xz 540732 BLAKE2B d549bf5c39db6b8ec738cca2833545fef48ffd0b603c2c97dd425ae89bd5368a6981fb75bd4cbf90c9cf09efc7116a4e485c843bb2200fc198d23a02dbdd6559 SHA512 5fe345e7d84d2e290a519d65b27332f69001c01da961c05a30abfe2a17cb8545822490bcd63b320d49e1b26291a4a898f77495951919aece83208133027848ea
DIST mdds-3.0.0.tar.xz 635852 BLAKE2B 67a10991409d92dfbae97242dcf0925936587f037b496bd3448b8f7c8fe5e1a5574fc29d7b89342750cb50dce3ce6eee1da9ce628987a3d2ad9260a23a904061 SHA512 c6b6be808a6b4a44ce41bf7e28cfe8c5bd3c5ede70dab808d1361b61ee51604750c5d47c46bf3e9bbdce6260311f4e5845afad158d2d1b3d9c349beae9611491

View File

@@ -0,0 +1,41 @@
# Nils Freydank <holgersson@posteo.de> (2020-01-08)
Avoid auto installation of files we install later manually.
Adopted from asturm's patch for mdds-1.4.3.
diff --git a/Makefile.am b/Makefile.am
index 9b69455b..010c7826 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/test/include \
$(CXXFLAGS_UNITTESTS)
-dist_doc_DATA = AUTHORS README.md
nodist_pkgconf_DATA = misc/mdds-@API_VERSION@.pc
DISTCLEANFILES = \
@@ -15,8 +14,6 @@ DISTCLEANFILES = \
EXTRA_DIST = \
autogen.sh \
- CHANGELOG \
- LICENSE \
doc/_static/images/fst-example1-initial.svg \
doc/_static/images/fst-example1-insert1.svg \
doc/_static/images/fst-example1-insert2.svg \
@@ -95,14 +92,6 @@ EXTRA_DIST = \
misc/sorted_string_data.dat \
misc/sorted_string_map_perf.cpp
-install-data-local:
- $(MKDIR_P) $(DESTDIR)$(docdir)
- $(INSTALL_DATA) $(top_srcdir)/LICENSE $(DESTDIR)$(docdir)/COPYING
- $(INSTALL_DATA) $(top_srcdir)/CHANGELOG $(DESTDIR)$(docdir)/NEWS
-
-uninstall-local:
- rm -f $(DESTDIR)$(docdir)/COPYING $(DESTDIR)$(docdir)/NEWS
-
if BUILD_DOCS
doc-doxygen:

View File

@@ -0,0 +1,19 @@
https://gitlab.com/mdds/mdds/-/commit/7c414ddc0bd2fae590cc09944579e90d822d9e0b
From 7c414ddc0bd2fae590cc09944579e90d822d9e0b Mon Sep 17 00:00:00 2001
From: Gwyn Ciesla <gwync@protonmail.com>
Date: Tue, 28 Jan 2025 13:33:22 -0600
Subject: [PATCH] Fix build with most recent gcc/glibc
--- a/include/mdds/trie_map.hpp
+++ b/include/mdds/trie_map.hpp
@@ -37,6 +37,7 @@
#include <map>
#include <memory>
#include <limits>
+#include <cstdint>
namespace mdds {
--
GitLab

View File

@@ -0,0 +1,64 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://gitlab.com/mdds/mdds.git"
inherit git-r3
else
# For 3.0.0, it mysteriously redirects to 2.0.0
#SRC_URI="https://kohei.us/files/${PN}/src/${P}.tar.xz"
SRC_URI="https://gitlab.com/api/v4/projects/mdds%2Fmdds/packages/generic/source/${PV}/${P}.tar.xz"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
fi
inherit autotools toolchain-funcs
DESCRIPTION="Collection of multi-dimensional data structure and indexing algorithm"
HOMEPAGE="https://gitlab.com/mdds/mdds"
LICENSE="MIT"
SLOT="1/3.0" # Check API version on version bumps!
IUSE="doc openmp test"
RESTRICT="!test? ( test )"
DEPEND="dev-libs/boost:="
RDEPEND="${DEPEND}"
BDEPEND="
doc? (
app-text/doxygen
dev-python/sphinx
)
test? ( dev-util/dejagnu )
"
PATCHES=(
"${FILESDIR}/${PN}-3.0.0-buildsystem.patch"
"${FILESDIR}/${P}-include.patch"
)
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_enable doc docs)
$(use_enable openmp)
)
econf "${myeconfargs[@]}"
}
src_test() {
tc-export CXX
default
}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,7 +7,9 @@ if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://gitlab.com/mdds/mdds.git"
inherit git-r3
else
SRC_URI="https://kohei.us/files/${PN}/src/${P}.tar.xz"
# For 3.0.0, it mysteriously redirects to 2.0.0
#SRC_URI="https://kohei.us/files/${PN}/src/${P}.tar.xz"
SRC_URI="https://gitlab.com/api/v4/projects/mdds%2Fmdds/packages/generic/source/${PV}/${P}.tar.xz"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
fi
inherit autotools toolchain-funcs
@@ -30,7 +32,9 @@ BDEPEND="
test? ( dev-util/dejagnu )
"
PATCHES=( "${FILESDIR}/${PN}-1.5.0-buildsystem.patch" )
PATCHES=(
"${FILESDIR}/${PN}-3.0.0-buildsystem.patch"
)
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp