summaryrefslogtreecommitdiff
path: root/mail/fetchyahoo/Makefile
blob: d7724f6495ceb025e3123d7a871e8a1fa66004d3 (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
# $NetBSD: Makefile,v 1.6 2012/10/03 21:56:23 wiz Exp $
#

DISTNAME=		fetchyahoo-2.11.0
PKGREVISION=		1
CATEGORIES=		mail
MASTER_SITES=		http://fetchyahoo.sourceforge.net/
#MASTER_SITES=	        ${MASTER_SITE_SOURCEFORGE:=fetchyahoo/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://fetchyahoo.sourceforge.net/
#HOMEPAGE=		http://fetchyahoo.twizzler.org
COMMENT=		Download mails from Yahoo webmail into mbox

DEPENDS+=		p5-libwww-[0-9]*:../../www/p5-libwww
DEPENDS+=		p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser
DEPENDS+=		p5-MIME-tools-[0-9]*:../../mail/p5-MIME-tools
DEPENDS+=		{perl>=5.10,p5-Net-[0-9]*}:../../net/p5-Net
DEPENDS+=		p5-Crypt-SSLeay-[0-9]*:../../security/p5-Crypt-SSLeay
DEPENDS+=		p5-URI-[0-9]*:../../www/p5-URI
DEPENDS+=		p5-MailTools-[0-9]*:../../mail/p5-MailTools
DEPENDS+=		p5-IO-stringy-[0-9]*:../../devel/p5-IO-stringy
DEPENDS+=		p5-MIME-Base64-[0-9]*:../../converters/p5-MIME-Base64
DEPENDS+=		p5-Term-ReadKey-[0-9]*:../../devel/p5-Term-ReadKey

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=		perl:run
REPLACE_PERL=		fetchyahoo

NO_BUILD=		yes

EGDIR=			${PREFIX}/share/examples/fetchyahoo
DOCDIR=			${PREFIX}/share/doc/fetchyahoo

CONF_FILES=		${EGDIR}/fetchyahoorc ${PKG_SYSCONFDIR}/fetchyahoorc

SUBST_CLASSES+=		sa2
SUBST_STAGE.sa2=	pre-configure
SUBST_FILES.sa2=	fetchyahoo fetchyahoo.1 INSTALL
SUBST_SED.sa2=		-e s!/etc/fetchyahoorc!${PKG_SYSCONFDIR}/fetchyahoorc!g
SUBST_SED.sa2+=		-e s!/usr/share/doc/fetchyahoo!${DOCDIR}!g

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 share/doc/fetchyahoo \
			share/examples/fetchyahoo

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/fetchyahoo ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/fetchyahoo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.for i in COPYING ChangeLog Credits INSTALL TODO index.html
	${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/share/doc/fetchyahoo
.endfor
	${INSTALL_DATA} ${WRKSRC}/fetchyahoorc ${DESTDIR}${PREFIX}/share/examples/fetchyahoo

.include "../../mk/bsd.pkg.mk"