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 EECC6158041 for ; Fri, 5 Apr 2024 22:20:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50F122BC014; Fri, 5 Apr 2024 22:20:47 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30E90E2A25 for ; Fri, 5 Apr 2024 22:20:47 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 191DF3432C0 for ; Fri, 5 Apr 2024 22:20:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 62F291684 for ; Fri, 5 Apr 2024 22:20:44 +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: <1712354224.f7b91103a5d41d31e4305c1d70d92c9b41aae4dd.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-db/pg_query_vala/, dev-db/pg_query_vala/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-db/pg_query_vala/Manifest dev-db/pg_query_vala/files/unbundle_libpg_query.patch dev-db/pg_query_vala/metadata.xml dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild X-VCS-Directories: dev-db/pg_query_vala/ dev-db/pg_query_vala/files/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: f7b91103a5d41d31e4305c1d70d92c9b41aae4dd X-VCS-Branch: master Date: Fri, 5 Apr 2024 22:20:44 +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: a99009b0-db0e-447f-bad9-212fd6db1d55 X-Archives-Hash: 7b5ed134ca0dba0b2680441caa61dbb6 commit: f7b91103a5d41d31e4305c1d70d92c9b41aae4dd Author: Julien Roy jroy ca> AuthorDate: Fri Apr 5 21:41:45 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Fri Apr 5 21:57:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f7b91103 dev-db/pg_query_vala: new package, add 0.1.0_pre20240326 Signed-off-by: Julien Roy jroy.ca> dev-db/pg_query_vala/Manifest | 2 + .../pg_query_vala/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(+) 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 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 E563E158041 for ; Fri, 5 Apr 2024 21:57:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EEDC4E29FD; Fri, 5 Apr 2024 21:57:26 +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 D1098E29FD 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 D2D233432D6 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 43C89167F 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: <1712354224.f7b91103a5d41d31e4305c1d70d92c9b41aae4dd.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-db/pg_query_vala/files/, dev-db/pg_query_vala/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-db/pg_query_vala/Manifest dev-db/pg_query_vala/files/unbundle_libpg_query.patch dev-db/pg_query_vala/metadata.xml dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326.ebuild X-VCS-Directories: dev-db/pg_query_vala/files/ dev-db/pg_query_vala/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: f7b91103a5d41d31e4305c1d70d92c9b41aae4dd 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: 38f2f1ee-7022-44b3-944d-58087ed8f676 X-Archives-Hash: 1a5f7bc5465b10e2dc07367b63829227 Message-ID: <20240405215724.DUULP0qcH7nZ5vQMEgGOHMjmfbOOc3cC40QLt3s9pwI@z> commit: f7b91103a5d41d31e4305c1d70d92c9b41aae4dd Author: Julien Roy jroy ca> AuthorDate: Fri Apr 5 21:41:45 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Fri Apr 5 21:57:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f7b91103 dev-db/pg_query_vala: new package, add 0.1.0_pre20240326 Signed-off-by: Julien Roy jroy.ca> dev-db/pg_query_vala/Manifest | 2 + .../pg_query_vala/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(+) 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 +}