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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Nov 4 22:41:01 2012 UTC (20 months, 3 weeks ago) by swegener
Branch: MAIN
Changes since 1.7: +2 -2 lines
Require old version of otr for API compability, bug #438956.

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 0x64D4CF24)

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.10.ebuild,v 1.7 2012/06/19 07:28:21 scarabeus Exp $
4
5 EAPI="2"
6
7 inherit eutils
8
9 PROTOCOL_IUSE="+aim gadu +icq +irc +jabber lj +msn rss +yahoo"
10 IUSE="${PROTOCOL_IUSE} bidi nls ssl crypt jpeg otr"
11
12 DESCRIPTION="CenterIM is a ncurses ICQ/Yahoo!/AIM/IRC/MSN/Jabber/GaduGadu/RSS/LiveJournal Client"
13 if [[ ${PV} = *_p* ]] # is this a snaphot?
14 then
15 SRC_URI="http://www.centerim.org/download/snapshots/${PN}-${PV/*_p/}.tar.gz"
16 elif [[ ${PV} = *.*.*.* ]] # is this a mobshot?
17 then
18 SRC_URI="http://www.centerim.org/download/mobshots/${P}.tar.gz"
19 else
20 SRC_URI="http://www.centerim.org/download/releases/${P}.tar.gz"
21 fi
22 HOMEPAGE="http://www.centerim.org/"
23 SLOT="0"
24 LICENSE="GPL-2"
25 KEYWORDS="amd64 x86 ~x86-fbsd"
26
27 DEPEND=">=sys-libs/ncurses-5.2
28 bidi? ( dev-libs/fribidi )
29 ssl? ( >=dev-libs/openssl-0.9.6g )
30 jpeg? ( virtual/jpeg )
31 jabber? (
32 otr? ( <net-libs/libotr-4 )
33 crypt? ( >=app-crypt/gpgme-1.0.2 )
34 )
35 msn? (
36 || (
37 >=net-misc/curl-7.25.0-r1[ssl]
38 >=net-misc/curl-7.19.6[ssl]
39 >=net-misc/curl-7.19.6[gnutls]
40 >=net-misc/curl-7.19.6[nss]
41 )
42 )
43 yahoo? (
44 || (
45 >=net-misc/curl-7.25.0-r1[ssl]
46 >=net-misc/curl-7.19.6[ssl]
47 >=net-misc/curl-7.19.6[gnutls]
48 >=net-misc/curl-7.19.6[nss]
49 )
50 )"
51
52 RDEPEND="${DEPEND}
53 nls? ( sys-devel/gettext )"
54
55 S="${WORKDIR}"/${P/_p*}
56
57 check_protocol_iuse() {
58 local flag
59
60 for flag in ${PROTOCOL_IUSE}
61 do
62 use ${flag#+} && return 0
63 done
64
65 return 1
66 }
67
68 pkg_setup() {
69 if ! check_protocol_iuse
70 then
71 eerror
72 eerror "Please activate at least one of the following protocol USE flags:"
73 eerror "${PROTOCOL_IUSE//+}"
74 eerror
75 die "Please activate at least one protocol USE flag!"
76 fi
77
78 if use otr && ! use jabber
79 then
80 ewarn
81 ewarn "Support for OTR is only supported with Jabber!"
82 ewarn
83 fi
84
85 if use gadu && ! use jpeg
86 then
87 ewarn
88 ewarn "You need jpeg support to be able to register Gadu-Gadu accounts!"
89 ewarn
90 fi
91 }
92
93 src_prepare() {
94 epatch "${FILESDIR}"/${P}-gcc46.patch
95
96 # Don't execute git commands, bug #228151
97 cat >"${S}"/misc/git-version-gen <<-EOF
98 #!/bin/sh
99 echo -n "${PVR}"
100 EOF
101 }
102
103 src_configure() {
104 econf \
105 $(use_with ssl) \
106 $(use_enable aim) \
107 $(use_with bidi fribidi) \
108 $(use_with jpeg libjpeg) \
109 $(use_with otr libotr) \
110 $(use_enable gadu gg) \
111 $(use_enable icq) \
112 $(use_enable irc) \
113 $(use_enable jabber) \
114 $(use_enable lj) \
115 $(use_enable msn) \
116 $(use_enable nls locales-fix) \
117 $(use_enable nls) \
118 $(use_enable rss) \
119 $(use_enable yahoo) \
120 || die "econf failed"
121 }
122
123 src_install () {
124 emake DESTDIR="${D}" install || die "emake install failed"
125
126 dodoc AUTHORS ChangeLog FAQ README THANKS TODO
127 }

  ViewVC Help
Powered by ViewVC 1.1.20