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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Jan 22 17:51:55 2009 UTC (5 years, 7 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Cleanup.
(Portage version: 2.2_rc23/cvs/Linux x86_64)

1 # Copyright 1999-2008 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.5.ebuild,v 1.7 2008/11/07 23:20:28 swegener Exp $
4
5 WANT_AUTOMAKE="none"
6
7 inherit eutils autotools
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 fork of CenterICQ - 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 else
17 SRC_URI="http://www.centerim.org/download/releases/${P}.tar.gz"
18 fi
19 HOMEPAGE="http://www.centerim.org/"
20 SLOT="0"
21 LICENSE="GPL-2"
22 KEYWORDS="amd64 x86 ~x86-fbsd"
23
24 DEPEND=">=sys-libs/ncurses-5.2
25 bidi? ( dev-libs/fribidi )
26 ssl? ( >=dev-libs/openssl-0.9.6g )
27 jpeg? ( media-libs/jpeg )
28 jabber? (
29 otr? ( net-libs/libotr )
30 crypt? ( >=app-crypt/gpgme-1.0.2 )
31 )
32 msn? (
33 net-misc/curl
34 dev-libs/openssl
35 )"
36
37 RDEPEND="${DEPEND}
38 nls? ( sys-devel/gettext )"
39
40 S="${WORKDIR}"/${P/_p*}
41
42 check_protocol_iuse() {
43 local flag
44
45 for flag in ${PROTOCOL_IUSE}
46 do
47 use ${flag} && return 0
48 done
49
50 return 1
51 }
52
53 pkg_setup() {
54 if ! check_protocol_iuse
55 then
56 eerror
57 eerror "Please activate at least one of the following protocol USE flags:"
58 eerror "${PROTOCOL_IUSE}"
59 eerror
60 die "Please activate at least one protocol USE flag!"
61 fi
62
63 if use msn && ! built_with_use net-misc/curl ssl
64 then
65 eerror
66 eerror "As of right now, the msn use flags requires curl to be built"
67 eerror "with SSL support. Make sure ssl is in your USE flags and"
68 eerror "re-emerge net-misc/curl."
69 eerror
70 die "net-misc/curl dependencie issue"
71 fi
72
73 if use otr && ! use jabber
74 then
75 eerror
76 eerror "Support for OTR is only supported with Jabber!"
77 eerror
78 die "Support for OTR is only supported with Jabber!"
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_unpack() {
90 unpack ${A}
91 cd "${S}"
92
93 epatch "${FILESDIR}"/centerim-4.22.5-libotr-configure.patch
94
95 eautoreconf
96
97 # Don't execute git commands, bug #228151
98 cat >"${S}"/misc/git-version-gen <<-EOF
99 #!/bin/sh
100 echo -n "${PVR}"
101 EOF
102 }
103
104 src_compile() {
105 econf \
106 $(use_with ssl) \
107 $(use_enable aim) \
108 $(use_with bidi fribidi) \
109 $(use_with jpeg libjpeg) \
110 $(use_with otr libotr) \
111 $(use_enable gadu gg) \
112 $(use_enable icq) \
113 $(use_enable irc) \
114 $(use_enable jabber) \
115 $(use_enable lj) \
116 $(use_enable msn) \
117 $(use_enable nls locales-fix) \
118 $(use_enable nls) \
119 $(use_enable rss) \
120 $(use_enable yahoo) \
121 || die "econf failed"
122 emake || die "emake failed"
123 }
124
125 src_install () {
126 emake DESTDIR="${D}" install || die "emake install failed"
127
128 dodoc AUTHORS ChangeLog FAQ README THANKS TODO
129 }

  ViewVC Help
Powered by ViewVC 1.1.20