svn commit: r342996 - head/ftp/p5-POE-Component-Client-FTP

Emanuel Haupt ehaupt at FreeBSD.org
Thu Feb 6 10:11:48 UTC 2014


Author: ehaupt
Date: Thu Feb  6 10:11:47 2014
New Revision: 342996
URL: http://svnweb.freebsd.org/changeset/ports/342996
QAT: https://qat.redports.org/buildarchive/r342996/

Log:
  Convert to new OPTIONS framework and support staging.

Modified:
  head/ftp/p5-POE-Component-Client-FTP/Makefile
  head/ftp/p5-POE-Component-Client-FTP/pkg-plist

Modified: head/ftp/p5-POE-Component-Client-FTP/Makefile
==============================================================================
--- head/ftp/p5-POE-Component-Client-FTP/Makefile	Thu Feb  6 10:04:10 2014	(r342995)
+++ head/ftp/p5-POE-Component-Client-FTP/Makefile	Thu Feb  6 10:11:47 2014	(r342996)
@@ -13,18 +13,20 @@ COMMENT=	Implements an FTP client POE Co
 BUILD_DEPENDS=	p5-POE>=0:${PORTSDIR}/devel/p5-POE
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-USES=		perl5
+USES=		perl5 shebangfix
 USE_PERL5=	configure
 CONFIGURE_ENV=	PERL_MM_USE_DEFAULT=yes
 
-MAN3=		POE::Component::Client::FTP.3
+SHEBANG_FILES=	examples/*.pl
+
+PORTEXAMPLES=	dotfer.pl list.pl sync.pl
+
+OPTIONS_DEFINE=	EXAMPLES
+
+.include <bsd.port.options.mk>
 
-NO_STAGE=	yes
 post-install:
-.ifndef(NOPORTDOCS)
-	@${ECHO_MSG} "===>   Installing examples for ${PKGNAME}"
-	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
-.endif
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/ftp/p5-POE-Component-Client-FTP/pkg-plist
==============================================================================
--- head/ftp/p5-POE-Component-Client-FTP/pkg-plist	Thu Feb  6 10:04:10 2014	(r342995)
+++ head/ftp/p5-POE-Component-Client-FTP/pkg-plist	Thu Feb  6 10:11:47 2014	(r342996)
@@ -1,9 +1,6 @@
 %%SITE_PERL%%/POE/Component/Client/FTP.pm
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client/FTP/.packlist
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dotfer.pl
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/list.pl
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sync.pl
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
+%%PERL5_MAN3%%/POE::Component::Client::FTP.3.gz
 @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client/FTP
 @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client
 @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component


More information about the svn-ports-all mailing list