1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Support staging

- Don't conditionalize DOCS EXAMPLES (global default options) as the
  installation of staged ports is already handling this
This commit is contained in:
Emanuel Haupt 2014-02-06 09:07:19 +00:00
parent b93334de33
commit 3bc5feed7a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342980
2 changed files with 43 additions and 49 deletions

View File

@ -45,70 +45,29 @@ BUILD_DEPENDS= p5-Class-Observable>=1.04:${PORTSDIR}/devel/p5-Class-Observable \
USES= perl5
USE_PERL5= configure
MAN3= Workflow.3 \
Workflow::Action.3 \
Workflow::Action::InputField.3 \
Workflow::Action::Mailer.3 \
Workflow::Action::Null.3 \
Workflow::Base.3 \
Workflow::Condition.3 \
Workflow::Condition::CheckReturn.3 \
Workflow::Condition::Evaluate.3 \
Workflow::Condition::GreedyOR.3 \
Workflow::Condition::HasUser.3 \
Workflow::Condition::LazyAND.3 \
Workflow::Condition::LazyOR.3 \
Workflow::Condition::Nested.3 \
Workflow::Config.3 \
Workflow::Config::Perl.3 \
Workflow::Config::XML.3 \
Workflow::Context.3 \
Workflow::Exception.3 \
Workflow::Factory.3 \
Workflow::History.3 \
Workflow::Persister.3 \
Workflow::Persister::DBI.3 \
Workflow::Persister::DBI::AutoGeneratedId.3 \
Workflow::Persister::DBI::ExtraData.3 \
Workflow::Persister::DBI::SequenceId.3 \
Workflow::Persister::File.3 \
Workflow::Persister::RandomId.3 \
Workflow::Persister::SPOPS.3 \
Workflow::Persister::UUID.3 \
Workflow::State.3 \
Workflow::Validator.3 \
Workflow::Validator::HasRequiredField.3 \
Workflow::Validator::InEnumeratedType.3 \
Workflow::Validator::MatchesDateFormat.3
OPTIONS_DEFINE= DOCS EXAMPLES
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
PORTEXAMPLES= *
.endif
PORTDOCS= *
.if ${PORT_OPTIONS:MDATA}
PORTDATA= *
.endif
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= *
.endif
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/eg && ${COPYTREE_SHARE} ticket/\* ${EXAMPLESDIR}/)
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/eg && ${COPYTREE_SHARE} ticket/\* ${STAGEDIR}${EXAMPLESDIR}/)
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
.endif
.if ${PORT_OPTIONS:MDATA}
@${MKDIR} ${DATADIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} struct/\* ${DATADIR}/)
@${ECHO_MSG} "===> SQL data structures installed in ${DATADIR}."
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/ && ${CP} -R README Changes TODO doc ${DOCSDIR}/)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/ && ${CP} -R README Changes TODO doc ${STAGEDIR}${DOCSDIR}/)
@${ECHO_MSG} "===> Docs are installed in ${DOCSDIR}."
.endif
.include <bsd.port.mk>

View File

@ -34,6 +34,41 @@
%%SITE_PERL%%/Workflow/Validator/InEnumeratedType.pm
%%SITE_PERL%%/Workflow/Validator/MatchesDateFormat.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Workflow/.packlist
%%PERL5_MAN3%%/Workflow.3.gz
%%PERL5_MAN3%%/Workflow::Action.3.gz
%%PERL5_MAN3%%/Workflow::Action::InputField.3.gz
%%PERL5_MAN3%%/Workflow::Action::Mailer.3.gz
%%PERL5_MAN3%%/Workflow::Action::Null.3.gz
%%PERL5_MAN3%%/Workflow::Base.3.gz
%%PERL5_MAN3%%/Workflow::Condition.3.gz
%%PERL5_MAN3%%/Workflow::Condition::CheckReturn.3.gz
%%PERL5_MAN3%%/Workflow::Condition::Evaluate.3.gz
%%PERL5_MAN3%%/Workflow::Condition::GreedyOR.3.gz
%%PERL5_MAN3%%/Workflow::Condition::HasUser.3.gz
%%PERL5_MAN3%%/Workflow::Condition::LazyAND.3.gz
%%PERL5_MAN3%%/Workflow::Condition::LazyOR.3.gz
%%PERL5_MAN3%%/Workflow::Condition::Nested.3.gz
%%PERL5_MAN3%%/Workflow::Config.3.gz
%%PERL5_MAN3%%/Workflow::Config::Perl.3.gz
%%PERL5_MAN3%%/Workflow::Config::XML.3.gz
%%PERL5_MAN3%%/Workflow::Context.3.gz
%%PERL5_MAN3%%/Workflow::Exception.3.gz
%%PERL5_MAN3%%/Workflow::Factory.3.gz
%%PERL5_MAN3%%/Workflow::History.3.gz
%%PERL5_MAN3%%/Workflow::Persister.3.gz
%%PERL5_MAN3%%/Workflow::Persister::DBI.3.gz
%%PERL5_MAN3%%/Workflow::Persister::DBI::AutoGeneratedId.3.gz
%%PERL5_MAN3%%/Workflow::Persister::DBI::ExtraData.3.gz
%%PERL5_MAN3%%/Workflow::Persister::DBI::SequenceId.3.gz
%%PERL5_MAN3%%/Workflow::Persister::File.3.gz
%%PERL5_MAN3%%/Workflow::Persister::RandomId.3.gz
%%PERL5_MAN3%%/Workflow::Persister::SPOPS.3.gz
%%PERL5_MAN3%%/Workflow::Persister::UUID.3.gz
%%PERL5_MAN3%%/Workflow::State.3.gz
%%PERL5_MAN3%%/Workflow::Validator.3.gz
%%PERL5_MAN3%%/Workflow::Validator::HasRequiredField.3.gz
%%PERL5_MAN3%%/Workflow::Validator::InEnumeratedType.3.gz
%%PERL5_MAN3%%/Workflow::Validator::MatchesDateFormat.3.gz
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Workflow
@dirrm %%SITE_PERL%%/Workflow/Validator
@dirrm %%SITE_PERL%%/Workflow/Persister/DBI