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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Mar 12 13:29:58 2011 UTC (3 years, 6 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Cleanup.

(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.8.ebuild,v 1.7 2011/02/26 19:41:09 signals Exp $
4
5 EAPI="2"
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 ~x86-fbsd"
21
22 DEPEND=">=sys-libs/ncurses-5.2
23 bidi? ( dev-libs/fribidi )
24 ssl? ( >=dev-libs/openssl-0.9.6g )
25 jpeg? ( virtual/jpeg )
26 jabber? (
27 otr? ( net-libs/libotr )
28 crypt? ( >=app-crypt/gpgme-1.0.2 )
29 )
30 msn? (
31 || (
32 >=net-misc/curl-7.19.6[ssl]
33 >=net-misc/curl-7.19.6[gnutls]
34 >=net-misc/curl-7.19.6[nss]
35 )
36 )
37 yahoo? (
38 || (
39 >=net-misc/curl-7.19.6[ssl]
40 >=net-misc/curl-7.19.6[gnutls]
41 >=net-misc/curl-7.19.6[nss]
42 )
43 )"
44
45 RDEPEND="${DEPEND}
46 nls? ( sys-devel/gettext )"
47
48 S="${WORKDIR}"/${P/_p*}
49
50 check_protocol_iuse() {
51 local flag
52
53 for flag in ${PROTOCOL_IUSE}
54 do
55 use ${flag#+} && return 0
56 done
57
58 return 1
59 }
60
61 pkg_setup() {
62 if ! check_protocol_iuse
63 then
64 eerror
65 eerror "Please activate at least one of the following protocol USE flags:"
66 eerror "${PROTOCOL_IUSE//+}"
67 eerror
68 die "Please activate at least one protocol USE flag!"
69 fi
70
71 if use otr && ! use jabber
72 then
73 ewarn
74 ewarn "Support for OTR is only supported with Jabber!"
75 ewarn
76 fi
77
78 if use gadu && ! use jpeg
79 then
80 ewarn
81 ewarn "You need jpeg support to be able to register Gadu-Gadu accounts!"
82 ewarn
83 fi
84 }
85
86 src_prepare() {
87 default
88
89 # Don't execute git commands, bug #228151
90 cat >"${S}"/misc/git-version-gen <<-EOF
91 #!/bin/sh
92 echo -n "${PVR}"
93 EOF
94 }
95
96 src_configure() {
97 econf \
98 $(use_with ssl) \
99 $(use_enable aim) \
100 $(use_with bidi fribidi) \
101 $(use_with jpeg libjpeg) \
102 $(use_with otr libotr) \
103 $(use_enable gadu gg) \
104 $(use_enable icq) \
105 $(use_enable irc) \
106 $(use_enable jabber) \
107 $(use_enable lj) \
108 $(use_enable msn) \
109 $(use_enable nls locales-fix) \
110 $(use_enable nls) \
111 $(use_enable rss) \
112 $(use_enable yahoo) \
113 || die "econf failed"
114 }
115
116 src_install () {
117 emake DESTDIR="${D}" install || die "emake install failed"
118
119 dodoc AUTHORS ChangeLog FAQ README THANKS TODO
120 }

  ViewVC Help
Powered by ViewVC 1.1.20