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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20