From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1671581-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id E629915808B
	for <garchives@archives.gentoo.org>; Wed, 18 Sep 2024 13:12:28 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0556EE29AA;
	Wed, 18 Sep 2024 13:12:28 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A626CE29A9
	for <gentoo-commits@lists.gentoo.org>; Wed, 18 Sep 2024 13:12:27 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C1BE6342FA3
	for <gentoo-commits@lists.gentoo.org>; Wed, 18 Sep 2024 13:12:26 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C4DA27F0
	for <gentoo-commits@lists.gentoo.org>; Wed, 18 Sep 2024 13:12:24 +0000 (UTC)
From: "Arsen Arsenović" <arsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Arsen Arsenović" <arsen@gentoo.org>
Message-ID: <1726664799.c98e5ce2ab7341b172ea7e63cb4ac0ae0c810f79.arsen@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/weechat/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-irc/weechat/weechat-9999.ebuild
X-VCS-Directories: net-irc/weechat/
X-VCS-Committer: arsen
X-VCS-Committer-Name: Arsen Arsenović
X-VCS-Revision: c98e5ce2ab7341b172ea7e63cb4ac0ae0c810f79
X-VCS-Branch: master
Date: Wed, 18 Sep 2024 13:12:24 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 533fc5a4-e4a8-4671-8741-9723a2534bea
X-Archives-Hash: 430c9fe79de17679964febcb87b39ce3

commit:     c98e5ce2ab7341b172ea7e63cb4ac0ae0c810f79
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Wed Aug 28 09:15:40 2024 +0000
Commit:     Arsen Arsenović <arsen <AT> gentoo <DOT> org>
CommitDate: Wed Sep 18 13:06:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c98e5ce2

net-irc/weechat: update live to use new guile mechanism

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org>

 net-irc/weechat/weechat-9999.ebuild | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/net-irc/weechat/weechat-9999.ebuild b/net-irc/weechat/weechat-9999.ebuild
index b35455cb8847..51c44dccd853 100644
--- a/net-irc/weechat/weechat-9999.ebuild
+++ b/net-irc/weechat/weechat-9999.ebuild
@@ -3,10 +3,11 @@
 
 EAPI=8
 
+GUILE_COMPAT=( 2-2 3-0 )
 LUA_COMPAT=( lua5-{1..4} )
 PYTHON_COMPAT=( python3_{10..13} )
 
-inherit cmake lua-single python-single-r1 xdg
+inherit cmake guile-single lua-single python-single-r1 xdg
 
 if [[ ${PV} == "9999" ]] ; then
 	inherit git-r3
@@ -36,6 +37,7 @@ IUSE="doc enchant man nls relay-api selinux test +zstd ${SCRIPT_LANGS} ${PLUGINS
 
 REQUIRED_USE="
 	enchant? ( spell )
+	guile? ( ${GUILE_REQUIRED_USE} )
 	lua? ( ${LUA_REQUIRED_USE} )
 	python? ( ${PYTHON_REQUIRED_USE} )
 	test? ( nls )
@@ -49,7 +51,7 @@ RDEPEND="
 	sys-libs/zlib:=
 	net-misc/curl[ssl]
 	charset? ( virtual/libiconv )
-	guile? ( >=dev-scheme/guile-2.0:12= )
+	guile? ( ${GUILE_DEPS} )
 	lua? ( ${LUA_DEPS} )
 	nls? ( virtual/libintl )
 	perl? (
@@ -90,6 +92,7 @@ DOCS="AUTHORS.md CHANGELOG.md CONTRIBUTING.md UPGRADING.md README.md"
 RESTRICT="!test? ( test )"
 
 pkg_setup() {
+	use guile && guile-single_pkg_setup
 	use lua && lua-single_pkg_setup
 	use python && python-single-r1_pkg_setup
 }
@@ -97,6 +100,8 @@ pkg_setup() {
 src_prepare() {
 	cmake_src_prepare
 
+	use guile && guile_bump_sources
+
 	# install only required translations
 	local i
 	for i in ${LANGS} ; do
@@ -185,3 +190,9 @@ src_test() {
 		die "required locale missing"
 	fi
 }
+
+src_install() {
+	cmake_src_install
+
+	use guile && guile_unstrip_ccache
+}