From e6a2fd03865862c81d79bd32249728f20ce99354 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 30 Oct 2023 03:36:21 +0000 Subject: gentoo auto-resync : 30:10:2023 - 03:36:20 --- dev-util/Manifest.gz | Bin 69618 -> 69618 bytes dev-util/gdbus-codegen/Manifest | 2 + dev-util/gdbus-codegen/gdbus-codegen-2.78.1.ebuild | 74 ++++++ dev-util/glib-utils/Manifest | 2 + dev-util/glib-utils/glib-utils-2.78.1.ebuild | 62 +++++ dev-util/gnome-builder/Manifest | 2 +- .../gnome-builder/gnome-builder-44.2-r1.ebuild | 275 +++++++++++++++++++++ dev-util/gnome-builder/gnome-builder-44.2.ebuild | 275 --------------------- 8 files changed, 416 insertions(+), 276 deletions(-) create mode 100644 dev-util/gdbus-codegen/gdbus-codegen-2.78.1.ebuild create mode 100644 dev-util/glib-utils/glib-utils-2.78.1.ebuild create mode 100644 dev-util/gnome-builder/gnome-builder-44.2-r1.ebuild delete mode 100644 dev-util/gnome-builder/gnome-builder-44.2.ebuild (limited to 'dev-util') diff --git a/dev-util/Manifest.gz b/dev-util/Manifest.gz index ad0439aff437..f421b2555c5e 100644 Binary files a/dev-util/Manifest.gz and b/dev-util/Manifest.gz differ diff --git a/dev-util/gdbus-codegen/Manifest b/dev-util/gdbus-codegen/Manifest index 38e519c46aa1..f09421460069 100644 --- a/dev-util/gdbus-codegen/Manifest +++ b/dev-util/gdbus-codegen/Manifest @@ -2,6 +2,8 @@ AUX gdbus-codegen-2.56.1-sitedir.patch 1898 BLAKE2B 2d3530f2c0e249254d170a7c0f19 AUX setup.py-2.32.4 192 BLAKE2B 574320d89095d1452a3eee4404b5ebb19fbed32febf2a15422d276bc8dfb6790c41b7214aad3f88ee4927b58de639146cbf633f735df693bd437ea19eae79435 SHA512 45e823f507db103543f024ad557d35f7c09fb51db8a78b978c762ca77d941cdecc5837d2b248fc2c5da6a93b56fe8ded359efd98fb0a74fdf9533783d8eebcfa DIST glib-2.76.4.tar.xz 5274356 BLAKE2B c9ceb514ea81e1e6ab2d0efc82c48c0d8ae6c997fd0e3c56d47a5174b027f785b58266fff73b1d1132e272305126fbff22e3c65d47de46224cd12fa49796d5bc SHA512 f76932dc5090a44880373228e2b162f338415d06f7c90f2950eab1a43bb191c56a1797da4d377594f6a999197fef4defb848039259cfa4105bb68288a928f5b7 DIST glib-2.78.0.tar.xz 5327096 BLAKE2B 3a494a16d12b17c7986bbe865d5e3b2727d40e7272fbb34897a90173c0fb780b0e7f024042f60ac6d1fcb9a2a4731948b6ac733c2bd6bd27c32b97281e20fc72 SHA512 3d06890002f4b13f831c83fbb70cfce529f9750e30888619e4d6277116be15d106379a03143412cf4b2a289c0cbdbbc299ecf17284fbffc06c791ecf7556c765 +DIST glib-2.78.1.tar.xz 5320740 BLAKE2B af8f2e83600dfb3ec84702399cb00a3aaedbc80087e35dc7cc2e2374d4fe5fdf82707ac8c911da1c53eb7b027c9da9ecfc1c0a8f56b39431fa4cf44cad5b10f7 SHA512 aa9ed9195951b00ac8221e958ea337fbda82621a862ef8f29dc2ea396a6253ce51c2a0a498dfa4e12642f1836f85f9564f09991979ae85c5ed4368355d857376 EBUILD gdbus-codegen-2.76.4.ebuild 2205 BLAKE2B f14f73a09f58af0d389f8c152a28cb26d4214415d4283ecd011858b8e392e04225d94ca4d21d38e4737760c65f5163899b8c07f0056e0c95075f47e0ee92ee30 SHA512 54b44a179203fdd817ed7a9479bae47d9b14bee870ce18c398fde23a82defca89ab0f7d34dc15b2859cba0075e2b81e8646a5fb23d00dfefb15de408dc1945f5 EBUILD gdbus-codegen-2.78.0.ebuild 2214 BLAKE2B 8df740da1f2c9c8df98c4b048440af436f4ff4f79c07004bae970c463a0ba24ef8d811ae8f871c64be4b290cf988cd820b98c9cd37c8dd00600fec48cd0186cd SHA512 1c7ede7e0ec4d8094d224fee225f1f492caad01f56eab1f9c1b58ea81ed8cccf40f0cf5cecf297c0280f09ea1e2f04d023f6a2c3adc97e6ccec1622455ac167c +EBUILD gdbus-codegen-2.78.1.ebuild 2214 BLAKE2B 8df740da1f2c9c8df98c4b048440af436f4ff4f79c07004bae970c463a0ba24ef8d811ae8f871c64be4b290cf988cd820b98c9cd37c8dd00600fec48cd0186cd SHA512 1c7ede7e0ec4d8094d224fee225f1f492caad01f56eab1f9c1b58ea81ed8cccf40f0cf5cecf297c0280f09ea1e2f04d023f6a2c3adc97e6ccec1622455ac167c MISC metadata.xml 345 BLAKE2B 91a0526be5ce32d4aa4ea0827c78b2d2d45beae9a8d467916448a0a6b5459fd457e44ac900182654826328b34d37999bedb3ade42e80db92312e50f34d940014 SHA512 b11e427345fab56c77cb1f4f96473645b69054012e86840e2ca7dab221cf55041a1add1dfabce155274acf18488ac79de8149d405213daf39b807f679d4ac752 diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.78.1.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.78.1.ebuild new file mode 100644 index 000000000000..3595e34fd897 --- /dev/null +++ b/dev-util/gdbus-codegen/gdbus-codegen-2.78.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +GNOME_ORG_MODULE="glib" +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="xml(+)" +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 + +inherit gnome.org distutils-r1 + +DESCRIPTION="GDBus code and documentation generator" +HOMEPAGE="https://www.gtk.org/" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-libs/libxslt + app-text/docbook-xsl-stylesheets +" + +S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen" + +python_prepare_all() { + PATCHES=( + "${FILESDIR}/${PN}-2.56.1-sitedir.patch" + ) + distutils-r1_python_prepare_all + + local MAJOR_VERSION=$(ver_cut 1) + local MINOR_VERSION=$(ver_cut 2) + sed -e 's:@PYTHON@:python:' gdbus-codegen.in > gdbus-codegen || die + sed -e "s:@VERSION@:${PV}:" \ + -e "s:@MAJOR_VERSION@:${MAJOR_VERSION}:" \ + -e "s:@MINOR_VERSION@:${MINOR_VERSION}:" config.py.in > config.py || die + cp "${FILESDIR}/setup.py-2.32.4" setup.py || die "cp failed" + sed -e "s/@PV@/${PV}/" -i setup.py || die "sed setup.py failed" +} + +do_xsltproc_command() { + # Taken from meson.build for manual manpage building - keep in sync (also copied to dev-util/glib-utils) + xsltproc \ + --nonet \ + --stringparam man.output.quietly 1 \ + --stringparam funcsynopsis.style ansi \ + --stringparam man.th.extra1.suppress 1 \ + --stringparam man.authors.section.enabled 0 \ + --stringparam man.copyright.section.enabled 0 \ + -o "${2}" \ + http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \ + "${1}" || die "manpage generation failed" +} + +src_compile() { + distutils-r1_src_compile + do_xsltproc_command \ + "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.xml" \ + "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1" +} + +src_test() { + einfo "Skipping tests. This package is tested by dev-libs/glib" + einfo "when merged with FEATURES=test" +} + +python_install_all() { + distutils-r1_python_install_all # no-op, but prevents QA warning + doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1" +} diff --git a/dev-util/glib-utils/Manifest b/dev-util/glib-utils/Manifest index 4d0040a1579f..88673ce31d7c 100644 --- a/dev-util/glib-utils/Manifest +++ b/dev-util/glib-utils/Manifest @@ -1,5 +1,7 @@ DIST glib-2.76.4.tar.xz 5274356 BLAKE2B c9ceb514ea81e1e6ab2d0efc82c48c0d8ae6c997fd0e3c56d47a5174b027f785b58266fff73b1d1132e272305126fbff22e3c65d47de46224cd12fa49796d5bc SHA512 f76932dc5090a44880373228e2b162f338415d06f7c90f2950eab1a43bb191c56a1797da4d377594f6a999197fef4defb848039259cfa4105bb68288a928f5b7 DIST glib-2.78.0.tar.xz 5327096 BLAKE2B 3a494a16d12b17c7986bbe865d5e3b2727d40e7272fbb34897a90173c0fb780b0e7f024042f60ac6d1fcb9a2a4731948b6ac733c2bd6bd27c32b97281e20fc72 SHA512 3d06890002f4b13f831c83fbb70cfce529f9750e30888619e4d6277116be15d106379a03143412cf4b2a289c0cbdbbc299ecf17284fbffc06c791ecf7556c765 +DIST glib-2.78.1.tar.xz 5320740 BLAKE2B af8f2e83600dfb3ec84702399cb00a3aaedbc80087e35dc7cc2e2374d4fe5fdf82707ac8c911da1c53eb7b027c9da9ecfc1c0a8f56b39431fa4cf44cad5b10f7 SHA512 aa9ed9195951b00ac8221e958ea337fbda82621a862ef8f29dc2ea396a6253ce51c2a0a498dfa4e12642f1836f85f9564f09991979ae85c5ed4368355d857376 EBUILD glib-utils-2.76.4.ebuild 2277 BLAKE2B 6ea8ae1bde6cb702d3b9cbc868839f7fd1a4bd917cc34dcfac5d5f17dfdf5fe82e29349da92479a69000a1c65b5a305aab7ae1f8325e9380b4f647f5c6a3fb0f SHA512 376ae52d0362bd3ae698ea96e02bd7046be2fa6052af5a9e156cf266b720896b46f0983e6fb34520ff894a6b6558498cd4819291df0f9494d549f896a8d0e59d EBUILD glib-utils-2.78.0.ebuild 2286 BLAKE2B 4288972ca2cdf6eaea14af205f9108afb4cd4a2c2484abb4990b0b892e9f74f16da485d1d2af27a697f605a1f56df5dbbb53f77d669bddfca2ffe5b5cf7a9981 SHA512 687411e8c1aa25801236e8819eb73d20f6c6f3aefd632fc2c41ec3ae8ee24dac050a2ea004d8f1ca8bdef8dacabc46832c5a812901c63e6bdd81148e019ee553 +EBUILD glib-utils-2.78.1.ebuild 2286 BLAKE2B 4288972ca2cdf6eaea14af205f9108afb4cd4a2c2484abb4990b0b892e9f74f16da485d1d2af27a697f605a1f56df5dbbb53f77d669bddfca2ffe5b5cf7a9981 SHA512 687411e8c1aa25801236e8819eb73d20f6c6f3aefd632fc2c41ec3ae8ee24dac050a2ea004d8f1ca8bdef8dacabc46832c5a812901c63e6bdd81148e019ee553 MISC metadata.xml 401 BLAKE2B bdf1884a4dcf8ab8362a86ed6559bb887c026bc315bd8cbfca0b5d8def8102636965da5af0f1871096704309a4a0919028d02f168a91830aa4ed911c6583d103 SHA512 2eaaccd9c6bd6e059b3acf34c964857a9e541f2eedd191c0fa35eca3499242349184ab01becca40791ac1dcdf02ba4a75369ea9c69fa5c21f15d878b1c28c453 diff --git a/dev-util/glib-utils/glib-utils-2.78.1.ebuild b/dev-util/glib-utils/glib-utils-2.78.1.ebuild new file mode 100644 index 000000000000..6fb045244ae1 --- /dev/null +++ b/dev-util/glib-utils/glib-utils-2.78.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{10..12} ) +GNOME_ORG_MODULE="glib" + +inherit gnome.org python-single-r1 + +DESCRIPTION="Build utilities for GLib using projects" +HOMEPAGE="https://www.gtk.org/" + +LICENSE="LGPL-2.1+" +SLOT="0" # /usr/bin utilities that can't be parallel installed by their nature +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-libs/libxslt + app-text/docbook-xsl-stylesheets +" + +src_configure() { :; } + +do_xsltproc_command() { + # Taken from meson.build for manual manpage building - keep in sync (also copied to dev-util/gdbus-codegen) + xsltproc \ + --nonet \ + --stringparam man.output.quietly 1 \ + --stringparam funcsynopsis.style ansi \ + --stringparam man.th.extra1.suppress 1 \ + --stringparam man.authors.section.enabled 0 \ + --stringparam man.copyright.section.enabled 0 \ + -o "${2}" \ + http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \ + "${1}" || die "manpage generation failed" +} + +src_compile() { + sed -e "s:@VERSION@:${PV}:g;s:@PYTHON@:python:g" gobject/glib-genmarshal.in > gobject/glib-genmarshal || die + sed -e "s:@VERSION@:${PV}:g;s:@PYTHON@:python:g" gobject/glib-mkenums.in > gobject/glib-mkenums || die + sed -e "s:@GLIB_VERSION@:${PV}:g;s:@PYTHON@:python:g" glib/gtester-report.in > glib/gtester-report || die + do_xsltproc_command docs/reference/gobject/glib-genmarshal.xml docs/reference/gobject/glib-genmarshal.1 + do_xsltproc_command docs/reference/gobject/glib-mkenums.xml docs/reference/gobject/glib-mkenums.1 + do_xsltproc_command docs/reference/glib/gtester-report.xml docs/reference/glib/gtester-report.1 +} + +src_install() { + python_fix_shebang gobject/glib-genmarshal + python_fix_shebang gobject/glib-mkenums + python_fix_shebang glib/gtester-report + exeinto /usr/bin + doexe gobject/glib-genmarshal + doexe gobject/glib-mkenums + doexe glib/gtester-report + doman docs/reference/gobject/glib-genmarshal.1 + doman docs/reference/gobject/glib-mkenums.1 + doman docs/reference/glib/gtester-report.1 +} diff --git a/dev-util/gnome-builder/Manifest b/dev-util/gnome-builder/Manifest index 754456b9c14b..9ec6f94b68d4 100644 --- a/dev-util/gnome-builder/Manifest +++ b/dev-util/gnome-builder/Manifest @@ -1,3 +1,3 @@ DIST gnome-builder-44.2.tar.xz 9788192 BLAKE2B 3e31997a840ea288db37d942aa5b5ff92dce6754a9fe5984e9e20334c7e0323835d279bee0744277cbe2f111076a932efa692d3e0e229230da3c0d782faa7442 SHA512 0e0bdf57b1467789b6fe221e484e2cce5e37dae0fe3c190db51ec0f150a0ced1eca574bebceefe4ca33d31b4f09f472a0853fce24b1ef3f5de82256fa01f6090 -EBUILD gnome-builder-44.2.ebuild 8981 BLAKE2B 36f88fcfb7202f4aea37d265eb1126018b2becff8984a004de6ad70fd92602b4fbcc2457403d8124bac66c3127050b562e3d66d686f9e7be79f666ae495d696d SHA512 df63701aae93033088141377ccecc8f0e72a0654a33bc64b4e3e78df2facef185d68dd47ac9a4ebf498cf6a695ea97cdbe5697085d9baf867e16d3d6eccac468 +EBUILD gnome-builder-44.2-r1.ebuild 8983 BLAKE2B 482530071e1d42469914350ebde321c2ddd01b76e362107c013ed3014ff9bc0dab2bc4fc59490bc89b61a0c6a6ad07d8ca2e5040c160880f4a2fc351f27da4da SHA512 8db2da6dd0fc28063e588ffe82f48f6f21d8b4ec8374a1adaef81a344703acdf7c2671830ed3d07d9e43b588e06aa26c9f5df784d0c1f80865a4f9b357ca86a1 MISC metadata.xml 1095 BLAKE2B e32e4a52f11c192e37b0593106b2938b3d8ded0cbb60859b7f30e9195667ef46b6ddb9b180e3aaa4459d6560027b3a85cb04b92930e191031966635d0bce4f42 SHA512 468bee5867936afa6d47cf4b7fcc36cb807fc2ad1d5a54e63013a1c862a157da35d051f12980331fece8f473ad5696c7a1c24e8bd53e2c41dd057250017b36b2 diff --git a/dev-util/gnome-builder/gnome-builder-44.2-r1.ebuild b/dev-util/gnome-builder/gnome-builder-44.2-r1.ebuild new file mode 100644 index 000000000000..db928e14dac0 --- /dev/null +++ b/dev-util/gnome-builder/gnome-builder-44.2-r1.ebuild @@ -0,0 +1,275 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..11} ) +DISABLE_AUTOFORMATTING=1 +FORCE_PRINT_ELOG=1 + +inherit gnome.org gnome2-utils llvm meson optfeature python-single-r1 readme.gentoo-r1 virtualx xdg + +DESCRIPTION="An IDE for writing GNOME-based software" +HOMEPAGE="https://wiki.gnome.org/Apps/Builder https://gitlab.gnome.org/GNOME/gnome-builder" + +# FIXME: Review licenses at some point +LICENSE="GPL-3+ GPL-2+ LGPL-3+ LGPL-2+ MIT CC-BY-SA-3.0 CC0-1.0" +SLOT="0" +KEYWORDS="amd64" +IUSE="clang doc +d-spy flatpak +git gtk-doc spell +sysprof test +webkit" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + flatpak? ( git ) +" + +# When bumping, pay attention to all the included plugins/*/meson.build (and other) build files and the requirements within. +# `grep -rI dependency * --include='meson.build'` can give a good initial idea for external deps and their double checking. +# The listed RDEPEND order should roughly match that output as well, with toplevel one first then sorted by file path. +# Most plugins have no extra requirements and default to enabled; we need to handle the ones with extra requirements. Many of +# them have optional runtime dependencies, for which we try to at least notify the user via DOC_CONTENTS (but not all small +# things); `grep -rI -e 'command-pattern.*=' -e 'push_arg'` can give a (spammy) idea, plus python imports in try/except. + +# Editorconfig needs old pcre, with vte migrating away, might want it optional or ported to pcre2? +# An introspection USE flag of a dep is required if any introspection based language plugin wants to use it (grep for gi.repository). Last full check at 3.28.4 + +# TODO: Handle llvm slots via llvm.eclass; see plugins/clang/meson.build +RDEPEND=" + >=dev-libs/glib-2.75.0:2 + >=gui-libs/gtk-4.8:4[introspection] + >=gui-libs/libadwaita-1.3.0:1 + >=gui-libs/libpanel-1.1.2:1 + >=gui-libs/gtksourceview-5.7.2:5[introspection] + >=dev-libs/json-glib-1.2.0 + >=dev-libs/jsonrpc-glib-3.43.0:= + >=dev-libs/libdex-0.1.1:= + >=dev-libs/libpeas-1.34.0:0[python,${PYTHON_SINGLE_USEDEP}] + dev-libs/libportal:=[gtk,introspection] + >=dev-libs/template-glib-3.36.1:=[introspection] + >=gui-libs/vte-0.70.0:2.91-gtk4[introspection] + >=dev-libs/libxml2-2.9.0 + webkit? ( >=net-libs/webkit-gtk-2.38.0:6=[introspection] ) + >=app-text/cmark-0.29.0:0= + d-spy? ( >=dev-util/d-spy-1.4.0:1 ) + app-text/editorconfig-core-c + flatpak? ( + dev-util/ostree + >=net-libs/libsoup-3:3.0 + >=sys-apps/flatpak-1.10.2 + ) + git? ( + dev-libs/libgit2:=[ssh,threads] + >=dev-libs/libgit2-glib-1.1.0[ssh] + ) + + >=dev-libs/gobject-introspection-1.54.0:= + $(python_gen_cond_dep ' + >=dev-python/pygobject-3.22.0:3[${PYTHON_USEDEP}] + ') + ${PYTHON_DEPS} + clang? ( sys-devel/clang:= ) + spell? ( + app-text/enchant:2 + dev-libs/icu:= + ) + sysprof? ( + >=dev-util/sysprof-capture-3.46.0:4 + >=dev-util/sysprof-3.46.0:0/4 + ) +" +DEPEND="${RDEPEND}" +# TODO: runtime ctags path finding.. + +# desktop-file-utils required for tests, but we have it in deptree for xdg update-desktop-database anyway, so be explicit and unconditional +# appstream-glib needed for validation with appstream-util with FEATURES=test +BDEPEND=" + doc? ( + $(python_gen_cond_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] + ') + ) + gtk-doc? ( + dev-util/gi-docgen + app-text/docbook-xml-dtd:4.3 + ) + test? ( + dev-libs/appstream-glib + sys-apps/dbus + ) + dev-util/desktop-file-utils + dev-util/glib-utils + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +DOC_CONTENTS='gnome-builder can use various other dependencies on runtime to provide +extra capabilities beyond these expressed via USE flags. Some of these +that are currently available with packages include: + +* dev-util/ctags with exuberant-ctags selected via "eselect ctags" for + C, C++, Python, JavaScript, CSS, HTML and Ruby autocompletion, semantic + highlighting and symbol resolving support. +* dev-python/python-lsp-server for more accurate Python + autocompletion support. +* dev-util/valgrind for integration with valgrind. +* dev-util/meson for integration with the Meson build system. +* virtual/rust for integration with the Rust Cargo build system. +* dev-util/cmake for integration with the CMake build system. +* net-libs/nodejs[npm] for integration with the NPM package system. +' +# FIXME: Package codespell and mention here +# FIXME: Package gnome-code-assistance and mention here, or maybe USE flag and default enable because it's rather important +# eslint for additional diagnostics in JavaScript files (what package has this? At least something via NPM..) +# jhbuild support +# rust support via rust-analyzer; Go via go-langserver +# autotools stuff for autotools plugin; gtkmm/autoconf-archive for C++ template +# gjs/gettext/mono/PHPize stuff, but most of these are probably installed for other reasons anyways, when needed inside IDE +# stylelint for stylesheet (CSS and co) linting +# gvls for vala language-server integration + +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + +pkg_setup() { + python-single-r1_pkg_setup + use clang && llvm_pkg_setup +} + +src_configure() { + local emesonargs=( + -Dchannel=other + + -Ddevelopment=false + -Dtracing=false + -Dprofiling=false # not passing -pg to CFLAGS + -Dtcmalloc=false + -Dwith_safe_path='' + -Dgnome_sdk_version=master + $(meson_use doc help) + $(meson_use gtk-doc docs) + -Dnetwork_tests=false + -Dctags_path='' + $(meson_feature webkit) + + -Dplugin_autotools=true + -Dplugin_bash_language_server=true + -Dplugin_blueprint=true + -Dplugin_buildstream=true + -Dplugin_c_pack=true + -Dplugin_cargo=true + $(meson_use clang plugin_clang) + $(meson_use clang plugin_clangd) + $(meson_use clang plugin_clang_format) + -Dplugin_cmake=true + -Dplugin_codesearch=true + -Dplugin_codeshot=true + -Dplugin_codespell=true + -Dplugin_code_index=true + -Dplugin_copyright=true + -Dplugin_ctags=true + -Dplugin_deviced=false # libdeviced not packaged? + $(meson_use d-spy plugin_dspy) + -Dplugin_dub=true + -Dplugin_editorconfig=true + -Dplugin_eslint=true + -Dplugin_file_search=true + $(meson_use flatpak plugin_flatpak) + -Dplugin_gdb=true + -Dplugin_gdiagnose=true + -Dplugin_gettext=true + $(meson_use git plugin_git) + -Dplugin_glsl_language_server=true + -Dplugin_golang=true + -Dplugin_gopls=true + -Dplugin_gradle=true + -Dplugin_grep=true + -Dplugin_hadolint=true + -Dplugin_html_completion=true + $(meson_use webkit plugin_html_preview) + -Dplugin_intelephense=true + -Dplugin_jdtls=true + -Dplugin_jedi_language_server=false + -Dplugin_jhbuild=true + -Dplugin_lua_language_server=true + -Dplugin_make=true + -Dplugin_make_templates=true + $(meson_use webkit plugin_markdown_preview) + $(meson_use webkit plugin_markdown_indenter) + -Dplugin_maven=true + -Dplugin_meson=true + -Dplugin_meson_templates=true + -Dplugin_modelines=true + -Dplugin_mono=true + -Dplugin_newcomers=true + -Dplugin_notification=true + -Dplugin_npm=true + -Dplugin_phpize=true + -Dplugin_podman=true + -Dplugin_pygi=true + -Dplugin_python_lsp_server=true + -Dplugin_qemu=true + -Dplugin_quick_highlight=true + -Dplugin_retab=true + -Dplugin_rstcheck=true + -Dplugin_rubocop=true + -Dplugin_rust_analyzer=false # rust-analyzer not packaged + -Dplugin_serve_d=true + -Dplugin_shellcheck=true + -Dplugin_shellcmd=true + -Dplugin_sourcekit_lsp=true + $(meson_use spell plugin_spellcheck) + $(meson_use webkit plugin_sphinx_preview) + -Dplugin_stylelint=true + -Dplugin_swift=true + -Dplugin_swiftformat=true + -Dplugin_swiftlint=true + $(meson_use sysprof plugin_sysprof) + -Dplugin_todo=true + -Dplugin_ts_language_server=true + -Dplugin_update_manager=true + -Dplugin_valac=true + -Dplugin_vala_indenter=true + -Dplugin_vala_language_server=true + -Dplugin_valgrind=true + -Dplugin_waf=true + -Dplugin_words=true + -Dplugin_xml_pack=true + -Dplugin_zls=true + ) + meson_src_configure +} + +src_install() { + meson_src_install + python_optimize + if use doc; then + rm "${ED}"/usr/share/doc/gnome-builder/en/.buildinfo || die + rm "${ED}"/usr/share/doc/gnome-builder/en/objects.inv || die + # custom docdir in build system, blocked by https://github.com/mesonbuild/meson/issues/825 + mv "${ED}"/usr/share/doc/gnome-builder/en "${ED}"/usr/share/doc/${PF}/html || die + # _sources subdir left in on purpose, as HTML links to the rst files as "View page source". Additionally default docompress exclusion of /html/ already ensures they aren't compressed, thus linkable as-is. + rmdir "${ED}"/usr/share/doc/gnome-builder/ || die + fi + readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update + readme.gentoo_print_elog + + optfeature_header "Language support" + optfeature "Rust's Cargo build system" virtual/rust + optfeature "CMake" dev-util/cmake + optfeature "Java Maven build system" dev-java/maven-bin + optfeature "Meson Build system" dev-util/meson +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} + +src_test() { + virtx dbus-run-session meson test -C "${BUILD_DIR}" +} diff --git a/dev-util/gnome-builder/gnome-builder-44.2.ebuild b/dev-util/gnome-builder/gnome-builder-44.2.ebuild deleted file mode 100644 index 3abe41188e53..000000000000 --- a/dev-util/gnome-builder/gnome-builder-44.2.ebuild +++ /dev/null @@ -1,275 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -PYTHON_COMPAT=( python3_{9..11} ) -DISABLE_AUTOFORMATTING=1 -FORCE_PRINT_ELOG=1 - -inherit gnome.org gnome2-utils llvm meson optfeature python-single-r1 readme.gentoo-r1 virtualx xdg - -DESCRIPTION="An IDE for writing GNOME-based software" -HOMEPAGE="https://wiki.gnome.org/Apps/Builder https://gitlab.gnome.org/GNOME/gnome-builder" - -# FIXME: Review licenses at some point -LICENSE="GPL-3+ GPL-2+ LGPL-3+ LGPL-2+ MIT CC-BY-SA-3.0 CC0-1.0" -SLOT="0" -KEYWORDS="amd64" -IUSE="clang doc +d-spy flatpak +git gtk-doc spell +sysprof test +webkit" -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE} - flatpak? ( git ) -" - -# When bumping, pay attention to all the included plugins/*/meson.build (and other) build files and the requirements within. -# `grep -rI dependency * --include='meson.build'` can give a good initial idea for external deps and their double checking. -# The listed RDEPEND order should roughly match that output as well, with toplevel one first then sorted by file path. -# Most plugins have no extra requirements and default to enabled; we need to handle the ones with extra requirements. Many of -# them have optional runtime dependencies, for which we try to at least notify the user via DOC_CONTENTS (but not all small -# things); `grep -rI -e 'command-pattern.*=' -e 'push_arg'` can give a (spammy) idea, plus python imports in try/except. - -# Editorconfig needs old pcre, with vte migrating away, might want it optional or ported to pcre2? -# An introspection USE flag of a dep is required if any introspection based language plugin wants to use it (grep for gi.repository). Last full check at 3.28.4 - -# TODO: Handle llvm slots via llvm.eclass; see plugins/clang/meson.build -RDEPEND=" - >=dev-libs/glib-2.75.0:2 - >=gui-libs/gtk-4.8:4[introspection] - >=gui-libs/libadwaita-1.3.0:1 - >=gui-libs/libpanel-1.1.2:1 - >=gui-libs/gtksourceview-5.7.2:5[introspection] - >=dev-libs/json-glib-1.2.0 - >=dev-libs/jsonrpc-glib-3.43.0:= - >=dev-libs/libdex-0.1.1:= - >=dev-libs/libpeas-1.34.0[python,${PYTHON_SINGLE_USEDEP}] - dev-libs/libportal:=[gtk,introspection] - >=dev-libs/template-glib-3.36.1:=[introspection] - >=gui-libs/vte-0.70.0:2.91-gtk4[introspection] - >=dev-libs/libxml2-2.9.0 - webkit? ( >=net-libs/webkit-gtk-2.38.0:6=[introspection] ) - >=app-text/cmark-0.29.0:0= - d-spy? ( >=dev-util/d-spy-1.4.0:1 ) - app-text/editorconfig-core-c - flatpak? ( - dev-util/ostree - >=net-libs/libsoup-3:3.0 - >=sys-apps/flatpak-1.10.2 - ) - git? ( - dev-libs/libgit2:=[ssh,threads] - >=dev-libs/libgit2-glib-1.1.0[ssh] - ) - - >=dev-libs/gobject-introspection-1.54.0:= - $(python_gen_cond_dep ' - >=dev-python/pygobject-3.22.0:3[${PYTHON_USEDEP}] - ') - ${PYTHON_DEPS} - clang? ( sys-devel/clang:= ) - spell? ( - app-text/enchant:2 - dev-libs/icu:= - ) - sysprof? ( - >=dev-util/sysprof-capture-3.46.0:4 - >=dev-util/sysprof-3.46.0:0/4 - ) -" -DEPEND="${RDEPEND}" -# TODO: runtime ctags path finding.. - -# desktop-file-utils required for tests, but we have it in deptree for xdg update-desktop-database anyway, so be explicit and unconditional -# appstream-glib needed for validation with appstream-util with FEATURES=test -BDEPEND=" - doc? ( - $(python_gen_cond_dep ' - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] - ') - ) - gtk-doc? ( - dev-util/gi-docgen - app-text/docbook-xml-dtd:4.3 - ) - test? ( - dev-libs/appstream-glib - sys-apps/dbus - ) - dev-util/desktop-file-utils - dev-util/glib-utils - >=sys-devel/gettext-0.19.8 - virtual/pkgconfig -" - -DOC_CONTENTS='gnome-builder can use various other dependencies on runtime to provide -extra capabilities beyond these expressed via USE flags. Some of these -that are currently available with packages include: - -* dev-util/ctags with exuberant-ctags selected via "eselect ctags" for - C, C++, Python, JavaScript, CSS, HTML and Ruby autocompletion, semantic - highlighting and symbol resolving support. -* dev-python/python-lsp-server for more accurate Python - autocompletion support. -* dev-util/valgrind for integration with valgrind. -* dev-util/meson for integration with the Meson build system. -* virtual/rust for integration with the Rust Cargo build system. -* dev-util/cmake for integration with the CMake build system. -* net-libs/nodejs[npm] for integration with the NPM package system. -' -# FIXME: Package codespell and mention here -# FIXME: Package gnome-code-assistance and mention here, or maybe USE flag and default enable because it's rather important -# eslint for additional diagnostics in JavaScript files (what package has this? At least something via NPM..) -# jhbuild support -# rust support via rust-analyzer; Go via go-langserver -# autotools stuff for autotools plugin; gtkmm/autoconf-archive for C++ template -# gjs/gettext/mono/PHPize stuff, but most of these are probably installed for other reasons anyways, when needed inside IDE -# stylelint for stylesheet (CSS and co) linting -# gvls for vala language-server integration - -llvm_check_deps() { - has_version "sys-devel/clang:${LLVM_SLOT}" -} - -pkg_setup() { - python-single-r1_pkg_setup - use clang && llvm_pkg_setup -} - -src_configure() { - local emesonargs=( - -Dchannel=other - - -Ddevelopment=false - -Dtracing=false - -Dprofiling=false # not passing -pg to CFLAGS - -Dtcmalloc=false - -Dwith_safe_path='' - -Dgnome_sdk_version=master - $(meson_use doc help) - $(meson_use gtk-doc docs) - -Dnetwork_tests=false - -Dctags_path='' - $(meson_feature webkit) - - -Dplugin_autotools=true - -Dplugin_bash_language_server=true - -Dplugin_blueprint=true - -Dplugin_buildstream=true - -Dplugin_c_pack=true - -Dplugin_cargo=true - $(meson_use clang plugin_clang) - $(meson_use clang plugin_clangd) - $(meson_use clang plugin_clang_format) - -Dplugin_cmake=true - -Dplugin_codesearch=true - -Dplugin_codeshot=true - -Dplugin_codespell=true - -Dplugin_code_index=true - -Dplugin_copyright=true - -Dplugin_ctags=true - -Dplugin_deviced=false # libdeviced not packaged? - $(meson_use d-spy plugin_dspy) - -Dplugin_dub=true - -Dplugin_editorconfig=true - -Dplugin_eslint=true - -Dplugin_file_search=true - $(meson_use flatpak plugin_flatpak) - -Dplugin_gdb=true - -Dplugin_gdiagnose=true - -Dplugin_gettext=true - $(meson_use git plugin_git) - -Dplugin_glsl_language_server=true - -Dplugin_golang=true - -Dplugin_gopls=true - -Dplugin_gradle=true - -Dplugin_grep=true - -Dplugin_hadolint=true - -Dplugin_html_completion=true - $(meson_use webkit plugin_html_preview) - -Dplugin_intelephense=true - -Dplugin_jdtls=true - -Dplugin_jedi_language_server=false - -Dplugin_jhbuild=true - -Dplugin_lua_language_server=true - -Dplugin_make=true - -Dplugin_make_templates=true - $(meson_use webkit plugin_markdown_preview) - $(meson_use webkit plugin_markdown_indenter) - -Dplugin_maven=true - -Dplugin_meson=true - -Dplugin_meson_templates=true - -Dplugin_modelines=true - -Dplugin_mono=true - -Dplugin_newcomers=true - -Dplugin_notification=true - -Dplugin_npm=true - -Dplugin_phpize=true - -Dplugin_podman=true - -Dplugin_pygi=true - -Dplugin_python_lsp_server=true - -Dplugin_qemu=true - -Dplugin_quick_highlight=true - -Dplugin_retab=true - -Dplugin_rstcheck=true - -Dplugin_rubocop=true - -Dplugin_rust_analyzer=false # rust-analyzer not packaged - -Dplugin_serve_d=true - -Dplugin_shellcheck=true - -Dplugin_shellcmd=true - -Dplugin_sourcekit_lsp=true - $(meson_use spell plugin_spellcheck) - $(meson_use webkit plugin_sphinx_preview) - -Dplugin_stylelint=true - -Dplugin_swift=true - -Dplugin_swiftformat=true - -Dplugin_swiftlint=true - $(meson_use sysprof plugin_sysprof) - -Dplugin_todo=true - -Dplugin_ts_language_server=true - -Dplugin_update_manager=true - -Dplugin_valac=true - -Dplugin_vala_indenter=true - -Dplugin_vala_language_server=true - -Dplugin_valgrind=true - -Dplugin_waf=true - -Dplugin_words=true - -Dplugin_xml_pack=true - -Dplugin_zls=true - ) - meson_src_configure -} - -src_install() { - meson_src_install - python_optimize - if use doc; then - rm "${ED}"/usr/share/doc/gnome-builder/en/.buildinfo || die - rm "${ED}"/usr/share/doc/gnome-builder/en/objects.inv || die - # custom docdir in build system, blocked by https://github.com/mesonbuild/meson/issues/825 - mv "${ED}"/usr/share/doc/gnome-builder/en "${ED}"/usr/share/doc/${PF}/html || die - # _sources subdir left in on purpose, as HTML links to the rst files as "View page source". Additionally default docompress exclusion of /html/ already ensures they aren't compressed, thus linkable as-is. - rmdir "${ED}"/usr/share/doc/gnome-builder/ || die - fi - readme.gentoo_create_doc -} - -pkg_postinst() { - xdg_pkg_postinst - gnome2_schemas_update - readme.gentoo_print_elog - - optfeature_header "Language support" - optfeature "Rust's Cargo build system" virtual/rust - optfeature "CMake" dev-util/cmake - optfeature "Java Maven build system" dev-java/maven-bin - optfeature "Meson Build system" dev-util/meson -} - -pkg_postrm() { - xdg_pkg_postrm - gnome2_schemas_update -} - -src_test() { - virtx dbus-run-session meson test -C "${BUILD_DIR}" -} -- cgit v1.2.3