annotate mail-client/alpine/alpine-2.00.ebuild @ 106:ee276ccfcc7b

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