From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2E764158041 for ; Fri, 5 Apr 2024 21:57:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03946E2A04; Fri, 5 Apr 2024 21:57:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D59F3E2A04 for ; Fri, 5 Apr 2024 21:57:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 981173432C7 for ; Fri, 5 Apr 2024 21:57:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3059D15B1 for ; Fri, 5 Apr 2024 21:57:24 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1712353292.4435babc4209a9564bd88c180e4b0b0cfdc8bdc3.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-db/libpg_query/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-db/libpg_query/Manifest dev-db/libpg_query/libpg_query-5.1.0.ebuild dev-db/libpg_query/metadata.xml X-VCS-Directories: dev-db/libpg_query/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 4435babc4209a9564bd88c180e4b0b0cfdc8bdc3 X-VCS-Branch: dev Date: Fri, 5 Apr 2024 21:57:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a53eb962-f1b7-4311-9145-875957e3f6a0 X-Archives-Hash: 64b318e703a4cbf9bdb97e57298e7a9f Message-ID: <20240405215724.zFa1iQ2ik2M_ywCQl0WSqGIS9B4-LjF7ke6Qxy-PxhE@z> commit: 4435babc4209a9564bd88c180e4b0b0cfdc8bdc3 Author: Julien Roy jroy ca> AuthorDate: Fri Apr 5 21:41:32 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Fri Apr 5 21:41:32 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4435babc dev-db/libpg_query: new package, add 5.1.0 Signed-off-by: Julien Roy jroy.ca> dev-db/libpg_query/Manifest | 1 + dev-db/libpg_query/libpg_query-5.1.0.ebuild | 38 +++++++++++++++++++++++++++++ dev-db/libpg_query/metadata.xml | 25 +++++++++++++++++++ 3 files changed, 64 insertions(+) diff --git a/dev-db/libpg_query/Manifest b/dev-db/libpg_query/Manifest new file mode 100644 index 0000000000..c9fff90e81 --- /dev/null +++ b/dev-db/libpg_query/Manifest @@ -0,0 +1 @@ +DIST libpg_query-5.1.0.gh.tar.gz 4296325 BLAKE2B 0f4e80b7ad18462cdcfe8feb6fb8ddf17b0c90f96e6951d46103a1e6c5110e4a383a4742b38b3b3e1eea0fad9a1107cc1a69b296cd0890f342be8e89304d2856 SHA512 01b03c51f19bed427d1e3c0eecfe1ad8af0fcbce175e08b3fc53ba2a2cac396b85db9bc294e01ca7d0b3032d4fd966d95b3771d8133bb71fe3578a7beb6c587d diff --git a/dev-db/libpg_query/libpg_query-5.1.0.ebuild b/dev-db/libpg_query/libpg_query-5.1.0.ebuild new file mode 100644 index 0000000000..e7b7ac52cb --- /dev/null +++ b/dev-db/libpg_query/libpg_query-5.1.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PG_TARGET="16" +MY_PV="${PG_TARGET}-${PV}" +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/${PG_TARGET}" +KEYWORDS="~amd64" +IUSE="examples" + +BDEPEND=" + dev-libs/protobuf-c + dev-libs/xxhash +" + +src_compile() { + emake build + emake build_shared + use examples && emake examples +} + +src_test() { + emake test +} + +src_install() { + emake \ + prefix="${ED}"/usr \ + libdir="${ED}/usr/$(get_libdir)" \ + install +} diff --git a/dev-db/libpg_query/metadata.xml b/dev-db/libpg_query/metadata.xml new file mode 100644 index 0000000000..8e2177fbb5 --- /dev/null +++ b/dev-db/libpg_query/metadata.xml @@ -0,0 +1,25 @@ + + + + + Julien Roy + julien@jroy.ca + + +C library for accessing the PostgreSQL parser outside of the server. + +This library uses the actual PostgreSQL server source to parse SQL queries and return the internal PostgreSQL parse tree. + +Note that this is mostly intended as a base library for pg_query (Ruby), pg_query.go (Go), pgsql-parser (Node), psqlparse (Python) and pglast (Python 3). + +You can find further background to why a query's parse tree is useful here: https://pganalyze.com/blog/parse-postgresql-queries-in-ruby.html + + + https://github.com/pganalyze/libpg_query/issues + https://github.com/pganalyze/libpg_query/releases + pganalyze/libpg_query + + + dev-db/postgresql target version + +