public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-db/libpg_query/
  2024-04-05 22:20 [gentoo-commits] repo/proj/guru:master commit in: dev-db/libpg_query/ Julien Roy
@ 2024-04-05 21:57 ` Julien Roy
  0 siblings, 0 replies; 5+ messages in thread
From: Julien Roy @ 2024-04-05 21:57 UTC (permalink / raw
  To: gentoo-commits

commit:     4435babc4209a9564bd88c180e4b0b0cfdc8bdc3
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Fri Apr  5 21:41:32 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> 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 <julien <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<name>Julien Roy</name>
+		<email>julien@jroy.ca</email>
+	</maintainer>
+	<longdescription>
+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
+	</longdescription>
+	<upstream>
+		<bugs-to>https://github.com/pganalyze/libpg_query/issues</bugs-to>
+		<changelog>https://github.com/pganalyze/libpg_query/releases</changelog>
+		<remote-id type="github">pganalyze/libpg_query</remote-id>
+	</upstream>
+	<slots>
+		<subslots>dev-db/postgresql target version</subslots>
+	</slots>
+</pkgmetadata>


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

* [gentoo-commits] repo/proj/guru:master commit in: dev-db/libpg_query/
@ 2024-04-05 22:20 Julien Roy
  2024-04-05 21:57 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Roy @ 2024-04-05 22:20 UTC (permalink / raw
  To: gentoo-commits

commit:     4435babc4209a9564bd88c180e4b0b0cfdc8bdc3
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Fri Apr  5 21:41:32 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> 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 <julien <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<name>Julien Roy</name>
+		<email>julien@jroy.ca</email>
+	</maintainer>
+	<longdescription>
+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
+	</longdescription>
+	<upstream>
+		<bugs-to>https://github.com/pganalyze/libpg_query/issues</bugs-to>
+		<changelog>https://github.com/pganalyze/libpg_query/releases</changelog>
+		<remote-id type="github">pganalyze/libpg_query</remote-id>
+	</upstream>
+	<slots>
+		<subslots>dev-db/postgresql target version</subslots>
+	</slots>
+</pkgmetadata>


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

* [gentoo-commits] repo/proj/guru:dev commit in: dev-db/libpg_query/
  2024-04-07 19:27 [gentoo-commits] repo/proj/guru:master " Julien Roy
@ 2024-04-07 19:22 ` Julien Roy
  0 siblings, 0 replies; 5+ messages in thread
From: Julien Roy @ 2024-04-07 19:22 UTC (permalink / raw
  To: gentoo-commits

commit:     244fcb5ff6342617793baffd09199ffe2daedc50
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sun Apr  7 19:21:36 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sun Apr  7 19:21:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=244fcb5f

dev-db/libpg_query: add 16.5.1.0

Closes: https://bugs.gentoo.org/928859
Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 dev-db/libpg_query/Manifest                    |  1 +
 dev-db/libpg_query/libpg_query-16.5.1.0.ebuild | 46 ++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/dev-db/libpg_query/Manifest b/dev-db/libpg_query/Manifest
index c9fff90e81..53a136239a 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 0000000000..bb9c746e30
--- /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
+}


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

* [gentoo-commits] repo/proj/guru:dev commit in: dev-db/libpg_query/
  2024-04-07 19:27 [gentoo-commits] repo/proj/guru:master " Julien Roy
@ 2024-04-07 19:22 ` Julien Roy
  0 siblings, 0 replies; 5+ messages in thread
From: Julien Roy @ 2024-04-07 19:22 UTC (permalink / raw
  To: gentoo-commits

commit:     6ceae68a4dda86f4c3d6ca9b26388f16792eb9c0
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sun Apr  7 19:21:56 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sun Apr  7 19:21:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6ceae68a

dev-db/libpg_query: drop 5.1.0

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 dev-db/libpg_query/Manifest                 |  1 -
 dev-db/libpg_query/libpg_query-5.1.0.ebuild | 38 -----------------------------
 2 files changed, 39 deletions(-)

diff --git a/dev-db/libpg_query/Manifest b/dev-db/libpg_query/Manifest
index 53a136239a..a9f7907b85 100644
--- a/dev-db/libpg_query/Manifest
+++ b/dev-db/libpg_query/Manifest
@@ -1,2 +1 @@
 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-5.1.0.ebuild b/dev-db/libpg_query/libpg_query-5.1.0.ebuild
deleted file mode 100644
index e7b7ac52cb..0000000000
--- a/dev-db/libpg_query/libpg_query-5.1.0.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# 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
-}


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

* [gentoo-commits] repo/proj/guru:dev commit in: dev-db/libpg_query/
@ 2024-11-19 14:01 Julien Roy
  0 siblings, 0 replies; 5+ messages in thread
From: Julien Roy @ 2024-11-19 14:01 UTC (permalink / raw
  To: gentoo-commits

commit:     2f531224f5415e3907dd81904ebfb1f6fbc2fd01
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Tue Nov 19 12:46:02 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Tue Nov 19 14:00:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2f531224

dev-db/libpg_query: add 17.6.0.0

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 dev-db/libpg_query/Manifest                    |  1 +
 dev-db/libpg_query/libpg_query-17.6.0.0.ebuild | 46 ++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/dev-db/libpg_query/Manifest b/dev-db/libpg_query/Manifest
index a9f7907b8..624596e24 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-17.6.0.0.gh.tar.gz 4497708 BLAKE2B a7aafc7e9969b20d9b3f58cdb3cc23f3a003496f247874a9689cd24a87a22b8a102da1b8800f33fc21556356a151bda1f86cb300af150607aece8be5b6679eec SHA512 235adfe708fda313c00b7a3795a1da54c9a2503c153e67f69df2a1529a36e40aaeb77f5cb36117e7e3b176fa467a3e33b8ddbd8c145f83c7f0fa99e1ad995ee8

diff --git a/dev-db/libpg_query/libpg_query-17.6.0.0.ebuild b/dev-db/libpg_query/libpg_query-17.6.0.0.ebuild
new file mode 100644
index 000000000..a86368889
--- /dev/null
+++ b/dev-db/libpg_query/libpg_query-17.6.0.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/\./-}"
+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
+}


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

end of thread, other threads:[~2024-11-19 14:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-05 22:20 [gentoo-commits] repo/proj/guru:master commit in: dev-db/libpg_query/ Julien Roy
2024-04-05 21:57 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
  -- strict thread matches above, loose matches on Subject: below --
2024-04-07 19:27 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-04-07 19:22 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-04-07 19:27 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-04-07 19:22 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-11-19 14:01 Julien Roy

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