/[gentoo-x86]/net-im/centerim/centerim-4.22.3-r1.ebuild
Gentoo

Contents of /net-im/centerim/centerim-4.22.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jun 28 11:36:20 2008 UTC (5 years, 9 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Cleanup.
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc8 x86_64)

1 # Copyright 1999-2008 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.3-r1.ebuild,v 1.2 2008/03/28 21:16:00 maekke 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 otr"
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="amd64 x86"
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? (
27 otr? ( net-libs/libotr )
28 crypt? ( >=app-crypt/gpgme-1.0.2 )
29 )
30 msn? (
31 net-misc/curl
32 dev-libs/openssl
33 )"
34
35 RDEPEND="${DEPEND}
36 nls? ( sys-devel/gettext )"
37
38 S="${WORKDIR}"/${P/_p*}
39
40 check_protocol_iuse() {
41 local flag
42
43 for flag in ${PROTOCOL_IUSE}
44 do
45 use ${flag} && return 0
46 done
47
48 return 1
49 }
50
51 pkg_setup() {
52 if ! check_protocol_iuse
53 then
54 eerror
55 eerror "Please activate at least one of the following protocol USE flags:"
56 eerror "${PROTOCOL_IUSE}"
57 eerror
58 die "Please activate at least one protocol USE flag!"
59 fi
60
61 if use msn && ! built_with_use net-misc/curl ssl
62 then
63 eerror
64 eerror "As of right now, the msn use flags requires curl to be built"
65 eerror "with SSL support. Make sure ssl is in your USE flags and"
66 eerror "re-emerge net-misc/curl."
67 eerror
68 die "net-misc/curl dependencie issue"
69 fi
70
71 if use otr && ! use jabber
72 then
73 eerror
74 eerror "Support for OTR is only supported with Jabber!"
75 eerror
76 die "Support for OTR is only supported with Jabber!"
77 fi
78
79 if use gadu && ! use jpeg
80 then
81 ewarn
82 ewarn "You need jpeg support to be able to register Gadu-Gadu accounts!"
83 ewarn
84 fi
85 }
86
87 src_unpack() {
88 unpack ${A}
89 cd "${S}"
90
91 epatch "${FILESDIR}"/${P}-url-escape.patch
92 }
93
94 src_compile() {
95 econf \
96 $(use_with ssl) \
97 $(use_enable aim) \
98 $(use_with bidi fribidi) \
99 $(use_with jpeg libjpeg) \
100 $(use_with otr libotr) \
101 $(use_enable gadu gg) \
102 $(use_enable icq) \
103 $(use_enable irc) \
104 $(use_enable jabber) \
105 $(use_enable lj) \
106 $(use_enable msn) \
107 $(use_enable nls locales-fix) \
108 $(use_enable nls) \
109 $(use_enable rss) \
110 $(use_enable yahoo) \
111 || die "econf failed"
112 emake || die "emake failed"
113 }
114
115 src_install () {
116 emake DESTDIR="${D}" install || die "emake install failed"
117
118 dodoc AUTHORS ChangeLog FAQ README THANKS TODO
119 }

  ViewVC Help
Powered by ViewVC 1.1.20