Skip to content

Instantly share code, notes, and snippets.

@chrisa
Created February 9, 2011 14:27
Show Gist options
  • Select an option

  • Save chrisa/818555 to your computer and use it in GitHub Desktop.

Select an option

Save chrisa/818555 to your computer and use it in GitHub Desktop.
use inc::Module::Install;
name 'ComplexApp';
all_from 'lib/ComplexApp/App.pm';
install_script 'bin/complexapp.psgi';
sub MY::postamble {
use Config;
my $postamble =<<"END";
pure_complexapp_install :: all
\$(NOECHO) \$(MOD_INSTALL) \\
\$(INST_LIB) \$(INSTALL_BASE)/lib/complexapp \\
\$(INST_ARCHLIB) \$(INSTALL_BASE)/lib/complexapp/$Config{archname} \\
\$(INST_BIN) \$(INSTALL_BASE)/bin \\
\$(INST_SCRIPT) \$(DESTINSTALLVENDORSCRIPT) \\
\$(INST_MAN1DIR) \$(DESTINSTALLVENDORMAN1DIR) \\
\$(INST_MAN3DIR) \$(DESTINSTALLVENDORMAN3DIR)
doc_complexapp_install :: all
\$(NOECHO) \$(NOOP)
install_sitelib: all
/usr/bin/cpanm -n -v -L site-lib \\
Plack \\
Dancer \\
Dancer::Template::Tiny \\
Net::SAML2 \\
XML::Compile::SOAP \\
XML::Compile::SOAP::Daemon \\
Template::Tiny \\
DBI \\
ORLite \\
ORLite::Migrate \\
Try::Tiny \\
DateTime::Format::SQLite \\
HTTP::Router::Declare \\
Moose \\
MooseX::Types \\
MooseX::UndefTolerant \\
YAML \\
Starman
/bin/rm -rf site-lib/man
(cd site-lib/lib/perl5/$Config{archname} && tar cf - . ) | (cd blib/arch && tar xf -)
(cd site-lib/lib/perl5 && tar --exclude $Config{archname} -cf - . ) | (cd blib/lib && tar xf -)
END
}
installdirs 'complexapp';
WriteAll;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment