mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* perl => 5.36.1 * update versions * convert depends to build depends * update perl_glib * updates * update linebreak * conflict_cleanup * update perl_extutils_makemaker * update conflicts * fix conflict * fix conflict * fix conflict * update perl_gtk3 * fix conflicts logic * updates * update hash * update mozilla ca * update term_readkey * update perl_net_ssleay * updates * fix perl_xml_sax * update binaries * add remaining binaries
41 lines
1.2 KiB
Ruby
41 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Perl_extutils_depends < Package
|
|
description 'Easily build XS extensions that depend on XS extensions'
|
|
homepage 'https://metacpan.org/pod/ExtUtils::Depends'
|
|
version '0.8001-perl5.36'
|
|
license 'GPL-1+ or Artistic'
|
|
compatibility 'all'
|
|
source_url 'https://cpan.metacpan.org/authors/id/X/XA/XAOC/ExtUtils-Depends-0.8001.tar.gz'
|
|
source_sha256 '673c4387e7896c1a216099c1fbb3faaa7763d7f5f95a1a56a60a2a2906c131c5'
|
|
|
|
depends_on 'perl_data_dumper' => :build
|
|
depends_on 'perl_extutils_makemaker' => :build
|
|
depends_on 'perl_file_spec' => :build
|
|
depends_on 'perl_io_file' => :build
|
|
|
|
no_compile_needed
|
|
|
|
def self.prebuild
|
|
system 'perl', 'Makefile.PL'
|
|
system "sed -i 's,/usr/local,#{CREW_PREFIX},g' Makefile"
|
|
end
|
|
|
|
def self.build
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
@perl_conflicts = %w[
|
|
Data::Dumper
|
|
]
|
|
@perl_conflicts.each do |conflict|
|
|
if File.exist?("#{CREW_DEST_MAN_PREFIX}/man3/#{conflict}.3")
|
|
FileUtils.mv "#{CREW_DEST_MAN_PREFIX}/man3/#{conflict}.3",
|
|
"#{CREW_DEST_MAN_PREFIX}/man3/#{conflict}-#{name}.3"
|
|
end
|
|
end
|
|
end
|
|
end
|