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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 2 21:03:56 2009 UTC (5 years, 7 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Cleanup.
(Portage version: 2.2_rc32/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20