1 |
commit: 06152d7886e77ff70a6cade640dfcc62937b763a |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 30 01:09:13 2018 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 30 02:01:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06152d78 |
7 |
|
8 |
net-irc/eggdrop: bump to 1.8.3, drop custom patches+related USEs |
9 |
|
10 |
Also: |
11 |
* Make LICENSE GPL-2+. |
12 |
* Add a slot operator to tcl. |
13 |
* Do not try to install all docs to /usr/share/doc. |
14 |
* Show postinst only for new installs. |
15 |
* Introduce an ipv6 USE flag. |
16 |
* install HTML docs only when the doc USE flag is set. |
17 |
|
18 |
Closes: https://bugs.gentoo.org/617748 |
19 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
20 |
|
21 |
net-irc/eggdrop/Manifest | 1 + |
22 |
net-irc/eggdrop/eggdrop-1.8.3.ebuild | 81 ++++++++++++++++++++++++++++++++++++ |
23 |
2 files changed, 82 insertions(+) |
24 |
|
25 |
diff --git a/net-irc/eggdrop/Manifest b/net-irc/eggdrop/Manifest |
26 |
index d05018b90fb..329ddc5a7f2 100644 |
27 |
--- a/net-irc/eggdrop/Manifest |
28 |
+++ b/net-irc/eggdrop/Manifest |
29 |
@@ -1,2 +1,3 @@ |
30 |
DIST eggdrop-1.6.21-patches-1.0.tar.bz2 322608 BLAKE2B 5589b4c826b6144b2c5b68df485dfc361edf699d4cd6cf2760f410716664d34cc3dd7f22f2b5af67264ec5f4071e9a17907fa9796bd2712a9a86cbd6122a9c27 SHA512 d7d5d740c68997101f360096612700919c890c4254708102e962427de5929ce98f0f2eb5ad8dc8a56de60e8b610d502edeae7de2ac762fe0981134da379b6e64 |
31 |
+DIST eggdrop-1.8.3.tar.gz 1756536 BLAKE2B c2693bc383e1d857fe784d54f34479e73902064196021788ddf21f0bb2910977c643d820d2f6b640bb459b2acbfad8158fc0b29b4d76c588dfd76fee09a6fa25 SHA512 ad3b93d18aaa05d0eb00f1089b68d1f077f316042e64fff511ad1bbac06d35105adcb503490faaac4c9fe720dd45a9f350115b6c5d0f41fe198f228213a7a3a3 |
32 |
DIST eggdrop1.6.21.tar.bz2 999211 BLAKE2B f804ebe4f06176a6de7331d409f97ed1c3159cc32a8a06cb8c5c6e6a83bf181c7b9624a2a4aaee4d36361903a21b7ee1c052466faeebda357bb0675052e3a5da SHA512 9fd9a86c1c4b59a47a5eed4e2306e829a01bac2ad29e990ca9c0ec630d5814fd649a9216dae9ce49f734e3ac1728beb4f479ca10af583bd513f43bbbea23a653 |
33 |
|
34 |
diff --git a/net-irc/eggdrop/eggdrop-1.8.3.ebuild b/net-irc/eggdrop/eggdrop-1.8.3.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..86d8765154b |
37 |
--- /dev/null |
38 |
+++ b/net-irc/eggdrop/eggdrop-1.8.3.ebuild |
39 |
@@ -0,0 +1,81 @@ |
40 |
+# Copyright 1999-2018 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=7 |
44 |
+ |
45 |
+inherit readme.gentoo-r1 |
46 |
+ |
47 |
+DESCRIPTION="An IRC bot extensible with C or TCL" |
48 |
+HOMEPAGE="https://www.eggheads.org/" |
49 |
+SRC_URI="https://ftp.eggheads.org/pub/eggdrop/source/${PV:0:3}/${P}.tar.gz" |
50 |
+ |
51 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86" |
52 |
+LICENSE="GPL-2+" |
53 |
+SLOT="0" |
54 |
+IUSE="debug doc ipv6 ssl static" |
55 |
+ |
56 |
+DEPEND=" |
57 |
+ dev-lang/tcl:0= |
58 |
+ ssl? ( dev-libs/openssl:0= ) |
59 |
+" |
60 |
+RDEPEND=" |
61 |
+ sys-apps/gentoo-functions |
62 |
+ ${DEPEND} |
63 |
+" |
64 |
+ |
65 |
+DOCS=( AUTHORS FEATURES INSTALL NEWS README THANKS UPGRADING ) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ # https://bugs.gentoo.org/335230 |
69 |
+ # https://github.com/eggheads/eggdrop/issues/526 |
70 |
+ sed -i \ |
71 |
+ -e '/\$(LD)/s/-o/$(CFLAGS) $(LDFLAGS) &/' \ |
72 |
+ src/mod/*.mod/Makefile* src/Makefile.in || die |
73 |
+ default |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ econf $(use_enable ssl tls) \ |
78 |
+ $(use_enable ipv6 ipv6) |
79 |
+ |
80 |
+ # https://github.com/eggheads/eggdrop/issues/527 |
81 |
+ emake -j1 config |
82 |
+} |
83 |
+ |
84 |
+src_compile() { |
85 |
+ local target |
86 |
+ |
87 |
+ if use static && use debug; then |
88 |
+ target="sdebug" |
89 |
+ elif use static; then |
90 |
+ target="static" |
91 |
+ elif use debug; then |
92 |
+ target="debug" |
93 |
+ fi |
94 |
+ |
95 |
+ emake ${target} |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ # https://github.com/eggheads/eggdrop/issues/527 |
100 |
+ emake -j1 DEST="${D}"/opt/eggdrop install |
101 |
+ |
102 |
+ use doc && HTML_DOCS=( doc/html/. ) |
103 |
+ rm -r "${D}"/opt/eggdrop/doc/html || die |
104 |
+ DOC_CONTENTS=" |
105 |
+ Additional documentation can be found |
106 |
+ in ${EPREFIX}/opt/eggdrop/doc |
107 |
+ " |
108 |
+ readme.gentoo_create_doc |
109 |
+ einstalldocs |
110 |
+ |
111 |
+ dobin "${FILESDIR}"/eggdrop-installer |
112 |
+ doman doc/man1/eggdrop.1 |
113 |
+} |
114 |
+ |
115 |
+pkg_postinst() { |
116 |
+ # Only display this for new installs |
117 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
118 |
+ elog "Please run ${EPREFIX}/usr/bin/eggdrop-installer to install your eggdrop bot." |
119 |
+ fi |
120 |
+} |