/[gentoo-x86]/net-im/centerim/centerim-4.22.1_p20070618.ebuild
Gentoo

Contents of /net-im/centerim/centerim-4.22.1_p20070618.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Oct 7 15:25:05 2007 UTC (6 years, 10 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, bug #194912.
(Portage version: 2.1.3.12)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/centerim/centerim-4.22.1_p20070618.ebuild,v 1.1 2007/08/07 20:13:12 swegener Exp $
4
5 inherit eutils
6
7 PROTOCOL_IUSE="aim gadu icq irc jabber lj msn rss yahoo"
8 IUSE="${PROTOCOL_IUSE} bidi nls ssl crypt"
9
10 DESCRIPTION="CenterIM is a fork of CenterICQ - a ncurses ICQ/Yahoo!/AIM/IRC/MSN/Jabber/GaduGadu/RSS/LiveJournal Client"
11 SRC_URI="ftp://ftp.centerim.org/${PN}-${PV/*_p/}.tar.gz"
12 HOMEPAGE="http://www.centerim.org/"
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="~x86 ~amd64"
16
17 DEPEND=">=sys-libs/ncurses-5.2
18 bidi? ( dev-libs/fribidi )
19 ssl? ( >=dev-libs/openssl-0.9.6g )
20 jabber? ( crypt? ( >=app-crypt/gpgme-1.0.2 ) )
21 msn? (
22 net-misc/curl
23 dev-libs/openssl
24 )"
25
26 RDEPEND="${DEPEND}
27 !net-im/centericq
28 nls? ( sys-devel/gettext )"
29
30 S="${WORKDIR}"/${P/_*}
31
32 check_protocol_iuse() {
33 local flag
34
35 for flag in ${PROTOCOL_IUSE}
36 do
37 use ${flag} && return 0
38 done
39
40 return 1
41 }
42
43 pkg_setup() {
44 if ! check_protocol_iuse
45 then
46 eerror
47 eerror "Please activate at least one of the following protocol USE flags:"
48 eerror "${PROTOCOL_IUSE}"
49 eerror
50 die "Please activate at least one protocol USE flag!"
51 fi
52
53 if use msn && ! built_with_use net-misc/curl ssl
54 then
55 eerror
56 eerror "As of right now, the msn use flags requires curl to be built"
57 eerror "with SSL support. Make sure ssl is in your USE flags and"
58 eerror "re-emerge net-misc/curl."
59 eerror
60 die "net-misc/curl dependencie issue"
61 fi
62 }
63
64 src_compile() {
65 econf \
66 $(use_with ssl) \
67 $(use_enable aim) \
68 $(use_with bidi fribidi) \
69 $(use_enable gadu gg) \
70 $(use_enable icq) \
71 $(use_enable irc) \
72 $(use_enable jabber) \
73 $(use_enable lj) \
74 $(use_enable msn) \
75 $(use_enable nls locales-fix) \
76 $(use_enable nls) \
77 $(use_enable rss) \
78 $(use_enable yahoo) \
79 || die "econf failed"
80 emake || die "emake failed"
81 }
82
83 src_install () {
84 emake DESTDIR="${D}" install || die "emake install failed"
85
86 dodoc ABOUT-NLS AUTHORS ChangeLog COPYING FAQ README THANKS TODO
87 }

  ViewVC Help
Powered by ViewVC 1.1.20