Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Feb 2014 13:59:21 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343082 - head/net/p5-Net-RawSock
Message-ID:  <201402061359.s16DxLDW054391@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Thu Feb  6 13:59:20 2014
New Revision: 343082
URL: http://svnweb.freebsd.org/changeset/ports/343082
QAT: https://qat.redports.org/buildarchive/r343082/

Log:
  Support staging.

Modified:
  head/net/p5-Net-RawSock/Makefile
  head/net/p5-Net-RawSock/pkg-plist

Modified: head/net/p5-Net-RawSock/Makefile
==============================================================================
--- head/net/p5-Net-RawSock/Makefile	Thu Feb  6 13:54:58 2014	(r343081)
+++ head/net/p5-Net-RawSock/Makefile	Thu Feb  6 13:59:20 2014	(r343082)
@@ -12,21 +12,23 @@ COMMENT=	Net::RawSock provides a base fu
 USES=		perl5
 USE_PERL5=	configure patch
 
-MAN3=		Net::RawSock.3
 DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+PORTDOCS=	README demo.pl
+
+.include <bsd.port.options.mk>
+
 post-patch:
 	${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
 		-e '$$_="" if /use warnings/;' \
 		${WRKSRC}/RawSock.pm
 
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for f in README demo.pl
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+	${STRIP_CMD} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Net/RawSock/RawSock.so
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${PORTDOCS}
+	@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/net/p5-Net-RawSock/pkg-plist
==============================================================================
--- head/net/p5-Net-RawSock/pkg-plist	Thu Feb  6 13:54:58 2014	(r343081)
+++ head/net/p5-Net-RawSock/pkg-plist	Thu Feb  6 13:59:20 2014	(r343082)
@@ -2,9 +2,7 @@
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/RawSock/.packlist
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/RawSock/RawSock.so
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/RawSock/RawSock.bs
+%%PERL5_MAN3%%/Net::RawSock.3.gz
 @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/RawSock/
 @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net
 @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Net
-%%PORTDOCS%%share/doc/p5-Net-RawSock/README
-%%PORTDOCS%%share/doc/p5-Net-RawSock/demo.pl
-%%PORTDOCS%%@dirrm share/doc/p5-Net-RawSock



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