summaryrefslogtreecommitdiff
path: root/mail/p5-Mail-IMAPClient2/Makefile
blob: 88bd859fd0b67fee1b13b944f262d26374dbe510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# $NetBSD: Makefile,v 1.2 2008/10/19 19:18:12 he Exp $
#

DISTNAME=	Mail-IMAPClient-2.2.9
PKGNAME=	p5-${DISTNAME:C:-2:2-2:}
PKGREVISION=	1
SVR4_PKGNAME=	p5mic
CATEGORIES=	mail perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=Mail/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://search.cpan.org/~markov/Mail-IMAPClient/
COMMENT=	Perl5 module for talking to RFC-2060 IMAP servers

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=	p5-Digest-HMAC-[0-9]*:../../security/p5-Digest-HMAC
DEPENDS+=	p5-File-Temp>=0.18:../../devel/p5-File-Temp
DEPENDS+=	p5-Parse-RecDescent>=1.94:../../devel/p5-Parse-RecDescent
DEPENDS+=	p5-Test-Pod-[0-9]*:../../devel/p5-Test-Pod

PERL5_PACKLIST=		auto/Mail/IMAPClient2/.packlist

SUBST_CLASSES+=         conf
SUBST_STAGE.conf=       pre-configure
SUBST_FILES.conf=	BodyStructure/BodyStructure.pm \
			BodyStructure/Makefile.PL \
			BodyStructure/Parse/Makefile.PL \
			BodyStructure/Parse/Parse.grammar_new \
			BodyStructure/Parse/Parse.grammar_old \
			BodyStructure/Parse/Parse.pod \
			BodyStructure/Parse/t/parse.t \
			BodyStructure/t/bodystructure.t \
			Changes \
			IMAPClient.pm \
			IMAPClient.pod \
			INSTALL \
			INSTALL_perl5.80 \
			MANIFEST \
			Makefile.PL \
			MessageSet/Makefile.PL \
			MessageSet/MessageSet.pm \
			MessageSet/t/range.t \
			README \
			Thread/Makefile.PL \
			Thread/Thread.pod \
			Thread/t/thread.t \
			Todo \
			examples/build_dist.pl \
			examples/build_ldif.pl \
			examples/cleanTest.pl \
			examples/copy_folder.pl \
			examples/cyrus_expire.pl \
			examples/cyrus_expunge.pl \
			examples/find_dup_msgs.pl \
			examples/imap_to_mbox.pl \
			examples/imtestExample.pl \
			examples/migrate_mail2.pl \
			examples/migrate_mbox.pl \
			examples/populate_mailbox.pl \
			examples/sharedFolder.pl \
			t/basic.t \
			t/cram-md5.t
SUBST_SED.conf=         -e "s:IMAPClient:IMAPClient2:g"
SUBST_MESSAGE.conf=     Replacing IMAPClient with IMAPClient2

pre-configure:
	mv ${WRKSRC}/IMAPClient.pm ${WRKSRC}/IMAPClient2.pm
	mv ${WRKSRC}/IMAPClient.pod ${WRKSRC}/IMAPClient2.pod
	cd ${WRKSRC} && ${TOUCH} ${TOUCH_FLAGS} test.txt

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"