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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jan 1 14:10:22 2008 UTC (6 years, 7 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Include a linking fix for bidi support, bug #200900. Cleanup.
(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_p20071003.ebuild,v 1.5 2007/11/28 20:08:06 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 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="~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 otr? ( net-libs/libotr )
27 jabber? ( crypt? ( >=app-crypt/gpgme-1.0.2 ) )
28 msn? (
29 net-misc/curl
30 dev-libs/openssl
31 )"
32
33 RDEPEND="${DEPEND}
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_unpack() {
78 unpack ${A}
79 cd "${S}"
80
81 epatch "${FILESDIR}"/${PN}-imotr-config.patch
82 epatch "${FILESDIR}"/${PN}-ack-sbl.patch
83 }
84
85 src_compile() {
86 econf \
87 $(use_with ssl) \
88 $(use_enable aim) \
89 $(use_with bidi fribidi) \
90 $(use_with jpeg libjpeg) \
91 $(use_with otr libotr) \
92 $(use_enable gadu gg) \
93 $(use_enable icq) \
94 $(use_enable irc) \
95 $(use_enable jabber) \
96 $(use_enable lj) \
97 $(use_enable msn) \
98 $(use_enable nls locales-fix) \
99 $(use_enable nls) \
100 $(use_enable rss) \
101 $(use_enable yahoo) \
102 || die "econf failed"
103 emake || die "emake failed"
104 }
105
106 src_install () {
107 emake DESTDIR="${D}" install || die "emake install failed"
108
109 dodoc AUTHORS ChangeLog FAQ README THANKS TODO
110 }

  ViewVC Help
Powered by ViewVC 1.1.20