From 0c1bebc4027c639909ad0a840068b649b6be4b95 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 29 Feb 2024 17:41:08 +0000 Subject: gentoo auto-resync : 29:02:2024 - 17:41:08 --- net-irc/hexchat/Manifest | 6 +- net-irc/hexchat/hexchat-2.16.2.ebuild | 138 ++++++++++++++++++++++++++++++++++ net-irc/hexchat/hexchat-9999.ebuild | 15 ++-- net-irc/hexchat/metadata.xml | 6 +- 4 files changed, 149 insertions(+), 16 deletions(-) create mode 100644 net-irc/hexchat/hexchat-2.16.2.ebuild (limited to 'net-irc/hexchat') diff --git a/net-irc/hexchat/Manifest b/net-irc/hexchat/Manifest index 4d534674e710..49a56e22b0bc 100644 --- a/net-irc/hexchat/Manifest +++ b/net-irc/hexchat/Manifest @@ -1,4 +1,6 @@ DIST hexchat-2.16.1.tar.xz 1349536 BLAKE2B 6e1d9f7c36affc94356e0124ea445f019d8f00b643896ec004af17059befadfcd8fc1b75ef9fba277542dcf8593e8e4683a709a4c4cbaaaf4f3122d8488dc6ce SHA512 9e6baa30ec8c3ce4fb56e2c82625da63295040eaf93a542aec8a4a18a6a3c95d69d1d4ffabc952bcdcd7b754afef234b348f296143991fafd0550342db95ce0e +DIST hexchat-2.16.2.tar.xz 1352304 BLAKE2B 4977e44733539f9f7f1bbd7c66d0f945bdd6696650ad75975a19f2de931377626124aaed8fc2f98f345de2a00787eda2077ed7a5364d811f07237d88a8cc88dc SHA512 2ceb4332328c4acf55a46bf5c45788a7f3a73fd2ffd676751c75cc08ca04ced5569c1e6406877e6f2972b8967e94bea2ad70a6966ade7cd811b5c4d700409ee2 EBUILD hexchat-2.16.1-r1.ebuild 3266 BLAKE2B 083635ced347d63c0a2e310d7c7a7972ec43617c7d2f2c136edac774cd48dd4da38cc5d4a329c5897306a14d411176e9123e2ee6e01c23e0e18e9193dc5ba866 SHA512 368d48e07cc16a19fd400b5272d8f44c1fd93645d931075ec6b1b9c7e3292c065cd6485fc8b96a87d60780bc73c9f8d70f4bc8dbe0e16d90326c39093964a788 -EBUILD hexchat-9999.ebuild 3272 BLAKE2B b11facdba0e562e287928389317acd0675cbb5263ed5f0f90885038a22890e3c74cb084ffcdb4e46d4c0b32b07367eb2c4f254ec85b5e2f80a6fe22afd270b2b SHA512 f81c317bf59a41d1e0ab34a227d807e6effbd62878becc8270b378a427a77b4e96aeb48d4a653dbc7eb56ace17b93912e8db57f34dfa0a0a854770d4afbc8bed -MISC metadata.xml 1109 BLAKE2B be9c2bdb1e3573d1a092c71033f31dbd62adab49c50b90511f8075be8c7563f0704e8b53e62240764c06865fe64f3459e3bdb80e6d5fea5777b1921f1b9cd74f SHA512 f1db6273bc192b69778d18954b180f5fe349e748f7795211b2deaa3219cc128ed3e9f8b8727713e9148c0da16dac3c21e6fc52f74aded098803669e70af6e902 +EBUILD hexchat-2.16.2.ebuild 3220 BLAKE2B f2e7b82e78ab02dde0ad714066181f1625777dceb80680edb2b7b3c488ecb5a0bc997d8a7fa49e4666ba7c81a1183639f2bec07d9f702520893a5adbfaced652 SHA512 067e1561039f481138e4b6c32dea7f3e776176d40a34fc555d1ac1f4cc44a97e4d849f08bc16daf9c8d21591ef2e48b9c5ad845ef91f38cdcd68cf495a4c80ac +EBUILD hexchat-9999.ebuild 3220 BLAKE2B f2e7b82e78ab02dde0ad714066181f1625777dceb80680edb2b7b3c488ecb5a0bc997d8a7fa49e4666ba7c81a1183639f2bec07d9f702520893a5adbfaced652 SHA512 067e1561039f481138e4b6c32dea7f3e776176d40a34fc555d1ac1f4cc44a97e4d849f08bc16daf9c8d21591ef2e48b9c5ad845ef91f38cdcd68cf495a4c80ac +MISC metadata.xml 998 BLAKE2B 416fe39481324d998e3df058426d0af956d225a6deb4fe617e41b0b7e6695f8b5e62c05d6d703e1391ae1c850c29b2e7e6cc3f044310cf31ba5b839001ff75f2 SHA512 54f74817f600feb9252d7559486358bc58928ec00ca24eb8c2dc7b9a2fefc1f18331b4a42986e81bf4f0c8eb30e2b9282b39e9de281ab1f2a03a747bea2500b4 diff --git a/net-irc/hexchat/hexchat-2.16.2.ebuild b/net-irc/hexchat/hexchat-2.16.2.ebuild new file mode 100644 index 000000000000..1958b10d37e7 --- /dev/null +++ b/net-irc/hexchat/hexchat-2.16.2.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..5} luajit ) +PYTHON_COMPAT=( python3_{10..12} ) + +inherit lua-single meson mono-env python-single-r1 xdg + +DESCRIPTION="Graphical IRC client based on XChat" +HOMEPAGE="https://hexchat.github.io/" + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + # We need to empty SRC_URI or else mono-env breaks the live ebuild + SRC_URI="" + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" +else + SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux" +fi + +LICENSE="GPL-2 plugin-fishlim? ( MIT )" +SLOT="0" +IUSE="dbus debug +gtk libcanberra lua perl plugin-checksum plugin-fishlim plugin-sysinfo python ssl theme-manager" +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) + plugin-fishlim? ( ssl ) + python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-libs/glib:2 + dbus? ( dev-libs/dbus-glib ) + gtk? ( + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/pango + ) + libcanberra? ( media-libs/libcanberra ) + lua? ( ${LUA_DEPS} ) + perl? ( dev-lang/perl:= ) + plugin-sysinfo? ( sys-apps/pciutils ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/cffi[${PYTHON_USEDEP}] + ' 'python*') + ) + ssl? ( dev-libs/openssl:0= ) + theme-manager? ( + || ( + ( + dev-lang/mono[minimal] + dev-dotnet/libgdiplus + ) + dev-lang/mono[-minimal] + ) + )" + +DEPEND="${RDEPEND}" +BDEPEND=" + app-arch/xz-utils + app-text/iso-codes + dev-util/glib-utils + sys-devel/gettext + virtual/pkgconfig +" + +pkg_setup() { + use lua && lua-single_pkg_setup + use python && python-single-r1_pkg_setup + if use theme-manager ; then + mono-env_pkg_setup + export XDG_CACHE_HOME="${T}/.cache" + fi +} + +src_configure() { + local emesonargs=( + -Ddbus-service-use-appid=false + -Dinstall-appdata=false + -Dplugin=true + $(meson_feature dbus) + $(meson_feature libcanberra) + $(meson_feature ssl tls) + $(meson_use gtk gtk-frontend) + $(meson_use !gtk text-frontend) + $(meson_use theme-manager) + + $(meson_use plugin-checksum with-checksum) + $(meson_use plugin-fishlim with-fishlim) + -Dwith-lua="$(usex lua "${ELUA}" false)" + -Dwith-perl="$(usex perl "${EPREFIX}"/usr/bin/perl false)" + -Dwith-python="$(usex python "${EPYTHON/.*}" false)" + $(meson_use plugin-sysinfo with-sysinfo) + ) + meson_src_configure +} + +src_install() { + meson_src_install + dodoc readme.md + find "${ED}" -type f -name '*.la' -delete || die +} + +pkg_preinst() { + if use gtk ; then + xdg_pkg_preinst + fi +} + +pkg_postinst() { + if use gtk ; then + xdg_pkg_postinst + else + elog "You have disabled the gtk USE flag. This means you don't have" + elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"." + fi + + if use theme-manager ; then + elog "Themes are available at:" + elog " https://hexchat.github.io/themes.html" + fi + + elog + elog "optional dependencies:" + elog " media-sound/sox (sound playback if you don't have libcanberra" + elog " enabled)" + elog " x11-themes/sound-theme-freedesktop (default BEEP sound," + elog " needs libcanberra enabled)" +} + +pkg_postrm() { + if use gtk ; then + xdg_pkg_postrm + fi +} diff --git a/net-irc/hexchat/hexchat-9999.ebuild b/net-irc/hexchat/hexchat-9999.ebuild index be5bee2dfbb2..1958b10d37e7 100644 --- a/net-irc/hexchat/hexchat-9999.ebuild +++ b/net-irc/hexchat/hexchat-9999.ebuild @@ -1,12 +1,12 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -LUA_COMPAT=( lua5-{1..4} luajit ) -PYTHON_COMPAT=( python3_{10..11} ) +LUA_COMPAT=( lua5-{1..5} luajit ) +PYTHON_COMPAT=( python3_{10..12} ) -inherit flag-o-matic lua-single meson mono-env python-single-r1 xdg +inherit lua-single meson mono-env python-single-r1 xdg DESCRIPTION="Graphical IRC client based on XChat" HOMEPAGE="https://hexchat.github.io/" @@ -17,7 +17,7 @@ if [[ "${PV}" == "9999" ]] ; then SRC_URI="" EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" else - SRC_URI="https://dl.hexchat.net/${PN}/${P}.tar.xz" + SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux" fi @@ -60,9 +60,9 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND=" - dev-util/glib-utils app-arch/xz-utils app-text/iso-codes + dev-util/glib-utils sys-devel/gettext virtual/pkgconfig " @@ -77,9 +77,6 @@ pkg_setup() { } src_configure() { - # LTO type mismatch, https://bugs.gentoo.org/861458 - filter-lto - local emesonargs=( -Ddbus-service-use-appid=false -Dinstall-appdata=false diff --git a/net-irc/hexchat/metadata.xml b/net-irc/hexchat/metadata.xml index b6b23a6c55b0..beb97dc0e90f 100644 --- a/net-irc/hexchat/metadata.xml +++ b/net-irc/hexchat/metadata.xml @@ -21,12 +21,8 @@ Build the theme manager (mono) - - tingping@tingping.se - TingPing - https://github.com/hexchat/hexchat/issues - http://hexchat.readthedocs.org/en/latest + https://hexchat.readthedocs.io/en/latest hexchat/hexchat -- cgit v1.2.3