/[gentoo-x86]/net-mail/pine-maildir/pine-maildir-4.56.ebuild
Gentoo

Contents of /net-mail/pine-maildir/pine-maildir-4.56.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun May 30 02:57:17 2004 UTC (10 years, 9 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Moving to mail-client/pine-maildir

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-mail/pine-maildir/pine-maildir-4.56.ebuild,v 1.7 2004/04/27 21:01:05 agriffis Exp $
4
5 inherit eutils
6
7 DESCRIPTION="tool for reading, sending and managing electronic messages"
8 HOMEPAGE="http://www.washington.edu/pine/"
9 SRC_URI="ftp://ftp.cac.washington.edu/pine/pine${PV}.tar.bz2
10 mirror://gentoo/${P}"
11
12 LICENSE="PICO"
13 SLOT="0"
14 KEYWORDS="x86 ~ppc sparc"
15 IUSE="mbox ssl ldap"
16
17 DEPEND="virtual/glibc
18 >=sys-apps/sed-4
19 >=sys-libs/ncurses-5.1
20 >=sys-libs/pam-0.72
21 ssl? ( dev-libs/openssl )
22 ldap? ( net-nds/openldap )
23 !net-mail/pine"
24
25 S=${WORKDIR}/pine${PV}
26
27 src_unpack() {
28 unpack pine${PV}.tar.bz2
29 cd ${S}
30
31 epatch ${DISTDIR}/${P}
32 epatch ${FILESDIR}/imap-4.7c2-flock+maildir.patch
33
34 # fix for Home and End keys
35 epatch ${FILESDIR}/pine-4.21-fixhome.patch || die
36
37 # flock() emulation
38 cp ${FILESDIR}/flock.c ${S}/imap/src/osdep/unix
39
40 # pine-4.56 doesn't need this anymore
41 # change /bin/passwd to /usr/bin/passwd
42 #epatch ${FILESDIR}/pine-4.21-passwd.patch || die
43
44 if [ "`use ldap`" ] ; then
45 # link to shared ldap libs instead of static
46 epatch ${FILESDIR}/pine-4.30-ldap.patch || die
47 mkdir ${S}/ldap
48 ln -s /usr/lib ${S}/ldap/libraries
49 ln -s /usr/include ${S}/ldap/include
50 fi
51
52 # Not needed as of pine-4.56
53 # small flock() related fix
54 #epatch ${FILESDIR}/pine-4.40-boguswarning.patch || die
55
56 # segfix? not sure what this is for but it still applies
57 epatch ${FILESDIR}/pine-4.31-segfix.patch || die
58
59 # change lock files from 0666 to 0600
60 epatch ${FILESDIR}/pine-4.40-lockfile-perm.patch || die
61
62 # add missing needed time.h includes
63 epatch ${FILESDIR}/imap-2000-time.patch || die
64
65 # gets rid of a call to stripwhitespace()
66 epatch ${FILESDIR}/pine-4.33-whitespace.patch || die
67
68 if [ "`use debug`" ]; then
69 cd ${S}/pine
70 sed -i "s:-g -DDEBUG -DDEBUGJOURNAL:${CFLAGS} -g -DDEBUG -DDEBUGJOURNAL:" \
71 makefile.lnx
72 cd ${S}/pico
73 sed -i "s:-g -DDEBUG:${CFLAGS} -g -DDEBUG:" \
74 makefile.lnx
75 else
76 cd ${S}/pine
77 sed -i "s:-g -DDEBUG -DDEBUGJOURNAL:${CFLAGS}:" \
78 makefile.lnx
79 cd ${S}/pico
80 sed -i "s:-g -DDEBUG:${CFLAGS}:" makefile.lnx
81 fi
82
83 }
84
85 src_compile() {
86 BUILDOPTS=""
87 if [ "`use ssl`" ]
88 then
89 BUILDOPTS="${BUILDOPTS} SSLDIR=/usr SSLTYPE=unix SSLCERTS=/etc/ssl/certs"
90 cd ${S}/imap/src/osdep/unix
91 cp Makefile Makefile.orig
92 sed \
93 -e "s:\$(SSLDIR)/certs:/etc/ssl/certs:" \
94 -e "s:\$(SSLCERTS):/etc/ssl/certs:" \
95 -e "s:-I\$(SSLINCLUDE) ::" \
96 < Makefile.orig > Makefile
97 cd ${S}
98 else
99 BUILDOPTS="${BUILDOPTS} NOSSL"
100 fi
101 if [ "`use ldap`" ]
102 then
103 ./contrib/ldap-setup lnp lnp
104 BUILDOPTS="${BUILDOPTS} LDAPCFLAGS=-DENABLE_LDAP"
105 else
106 BUILDOPTS="${BUILDOPTS} NOLDAP"
107 fi
108
109 ./build ${BUILDOPTS} lnp || die
110 }
111
112 src_install() {
113 into /usr
114 dobin bin/pine bin/pico bin/pilot bin/mtest bin/rpdump bin/rpload
115
116 doman doc/pine.1 doc/pico.1 doc/pilot.1 doc/rpdump.1 doc/rpload.1
117
118 insinto /etc
119 doins doc/mime.types
120 donewins doc/mailcap.unx mailcap
121
122 dodoc CPYRIGHT README doc/brochure.txt doc/tech-notes.txt
123 use mbox || dodoc README.maildir
124
125 docinto imap
126 dodoc imap/docs/*.txt imap/docs/CONFIG imap/docs/RELNOTES
127
128 docinto imap/rfc
129 dodoc imap/docs/rfc/*.txt
130
131 docinto html/tech-notes
132 dodoc doc/tech-notes/*.html
133 }

  ViewVC Help
Powered by ViewVC 1.1.20