aboutsummaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2024-04-07 15:21:36 -0400
committerJulien Roy <julien@jroy.ca>2024-04-07 15:21:36 -0400
commit244fcb5ff6342617793baffd09199ffe2daedc50 (patch)
tree4d8b3d9c2707201ac13afd8779f564f45f141506 /dev-db
parentnet-misc/wayback_machine_downloader: restore dropped package (diff)
downloadguru-244fcb5ff6342617793baffd09199ffe2daedc50.tar.gz
guru-244fcb5ff6342617793baffd09199ffe2daedc50.tar.bz2
guru-244fcb5ff6342617793baffd09199ffe2daedc50.zip
dev-db/libpg_query: add 16.5.1.0
Closes: https://bugs.gentoo.org/928859 Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/libpg_query/Manifest1
-rw-r--r--dev-db/libpg_query/libpg_query-16.5.1.0.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-db/libpg_query/Manifest b/dev-db/libpg_query/Manifest
index c9fff90e8..53a136239 100644
--- a/dev-db/libpg_query/Manifest
+++ b/dev-db/libpg_query/Manifest
@@ -1 +1,2 @@
+DIST libpg_query-16.5.1.0.gh.tar.gz 4296325 BLAKE2B 0f4e80b7ad18462cdcfe8feb6fb8ddf17b0c90f96e6951d46103a1e6c5110e4a383a4742b38b3b3e1eea0fad9a1107cc1a69b296cd0890f342be8e89304d2856 SHA512 01b03c51f19bed427d1e3c0eecfe1ad8af0fcbce175e08b3fc53ba2a2cac396b85db9bc294e01ca7d0b3032d4fd966d95b3771d8133bb71fe3578a7beb6c587d
DIST libpg_query-5.1.0.gh.tar.gz 4296325 BLAKE2B 0f4e80b7ad18462cdcfe8feb6fb8ddf17b0c90f96e6951d46103a1e6c5110e4a383a4742b38b3b3e1eea0fad9a1107cc1a69b296cd0890f342be8e89304d2856 SHA512 01b03c51f19bed427d1e3c0eecfe1ad8af0fcbce175e08b3fc53ba2a2cac396b85db9bc294e01ca7d0b3032d4fd966d95b3771d8133bb71fe3578a7beb6c587d
diff --git a/dev-db/libpg_query/libpg_query-16.5.1.0.ebuild b/dev-db/libpg_query/libpg_query-16.5.1.0.ebuild
new file mode 100644
index 000000000..bb9c746e3
--- /dev/null
+++ b/dev-db/libpg_query/libpg_query-16.5.1.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV="${PV/16\./16-}"
+DESCRIPTION="C library for accessing the PostgreSQL parser outside of the server environment"
+HOMEPAGE="https://github.com/pganalyze/libpg_query"
+SRC_URI="https://github.com/pganalyze/libpg_query/archive/${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="BSD"
+SLOT="0/16"
+KEYWORDS="~amd64"
+IUSE="examples static-libs"
+
+BDEPEND="
+ dev-libs/protobuf-c
+ dev-libs/xxhash
+"
+
+src_prepare() {
+ default
+
+ if ! use static-libs; then
+ sed -i -e "s/^install: \$(ARLIB) \$(SOLIB)$/install: \$(SOLIB)/" "${S}"/Makefile || die
+ sed -i -e "/^ \$(INSTALL) -m 644 \$(ARLIB) \"\$(DESTDIR)\"\$(libdir)\/\$(ARLIB)$/d" "${S}"/Makefile || die
+ fi
+}
+
+src_compile() {
+ emake build_shared
+ use static-libs && emake build
+ use examples && emake examples
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ emake \
+ prefix="${ED}"/usr \
+ libdir="${ED}/usr/$(get_libdir)" \
+ install
+}