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

Contents of /net-im/centerim/centerim-4.22.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Mar 30 19:49:36 2008 UTC (6 years, 6 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Cleanup.
(Portage version: 2.1.4.4)

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

  ViewVC Help
Powered by ViewVC 1.1.20