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: Tue, 01 Jun 2021 22:34:22
Message-Id: 1622586830.0905b57f35316117bdc00d42b3fd5db0438c3a5b.sbraz@gentoo
1 commit: 0905b57f35316117bdc00d42b3fd5db0438c3a5b
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 1 22:32:20 2021 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 1 22:33:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0905b57f
7
8 net-irc/eggdrop: add 1.9.1
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.1.ebuild | 72 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/net-irc/eggdrop/Manifest b/net-irc/eggdrop/Manifest
17 index 93e6d30a7d7..4dd5422d36f 100644
18 --- a/net-irc/eggdrop/Manifest
19 +++ b/net-irc/eggdrop/Manifest
20 @@ -1,2 +1,3 @@
21 DIST eggdrop-1.8.4.tar.gz 1784738 BLAKE2B a86cdc681ebd9c779b7da20f80ff312e4fc848e0cb0a0b9fa34941c91e1b89db1430126e3d0b94c7b4346c0bde099a6ddd343270943570744c46fc4ddd451540 SHA512 d08af09dc83045bf89eae957e7817591f16456f83ba3efe6b361fd421a3d4068348543275c26b27b006f09f06344c04cdf58ee4231f1aee0e7537ec39bc24b49
22 DIST eggdrop-1.9.0.tar.gz 2206230 BLAKE2B 1c6c5c77558323ae80b4f486f30d106b2f336c61c50adc10302657c2878a755b48d8286ba70f662b6be132ffd569de5eb269cfca1e6e42675b007de43ccf4746 SHA512 e78e220c8207361c6d7bda06be6d0094d747809ff8554fed2ce4a5fb63df1d87f8b82a98d4f0b98909042af8f6719f4a7bf548f864d3d6dfa8caa57b346d32dc
23 +DIST eggdrop-1.9.1.tar.gz 2271120 BLAKE2B 73fadeddcebeba5de42328f6f02c05e850e47c19812bc1a868da09f55fd1d297e3596c5a4b167806237554966e7dfbebadcee6215932c56a76b3e67a77d5ee47 SHA512 d8907d265f7e22f3bcd3e28b256c5788d5959ad11cc1425d59eb4411ebbc172fe8d90c31fd9f033369ab80cd29a36a5856f6bd32bc6c9cdfedea1d6509ea7f3b
24
25 diff --git a/net-irc/eggdrop/eggdrop-1.9.1.ebuild b/net-irc/eggdrop/eggdrop-1.9.1.ebuild
26 new file mode 100644
27 index 00000000000..5d6de0a857d
28 --- /dev/null
29 +++ b/net-irc/eggdrop/eggdrop-1.9.1.ebuild
30 @@ -0,0 +1,72 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
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 ~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 +}