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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jun 19 07:25:37 2012 UTC (2 years, 9 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Failed to built for me on stable so remove.

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

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

  ViewVC Help
Powered by ViewVC 1.1.20