From 4435babc4209a9564bd88c180e4b0b0cfdc8bdc3 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Fri, 5 Apr 2024 17:41:32 -0400 Subject: [PATCH 1/6] dev-db/libpg_query: new package, add 5.1.0 Signed-off-by: Julien Roy --- 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(+) create mode 100644 dev-db/libpg_query/Manifest create mode 100644 dev-db/libpg_query/libpg_query-5.1.0.ebuild create mode 100644 dev-db/libpg_query/metadata.xml 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 + + From f7b91103a5d41d31e4305c1d70d92c9b41aae4dd Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Fri, 5 Apr 2024 17:41:45 -0400 Subject: [PATCH 2/6] dev-db/pg_query_vala: new package, add 0.1.0_pre20240326 Signed-off-by: Julien Roy --- dev-db/pg_query_vala/Manifest | 2 + .../files/unbundle_libpg_query.patch | 54 +++++++++++++++++++ dev-db/pg_query_vala/metadata.xml | 17 ++++++ .../pg_query_vala-0.1.0_pre20240326.ebuild | 43 +++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 dev-db/pg_query_vala/Manifest create mode 100644 dev-db/pg_query_vala/files/unbundle_libpg_query.patch create mode 100644 dev-db/pg_query_vala/metadata.xml create mode 100644 dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild diff --git a/dev-db/pg_query_vala/Manifest b/dev-db/pg_query_vala/Manifest new file mode 100644 index 0000000000..9f85ac07eb --- /dev/null +++ b/dev-db/pg_query_vala/Manifest @@ -0,0 +1,2 @@ +DIST pg_query_vala-0.1.0_pre20240326.gh.tar.gz 15402 BLAKE2B 1bd2b72d262c4784fc08e17b4f8fd96b9ee8400cbc3e069c7305b013fcfe5a87afd97d62831b81ec1ec5aa9a7ef06ead99cbcba1f07e0a788269146c7e5d8bd1 SHA512 f6d7ebe149f9247d387343ede09d6648db2f547ad257ec0edc0f6f10c13173adc5ec4c4aaebc0faf016542ebd3f8731fe0394f40e32bc636be29863ebe05f7e9 +DIST pg_query_vala-0.1.0_pre20240326.tar.gz 4170981 BLAKE2B 8e348d93d5654853406af113c6195948910e6da9978802f6dbed7be9db4b0f6bc5ab4ee60bc6a956851b824e19c5b33a61752d4765c7349a926852ec489a97cc SHA512 7d5c123159129498488a7482b6fdea2a33d0ffc559781476a3f9339fc00aabbc7b0485f3bd78c73e7d89297ad3e25f60130d80f490c3aeadb6370d401955695c diff --git a/dev-db/pg_query_vala/files/unbundle_libpg_query.patch b/dev-db/pg_query_vala/files/unbundle_libpg_query.patch new file mode 100644 index 0000000000..33f8476eb8 --- /dev/null +++ b/dev-db/pg_query_vala/files/unbundle_libpg_query.patch @@ -0,0 +1,54 @@ +diff --git a/meson.build b/meson.build +index e6a3093..fbde456 100644 +--- a/meson.build ++++ b/meson.build +@@ -4,20 +4,16 @@ project( + default_options: ['buildtype=release', 'prefix=/usr'], + ) + ++cc = meson.get_compiler('c') ++lib_path = meson.current_source_dir() / 'libpg_query' ++libpg_query = cc.find_library('pg_query', required: true) ++ + dependencies = [ + dependency('glib-2.0'), + dependency('gobject-2.0'), ++ libpg_query + ] + +-libpg_query = custom_target( +- 'libpg_query', +- input: 'libpg_query/Makefile', +- output: 'libpg_query.a', +- command: ['script.sh', meson.current_build_dir(), meson.current_source_dir()], +- build_always: true, +- install: false, +-) +- + # foobar_dep = declare_dependency (sources: lib_target) + + sources = files( +@@ -28,22 +24,15 @@ vapi_dir = meson.current_source_dir() / 'vapi' + add_project_arguments(['--vapidir', vapi_dir], language: 'vala') + add_project_arguments(['--pkg', 'libpg_query'], language: 'vala') + +-# cc = meson.get_compiler('c') +-# lib_path = meson.current_source_dir() / 'libpg_query' +-# libpg_query = cc.find_library('pg_query', required: true, dirs: lib_path) ++dependencies += libpg_query + + pgquery_vala = library('pgquery-vala', sources, + dependencies: dependencies, + include_directories: include_directories('libpg_query'), + install: true, +- link_with: libpg_query, + install_dir: [true, true, true] + ) + +-install_headers( +- 'libpg_query/pg_query.h', +-) +- + # pgquery_vala_dep = declare_dependency( + # include_directories: include_directories('libpg_query/include'), + # link_with: pgquery_vala, diff --git a/dev-db/pg_query_vala/metadata.xml b/dev-db/pg_query_vala/metadata.xml new file mode 100644 index 0000000000..0ed8c8a28c --- /dev/null +++ b/dev-db/pg_query_vala/metadata.xml @@ -0,0 +1,17 @@ + + + + + Julien Roy + julien@jroy.ca + + + + Pham Văn Phúc + phuclaplace@gmail.com + + https://github.com/ppvan/pg_query_vala/issues + ppvan/pg_query_vala + pganalyze/libpg_query + + diff --git a/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild b/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild new file mode 100644 index 0000000000..801328044a --- /dev/null +++ b/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild @@ -0,0 +1,43 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson vala + +COMMIT="1b28752e6697cd83408259b18e3158375ff3c025" +LIBPG_COMMIT="9b21e3295402a0d0ee9a50c468d426c2dbb73ee6" +DESCRIPTION="Thin wrapper around libpg_query to use with vala" +HOMEPAGE="https://github.com/ppvan/pg_query_vala" +SRC_URI=" + https://github.com/ppvan/pg_query_vala/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz + https://github.com/pganalyze/libpg_query/archive/${LIBPG_COMMIT}.tar.gz -> ${P}.tar.gz +" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-db/libpg_query +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-libs/glib-2.0.0:2 + dev-db/libpg_query + dev-libs/protobuf-c:0/1.0.0 + dev-libs/xxhash +" + +PATCHES=( + "${FILESDIR}/unbundle_libpg_query.patch" +) + +src_prepare() { + default + vala_setup + + rmdir "${S}"/libpg_query || die + mv "${WORKDIR}"/libpg_query-"${LIBPG_COMMIT}" "${S}"/libpg_query || die +} From 3603f1f49eeda9b2d0b33e62d91128dbeb7d02b1 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Fri, 5 Apr 2024 17:42:48 -0400 Subject: [PATCH 3/6] dev-db/psequel: new package, add 0.1.8 Signed-off-by: Julien Roy --- dev-db/psequel/Manifest | 1 + dev-db/psequel/metadata.xml | 31 +++++++++++++++++++ dev-db/psequel/psequel-0.1.8.ebuild | 47 +++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 dev-db/psequel/Manifest create mode 100644 dev-db/psequel/metadata.xml create mode 100644 dev-db/psequel/psequel-0.1.8.ebuild diff --git a/dev-db/psequel/Manifest b/dev-db/psequel/Manifest new file mode 100644 index 0000000000..1c49a4a574 --- /dev/null +++ b/dev-db/psequel/Manifest @@ -0,0 +1 @@ +DIST psequel-0.1.8.gh.tar.gz 1750537 BLAKE2B 6d170ea3b1cdfc441959cd536a69c12cff38234bc54db5c8e1b487837cb718a1a4370d73812160575effe7e231e8c1c066d9462370abc4b6363b133fb8fb072a SHA512 b4785c282bf9b10fc8d67620b81a89c9e673ac0fc12df2ba6f3fd33184bfccf800cb9bfee26ae876cade14c50b612c6c82d672dd564625db05f52743ae91bdfb diff --git a/dev-db/psequel/metadata.xml b/dev-db/psequel/metadata.xml new file mode 100644 index 0000000000..1823388b31 --- /dev/null +++ b/dev-db/psequel/metadata.xml @@ -0,0 +1,31 @@ + + + + + Julien Roy + julien@jroy.ca + + +Small tool for quick sql query, specialized in PostgresSQL. Written in Vala for GNOME desktop in the hope to be useful. + +FeaturesL +Load and save connections. +Import and Export connections info +List schema info, tables, views. +View table columns info, indexes, foreign keys +View table data, sort by column +Write query +Query History +Hightlight current query +Export query data + + + + Pham Văn Phúc + phuclaplace@gmail.com + + https://github.com/ppvan/psequel/issues + https://github.com/ppvan/psequel/releases + ppvan/psequel + + diff --git a/dev-db/psequel/psequel-0.1.8.ebuild b/dev-db/psequel/psequel-0.1.8.ebuild new file mode 100644 index 0000000000..57ba860f03 --- /dev/null +++ b/dev-db/psequel/psequel-0.1.8.ebuild @@ -0,0 +1,47 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson gnome2-utils vala xdg + +DESCRIPTION="Run your SQL query" +HOMEPAGE="https://github.com/ppvan/psequel" +SRC_URI="https://github.com/ppvan/psequel/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-db/postgresql + gui-libs/gtk:4 + gui-libs/libadwaita:1 +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-lang/vala-0.56 + >=gui-libs/gtk-4.10.0:4 + >=gui-libs/gtksourceview-5.0:5 + >=dev-libs/glib-2.74.0:2 + >=dev-libs/json-glib-1.6.0 + >=gui-libs/libadwaita-1.0:1 + >=dev-db/postgresql-15.3 +" + +src_prepare() { + default + vala_setup +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update + xdg_icon_cache_update +} From e0ff291bd618823857b0a424291efad88d565669 Mon Sep 17 00:00:00 2001 From: David Roman Date: Sat, 6 Apr 2024 00:01:18 +0200 Subject: [PATCH 4/6] media-sound/lms: fix run time issue due to unmet USE flags requirements Signed-off-by: David Roman --- media-sound/lms/lms-3.51.1-r1.ebuild | 72 ++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 media-sound/lms/lms-3.51.1-r1.ebuild diff --git a/media-sound/lms/lms-3.51.1-r1.ebuild b/media-sound/lms/lms-3.51.1-r1.ebuild new file mode 100644 index 0000000000..2b015ca02d --- /dev/null +++ b/media-sound/lms/lms-3.51.1-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic pam systemd + +DESCRIPTION="Lightweight Music Server." +HOMEPAGE="http://lms-demo.poupon.dev/ https://github.com/epoupon/lms" +SRC_URI="https://github.com/epoupon/lms/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test stb" +RESTRICT="!test? ( test )" + +RDEPEND=" + acct-user/lms + dev-cpp/wt + dev-libs/boost + dev-libs/libconfig[cxx] + media-libs/taglib + media-video/ffmpeg[mp3,opus] + + !stb? ( media-gfx/graphicsmagick ) + +" + +DEPEND=" + ${RDEPEND} + + stb? ( dev-libs/stb ) +" + +BDEPEND=" + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}/${PN}-respect-ldflags.patch" +) + +src_configure() { + append-flags -I/usr/include/stb/deprecated + + local mycmakeargs=( + -DIMAGE_LIBRARY=$(usex stb STB GraphicsMagick++) + -DENABLE_TESTS=$(usex test) + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + systemd_newunit conf/systemd/default.service lms.service + newinitd "${FILESDIR}/lms.init" lms + dopamd conf/pam/lms + mv "${ED}/usr/share/lms/lms.conf" "${ED}/etc/lms.conf" || die + + # Already installed in the proper directory + rm "${ED}/usr/share/lms/default.service" || die + rm "${ED}/usr/share/lms/lms" || die + + keepdir /var/log/lms + fowners -R lms:lms /var/log/lms + + keepdir /var/lms + fowners lms:lms /var/lms +} From 01f7afbd0be7c51b46b8da7f1961a80da3beddb8 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Fri, 5 Apr 2024 18:15:16 -0400 Subject: [PATCH 5/6] dev-db/pg_query_vala: add link to upstream PR for patch Signed-off-by: Julien Roy --- dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild | 1 + 1 file changed, 1 insertion(+) diff --git a/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild b/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild index 801328044a..7fd0648e6b 100644 --- a/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild +++ b/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild @@ -31,6 +31,7 @@ BDEPEND=" " PATCHES=( + # https://github.com/ppvan/pg_query_vala/pull/2 "${FILESDIR}/unbundle_libpg_query.patch" ) From 3cd271d54d2576e35d6c95cf9c201b9f3c0d65c8 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Fri, 5 Apr 2024 18:17:27 -0400 Subject: [PATCH 6/6] dev-db/psequel: add missing pg_query_vala dependency Signed-off-by: Julien Roy --- dev-db/psequel/psequel-0.1.8.ebuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev-db/psequel/psequel-0.1.8.ebuild b/dev-db/psequel/psequel-0.1.8.ebuild index 57ba860f03..2e2e75e8bc 100644 --- a/dev-db/psequel/psequel-0.1.8.ebuild +++ b/dev-db/psequel/psequel-0.1.8.ebuild @@ -15,6 +15,7 @@ KEYWORDS="~amd64" RDEPEND=" dev-db/postgresql + dev-db/pg_query_vala gui-libs/gtk:4 gui-libs/libadwaita:1 " @@ -27,6 +28,7 @@ BDEPEND=" >=dev-libs/json-glib-1.6.0 >=gui-libs/libadwaita-1.0:1 >=dev-db/postgresql-15.3 + dev-db/pg_query_vala " src_prepare() {