diff options
author | 2005-11-25 14:57:33 +0000 | |
---|---|---|
committer | 2005-11-25 14:57:33 +0000 | |
commit | bfd390afc8b37c0a901065007c70f343aaa42d1c (patch) | |
tree | f7135c266bcc2eed501a32dba590d3abed3c2808 /net-im/centericq/centericq-4.21.0-r1.ebuild | |
parent | Stable on amd64, bug 112842. (diff) | |
download | gentoo-2-bfd390afc8b37c0a901065007c70f343aaa42d1c.tar.gz gentoo-2-bfd390afc8b37c0a901065007c70f343aaa42d1c.tar.bz2 gentoo-2-bfd390afc8b37c0a901065007c70f343aaa42d1c.zip |
add patches to close bug #100519
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'net-im/centericq/centericq-4.21.0-r1.ebuild')
-rw-r--r-- | net-im/centericq/centericq-4.21.0-r1.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/net-im/centericq/centericq-4.21.0-r1.ebuild b/net-im/centericq/centericq-4.21.0-r1.ebuild new file mode 100644 index 000000000000..ee4d0d58a090 --- /dev/null +++ b/net-im/centericq/centericq-4.21.0-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/centericq/centericq-4.21.0-r1.ebuild,v 1.1 2005/11/25 14:57:33 wschlich Exp $ + +inherit eutils + +IUSE="bidi nls ssl crypt icq jabber aim msn yahoo irc rss lj" + +DESCRIPTION="A ncurses ICQ/Yahoo!/AIM/IRC/MSN/Jabber/GaduGadu/RSS/LiveJournal Client" +SRC_URI="http://thekonst.net/download/${P}.tar.bz2" +HOMEPAGE="http://thekonst.net/en/centericq" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +DEPEND="virtual/libc + >=sys-libs/ncurses-5.2 + bidi? ( dev-libs/fribidi ) + jabber? ( crypt? ( >=app-crypt/gpgme-1.0.2 ) ) + ssl? ( >=dev-libs/openssl-0.9.6g ) + msn? ( net-misc/curl )" + +RDEPEND="${DEPEND} + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd ${S} + + use amd64 && epatch ${FILESDIR}/${PN}-amd64.patch + + # fix bug #100519 + epatch ${FILESDIR}/${P}-icq-short-read.diff.bz2 + epatch ${FILESDIR}/${P}-memory-handling.diff.bz2 +} + +src_compile() { + local myopts="--with-gnu-ld --disable-konst" + use nls >&/dev/null && myopts="${myopts} --enable-locales-fix" || myopts="${myopts} --disable-nls" + use bidi >&/dev/null && myopts="${myopts} --with-fribidi" + use ssl >&/dev/null && myopts="${myopts} --with-ssl" + use ssl >&/dev/null && myopts="${myopts} --with-ssl" + + use icq >&/dev/null || myopts="${myopts} --disable-icq" + use jabber >&/dev/null && { + use crypt >&/dev/null || myopts="${myopts} --without-gpgme" + } || myopts="${myopts} --disable-jabber" + use aim >&/dev/null || myopts="${myopts} --disable-aim" + use msn >&/dev/null || myopts="${myopts} --disable-msn" + if use msn >&/dev/null && ! use ssl >&/dev/null; then + eerror "" + eerror "USE flag problem" + eerror "================" + eerror "'msn' USE flag detected, but 'ssl' USE flag missing:" + eerror "MSN support needs libcurl with SSL support." + eerror "" + die "Please either activate the 'ssl' USE flag or deactivate the 'msn' USE flag for net-im/centericq" + fi + use yahoo >&/dev/null || myopts="${myopts} --disable-yahoo" + use irc >&/dev/null || myopts="${myopts} --disable-irc" + use rss >&/dev/null || myopts="${myopts} --disable-rss" + use lj >&/dev/null || myopts="${myopts} --disable-lj" + + # Re-run autconf and automake to keep from barfing. This is a hack. + einfo "Running autoconf to fix configure scripts" + for i in $(ls -1 {.,*-*}/configure.in); do + IFS='/'; set -- ${i}; unset IFS; dir="${1}" + einfo "-> dir: ${dir}" + pushd ${dir} >/dev/null && WANT_AUTOCONF=2.5 autoconf && popd >/dev/null + done + + econf ${myopts} || die "Configure failed" + emake || die "Compilation failed" +} + +src_install () { + einstall || die "Installation failed" + + dodoc ABOUT-NLS AUTHORS ChangeLog COPYING FAQ README THANKS TODO +} |