commit:     6404c5404f0493f5c9a341a5cf39502471e3572b
Author:     Alfred Persson Forsberg <cat <AT> catcream <DOT> org>
AuthorDate: Tue Jun  4 20:25:42 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jul  5 10:49:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6404c540

net-irc/soju: add 0.8.0

Signed-off-by: Alfred Persson Forsberg <cat <AT> catcream.org>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 net-irc/soju/Manifest          |  4 +--
 net-irc/soju/soju-0.8.0.ebuild | 74 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 2 deletions(-)

diff --git a/net-irc/soju/Manifest b/net-irc/soju/Manifest
index dbad38d41da7..ee3b47f0067c 100644
--- a/net-irc/soju/Manifest
+++ b/net-irc/soju/Manifest
@@ -1,4 +1,4 @@
-DIST soju-0.6.2-deps.tar.xz 146973828 BLAKE2B 
170660a36635859327f7f4f5a03e2fe7feb31e113191dfffeae28a3d5e247454556a76da86743a69c43b4dee8749b117cfcfc231cccf9362efb2b20196f4d023
 SHA512 
57c4156c781bcb3ea76ec1f1174923d08b95b7c15e6f3b933ab150c64a94f80972dd53020737568a3507a4de2f20b87c2c615be8247c9222bf21a87b42b2ca43
-DIST soju-0.6.2.tar.gz 161636 BLAKE2B 
c4d05d924b921b5d7ba9a61f0d3f269d6ed1a6ba9935a29b694dbc2a6193d0ff633e7c60e1f182b5dfc5aaeb93e4dfb9c98ee46035fdffe13facc8e9bc236171
 SHA512 
fb74a3eb732b30f2cc0be2c4ada531e160442e6d9b725672784f0b4e4865c2a52970a086f04255d2213305b4a7d041d6a669201aec365216c6bb7764d2b3b769
 DIST soju-0.7.0-deps.tar.xz 89862684 BLAKE2B 
d56302c5b330c581365da56f1718571144ac0475fa5879a839e723d2d13aa6cb9793a8f64418098aa0035421192eb2ae955603330ea3be6116db057d5fef3b1a
 SHA512 
08fb5f2e75508840b76fb5f3479023eb735abc128cef0a621a3bafbc8d1dde504cf78812cb4e7921d7aaaafc40595ca592ce0b8aaf21c388fd781b52b5d266d2
 DIST soju-0.7.0.tar.gz 149198 BLAKE2B 
2047b61792454f20a7cc4c24466047ffa43f5d56a1726b32f5120686d5fecd1f81d057adafc8696e2d85e922e37ae6f158808c0b35529ca2cb7018ecbec0d381
 SHA512 
9b199c5e3270e325cb6e101b0e7b5c70af75c831442a135fa0484bd2aef3ada98ab48261cd91342d278bfbbbbb626c2c83eeec8029388a8fe9663515e676ba43
+DIST soju-0.8.0-deps.tar.xz 79434480 BLAKE2B 
4cb3bbcd7d4c0fc610dffc585291fe07981c0d5d08e81fe800c6a08f3655eb999e097e17fe59342b896091a8e5640782f65bba351b94948ff9ed0f548fe6280c
 SHA512 
a1f82740e673ed95cde2917d5dad53645b8cfcdefd673f44cd5b0573238c39a17355ea27e55572bb03625529202be50bf00f4bb57322ffa8857409cb1b190872
+DIST soju-0.8.0.tar.gz 154571 BLAKE2B 
737fc3e44ea04b42c6a5029db0c6c65a03c22dd30c26196439c97abe2ee9f1379b9cd49ef2cf15e25a911c0d05af1f17fcfea585c85278e081e4f3b7d9d55342
 SHA512 
22fb0815704b70dd302d75c4a00d80ac22cd622175066e7365277ef7d5a531537aa308b53703d15651a5ae841e2a02a3d7f19165c847078c5a0ae3c40d750738

diff --git a/net-irc/soju/soju-0.8.0.ebuild b/net-irc/soju/soju-0.8.0.ebuild
new file mode 100644
index 000000000000..43d0b770ae70
--- /dev/null
+++ b/net-irc/soju/soju-0.8.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+EAPI=8
+
+inherit go-module systemd
+
+DESCRIPTION="soju is a user-friendly IRC bouncer"
+HOMEPAGE="https://soju.im/";
+SRC_URI="https://git.sr.ht/~emersion/${PN}/refs/download/v${PV}/${P}.tar.gz";
+SRC_URI+=" https://github.com/alfredfo/${PN}-deps/raw/master/${P}-deps.tar.xz";
+
+LICENSE="AGPL-3 Apache-2.0 MIT BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv"
+IUSE="moderncsqlite +sqlite pam"
+REQUIRED_USE="?? ( moderncsqlite sqlite )"
+
+BDEPEND="
+       app-text/scdoc
+"
+RDEPEND="
+       acct-user/soju
+       acct-group/soju
+       sqlite? ( dev-db/sqlite:3 )
+"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+       # musl removed legacy LFS64 interfaces in version 1.2.4 temporarily
+       # reenabled using _LARGEFILE64_SOURCE until this is resolved
+       # upstream https://github.com/mattn/go-sqlite3/issues/1164
+       CGO_CFLAGS="${CGO_CFLAGS}"
+       if use sqlite; then
+               GOFLAGS+=" -tags=libsqlite3"
+               CGO_CFLAGS="-D_LARGEFILE64_SOURCE"
+       elif use moderncsqlite; then
+               GOFLAGS+=" -tags=moderncsqlite"
+               CGO_CFLAGS="-D_LARGEFILE64_SOURCE"
+       else
+               GOFLAGS+=" -tags=nosqlite"
+       fi
+       # Only way to pass CFLAGS to CGO at the
+       # moment. https://github.com/gentoo/gentoo/pull/33539/
+       export CGO_CFLAGS
+       use pam && GOFLAGS+=" -tags=pam"
+
+       ego build ${GOFLAGS} ./cmd/soju
+       ego build ${GOFLAGS} ./cmd/sojudb
+       ego build ${GOFLAGS} ./cmd/sojuctl
+
+       scdoc <doc/soju.1.scd >doc/soju.1 || die
+       scdoc <doc/sojuctl.1.scd >doc/sojuctl.1 || die
+}
+
+src_install() {
+       dobin soju
+       dobin sojudb
+       dobin sojuctl
+
+       doman doc/soju.1
+       doman doc/sojuctl.1
+       systemd_dounit contrib/soju.service
+       keepdir /etc/soju
+       insinto /etc/soju
+       newins config.in config
+       newinitd "${FILESDIR}"/soju.initd soju
+       einstalldocs
+}
+
+pkg_postinst() {
+       elog "${PN} requires a user database for authenticating clients."
+       elog "As the soju user, create a database using:"
+       elog "$ sojudb -config ${EROOT}/etc/soju/config create-user <username> 
[-admin]"
+}

Reply via email to