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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Dec 8 20:51:13 2007 UTC (6 years, 8 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.1.3.19)

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_p20070625.ebuild,v 1.4 2007/11/03 09:28:28 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 jpeg"
9
10 DESCRIPTION="CenterIM is a fork of CenterICQ - a ncurses ICQ/Yahoo!/AIM/IRC/MSN/Jabber/GaduGadu/RSS/LiveJournal Client"
11 if [[ ${PV} = *_p* ]] # is this a snaphot?
12 then
13 SRC_URI="http://www.centerim.org/download/snapshots/${PN}-${PV/*_p/}.tar.gz"
14 else
15 SRC_URI="http://www.centerim.org/download/releases/${P}.tar.gz"
16 fi
17 HOMEPAGE="http://www.centerim.org/"
18 SLOT="0"
19 LICENSE="GPL-2"
20 KEYWORDS="~x86 ~amd64"
21
22 DEPEND=">=sys-libs/ncurses-5.2
23 bidi? ( dev-libs/fribidi )
24 ssl? ( >=dev-libs/openssl-0.9.6g )
25 jpeg? ( media-libs/jpeg )
26 jabber? ( crypt? ( >=app-crypt/gpgme-1.0.2 ) )
27 msn? (
28 net-misc/curl
29 dev-libs/openssl
30 )"
31
32 RDEPEND="${DEPEND}
33 !net-im/centericq
34 nls? ( sys-devel/gettext )"
35
36 S="${WORKDIR}"/${P/_p*}
37
38 check_protocol_iuse() {
39 local flag
40
41 for flag in ${PROTOCOL_IUSE}
42 do
43 use ${flag} && return 0
44 done
45
46 return 1
47 }
48
49 pkg_setup() {
50 if ! check_protocol_iuse
51 then
52 eerror
53 eerror "Please activate at least one of the following protocol USE flags:"
54 eerror "${PROTOCOL_IUSE}"
55 eerror
56 die "Please activate at least one protocol USE flag!"
57 fi
58
59 if use msn && ! built_with_use net-misc/curl ssl
60 then
61 eerror
62 eerror "As of right now, the msn use flags requires curl to be built"
63 eerror "with SSL support. Make sure ssl is in your USE flags and"
64 eerror "re-emerge net-misc/curl."
65 eerror
66 die "net-misc/curl dependencie issue"
67 fi
68
69 if use gadu && ! use jpeg
70 then
71 ewarn
72 ewarn "You need jpeg support to be able to register Gadu-Gadu accounts!"
73 ewarn
74 fi
75 }
76
77 src_compile() {
78 econf \
79 $(use_with ssl) \
80 $(use_enable aim) \
81 $(use_with bidi fribidi) \
82 $(use_with jpeg libjpeg) \
83 $(use_enable gadu gg) \
84 $(use_enable icq) \
85 $(use_enable irc) \
86 $(use_enable jabber) \
87 $(use_enable lj) \
88 $(use_enable msn) \
89 $(use_enable nls locales-fix) \
90 $(use_enable nls) \
91 $(use_enable rss) \
92 $(use_enable yahoo) \
93 || die "econf failed"
94 emake || die "emake failed"
95 }
96
97 src_install () {
98 emake DESTDIR="${D}" install || die "emake install failed"
99
100 dodoc AUTHORS ChangeLog FAQ README THANKS TODO
101 }

  ViewVC Help
Powered by ViewVC 1.1.20