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