Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2004 06:20:12 +0800 (CST)
From:      Yen-Ming Lee <leeym@utopia.leeym.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        trevor@FreeBSD.org
Subject:   ports/64870: update port: mail/fetchyahoo
Message-ID:  <20040328222012.17CBF3EAD4A@utopia.leeym.com>
Resent-Message-ID: <200403282230.i2SMUJX6088553@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64870
>Category:       ports
>Synopsis:       update port: mail/fetchyahoo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 28 14:30:19 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 5.2.1-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #38: Sun Mar 21 06:36:01 CST 2004 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386


	
>Description:
- Replace PLIST with PORTDOCS, PLIST_FILES and PLIST_DIRS
- Don't depend on p5-Net when using perl-5.8

>How-To-Repeat:
	
>Fix:

	

--- fetchyahoo.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/fetchyahoo/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile	20 Mar 2004 20:23:41 -0000	1.5
+++ Makefile	28 Mar 2004 22:15:39 -0000
@@ -18,36 +18,33 @@
 	${SITE_PERL}/IO/Lines.pm:${PORTSDIR}/devel/p5-IO-stringy \
 	${SITE_PERL}/MIME/Body.pm:${PORTSDIR}/mail/p5-MIME-Tools \
 	${SITE_PERL}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools \
-	${SITE_PERL}/Net/Cmd.pm:${PORTSDIR}/net/p5-Net \
 	${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \
-${SITE_PERL}/${PERL_ARCH}/Crypt/SSLeay.pm:${PORTSDIR}/security/p5-Crypt-SSLeay \
+	${SITE_PERL}/${PERL_ARCH}/Crypt/SSLeay.pm:${PORTSDIR}/security/p5-Crypt-SSLeay \
 	${SITE_PERL}/${PERL_ARCH}/HTML/Filter.pm:${PORTSDIR}/www/p5-HTML-Parser\
 	${SITE_PERL}/HTTP/Request/Common.pm:${PORTSDIR}/www/p5-libwww
 
-DOCS=		COPYING ChangeLog Credits INSTALL TODO index.html
+PORTDOCS=	COPYING ChangeLog Credits INSTALL TODO index.html
 MAN1=		fetchyahoo.1
 NO_BUILD=	yes
-PLIST=		${WRKDIR}/pkg-plist
 USE_PERL5=	yes
 
+PLIST_FILES=	bin/fetchyahoo share/examples/fetchyahoo/fetchyahoorc
+PLIST_DIRS=	share/examples/fetchyahoo
+
 .include <bsd.port.pre.mk>
 
-pre-install:
-	${ECHO_CMD} bin/fetchyahoo > ${PLIST}
-.if !defined(NOPORTDOCS)
-	${ECHO_CMD} share/examples/fetchyahoo/fetchyahoorc >> ${PLIST}
-.for ii in ${DOCS}
-	${ECHO_CMD} share/doc/fetchyahoo/${ii} >> ${PLIST}
-.endfor
+.if ${PERL_LEVEL} < 500800
+RUN_DEPENDS+=	${SITE_PERL}/Net/Cmd.pm:${PORTSDIR}/net/p5-Net
 .endif
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/fetchyahoo ${PREFIX}/bin/
 	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${EXAMPLESDIR} ${DOCSDIR}
+	@${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/fetchyahoorc ${EXAMPLESDIR}
-.for ii in ${DOCS}
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for ii in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
 .endfor
 .endif
--- fetchyahoo.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040328222012.17CBF3EAD4A>