blob: d4c34093e01c4880b6c343b301ec8c244531346d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-client/mahogany/mahogany-0.65.ebuild,v 1.3 2005/05/06 11:38:14 swegener Exp $
inherit wxwidgets
DESCRIPTION="Highly customizable powerful mail client"
SRC_URI="mirror://sourceforge/mahogany/${P}.tar.bz2"
HOMEPAGE="http://mahogany.sourceforge.net"
KEYWORDS="~x86"
SLOT="0"
LICENSE="mahogany"
IUSE="python ssl static nls debug doc"
RDEPEND="=x11-libs/wxGTK-2.4*
python? ( >=dev-lang/python-1.5
<dev-lang/python-2.2 )
ssl? ( dev-libs/openssl )"
DEPEND="${RDEPEND}
doc? ( dev-tex/latex2html )"
src_compile() {
local myconf
need-wxwidgets gtk || die "Emerge wxGTK with -no_wxgtk1 in USE"
myconf="--with-wx-config=${WX_CONFIG_NAME}"
if use python; then
myconf="${myconf} --with-python="
use static && myconf="${myconf}static" || myconf="${myconf}dynamic"
else
myconf="--with-python=none"
fi
use static && myconf="${myconf} --with-modules=static"
use nls || myconf="${myconf} --disable-nls"
use debug && myconf="${myconf} --enable-debug"
econf ${myconf} || die
emake || die
}
src_install() {
addwrite /var/cache/fonts
make DESTDIR=${D}/usr install_bin || die
if use nls; then
make DESTDIR=${D}/usr install_locale
fi
if use doc; then
make DESTDIR=${D}/usr install_doc || die
fi
dodir /etc
cp extra/install/M.conf ${D}/etc
dodoc COPYING CREDITS CHANGES INSTALL README
if use doc; then
cd ${D}/usr/share/Mahogany/doc
dodoc Pdf/*
dohtml -r Manual HackersGuide
rm -rf COPYING CREDITS CHANGES INSTALL README Pdf Manual HackersGuide
fi
}
|