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 /sys-libs/libmodulemd | |
| 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 'sys-libs/libmodulemd')
| -rw-r--r-- | sys-libs/libmodulemd/Manifest | 4 | ||||
| -rw-r--r-- | sys-libs/libmodulemd/files/libmodulemd-2.15.0-glib-docs.patch | 89 | ||||
| -rw-r--r-- | sys-libs/libmodulemd/libmodulemd-2.15.0-r1.ebuild | 72 | ||||
| -rw-r--r-- | sys-libs/libmodulemd/libmodulemd-2.15.2.ebuild | 81 | ||||
| -rw-r--r-- | sys-libs/libmodulemd/libmodulemd-9999.ebuild | 68 | ||||
| -rw-r--r-- | sys-libs/libmodulemd/metadata.xml | 11 |
6 files changed, 325 insertions, 0 deletions
diff --git a/sys-libs/libmodulemd/Manifest b/sys-libs/libmodulemd/Manifest new file mode 100644 index 000000000000..c4a270c8da5f --- /dev/null +++ b/sys-libs/libmodulemd/Manifest @@ -0,0 +1,4 @@ +DIST libmodulemd-2.15.0.tar.gz 572396 BLAKE2B 39e9240deb4e1a3278bf323e111b137b980ac5a3069598b7306390d27623730ac1bc826c91ed049257c0d5de8c6a05c3bbc22ac8e9435b5c38c147f0f077ec41 SHA512 6e890952bf6b6fe3ee5790ff71866938627134eaa2d6c6e3bf1940dcf21203dc0101f487801d62f3698e5a50402eb089665c99723aeffd831e5f0b341a63aace +DIST libmodulemd-2.15.2-glib-2.87.patch 71905 BLAKE2B f3f7425294bb5594c26feebe53bb453d02ecd30d3d5056954d12df34defc387f2653e0446f338690c32d4749af855c5fbb7bf33b891bdaa5b51b0ec4362ec530 SHA512 eb66a03459065b233ba26f97cac29f5e4e76b7db2b44ace9658c996664d7e5973b45ef14e9de4ebfb24a9b8b2346d872111ef255c0611be4f8baea9b093fb51b +DIST libmodulemd-2.15.2-pygobject-3.55.patch 6929 BLAKE2B d5d323833443559b01212d32dfc49fba785152d38dd2cbc61fed7974fd2273f48f74a35fd35df139ec986ab57f2713e7e53d0732efcbcc5a1861eac97802af00 SHA512 9f4d9094ce5013761f0112e95f71315da44ceb0ff14a8d0d99f0e33dd9c3f487fa7f44fac76643d165763761517c831984ed7ad75f197b54d6e3c788cef699a5 +DIST libmodulemd-2.15.2.tar.gz 574516 BLAKE2B d6409ea70ef5ef642e6daed76c73fbf3a87e0388b33425f3fbfa80ba9369616be1bc235a7892d870b852a25bb86ccd10002212663ac07fd7476d391fb131eaf0 SHA512 885d453bbca00c75c8a77fee4a27003230d2411536ccf87f12d9df00b108c8998cdf1f8d7d09a49d27fbe9b64f711b2b0dc037252c5bc821b43242d342ca3c8b diff --git a/sys-libs/libmodulemd/files/libmodulemd-2.15.0-glib-docs.patch b/sys-libs/libmodulemd/files/libmodulemd-2.15.0-glib-docs.patch new file mode 100644 index 000000000000..7ab46652ed9d --- /dev/null +++ b/sys-libs/libmodulemd/files/libmodulemd-2.15.0-glib-docs.patch @@ -0,0 +1,89 @@ +https://github.com/fedora-modularity/libmodulemd/commit/29c339a31b1c753dcdef041e5c2e0e600e48b59d +https://github.com/fedora-modularity/libmodulemd/commit/9d2809090cc0cccd7bab67453dc00cf43a289082 +https://github.com/fedora-modularity/libmodulemd/commit/f3336199b4e69af3305f156abc7533bed9e9a762 + +The commits above are required for USE=doc. For some reason upstream cross-reference glib html +docs? + +--- a/meson.build ++++ b/meson.build +@@ -67,23 +67,34 @@ sed = find_program('sed') + test = find_program('test') + + with_docs = get_option('with_docs') ++gtk_doc_referred_paths = [] + if with_docs + gtkdoc = dependency('gtk-doc') +- glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') + +- glib_index_path = join_paths(glib_docpath, 'glib/index.html') +- ret = run_command ([test, '-e', glib_index_path], +- check: false) +- if ret.returncode() != 0 +- error('Missing documentation for GLib: @0@'.format(glib_index_path)) ++ if glib.version().version_compare('<2.79.0') ++ glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') ++ glib_modules = ['glib', 'gobject' ] ++ else ++ warning('glib >= 2.79.0 documention might not be properly referred from libmodulemd documentation.') ++ if glib.version().version_compare('<2.80.1') ++ glib_docpath = join_paths(glib_prefix, 'share', 'doc', 'glib-2.0') ++ glib_modules = ['glib', 'gobject' ] ++ else ++ glib_docpath = join_paths(glib_prefix, 'share', 'doc') ++ glib_modules = ['glib-2.0', 'gobject-2.0' ] ++ endif + endif + +- gobject_index_path = join_paths(glib_docpath, 'gobject/index.html') +- ret = run_command ([test, '-e', gobject_index_path], +- check: false) +- if ret.returncode() != 0 +- error('Missing documentation for GObject: @0@'.format(gobject_index_path)) +- endif ++ foreach referred_module : glib_modules ++ doc_module_path = join_paths(glib_docpath, referred_module) ++ doc_index_file = join_paths(doc_module_path, 'index.html') ++ ret = run_command ([test, '-e', doc_index_file], ++ check: false) ++ if ret.returncode() != 0 ++ error('Missing GTK documentation for @0@: @1@'.format(referred_module, doc_index_file)) ++ endif ++ gtk_doc_referred_paths += [ doc_module_path ] ++ endforeach + endif + + # Keep with_manpages option a tristate feature for backward compatibility. +@@ -198,6 +209,7 @@ summary({'prefix': get_option('prefix'), + 'datadir': get_option('datadir'), + 'Python 2 GObject Overrides': gobject_overrides_dir_py2, + 'Python 3 GObject Overrides': gobject_overrides_dir_py3, ++ 'GTK-Doc Referred Paths': gtk_doc_referred_paths, + }, section: 'Directories') + + summary({'Custom Python': get_option('python_name'), +--- a/modulemd/meson.build ++++ b/modulemd/meson.build +@@ -256,6 +256,10 @@ configure_file( + # --- Documenatation --- # + + if with_docs ++ fixxref_args = [] ++ foreach path : gtk_doc_referred_paths ++ fixxref_args += [ '--extra-dir=@0@'.format(path) ] ++ endforeach + gnome.gtkdoc( + 'modulemd-2.0', + install_dir: 'modulemd-2.0', +@@ -265,10 +269,7 @@ if with_docs + dependencies : [ + modulemd_dep, + ], +- fixxref_args: [ +- '--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')), +- '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')), +- ], ++ fixxref_args: [ fixxref_args ], + install : true, + ) + endif diff --git a/sys-libs/libmodulemd/libmodulemd-2.15.0-r1.ebuild b/sys-libs/libmodulemd/libmodulemd-2.15.0-r1.ebuild new file mode 100644 index 000000000000..4cfba7f394c8 --- /dev/null +++ b/sys-libs/libmodulemd/libmodulemd-2.15.0-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) + +inherit meson python-single-r1 + +DESCRIPTION="C Library for manipulating Fedora Modularity metadata files" +HOMEPAGE="https://github.com/fedora-modularity/libmodulemd" +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fedora-modularity/libmodulemd.git" +else + SRC_URI="https://github.com/fedora-modularity/libmodulemd/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT" +SLOT="0" + +IUSE="doc test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + app-arch/rpm + sys-apps/file + dev-libs/glib:2 + dev-libs/libyaml + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_USEDEP}] + ') +" +RDEPEND="${DEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/gobject-introspection-1.82.0-r2 + dev-util/glib-utils + doc? ( + dev-libs/glib[gtk-doc(+),doc(+)] + dev-util/gtk-doc + ) + test? ( + sys-libs/libmodulemd + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.15.0-glib-docs.patch +) + +src_configure() { + local emesonargs=( + $(meson_use doc with_docs) + ) + meson_src_configure +} + +src_test() { + meson_src_test --no-suite ci_valgrind +} + +src_install() { + meson_src_install + # We need to compile the gobject introspection overrides to prevent QA warnings + local PYTHON_GI_OVERRIDESDIR=$("${EPYTHON}" -c 'import gi;print(gi._overridesdir)' || die) + python_optimize "${D}${PYTHON_GI_OVERRIDESDIR}/" + +} diff --git a/sys-libs/libmodulemd/libmodulemd-2.15.2.ebuild b/sys-libs/libmodulemd/libmodulemd-2.15.2.ebuild new file mode 100644 index 000000000000..3671aa325010 --- /dev/null +++ b/sys-libs/libmodulemd/libmodulemd-2.15.2.ebuild @@ -0,0 +1,81 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) + +inherit meson python-single-r1 + +DESCRIPTION="C Library for manipulating Fedora Modularity metadata files" +HOMEPAGE="https://github.com/fedora-modularity/libmodulemd" +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fedora-modularity/libmodulemd.git" +else + SRC_URI="https://github.com/fedora-modularity/libmodulemd/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 ~arm64 x86" + + # Backports for tests + SRC_URI+=" + https://github.com/fedora-modularity/libmodulemd/commit/89d4afb3d018250427d4d87840ae57aab3903361.patch + -> ${PN}-2.15.2-glib-2.87.patch + https://github.com/fedora-modularity/libmodulemd/commit/e33ecf1cc15383b9563bc4cd9a6908277bf8039d.patch + -> ${PN}-2.15.2-pygobject-3.55.patch + " +fi + +LICENSE="MIT" +SLOT="0" + +IUSE="doc test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + app-arch/rpm + sys-apps/file + dev-libs/glib:2 + dev-libs/libyaml + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_USEDEP}] + ') +" +RDEPEND="${DEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/gobject-introspection-1.82.0-r2 + dev-util/glib-utils + doc? ( + dev-libs/glib[gtk-doc(+),doc(+)] + dev-util/gtk-doc + ) + test? ( + sys-libs/libmodulemd + ) +" + +PATCHES=( + "${DISTDIR}"/libmodulemd-2.15.2-glib-2.87.patch + "${DISTDIR}"/libmodulemd-2.15.2-pygobject-3.55.patch +) + +src_configure() { + local emesonargs=( + $(meson_use doc with_docs) + ) + meson_src_configure +} + +src_test() { + meson_src_test --no-suite ci_valgrind +} + +src_install() { + meson_src_install + # We need to compile the gobject introspection overrides to prevent QA warnings + local PYTHON_GI_OVERRIDESDIR=$("${EPYTHON}" -c 'import gi;print(gi._overridesdir)' || die) + python_optimize "${D}${PYTHON_GI_OVERRIDESDIR}/" + +} diff --git a/sys-libs/libmodulemd/libmodulemd-9999.ebuild b/sys-libs/libmodulemd/libmodulemd-9999.ebuild new file mode 100644 index 000000000000..8ec7b2534104 --- /dev/null +++ b/sys-libs/libmodulemd/libmodulemd-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) + +inherit meson python-single-r1 + +DESCRIPTION="C Library for manipulating Fedora Modularity metadata files" +HOMEPAGE="https://github.com/fedora-modularity/libmodulemd" +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fedora-modularity/libmodulemd.git" +else + SRC_URI="https://github.com/fedora-modularity/libmodulemd/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="MIT" +SLOT="0" + +IUSE="doc test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + app-arch/rpm + sys-apps/file + dev-libs/glib:2 + dev-libs/libyaml + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_USEDEP}] + ') +" +RDEPEND="${DEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/gobject-introspection-1.82.0-r2 + dev-util/glib-utils + doc? ( + dev-libs/glib[gtk-doc(+),doc(+)] + dev-util/gtk-doc + ) + test? ( + sys-libs/libmodulemd + ) +" + +src_configure() { + local emesonargs=( + $(meson_use doc with_docs) + ) + meson_src_configure +} + +src_test() { + meson_src_test --no-suite ci_valgrind +} + +src_install() { + meson_src_install + # We need to compile the gobject introspection overrides to prevent QA warnings + local PYTHON_GI_OVERRIDESDIR=$("${EPYTHON}" -c 'import gi;print(gi._overridesdir)' || die) + python_optimize "${D}${PYTHON_GI_OVERRIDESDIR}/" + +} diff --git a/sys-libs/libmodulemd/metadata.xml b/sys-libs/libmodulemd/metadata.xml new file mode 100644 index 000000000000..8b31faedb4d6 --- /dev/null +++ b/sys-libs/libmodulemd/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>kangie@gentoo.org</email> + <name>Matt Jolly</name> + </maintainer> + <upstream> + <remote-id type="github">fedora-modularity/libmodulemd</remote-id> + </upstream> +</pkgmetadata> |
