mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
net-irc/zoitechat: new package, add 2.19.0
ZoiteChat is a GTK3 port of HexChat. Bug: https://bugs.gentoo.org/978953 Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
This commit is contained in:
4 files changed
+149
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
DIST zoitechat-2.19.0.tar.gz 3522858 BLAKE2B d325a728600cd7debfb753ad67d9a4505e67a114cbe470a8281fe3fa1970ddd7fc97148dd0ac17f08dcabd67293d787c437bbc4dac6c6f7a694a290999b4d921 SHA512 a28f4f69c9f7b0177e845e0aa90f9bedc3f8148495ccbef33c5d066736ef1adb3b2b2242dbaa5d5719765afe76b7228723f0ebfb1fbf26962936eda9b91793fc
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
diff --git a/data/misc/meson.build b/data/misc/meson.build
|
||||||
|
index 0c88f51b..00b61c37 100644
|
||||||
|
--- a/data/misc/meson.build
|
||||||
|
+++ b/data/misc/meson.build
|
||||||
|
@@ -2,6 +2,7 @@ appdir = join_paths(get_option('datadir'), 'applications')
|
||||||
|
metainfodir = join_paths(get_option('datadir'), 'metainfo')
|
||||||
|
mimedir = join_paths(get_option('datadir'), 'mime', 'packages')
|
||||||
|
desktop_utils = find_program('desktop-file-validate', required: false)
|
||||||
|
+appstreamcli = find_program('appstreamcli', required: false)
|
||||||
|
|
||||||
|
if get_option('gtk-frontend')
|
||||||
|
if get_option('install-appdata')
|
||||||
|
@@ -13,7 +14,6 @@ if get_option('gtk-frontend')
|
||||||
|
install_dir: metainfodir
|
||||||
|
)
|
||||||
|
|
||||||
|
- appstreamcli = find_program('appstreamcli', required: false)
|
||||||
|
if appstreamcli.found()
|
||||||
|
test('Validate net.zoite.Zoitechat.appdata.xml', appstreamcli,
|
||||||
|
args: ['validate', zoitechat_appdata]
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>salah.coronya@gmail.com</email>
|
||||||
|
<name>Christopher Byrne</name>
|
||||||
|
</maintainer>
|
||||||
|
<use>
|
||||||
|
<flag name="libcanberra">Enable sound event support using
|
||||||
|
<pkg>media-libs/libcanberra-gtk3</pkg></flag>
|
||||||
|
<flag name="perl-legacy">Allows legacy HexChat scripts to work with ZoiteChat</flag>
|
||||||
|
<flag name="plugin-checksum">Build Checksum plugin (needs plugins)</flag>
|
||||||
|
<flag name="plugin-fishlim">Build FiSHLiM plugin (needs plugins)</flag>
|
||||||
|
<flag name="plugin-sysinfo">Build SysInfo plugin (needs plugins)</flag>
|
||||||
|
<flag name="trayicon">Enable system tray icon</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<bugs-to>https://github.com/ZoiteChat/zoitechat</bugs-to>
|
||||||
|
<remote-id type="github">ZoiteChat/zoitechat</remote-id>
|
||||||
|
<doc lang="en">https://docs.zoitechat.org/en/latest/</doc>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
# Copyright 1999-2026 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# lua.eclass does not support EAPI 9 yet.
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
GENTOO_DEPEND_ON_PERL=no
|
||||||
|
LUA_COMPAT=( lua5-{1..5} luajit )
|
||||||
|
PYTHON_COMPAT=( python3_{12..15} )
|
||||||
|
|
||||||
|
inherit lua-single perl-module python-single-r1 xdg
|
||||||
|
# Intentionally called last because ther other inherit clobber exported phases
|
||||||
|
inherit meson
|
||||||
|
|
||||||
|
DESCRIPTION="GTK+ IRC client that's a fork of HexChat"
|
||||||
|
HOMEPAGE="https://zoitechat.org/"
|
||||||
|
SRC_URI="https://github.com/ZoiteChat/zoitechat/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2 plugin-fishlim? ( MIT )"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
IUSE="dbus debug +gtk libcanberra lua perl perl-legacy plugin-checksum plugin-fishlim plugin-sysinfo python ssl trayicon ${GENTOO_PERL_USESTRING}"
|
||||||
|
REQUIRED_USE="
|
||||||
|
lua? ( ${LUA_REQUIRED_USE} )
|
||||||
|
plugin-fishlim? ( ssl )
|
||||||
|
python? ( ${PYTHON_REQUIRED_USE} )
|
||||||
|
"
|
||||||
|
|
||||||
|
# app-crypt/libsecret is an automagic dependency
|
||||||
|
RDEPEND="app-arch/libarchive
|
||||||
|
app-crypt/libsecret
|
||||||
|
>=dev-libs/glib-2.36
|
||||||
|
gtk? ( >=x11-libs/gtk+-3.22 )
|
||||||
|
libcanberra? ( >=media-libs/libcanberra-gtk3-0.22 )
|
||||||
|
lua? ( ${LUA_DEPS} )
|
||||||
|
perl? (
|
||||||
|
${GENTOO_PERL_DEPSTRING}
|
||||||
|
dev-lang/perl:=
|
||||||
|
)
|
||||||
|
plugin-sysinfo? ( sys-apps/pciutils )
|
||||||
|
python? (
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/cffi[${PYTHON_USEDEP}]
|
||||||
|
' 'python*')
|
||||||
|
)
|
||||||
|
trayicon? ( dev-libs/libayatana-appindicator )
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
BDEPEND="app-text/iso-codes
|
||||||
|
dev-util/glib-utils
|
||||||
|
sys-devel/gettext
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}/${PN}-2.19.0-meson-fix-appstream-conditional-define.patch" )
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use lua && lua-single_pkg_setup
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
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 ZoiteChat but only a text interface called \"zoitechat-text\"."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local emesonargs=(
|
||||||
|
$(meson_use gtk gtk-frontend)
|
||||||
|
$(meson_use !gtk text-frontend)
|
||||||
|
$(meson_use perl-legacy with-perl-legacy-api)
|
||||||
|
$(meson_use plugin-checksum with-checksum)
|
||||||
|
$(meson_use plugin-fishlim with-fishlim)
|
||||||
|
$(meson_use plugin-sysinfo with-sysinfo)
|
||||||
|
$(meson_feature dbus)
|
||||||
|
$(meson_feature libcanberra)
|
||||||
|
$(meson_feature ssl tls)
|
||||||
|
$(meson_feature trayicon appindicator)
|
||||||
|
-Dwith-lua="$(usex lua "${ELUA}" false)"
|
||||||
|
-Dwith-perl="$(usex perl "${EPREFIX}"/usr/bin/perl false)"
|
||||||
|
-Dwith-python="$(usex python "${EPYTHON/.*}" false)"
|
||||||
|
-Dplugin=true
|
||||||
|
# Flakpak options
|
||||||
|
-Ddbus-service-use-appid=false
|
||||||
|
-Dinstall-appdata=false
|
||||||
|
# For use by distros who package the plugins separately
|
||||||
|
-Dinstall-plugin-metainfo=false
|
||||||
|
# exec and upd are Windows only
|
||||||
|
-Dwith-exec=false
|
||||||
|
-Dwith-upd=false
|
||||||
|
)
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
Reference in new issue
Block a user