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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Aug 3 03:42:55 2003 UTC (12 years ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
$DEBUG -> use debug

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

  ViewVC Help
Powered by ViewVC 1.1.20