diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-db/pg_query_vala | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-db/pg_query_vala')
| -rw-r--r-- | dev-db/pg_query_vala/Manifest | 3 | ||||
| -rw-r--r-- | dev-db/pg_query_vala/files/unbundle_libpg_query.patch | 54 | ||||
| -rw-r--r-- | dev-db/pg_query_vala/metadata.xml | 17 | ||||
| -rw-r--r-- | dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326-r1.ebuild | 46 | ||||
| -rw-r--r-- | dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20241001.ebuild | 37 |
5 files changed, 157 insertions, 0 deletions
diff --git a/dev-db/pg_query_vala/Manifest b/dev-db/pg_query_vala/Manifest new file mode 100644 index 000000000000..ba2251af94ff --- /dev/null +++ b/dev-db/pg_query_vala/Manifest @@ -0,0 +1,3 @@ +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 +DIST pg_query_vala-0.1.0_pre20241001.gh.tar.gz 15433 BLAKE2B 4d1eeb6ffccf94f6d25d5f6949e01fb67787b41ebd9bb721debf2c48b6d2a44705edb7f3cda533b58bb7c34f3a04e992fcc15539ab12944c41a381c068732f17 SHA512 b6d34d530108ce989585e1ccf277f84618abdeb9a32b899e9adce191557beb9b5789a7c29e900cb6691d30cd90c2962740f3ee13c7e38b3aea780cf951028a50 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 000000000000..33f8476eb899 --- /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 000000000000..0ed8c8a28ce6 --- /dev/null +++ b/dev-db/pg_query_vala/metadata.xml @@ -0,0 +1,17 @@ +<?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> + <upstream> + <maintainer> + <name>Pham Văn Phúc</name> + <email>phuclaplace@gmail.com</email> + </maintainer> + <bugs-to>https://github.com/ppvan/pg_query_vala/issues</bugs-to> + <remote-id type="github">ppvan/pg_query_vala</remote-id> + <remote-id type="github">pganalyze/libpg_query</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326-r1.ebuild b/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326-r1.ebuild new file mode 100644 index 000000000000..b12fea21bd2b --- /dev/null +++ b/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20240326-r1.ebuild @@ -0,0 +1,46 @@ +# 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 + dev-libs/glib +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-libs/glib-2.0.0:2 + dev-db/libpg_query + dev-lang/vala + dev-libs/protobuf-c:0/1.0.0 + dev-libs/xxhash +" + +PATCHES=( + # https://github.com/ppvan/pg_query_vala/pull/2 + "${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 +} diff --git a/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20241001.ebuild b/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20241001.ebuild new file mode 100644 index 000000000000..79d03509475a --- /dev/null +++ b/dev-db/pg_query_vala/pg_query_vala-0.1.0_pre20241001.ebuild @@ -0,0 +1,37 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson vala + +COMMIT="1672a38f04d4c8ba61f0ddc11e1203c824e704e9" +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 +" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-db/libpg_query + dev-libs/glib +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-libs/glib-2.0.0:2 + dev-db/libpg_query + dev-lang/vala + dev-libs/protobuf-c:0/1.0.0 + dev-libs/xxhash +" + +src_prepare() { + default + vala_setup +} |
