/[gentoo-x86]/net-im/mcabber/mcabber-0.9.4.ebuild
Gentoo

Contents of /net-im/mcabber/mcabber-0.9.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Nov 19 23:07:59 2007 UTC (10 years, 3 months ago) by wschlich
Branch: MAIN
version bump
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 DESCRIPTION="A small Jabber console client with various features, like MUC, SSL, PGP"
6 HOMEPAGE="http://www.lilotux.net/~mikael/mcabber/"
7 SRC_URI="http://www.lilotux.net/~mikael/${PN}/files/${P}.tar.bz2"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
12
13 IUSE="crypt spell ssl"
14
15 LANGS="de en fr nl pl uk ru"
16 # localized help versions are installed only, when LINGUAS var is set
17 for i in ${LANGS}; do
18 IUSE="${IUSE} linguas_${i}"
19 done;
20
21 DEPEND="ssl? ( >=dev-libs/openssl-0.9.7-r1 )
22 crypt? ( >=app-crypt/gpgme-1.0.0 )
23 spell? ( app-text/aspell )
24 >=dev-libs/glib-2.0.0
25 sys-libs/ncurses"
26
27 src_compile() {
28 econf \
29 $(use_enable crypt gpgme) \
30 $(use_enable spell aspell) \
31 $(use_with ssl) \
32 || die "econf failed"
33
34 emake || die "emake failed"
35 }
36
37 src_install() {
38 make install DESTDIR=${D} || die "make install failed"
39 # clean unneeded language documentation
40 for i in ${LANGS}; do
41 ! use linguas_${i} && rm -rf ${D}/usr/share/${PN}/help/${i}
42 done
43
44 dodoc AUTHORS ChangeLog NEWS README TODO mcabberrc.example
45 dodoc doc/README_PGP.txt
46
47 # contrib themes
48 insinto /usr/share/${PN}/themes
49 doins ${S}/contrib/themes/*
50
51 # contrib generic scripts
52 exeinto /usr/share/${PN}/scripts
53 doexe ${S}/contrib/*.{pl,py,rb}
54
55 # contrib event scripts
56 exeinto /usr/share/${PN}/scripts/events
57 doexe ${S}/contrib/events/*
58 }
59
60 pkg_postinst() {
61 elog
62 elog "MCabber requires you to create a subdirectory .mcabber in your home"
63 elog "directory and to place a configuration file there."
64 elog "An example mcabberrc was installed as part of the documentation."
65 elog "To create a new mcabberrc based on the example mcabberrc, execute the"
66 elog "following commands:"
67 elog
68 elog " mkdir -p ~/.mcabber"
69 elog " bzcat ${ROOT}usr/share/doc/${PF}/mcabberrc.example.bz2 >~/.mcabber/mcabberrc"
70 elog
71 elog "Then edit ~/.mcabber/mcabberrc with your favorite editor."
72 elog
73 elog "As of MCabber version 0.8.2, there is also a wizard script"
74 elog "with which you can create all necessary configuration options."
75 elog "To use it, simply execute the following command:"
76 elog
77 elog " ${ROOT}usr/share/${PN}/scripts/mcwizz.rb"
78 elog
79 elog "See the CONFIGURATION FILE and FILES sections of the mcabber"
80 elog "manual page (section 1) for more information."
81 elog
82 elog "From version 0.9.0 on, MCabber supports PGP encryption of messages."
83 elog "See README_PGP.txt for details."
84 elog
85 elog "Check out ${ROOT}usr/share/${PN} for contributed themes and event scripts."
86 elog
87 }

  ViewVC Help
Powered by ViewVC 1.1.20