Commit fbb25ac3 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #1145 from uberhacker/add-perl-xml-sax-parserfactory

Add perl_xml_sax_parserfactory package
parents a7ec7efb f9b88b4f
require 'package'
class Perl_xml_sax_parserfactory < Package
description 'XML::SAX::ParserFactory is a factory class for providing an application with a Perl SAX2 XML parser.'
homepage 'https://metacpan.org/source/GRANTM/XML-SAX-0.99/SAX/'
version '0.99'
source_url 'https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-0.99.tar.gz'
source_sha256 '32b04b8e36b6cc4cfc486de2d859d87af5386dd930f2383c49347050d6f5ad84'
depends_on 'perl'
def self.build
end
def self.install
# install files to build directory
system 'cpanm', '-l', "build", '--self-contained', '.'
# install lib
libdir = `perl -e 'require Config; print $Config::Config{'"'installsitelib'"'};'`
system "mkdir -p #{CREW_DEST_DIR}#{libdir}"
system "(cd build/lib/perl5; tar cf - .) | (cd #{CREW_DEST_DIR}#{libdir}; tar xfp -)"
# install man
mandir = "#{CREW_PREFIX}/share/man"
system "mkdir -p #{CREW_DEST_DIR}#{mandir}"
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_DIR}#{mandir}; tar xfp -)"
end
def self.check
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment