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