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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Mar 12 13:29:58 2011 UTC (3 years, 8 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.9.49.ebuild,v 1.2 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 elif [[ ${PV} = *.*.*.* ]] # is this a mobshot?
15 then
16 SRC_URI="http://www.centerim.org/download/mobshots/${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 ~x86-fbsd"
24
25 DEPEND=">=sys-libs/ncurses-5.2
26 bidi? ( dev-libs/fribidi )
27 ssl? ( >=dev-libs/openssl-0.9.6g )
28 jpeg? ( virtual/jpeg )
29 jabber? (
30 otr? ( net-libs/libotr )
31 crypt? ( >=app-crypt/gpgme-1.0.2 )
32 )
33 msn? (
34 || (
35 >=net-misc/curl-7.19.6[ssl]
36 >=net-misc/curl-7.19.6[gnutls]
37 >=net-misc/curl-7.19.6[nss]
38 )
39 )
40 yahoo? (
41 || (
42 >=net-misc/curl-7.19.6[ssl]
43 >=net-misc/curl-7.19.6[gnutls]
44 >=net-misc/curl-7.19.6[nss]
45 )
46 )"
47
48 RDEPEND="${DEPEND}
49 nls? ( sys-devel/gettext )"
50
51 S="${WORKDIR}"/${P/_p*}
52
53 check_protocol_iuse() {
54 local flag
55
56 for flag in ${PROTOCOL_IUSE}
57 do
58 use ${flag#+} && return 0
59 done
60
61 return 1
62 }
63
64 pkg_setup() {
65 if ! check_protocol_iuse
66 then
67 eerror
68 eerror "Please activate at least one of the following protocol USE flags:"
69 eerror "${PROTOCOL_IUSE//+}"
70 eerror
71 die "Please activate at least one protocol USE flag!"
72 fi
73
74 if use otr && ! use jabber
75 then
76 ewarn
77 ewarn "Support for OTR is only supported with Jabber!"
78 ewarn
79 fi
80
81 if use gadu && ! use jpeg
82 then
83 ewarn
84 ewarn "You need jpeg support to be able to register Gadu-Gadu accounts!"
85 ewarn
86 fi
87 }
88
89 src_prepare() {
90 default
91
92 # Don't execute git commands, bug #228151
93 cat >"${S}"/misc/git-version-gen <<-EOF
94 #!/bin/sh
95 echo -n "${PVR}"
96 EOF
97 }
98
99 src_configure() {
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 }
118
119 src_install () {
120 emake DESTDIR="${D}" install || die "emake install failed"
121
122 dodoc AUTHORS ChangeLog FAQ README THANKS TODO
123 }

  ViewVC Help
Powered by ViewVC 1.1.20