commit: 4c4a29cb93f851457e8a8314ffe5067d3aa33892
Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Sun Jan 18 21:23:46 2026 +0000
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Thu Jan 22 00:08:40 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4a29cb
net-irc/eggdrop: add 1.10.1 with Python support
* Support Python to build a new Python module introduced in 1.10.0.
* Use ${ED} when installing files instead of ${D} to support prefix.
* Handle version components with ver_cut instead of fixed Bash substring
indices.
Closes: https://bugs.gentoo.org/944127
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/20
Merges: https://codeberg.org/gentoo/gentoo/pulls/20
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
net-irc/eggdrop/Manifest | 1 +
net-irc/eggdrop/eggdrop-1.10.1.ebuild | 88 ++++++++++++++++++++++++++
net-irc/eggdrop/files/eggdrop-1.10.1-lto.patch | 39 ++++++++++++
3 files changed, 128 insertions(+)
diff --git a/net-irc/eggdrop/Manifest b/net-irc/eggdrop/Manifest
index 940e0476ef35..cf2d2fa5eb72 100644
--- a/net-irc/eggdrop/Manifest
+++ b/net-irc/eggdrop/Manifest
@@ -1,2 +1,3 @@
+DIST eggdrop-1.10.1.tar.gz 2204296 BLAKE2B
9c4937a4f37e61ddaf85e3b8ea312d15ca6fb54e6aac7318892baeb68b20bedd7da7c7168702197e6672e0dc2304d3b5f4e14f6f8585a06b6e6a5dc0e2351ec8
SHA512
3507023c6f0cd5192682877afcdbff67e40a7d746ef5c0ca81e1f24f4b3d8ddd2419c5bc41662ae29bb03b42c58e298e5d799c1c572d106d67bf7e4f33120077
DIST eggdrop-1.9.4.tar.gz 2065217 BLAKE2B
f9d1e6c0491d6c7959e3b67e8186082d074d648497cd66f244dfb4c919a566d81fdce83d034f0cc1e5247bc924022faf56004cdd8a6cc174fe8d0f44af5e2a9a
SHA512
ed3145411a1832d1a6d4f191c6ff30e64aa45f803df00585c1c69f6bbc8a16d07e9608c57e31fb723f7a9c66a24422e5080aab7746e562ac5b6a678a08c7b2a4
DIST eggdrop-1.9.5.tar.gz 2109996 BLAKE2B
80d7b44356f0c5750c276f15412fdb847bc7583c7d1e990735ad4aec1b6bec9822124b089654dfb4dfbd393127804da1019d184d01b867b0dd84ba0342167d94
SHA512
863e6f94a92ac02e135c306000379ce516d9c9381eb5ca249e7656f4f0f504a159ddf1f658016d05e422d8036e808664101ab4f8944a42438c273f71b676189b
diff --git a/net-irc/eggdrop/eggdrop-1.10.1.ebuild
b/net-irc/eggdrop/eggdrop-1.10.1.ebuild
new file mode 100644
index 000000000000..bc8c41475206
--- /dev/null
+++ b/net-irc/eggdrop/eggdrop-1.10.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit readme.gentoo-r1 python-single-r1
+
+MY_P="${PN}-${PV/_rc/rc}"
+DESCRIPTION="An IRC bot extensible with C or TCL"
+HOMEPAGE="https://www.eggheads.org/"
+SRC_URI="https://ftp.eggheads.org/pub/eggdrop/source/$(ver_cut
1-2)/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~riscv ~sparc ~x86"
+IUSE="debug doc python ssl static"
+
+REQUIRED_USE="
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+DEPEND="
+ dev-lang/tcl:0=
+ virtual/zlib:=
+ python? ( ${PYTHON_DEPS} )
+ ssl? ( dev-libs/openssl:0= )
+"
+RDEPEND="
+ sys-apps/gentoo-functions
+ ${DEPEND}
+"
+
+DOCS=( AUTHORS FEATURES INSTALL NEWS README THANKS UPGRADING )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-lto.patch
+)
+
+src_configure() {
+ if ! use python; then
+ export egg_enable_python=no
+ fi
+
+ econf --enable-ipv6 \
+ $(use_enable ssl tls)
+
+ emake config
+}
+
+src_compile() {
+ local target
+
+ if use static && use debug; then
+ target="sdebug"
+ elif use static; then
+ target="static"
+ elif use debug; then
+ target="debug"
+ fi
+
+ emake ${target}
+}
+
+src_install() {
+ emake DEST="${ED}"/opt/eggdrop install
+
+ use doc && HTML_DOCS=( doc/html/. )
+ rm -r "${ED}"/opt/eggdrop/doc/html || die
+ DOC_CONTENTS="
+ Additional documentation can be found
+ in ${EPREFIX}/opt/eggdrop/doc
+ "
+ readme.gentoo_create_doc
+ einstalldocs
+
+ dobin "${FILESDIR}"/eggdrop-installer
+ doman doc/man1/eggdrop.1
+}
+
+pkg_postinst() {
+ # Only display this for new installs
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "Please run ${EPREFIX}/usr/bin/eggdrop-installer to
install your eggdrop bot."
+ fi
+}
diff --git a/net-irc/eggdrop/files/eggdrop-1.10.1-lto.patch
b/net-irc/eggdrop/files/eggdrop-1.10.1-lto.patch
new file mode 100644
index 000000000000..3a7487486bb6
--- /dev/null
+++ b/net-irc/eggdrop/files/eggdrop-1.10.1-lto.patch
@@ -0,0 +1,39 @@
+Fixes LTO build
+https://github.com/eggheads/eggdrop/commit/e826fffc93e1dcfaa0e7d23c2a6c8e8c036f0f4b
+
+From e826fffc93e1dcfaa0e7d23c2a6c8e8c036f0f4b Mon Sep 17 00:00:00 2001
+From: Michael Ortmann <[email protected]>
+Date: Thu, 27 Nov 2025 18:56:55 +0100
+Subject: [PATCH] Fix type mismatch
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -83,7 +83,7 @@ extern sigjmp_buf alarmret;
+ time_t now;
+ static int argc;
+ static char **argv;
+-char *argv0;
++const char *argv0;
+
+ /*
+ * Please use the PATCH macro instead of directly altering the version
+@@ -471,7 +471,7 @@ static void show_help() {
+ "-t Don't background; use terminal to simulate DCC chat.\n"
+ "-m Create userfile.\n"
+ "-h Show this help and exit.\n"
+- "-v Show version info and exit.\n\n", argv[0]);
++ "-v Show version info and exit.\n\n", argv0);
+ bg_send_quit(BG_ABORT);
+ }
+
+--- a/src/modules.c
++++ b/src/modules.c
+@@ -95,7 +95,7 @@ extern time_t now, online_since;
+ extern tand_t *tandbot;
+ extern Tcl_Interp *interp;
+ extern sock_list *socklist;
+-extern char argv0;
++extern const char *argv0;
+
+
+ int xtra_kill();