Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/eggdrop/
Date: Mon, 29 Aug 2022 22:49:32
Message-Id: 1661813271.9dfd560bbfa8908c51c0e1f8e1858de49ae71d5c.sbraz@gentoo
1 commit: 9dfd560bbfa8908c51c0e1f8e1858de49ae71d5c
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 29 22:44:52 2022 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 22:47:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dfd560b
7
8 net-irc/eggdrop: add 1.9.3, EAPI=8
9
10 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
11
12 net-irc/eggdrop/Manifest | 1 +
13 net-irc/eggdrop/eggdrop-1.9.3.ebuild | 72 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/net-irc/eggdrop/Manifest b/net-irc/eggdrop/Manifest
17 index 987fe13d9f2d..e07b2f3fb04d 100644
18 --- a/net-irc/eggdrop/Manifest
19 +++ b/net-irc/eggdrop/Manifest
20 @@ -1,2 +1,3 @@
21 DIST eggdrop-1.9.1.tar.gz 2271120 BLAKE2B 73fadeddcebeba5de42328f6f02c05e850e47c19812bc1a868da09f55fd1d297e3596c5a4b167806237554966e7dfbebadcee6215932c56a76b3e67a77d5ee47 SHA512 d8907d265f7e22f3bcd3e28b256c5788d5959ad11cc1425d59eb4411ebbc172fe8d90c31fd9f033369ab80cd29a36a5856f6bd32bc6c9cdfedea1d6509ea7f3b
22 DIST eggdrop-1.9.2.tar.gz 2296300 BLAKE2B ed409896718e45daab2b21c25e7f1a5a2664ef8afec7127943abb3018ce963413e714618ee730ef2c49e4542c6e87377cff405ee36ce91448335adf6c7ab5a8a SHA512 67c8053a79ab5c4c418164e4e12f89a6e111b06b4e6dfdc69c52913b2f3b9a58b065a7601165112071c9ca2a778269aeb95c749a9da787c1932e6471a23146ce
23 +DIST eggdrop-1.9.3.tar.gz 2046726 BLAKE2B 979190536c3c0718ef4b030d8f6df817b8ee823854c104b7d6f9009c10a7f8394d59afca40fc5c9778f130788fac7e14458d62d30a55413dea4653ca00c83f0a SHA512 67d6d0f798222e54e09acb319aa4926181c34b6e4cdc2cbb4fc7a8433915a7d6281904fd190fe2ee92bcc2cb99943e3fb5b9d99831cc0bfd930205e63e33d1a1
24
25 diff --git a/net-irc/eggdrop/eggdrop-1.9.3.ebuild b/net-irc/eggdrop/eggdrop-1.9.3.ebuild
26 new file mode 100644
27 index 000000000000..9114a4dc8c97
28 --- /dev/null
29 +++ b/net-irc/eggdrop/eggdrop-1.9.3.ebuild
30 @@ -0,0 +1,72 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit readme.gentoo-r1
37 +
38 +MY_P="${PN}-${PV/_rc/rc}"
39 +DESCRIPTION="An IRC bot extensible with C or TCL"
40 +HOMEPAGE="https://www.eggheads.org/"
41 +SRC_URI="https://ftp.eggheads.org/pub/eggdrop/source/${PV:0:3}/${MY_P}.tar.gz"
42 +S="${WORKDIR}/${MY_P}"
43 +
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~riscv ~sparc ~x86"
45 +LICENSE="GPL-2+"
46 +SLOT="0"
47 +IUSE="debug doc ipv6 ssl static"
48 +
49 +DEPEND="
50 + dev-lang/tcl:0=
51 + ssl? ( dev-libs/openssl:0= )
52 +"
53 +RDEPEND="
54 + sys-apps/gentoo-functions
55 + ${DEPEND}
56 +"
57 +
58 +DOCS=( AUTHORS FEATURES INSTALL NEWS README THANKS UPGRADING )
59 +
60 +src_configure() {
61 + econf $(use_enable ssl tls) \
62 + $(use_enable ipv6 ipv6)
63 +
64 + emake config
65 +}
66 +
67 +src_compile() {
68 + local target
69 +
70 + if use static && use debug; then
71 + target="sdebug"
72 + elif use static; then
73 + target="static"
74 + elif use debug; then
75 + target="debug"
76 + fi
77 +
78 + emake ${target}
79 +}
80 +
81 +src_install() {
82 + emake DEST="${D}"/opt/eggdrop install
83 +
84 + use doc && HTML_DOCS=( doc/html/. )
85 + rm -r "${D}"/opt/eggdrop/doc/html || die
86 + DOC_CONTENTS="
87 + Additional documentation can be found
88 + in ${EPREFIX}/opt/eggdrop/doc
89 + "
90 + readme.gentoo_create_doc
91 + einstalldocs
92 +
93 + dobin "${FILESDIR}"/eggdrop-installer
94 + doman doc/man1/eggdrop.1
95 +}
96 +
97 +pkg_postinst() {
98 + # Only display this for new installs
99 + if [[ -z ${REPLACING_VERSIONS} ]]; then
100 + elog "Please run ${EPREFIX}/usr/bin/eggdrop-installer to install your eggdrop bot."
101 + fi
102 +}