mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Add binary_compression value to each package * Remove binary_url values and arrays * Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
75 lines
2.2 KiB
Ruby
75 lines
2.2 KiB
Ruby
require 'package'
|
|
|
|
class Perl_extutils_makemaker < Package
|
|
description 'Create a module Makefile'
|
|
homepage 'https://metacpan.org/pod/ExtUtils::MakeMaker'
|
|
version '7.70-perl5.38'
|
|
license 'GPL-1+ or Artistic'
|
|
compatibility 'all'
|
|
source_url 'https://cpan.metacpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.70.tar.gz'
|
|
source_sha256 'f108bd46420d2f00d242825f865b0f68851084924924f92261d684c49e3e7a74'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'e3bcf88648f20d43483f7f6c67dd4ea464720542bc6bba7e88ff24a4a2fd37d2',
|
|
armv7l: 'e3bcf88648f20d43483f7f6c67dd4ea464720542bc6bba7e88ff24a4a2fd37d2',
|
|
i686: '73b285e7ac571a71ee62603d51bfb3b96ac7d9c7edd78906681bc2067040e818',
|
|
x86_64: 'cee9c9accf69238e058fa279084d897756f2f290851817a6ef4715c3a99aa61c'
|
|
})
|
|
|
|
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'
|
|
# Remove conflicts with perl package.
|
|
FileUtils.rm "#{CREW_DEST_PREFIX}/bin/instmodsh"
|
|
FileUtils.rm "#{CREW_DEST_MAN_PREFIX}/man1/instmodsh.1"
|
|
@perl_conflicts = %w[
|
|
ExtUtils::Command
|
|
ExtUtils::Command::MM
|
|
ExtUtils::Liblist
|
|
ExtUtils::MakeMaker ExtUtils::MakeMaker::Config
|
|
ExtUtils::MakeMaker::FAQ
|
|
ExtUtils::MakeMaker::Locale
|
|
ExtUtils::MakeMaker::Tutorial
|
|
ExtUtils::Mkbootstrap
|
|
ExtUtils::Mksymlists
|
|
ExtUtils::MM
|
|
ExtUtils::MM_AIX
|
|
ExtUtils::MM_Any
|
|
ExtUtils::MM_BeOS
|
|
ExtUtils::MM_Cygwin
|
|
ExtUtils::MM_Darwin
|
|
ExtUtils::MM_DOS
|
|
ExtUtils::MM_MacOS
|
|
ExtUtils::MM_NW5
|
|
ExtUtils::MM_OS2
|
|
ExtUtils::MM_OS390
|
|
ExtUtils::MM_QNX
|
|
ExtUtils::MM_Unix
|
|
ExtUtils::MM_UWIN
|
|
ExtUtils::MM_VMS
|
|
ExtUtils::MM_VOS
|
|
ExtUtils::MM_Win32
|
|
ExtUtils::MM_Win95
|
|
ExtUtils::MY
|
|
ExtUtils::testlib
|
|
]
|
|
@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
|