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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Aug 3 03:42:55 2003 UTC (11 years, 4 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.53.ebuild,v 1.3 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.bz2
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-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-www/lynx
24 !net-mail/pine"
25
26 S=${WORKDIR}/pine${PV}
27
28 src_unpack() {
29 unpack pine${PV}.tar.bz2
30 cd ${S}
31
32 epatch ${DISTDIR}/${P}
33 epatch ${FILESDIR}/imap-4.7c2-flock+maildir.patch || die
34
35 # fix for Home and End keys
36 epatch ${FILESDIR}/pine-4.21-fixhome.patch || die
37
38 # flock() emulation
39 cp ${FILESDIR}/flock.c ${S}/imap/src/osdep/unix
40
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 # small flock() related fix
53 epatch ${FILESDIR}/pine-4.40-boguswarning.patch || die
54
55 # segfix? not sure what this is for but it still applies
56 epatch ${FILESDIR}/pine-4.31-segfix.patch || die
57
58 # change lock files from 0666 to 0600
59 epatch ${FILESDIR}/pine-4.40-lockfile-perm.patch || die
60
61 # add missing needed time.h includes
62 epatch ${FILESDIR}/imap-2000-time.patch || die
63
64 # gets rid of a call to stripwhitespace()
65 epatch ${FILESDIR}/pine-4.33-whitespace.patch || die
66
67 if [ -n "$DEBUG" ]; then
68 cd ${S}/pine
69 sed -i "s:-g -DDEBUG -DDEBUGJOURNAL:${CFLAGS} -g -DDEBUG -DDEBUGJOURNAL:" \
70 makefile.lnx
71 cd ${S}/pico
72 sed -i "s:-g -DDEBUG:${CFLAGS} -g -DDEBUG:" \
73 makefile.lnx
74 else
75 cd ${S}/pine
76 sed -i "s:-g -DDEBUG -DDEBUGJOURNAL:${CFLAGS}:" \
77 makefile.lnx
78 cd ${S}/pico
79 sed -i "s:-g -DDEBUG:${CFLAGS}:" makefile.lnx
80 fi
81
82 }
83
84 src_compile() {
85 BUILDOPTS=""
86 if [ "`use ssl`" ]
87 then
88 BUILDOPTS="${BUILDOPTS} SSLDIR=/usr SSLTYPE=unix SSLCERTS=/etc/ssl/certs"
89 cd ${S}/imap/src/osdep/unix
90 cp Makefile Makefile.orig
91 sed \
92 -e "s:\$(SSLDIR)/certs:/etc/ssl/certs:" \
93 -e "s:\$(SSLCERTS):/etc/ssl/certs:" \
94 -e "s:-I\$(SSLINCLUDE) ::" \
95 < Makefile.orig > Makefile
96 cd ${S}
97 else
98 BUILDOPTS="${BUILDOPTS} NOSSL"
99 fi
100 if [ "`use ldap`" ]
101 then
102 ./contrib/ldap-setup lnp lnp
103 BUILDOPTS="${BUILDOPTS} LDAPCFLAGS=-DENABLE_LDAP"
104 else
105 BUILDOPTS="${BUILDOPTS} NOLDAP"
106 fi
107
108 ./build ${BUILDOPTS} lnp || die
109 }
110
111 src_install() {
112 into /usr
113 dobin bin/pine bin/pico bin/pilot bin/mtest bin/rpdump bin/rpload
114
115 doman doc/pine.1 doc/pico.1 doc/pilot.1 doc/rpdump.1 doc/rpload.1
116
117 insinto /etc
118 doins doc/mime.types
119 donewins doc/mailcap.unx mailcap
120
121 dodoc CPYRIGHT README doc/brochure.txt doc/tech-notes.txt
122 use mbox || dodoc README.maildir
123
124 docinto imap
125 dodoc imap/docs/*.txt imap/docs/CONFIG imap/docs/RELNOTES
126
127 docinto imap/rfc
128 dodoc imap/docs/rfc/*.txt
129
130 docinto html/tech-notes
131 dodoc doc/tech-notes/*.html
132 }

  ViewVC Help
Powered by ViewVC 1.1.20