From adc0414fc422e702a75a80ee4d43507ada46c775 Mon Sep 17 00:00:00 2001 From: Yongxiang Liang Date: Sat, 24 Oct 2026 20:24:37 +0800 Subject: [PATCH] dev-db/pgroonga: new package, add 4.1.0 Signed-off-by: Yongxiang Liang --- .github/workflows/overlay.toml | 6 +++ dev-db/pgroonga/Manifest | 1 + dev-db/pgroonga/metadata.xml | 14 ++++++ dev-db/pgroonga/pgroonga-4.1.0.ebuild | 64 +++++++++++++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 dev-db/pgroonga/Manifest create mode 100644 dev-db/pgroonga/metadata.xml create mode 100644 dev-db/pgroonga/pgroonga-4.1.0.ebuild diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index 766b9e9d75..dd498d0f90 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -912,6 +912,12 @@ use_latest_release = true prefix = "v" github_account = ["CHN-beta", "gouwazi"] +["dev-db/pgroonga"] +source = "github" +github = "pgroonga/pgroonga" +use_latest_release = true +github_account = ["liangyongxiang"] + ["dev-debug/lldb-mi"] source = "github" github = "lldb-tools/lldb-mi" diff --git a/dev-db/pgroonga/Manifest b/dev-db/pgroonga/Manifest new file mode 100644 index 0000000000..d782e55069 --- /dev/null +++ b/dev-db/pgroonga/Manifest @@ -0,0 +1 @@ +DIST pgroonga-4.1.0.tar.gz 484023 BLAKE2B 4d5aea1d962e6bc1f37e2e44236513a5c63a8b5a9ba715c5c834cd44b7e9d85db437092510f50b8d1920aa403a924f7a0a0d65e2fe4effe0646074667e52f20f SHA512 68cb4e0fb0ad3dc9e5ba41e77932a24804c0408688a0730d6d12814f99f2702b3e0f4ca3578fb333223bbca8727157b0c3c473b339b0b4991cac900864d2f452 diff --git a/dev-db/pgroonga/metadata.xml b/dev-db/pgroonga/metadata.xml new file mode 100644 index 0000000000..6b3e4ae134 --- /dev/null +++ b/dev-db/pgroonga/metadata.xml @@ -0,0 +1,14 @@ + + + + + tanekliang@gmail.com + Yongxiang Liang + + + Enable WAL support through dev-libs/msgpack + + + pgroonga/pgroonga + + diff --git a/dev-db/pgroonga/pgroonga-4.1.0.ebuild b/dev-db/pgroonga/pgroonga-4.1.0.ebuild new file mode 100644 index 0000000000..f037b43750 --- /dev/null +++ b/dev-db/pgroonga/pgroonga-4.1.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +POSTGRES_COMPAT=( 14 15 16 17 18 ) +POSTGRES_USEDEP="server" + +inherit postgres-multi meson + +DESCRIPTION="Full-text search extension for PostgreSQL usable with all languages" +HOMEPAGE="https://pgroonga.github.io/" +SRC_URI="https://github.com/pgroonga/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="POSTGRESQL" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+msgpack" +REQUIRED_USE="${POSTGRES_REQ_USE}" + +DEPEND=" + >=app-text/groonga-14.1.0 + dev-libs/xxhash + ${POSTGRES_DEP} + msgpack? ( dev-libs/msgpack:= ) +" +RDEPEND="${DEPEND}" + +# Needs a running PostgreSQL server with pg_regress +RESTRICT="test" + +pg_configure() { + # multibuild's BUILD_DIR is a copy of the source tree; meson needs a separate dir + local BUILD_DIR="${BUILD_DIR}-build" + local emesonargs=( + -Dpg_config="${PG_CONFIG}" + -Dmessage_pack=$(usex msgpack enabled disabled) + -Dxxhash=enabled + -Dtest=false + ) + meson_src_configure +} + +src_configure() { + postgres-multi_foreach pg_configure +} + +pg_compile() { + local BUILD_DIR="${BUILD_DIR}-build" + meson_src_compile +} + +src_compile() { + postgres-multi_foreach pg_compile +} + +pg_install() { + local BUILD_DIR="${BUILD_DIR}-build" + meson_src_install +} + +src_install() { + postgres-multi_foreach pg_install +}