From 90dc08ee075dcf548f0e4e0878deaf3c8f4a82e7 Mon Sep 17 00:00:00 2001 From: ehaupt Date: Thu, 6 Feb 2014 12:27:50 +0000 Subject: - Support staging - Strip shared object - Don't install license file into DOCSDIR but define LICENSE --- math/p5-Math-TrulyRandom/Makefile | 19 +++++++++++-------- math/p5-Math-TrulyRandom/pkg-plist | 5 +---- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'math') diff --git a/math/p5-Math-TrulyRandom/Makefile b/math/p5-Math-TrulyRandom/Makefile index 712fd492f206..d558f6b92016 100644 --- a/math/p5-Math-TrulyRandom/Makefile +++ b/math/p5-Math-TrulyRandom/Makefile @@ -10,18 +10,21 @@ PKGNAMEPREFIX= p5- MAINTAINER= anders@FreeBSD.org COMMENT= Perl interface to a truly random number generator function +LICENSE= BSD3CLAUSE + USES= perl5 USE_PERL5= configure -MAN3= Math::TrulyRandom.3 +OPTIONS_DEFINE= DOCS + +PORTDOCS= * + +.include -NO_STAGE= yes post-install: -.if !defined(NOPORTDOCS) - @${INSTALL} -d -m 0755 ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/truerand.c ${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/truerand.h ${DOCSDIR}/ -.endif + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/truerand.c ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/truerand.h ${STAGEDIR}${DOCSDIR} + ${STRIP_CMD} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Math/TrulyRandom/TrulyRandom.so .include diff --git a/math/p5-Math-TrulyRandom/pkg-plist b/math/p5-Math-TrulyRandom/pkg-plist index e0ddae05cacf..814746051818 100644 --- a/math/p5-Math-TrulyRandom/pkg-plist +++ b/math/p5-Math-TrulyRandom/pkg-plist @@ -3,10 +3,7 @@ %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/TrulyRandom/TrulyRandom.bs %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/TrulyRandom/TrulyRandom.so %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/TrulyRandom/.packlist -%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT -%%PORTDOCS%%%%DOCSDIR%%/truerand.c -%%PORTDOCS%%%%DOCSDIR%%/truerand.h -%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PERL5_MAN3%%/Math::TrulyRandom.3.gz @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/TrulyRandom @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Math -- cgit