annotate mail-client/alpine/alpine-1.10.ebuild @ 12:a9058d20d58e

update to 12.2.2
author holger@hoho.dyndns.org
date Wed, 09 Apr 2008 18:03:44 +0200
parents 7985ba427c7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
1 # Copyright 1999-2007 Gentoo Foundation
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
3 # $Header: $
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
4
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
5 inherit eutils
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
6
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
7 DESCRIPTION="alternativly licensed pine with full UTF-8 support"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
8 HOMEPAGE="http://www.washington.edu/alpine/
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
9 http://staff.washington.edu/chappa/alpine/"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
10 SRC_URI="ftp://ftp.cac.washington.edu/alpine/${P}.tar.bz2
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
11 chappa? ( http://staff.washington.edu/chappa/alpine/patches/${P}/all.patch.gz )"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
12
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
13 LICENSE="Apache-2.0"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
14 SLOT="0"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
15 KEYWORDS="~x86 ~amd64 ~x86-fbsd"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
16 IUSE="chappa doc kerberos ldap nls spell ssl threads userland_BSD onlyalpine passfile"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
17
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
18 DEPEND="virtual/pam
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
19 >=sys-libs/ncurses-5.1
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
20 ssl? ( dev-libs/openssl )
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
21 ldap? ( net-nds/openldap )
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
22 kerberos? ( app-crypt/mit-krb5 )
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
23 spell? ( app-text/aspell )"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
24 RDEPEND="${DEPEND}
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
25 app-misc/mime-types
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
26 !onlyalpine? ( !app-editors/pico )
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
27 !onlyalpine? ( !mail-client/pine )
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
28 !<=net-mail/uw-imap-2004g"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
29
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
30 maildir_warn() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
31 einfo
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
32 einfo "This build of alpine has Maildir support built in as"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
33 einfo "part of the chappa-all patch."
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
34 einfo
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
35 einfo "If you have a maildir at ~/Maildir it will be your"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
36 einfo "default INBOX. The path may be changed with the"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
37 einfo "\"maildir-location\" setting in alpine."
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
38 einfo
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
39 einfo "To use /var/spool/mail INBOX again, set"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
40 einfo "\"disable-these-drivers=md\" in your .pinerc file."
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
41 einfo
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
42 einfo "Alternately, you might want to read following webpage, which explains how to"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
43 einfo "use multiple mailboxes simultaneously:"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
44 einfo
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
45 einfo "http://www.math.washington.edu/~chappa/pine/pine-info/collections/incoming-folders/"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
46 einfo
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
47 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
48
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
49 pkg_setup() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
50 if use chappa; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
51 maildir_warn
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
52 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
53 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
54
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
55 src_unpack() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
56 unpack ${A}
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
57 if use chappa; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
58 epatch ${WORKDIR}/all.patch
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
59 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
60 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
61
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
62 src_compile() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
63 local myconf="--without-tcl --with-system-pinerc=/etc/pine.conf --with-system-fixed-pinerc=/etc/pine.conf.fixed"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
64 if use ssl; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
65 myconf="${myconf} --with-ssl-certs-dir=/etc/ssl/certs"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
66 else
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
67 myconf="${myconf} --without-ssl"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
68 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
69 if use ldap; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
70 myconf="${myconf}"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
71 else
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
72 myconf="${myconf} --without-ldap"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
73 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
74 if user passfile; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
75 myconf="${myconf} --with-passfile=.pinepwd"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
76 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
77 if use kerberos; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
78 myconf="${myconf}"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
79 else
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
80 myconf="${myconf} --without-krb5"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
81 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
82 if use threads; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
83 myconf="${myconf}"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
84 else
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
85 myconf="${myconf} --without-pthread"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
86 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
87 if use spell; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
88 myconf="${myconf} --with-interactive-spellcheck=/usr/bin/aspell"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
89 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
90 if ! use nls; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
91 myconf="${myconf} --disable-nls"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
92 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
93 econf ${myconf} || die "configure problem"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
94 if use userland_BSD; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
95 make
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
96 else
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
97 emake
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
98 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
99 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
100
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
101 src_install() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
102 if use onlyalpine; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
103 dobin alpine/alpine
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
104 doman doc/alpine.1
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
105 else
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
106 if use userland_BSD; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
107 make DESTDIR=${D} install
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
108 else
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
109 emake DESTDIR=${D} install
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
110 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
111
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
112 doman doc/rpdump.1 doc/rpload.1
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
113 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
114
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
115 dodoc NOTICE
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
116 if use chappa; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
117 dodoc README.maildir
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
118 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
119
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
120 if use doc; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
121 dodoc README doc/brochure.txt doc/tech-notes.txt
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
122 docinto imap
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
123 dodoc imap/docs/*.txt imap/docs/CONFIG imap/docs/RELNOTES
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
124
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
125 docinto imap/rfc
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
126 dodoc imap/docs/rfc/*.txt
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
127
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
128 docinto html/tech-notes
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
129 dohtml -r doc/tech-notes/
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
130 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
131 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
132
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
133 pkg_postinst() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
134 elog
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
135 if use spell; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
136 elog "In order to use spell checking"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
137 elog " emerge app-dicts/aspell-\<your_langs\>"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
138 elog "and setup alpine with:"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
139 elog " Speller = /usr/bin/aspell -c"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
140 elog
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
141 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
142 }