diff options
author | Louis Sautier <sbraz@gentoo.org> | 2023-03-13 21:25:38 +0100 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2023-03-13 21:28:07 +0100 |
commit | 8ddffbaae428093638655a772994bf52bc77a2a9 (patch) | |
tree | 255ea9a5e7fd12d242c24818075044523951e8ee /net-irc/eggdrop/eggdrop-1.9.5.ebuild | |
parent | dev-python/sqlalchemy: Stabilize 2.0.4 ppc, #901065 (diff) | |
download | gentoo-8ddffbaae428093638655a772994bf52bc77a2a9.tar.gz gentoo-8ddffbaae428093638655a772994bf52bc77a2a9.tar.bz2 gentoo-8ddffbaae428093638655a772994bf52bc77a2a9.zip |
net-irc/eggdrop: add 1.9.5
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'net-irc/eggdrop/eggdrop-1.9.5.ebuild')
-rw-r--r-- | net-irc/eggdrop/eggdrop-1.9.5.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/net-irc/eggdrop/eggdrop-1.9.5.ebuild b/net-irc/eggdrop/eggdrop-1.9.5.ebuild new file mode 100644 index 000000000000..a174ad7aeb29 --- /dev/null +++ b/net-irc/eggdrop/eggdrop-1.9.5.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit readme.gentoo-r1 + +MY_P="${PN}-${PV/_rc/rc}" +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}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~riscv ~sparc ~x86" +LICENSE="GPL-2+" +SLOT="0" +IUSE="debug doc 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_configure() { + econf --enable-ipv6 \ + $(use_enable ssl tls) + + emake 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() { + emake 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 +} |