summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2018-06-30 03:09:13 +0200
committerLouis Sautier <sbraz@gentoo.org>2018-06-30 04:01:30 +0200
commit06152d7886e77ff70a6cade640dfcc62937b763a (patch)
treea62a82b9e0787c2e123046e9e24f6a014e7fa5e7 /net-irc/eggdrop/eggdrop-1.8.3.ebuild
parentapp-editors/qxmledit: version bump 0.9.10 (diff)
downloadgentoo-06152d7886e77ff70a6cade640dfcc62937b763a.tar.gz
gentoo-06152d7886e77ff70a6cade640dfcc62937b763a.tar.bz2
gentoo-06152d7886e77ff70a6cade640dfcc62937b763a.zip
net-irc/eggdrop: bump to 1.8.3, drop custom patches+related USEs
Also: * Make LICENSE GPL-2+. * Add a slot operator to tcl. * Do not try to install all docs to /usr/share/doc. * Show postinst only for new installs. * Introduce an ipv6 USE flag. * install HTML docs only when the doc USE flag is set. Closes: https://bugs.gentoo.org/617748 Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'net-irc/eggdrop/eggdrop-1.8.3.ebuild')
-rw-r--r--net-irc/eggdrop/eggdrop-1.8.3.ebuild81
1 files changed, 81 insertions, 0 deletions
diff --git a/net-irc/eggdrop/eggdrop-1.8.3.ebuild b/net-irc/eggdrop/eggdrop-1.8.3.ebuild
new file mode 100644
index 000000000000..86d8765154b1
--- /dev/null
+++ b/net-irc/eggdrop/eggdrop-1.8.3.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="An IRC bot extensible with C or TCL"
+HOMEPAGE="https://www.eggheads.org/"
+SRC_URI="https://ftp.eggheads.org/pub/eggdrop/source/${PV:0:3}/${P}.tar.gz"
+
+KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86"
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="debug doc ipv6 ssl static"
+
+DEPEND="
+ dev-lang/tcl:0=
+ ssl? ( dev-libs/openssl:0= )
+"
+RDEPEND="
+ sys-apps/gentoo-functions
+ ${DEPEND}
+"
+
+DOCS=( AUTHORS FEATURES INSTALL NEWS README THANKS UPGRADING )
+
+src_prepare() {
+ # https://bugs.gentoo.org/335230
+ # https://github.com/eggheads/eggdrop/issues/526
+ sed -i \
+ -e '/\$(LD)/s/-o/$(CFLAGS) $(LDFLAGS) &/' \
+ src/mod/*.mod/Makefile* src/Makefile.in || die
+ default
+}
+
+src_configure() {
+ econf $(use_enable ssl tls) \
+ $(use_enable ipv6 ipv6)
+
+ # https://github.com/eggheads/eggdrop/issues/527
+ emake -j1 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() {
+ # https://github.com/eggheads/eggdrop/issues/527
+ emake -j1 DEST="${D}"/opt/eggdrop install
+
+ use doc && HTML_DOCS=( doc/html/. )
+ rm -r "${D}"/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
+}