Commit 0eeaa3f7 authored by saltedcoffii's avatar saltedcoffii Committed by GitHub

[New Package] Perl Pod::Parser (#4911)

parent 4e855f77
require 'package'
class Perl_pod_parser < Package
description 'Perl Pod::Parser - base class for creating POD filters and translators'
homepage 'https://metacpan.org/pod/Pod::Parser'
version '1.63'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/M/MA/MAREKR/Pod-Parser-1.63.tar.gz'
source_sha256 'dbe0b56129975b2f83a02841e8e0ed47be80f060686c66ea37e529d97aa70ccd'
depends_on 'perl'
def self.build
end
def self.install
# install files to build directory
system 'cpanm', '-l', 'build', '--self-contained', '--force', '.'
# install lib
libdir = CREW_DEST_DIR + `perl -e 'require Config; print $Config::Config{'"'installsitelib'"'};'`
FileUtils.mkdir_p libdir
system "(cd build/lib/perl5; tar cf - .) | (cd #{libdir}; tar xfp -)"
# install man
FileUtils.mkdir_p CREW_DEST_MAN_PREFIX
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; 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