Add LICENSE

- Sort *_DEPENDS
- Remove USE_PERL5=patch
- Add SHEBANG_GLOB
- Convert to options target helper
- Sort PLIST
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-02-28 15:12:48 +00:00
parent 19105287d9
commit e08f6fab8a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=463220
2 changed files with 22 additions and 18 deletions

View File

@ -11,29 +11,33 @@ PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Pure Perl STX processor
BUILD_DEPENDS= p5-XML-SAX>=0:textproc/p5-XML-SAX \
p5-Clone>=0:devel/p5-Clone \
p5-XML-NamespaceSupport>=0:textproc/p5-XML-NamespaceSupport
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
BUILD_DEPENDS= p5-Clone>=0:devel/p5-Clone \
p5-XML-NamespaceSupport>=0:textproc/p5-XML-NamespaceSupport \
p5-XML-SAX>=0:textproc/p5-XML-SAX
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= perl5 shebangfix
SHEBANG_FILES= examples/tester.pl examples/stx-filter.pl
USE_PERL5= configure patch
USE_PERL5= configure
NO_ARCH= yes
SHEBANG_GLOB= *.pl
OPTIONS_DEFINE= DOCS EXAMPLES
post-extract:
@${MKDIR} ${WRKSRC}/scripts
@${MV} ${WRKSRC}/stx*.pl ${WRKSRC}/scripts
@${MV} ${WRKSRC}/*.pl ${WRKSRC}/scripts
post-patch:
@${PERL} -pi -e 's!(?=stx\w+\.pl)!scripts/!g' ${WRKSRC}/Makefile.PL
@${REINPLACE_CMD} -e '/EXE_FILES/ s|\([[:alpha:]]*\.pl\)|scripts/&|g' ${WRKSRC}/Makefile.PL
post-install:
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}

View File

@ -1,15 +1,5 @@
bin/stxcmd.pl
bin/stxview.pl
%%PERL5_MAN3%%/XML::STX.3.gz
%%PERL5_MAN3%%/XML::STX::Base.3.gz
%%PERL5_MAN3%%/XML::STX::Buffer.3.gz
%%PERL5_MAN3%%/XML::STX::Functions.3.gz
%%PERL5_MAN3%%/XML::STX::Parser.3.gz
%%PERL5_MAN3%%/XML::STX::Runtime.3.gz
%%PERL5_MAN3%%/XML::STX::STXPath.3.gz
%%PERL5_MAN3%%/XML::STX::Stylesheet.3.gz
%%PERL5_MAN3%%/XML::STX::TrAX.3.gz
%%PERL5_MAN3%%/XML::STX::Writer.3.gz
%%SITE_PERL%%/XML/STX.pm
%%SITE_PERL%%/XML/STX/Base.pm
%%SITE_PERL%%/XML/STX/Buffer.pm
@ -20,6 +10,16 @@ bin/stxview.pl
%%SITE_PERL%%/XML/STX/Stylesheet.pm
%%SITE_PERL%%/XML/STX/TrAX.pm
%%SITE_PERL%%/XML/STX/Writer.pm
%%PERL5_MAN3%%/XML::STX.3.gz
%%PERL5_MAN3%%/XML::STX::Base.3.gz
%%PERL5_MAN3%%/XML::STX::Buffer.3.gz
%%PERL5_MAN3%%/XML::STX::Functions.3.gz
%%PERL5_MAN3%%/XML::STX::Parser.3.gz
%%PERL5_MAN3%%/XML::STX::Runtime.3.gz
%%PERL5_MAN3%%/XML::STX::STXPath.3.gz
%%PERL5_MAN3%%/XML::STX::Stylesheet.3.gz
%%PERL5_MAN3%%/XML::STX::TrAX.3.gz
%%PERL5_MAN3%%/XML::STX::Writer.3.gz
%%PORTDOCS%%%%DOCSDIR%%/STX.html
%%PORTDOCS%%%%DOCSDIR%%/TrAXref.html
%%PORTDOCS%%%%DOCSDIR%%/TrAXref.pod