merge master into pythonize1

This commit is contained in:
saltedcoffii
2021-05-23 14:56:05 -04:00
94 changed files with 2333 additions and 1397 deletions

129
bin/crew
View File

@@ -35,7 +35,7 @@ Usage:
crew search [options] [<name> ...]
crew update [options] [<compatible>]
crew upgrade [options] [-k|--keep] [-s|--build-from-source] [<name> ...]
crew whatprovides [options] <name> ...
crew whatprovides [options] <pattern> ...
-c --color Use colors even if standard out is not a tty.
-d --no-color Disable colors even if standard out is a tty.
@@ -402,45 +402,44 @@ def const(var)
value = eval(var)
puts "#{var}=#{value}"
else
vars = [
'ARCH',
'ARCH_LIB',
'CHROMEOS_RELEASE',
'CURL',
'CREW_BREW_DIR',
'CREW_BUILD',
'CREW_CMAKE_LIBSUFFIX_OPTIONS',
'CREW_CMAKE_OPTIONS',
'CREW_CONFIG_PATH',
'CREW_DEST_DIR',
'CREW_DEST_HOME',
'CREW_DEST_LIB_PREFIX',
'CREW_DEST_MAN_PREFIX',
'CREW_DEST_PREFIX',
'CREW_LIB_PATH',
'CREW_LIB_PREFIX',
'CREW_LIB_SUFFIX',
'CREW_MAN_PREFIX',
'CREW_COMMON_FLAGS',
'CREW_COMMON_FNO_LTO_FLAGS',
'CREW_ENV_OPTIONS',
'CREW_MESON_FNO_LTO_OPTIONS',
'CREW_MESON_OPTIONS',
'CREW_META_PATH',
'CREW_NOT_COMPRESS',
'CREW_NOT_STRIP',
'CREW_NPROC',
'CREW_OPTIONS',
'CREW_PACKAGES_PATH',
'CREW_PREFIX',
'CREW_TGT',
'CREW_VERSION',
'HOME',
'LIBC_VERSION',
'USER'
@ruby_default_constants = %w[
ARGF
ARGV
CROSS_COMPILING
DOC
ENV
GC
IO
JSON
OpenSSL
Q
R
RUBY_COPYRIGHT
RUBY_DESCRIPTION
RUBY_ENGINE
RUBY_ENGINE_VERSION
RUBYGEMS_ACTIVATION_MONITOR
RUBY_PATCHLEVEL
RUBY_PLATFORM
RUBY_RELEASE_DATE
RUBY_REVISION
RUBY_VERSION
RubyVM
S
STDERR
STDIN
STDOUT
StringIO
TOPLEVEL_BINDING
URI
]
vars.each { |var|
value = eval(var)
# Get all constants
@constants = Module.constants.select {|e| e =~ /[[:upper:]]$/}
# Reject all constants which match the default list
@constants = @constants.map(&:to_s).reject{ |e| @ruby_default_constants.find{ |f| /\A#{e}\z/ =~ f }}
# Print a sorted list of the remaining constants used by crew.
@constants.sort.each { |var|
value = eval(var.to_s)
puts "#{var}=#{value}"
}
end
@@ -487,20 +486,13 @@ def files (pkgName)
end
def whatprovides (regexPat)
fileArray = []
needle = regexPat.gsub(/-/,',').gsub(/,/,'\-')
Dir[CREW_META_PATH + '*.filelist'].each do |packageList|
packageName = File.basename packageList, '.filelist'
File.readlines(packageList).each do |line|
found = line[/#{needle}/] if line.ascii_only?
if found
fileLine = packageName + ': ' + line
unless fileArray.include? fileLine
fileArray.push(fileLine)
end
end
end
# Use grep version command to ascertain whether we have a working grep.
unless system('grep -V > /dev/null 2>&1')
abort 'Grep is not working. Please install it with \'crew install grep\''.lightred
end
fileArray = []
@grepresults = %x[grep "#{regexPat}" #{CREW_META_PATH}*.filelist].chomp.gsub('.filelist','').gsub(':',': ').gsub(CREW_META_PATH,'').split(/$/).map(&:strip)
@grepresults.each { |fileLine| fileArray.push(fileLine) }
unless fileArray.empty?
fileArray.sort.each do |item|
puts item
@@ -653,11 +645,11 @@ def download
if Digest::SHA256.hexdigest( File.read(cachefile) ) == sha256sum
begin
# Hard link cached file if possible.
FileUtils.ln cachefile, CREW_BREW_DIR, verbose: @fileutils_verbose
FileUtils.ln cachefile, CREW_BREW_DIR, force: true, verbose: @fileutils_verbose unless File.identical?(cachefile,CREW_BREW_DIR + '/' + filename)
puts "Archive hard linked from cache".green if @opt_verbose
rescue
# Copy cached file if hard link fails.
FileUtils.cp cachefile, CREW_BREW_DIR, verbose: @fileutils_verbose
FileUtils.cp cachefile, CREW_BREW_DIR, verbose: @fileutils_verbose unless File.identical?(cachefile,CREW_BREW_DIR + '/' + filename)
puts "Archive copied from cache".green if @opt_verbose
end
puts "Archive found in cache".lightgreen
@@ -827,6 +819,11 @@ def build_and_preconfigure(target_dir)
end
end
def pre_flight
puts 'Performing pre-flight checks...'
@pkg.preflight
end
def pre_install(dest_dir)
Dir.chdir dest_dir do
puts 'Performing pre-install...'
@@ -943,8 +940,6 @@ def install_package(pkgdir)
FileUtils.mv 'dlist', CREW_META_PATH + @pkg.name + '.directorylist', verbose: @fileutils_verbose
FileUtils.mv 'filelist', CREW_META_PATH + @pkg.name + '.filelist', verbose: @fileutils_verbose
strip_dir pkgdir if Dir.exists? "#{pkgdir}/usr"
if Dir.exists? "#{pkgdir}/home" then
system "tar -c#{@verbose}f - ./usr/* ./home/* | (cd /; tar xp --keep-directory-symlink -f -)"
elsif Dir.exists? "#{pkgdir}/usr" then
@@ -954,6 +949,11 @@ def install_package(pkgdir)
end
def resolve_dependencies_and_install
unless @pkg.is_fake?
# Process preflight block to see if package should even
# be downloaded or installed.
pre_flight
end
begin
origin = @pkg.name
@@ -1179,18 +1179,18 @@ def build_package(pwd)
end
def archive_package(pwd)
unless ENV['CREW_USE_PIXZ'] == '1'
pkg_name = "#{@pkg.name}-#{@pkg.version}-chromeos-#{@device[:architecture]}.tar.xz"
Dir.chdir CREW_DEST_DIR do
system "tar c#{@verbose}Jf #{pwd}/#{pkg_name} *"
end
else
unless ENV['CREW_USE_PIXZ'] == '0' || !File.exist?("#{CREW_PREFIX}/bin/pixz")
puts "Using pixz to compress archive."
pkg_name = "#{@pkg.name}-#{@pkg.version}-chromeos-#{@device[:architecture]}.tpxz"
Dir.chdir CREW_DEST_DIR do
# Use smaller blocks with "-f0.25" to make random access faster.
system "tar c#{@verbose} * | pixz -f0.25 -9 > #{pwd}/#{pkg_name}"
end
else
pkg_name = "#{@pkg.name}-#{@pkg.version}-chromeos-#{@device[:architecture]}.tar.xz"
Dir.chdir CREW_DEST_DIR do
system "tar c#{@verbose}Jf #{pwd}/#{pkg_name} *"
end
end
system "sha256sum #{pwd}/#{pkg_name} > #{pwd}/#{pkg_name}.sha256"
end
@@ -1255,7 +1255,6 @@ def build_command(args)
@pkgName = name
search @pkgName
print_current_package @opt_verbose
@pkg.preflight
resolve_dependencies_and_build
end
end
@@ -1314,7 +1313,6 @@ def install_command(args)
search @pkgName
print_current_package true
@pkg.build_from_source = true if @opt_src or @opt_recursive
@pkg.preflight
resolve_dependencies_and_install
end
end
@@ -1351,7 +1349,6 @@ def reinstall_command(args)
@pkg.build_from_source = true if @opt_src or @opt_recursive
if @pkgName
@pkg.in_upgrade = true
@pkg.preflight
resolve_dependencies_and_install
@pkg.in_upgrade = false
end
@@ -1393,7 +1390,7 @@ def upgrade_command(args)
end
def whatprovides_command(args)
args["<name>"].each do |name|
args["<pattern>"].each do |name|
whatprovides name
end
end

View File

@@ -17,12 +17,12 @@ CREW_PACKAGES_PATH="${CREW_LIB_PATH}/packages"
CURL="${CURL:-curl}"
# EARLY_PACKAGES cannot depend on crew_profile_base for their core operations (completion scripts are fine)
EARLY_PACKAGES="gcc10 brotli c_ares libcyrussasl libidn2 libmetalink libnghttp2 libpsl \
EARLY_PACKAGES="libarchive openssl zstd xzutils lz4 bz2 libxml2 pixz libssp brotli c_ares libcyrussasl libidn2 libmetalink libnghttp2 libpsl \
libtirpc libunistring openldap rtmpdump zstd ncurses ca_certificates libyaml ruby libffi \
openssl nettle krb5 p11kit libtasn1 gnutls curl git icu4c"
nettle krb5 p11kit libtasn1 gnutls curl git icu4c "
LATE_PACKAGES="crew_profile_base less most manpages filecmd mawk readline perl pcre pcre2 python2 python3 \
sed bz2 lz4 lzip unzip xzutils zip"
LATE_PACKAGES="binutils crew_profile_base less most manpages filecmd mawk readline perl pcre pcre2 \
python27 python3 py3_pip sed lzip unzip zip"
ARCH="$(uname -m)"
@@ -106,7 +106,9 @@ function download_check () {
#download
echo -e "${BLUE}Downloading ${1}...${RESET}"
$CURL '-#' -C - -L --ssl "${2}" -o "${3}"
# Gitlab doesn't support byte ranges, hence no need for "-C"
# --ssl is only valid for (FTP IMAP POP3 SMTP)
$CURL '-#' -L "${2}" -o "${3}"
#verify
echo -e "${BLUE}Verifying ${1}...${RESET}"
@@ -127,7 +129,11 @@ function extract_install () {
#extract and install
echo "Extracting ${1} (this may take a while)..."
tar xpf ../"${2}"
if ! LD_LIBRARY_PATH=${CREW_PREFIX}/lib${LIB_SUFFIX}:/lib${LIB_SUFFIX} pixz -h &> /dev/null; then
tar xpf ../"${2}"
else
LD_LIBRARY_PATH=${CREW_PREFIX}/lib${LIB_SUFFIX}:/lib${LIB_SUFFIX} tar -Ipixz -xpf ../"${2}"
fi
echo "Installing ${1} (this may take a while)..."
tar cpf - ./*/* | (cd /; tar xp --keep-directory-symlink -f -)
mv ./dlist "${CREW_CONFIG_PATH}/meta/${1}.directorylist"
@@ -197,7 +203,9 @@ git remote add -f origin "https://github.com/${OWNER}/${REPO}.git"
git config core.sparsecheckout true
echo packages >> .git/info/sparse-checkout
echo lib >> .git/info/sparse-checkout
echo bin >> .git/info/sparse-checkout
echo crew >> .git/info/sparse-checkout
echo tools >> .git/info/sparse-checkout
git fetch origin "${BRANCH}"
git reset --hard origin/"${BRANCH}"
crew update

View File

@@ -1,6 +1,6 @@
# Defines common constants used in different parts of crew
CREW_VERSION = '1.9.5'
CREW_VERSION = '1.10.5'
ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines
@@ -77,21 +77,20 @@ when 'x86_64'
CREW_BUILD = 'x86_64-cros-linux-gnu'
end
CREW_COMMON_FLAGS = "'-Os -pipe -flto=auto -fuse-ld=gold'"
CREW_COMMON_FLAGS = "'-Os -pipe -flto -fuse-ld=gold'"
CREW_COMMON_FNO_LTO_FLAGS = "'-Os -pipe -fno-lto -fuse-ld=gold'"
CREW_FNO_LTO_LDFLAGS = "'-fno-lto'"
CREW_LDFLAGS = "'-flto=auto'"
CREW_ENV_OPTIONS = "CFLAGS=#{CREW_COMMON_FLAGS} CXXFLAGS=#{CREW_COMMON_FLAGS} FCFLAGS=#{CREW_COMMON_FLAGS} FFLAGS=#{CREW_COMMON_FLAGS} LDFLAGS=#{CREW_LDFLAGS}"
CREW_ENV_OPTIONS = "CFLAGS=#{CREW_COMMON_FLAGS} CXXFLAGS=#{CREW_COMMON_FLAGS} FCFLAGS=#{CREW_COMMON_FLAGS} FFLAGS=#{CREW_COMMON_FLAGS}"
CREW_OPTIONS = "--prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} --mandir=#{CREW_MAN_PREFIX} --build=#{CREW_BUILD} --host=#{CREW_TGT} --target=#{CREW_TGT} --program-prefix='' --program-suffix=''"
CREW_MESON_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmandir=#{CREW_MAN_PREFIX} -Dbuildtype=minsize -Db_lto=true -Dcpp_args=#{CREW_COMMON_FLAGS} -Dc_args=#{CREW_COMMON_FLAGS}"
CREW_MESON_FNO_LTO_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmandir=#{CREW_MAN_PREFIX} -Dbuildtype=minsize -Db_lto=false -Dcpp_args=#{CREW_COMMON_FNO_LTO_FLAGS} -Dc_args=#{CREW_COMMON_FNO_LTO_FLAGS}"
CREW_MESON_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmandir=#{CREW_MAN_PREFIX} -Dbuildtype=minsize -Db_lto=true -Dstrip=true -Db_pie=true -Dcpp_args='-Os -pipe' -Dc_args='-Os -pipe'"
CREW_MESON_FNO_LTO_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmandir=#{CREW_MAN_PREFIX} -Dbuildtype=minsize -Db_lto=false -Dstrip=true -Db_pie=true -Dcpp_args='-Os -pipe' -Dc_args='-Os -pipe'"
# Cmake sometimes wants to use LIB_SUFFIX to install libs in LIB64, so specify such for x86_64
# This is often considered deprecated. See discussio at https://gitlab.kitware.com/cmake/cmake/-/issues/18640
# and also https://bugzilla.redhat.com/show_bug.cgi?id=1425064
# Let's have two CREW_CMAKE_OPTIONS since this avoids the logic in the recipe file.
CREW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_LIBRARY_PATH=#{CREW_LIB_PREFIX} -DCMAKE_C_FLAGS=#{CREW_COMMON_FLAGS} -DCMAKE_CXX_FLAGS=#{CREW_COMMON_FLAGS} -DCMAKE_BUILD_TYPE=MinSizeRel"
CREW_CMAKE_FNO_LTO_OPTIONS = "-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_LIBRARY_PATH=#{CREW_LIB_PREFIX} -DCMAKE_C_FLAGS=#{CREW_COMMON_FNO_LTO_FLAGS} -DCMAKE_CXX_FLAGS=#{CREW_COMMON_FNO_LTO_FLAGS} -DCMAKE_BUILD_TYPE=MinSizeRel"
CREW_LIB_SUFFIX = if ARCH == 'x86_64' then '64' else '' end
CREW_CMAKE_LIBSUFFIX_OPTIONS = "-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_LIBRARY_PATH=#{CREW_LIB_PREFIX} -DLIB_SUFFIX=#{CREW_LIB_SUFFIX} -DCMAKE_C_FLAGS=#{CREW_COMMON_FLAGS} -DCMAKE_CXX_FLAGS=#{CREW_COMMON_FLAGS} -DCMAKE_BUILD_TYPE=MinSizeRel"

View File

@@ -85,7 +85,7 @@ class Package
@is_fake
end
# Function to perform pre-flight operations prior to dependency checks.
# Function for checks to see if install should occur.
def self.preflight
end

View File

@@ -22,11 +22,12 @@ class Alsa_plugins < Package
x86_64: '2c0108843697c8711160defebbf6db421a2b6fe1aa582b9567e8cbb9b124bf02',
})
depends_on 'alsa_lib' # R
depends_on 'dbus'
depends_on 'ffmpeg'
depends_on 'speex'
depends_on 'alsa_lib'
depends_on 'pulseaudio'
depends_on 'pulseaudio' # R
depends_on 'speexdsp' # R
def self.build
system './configure',

View File

@@ -3,14 +3,13 @@ require 'package'
class Android_studio < Package
description 'Android Studio is the official IDE for Android development.'
homepage 'https://developer.android.com/studio'
version '4.1.2.0'
version '4.2.1.0'
license 'Apache-2.0'
compatibility 'x86_64'
source_url 'https://dl.google.com/dl/android/studio/ide-zips/4.1.2.0/android-studio-ide-201.7042882-linux.tar.gz'
source_sha256 '89f7c3a03ed928edeb7bbb1971284bcb72891a77b4f363557a7ad4ed37652bb9'
source_url 'https://redirector.gvt1.com/edgedl/android/studio/install/4.2.1.0/android-studio-ide-202.7351085-cros.deb'
source_sha256 '6263ed1c69c358dd4708c0ee8b65144c2b7681e79f4ec2a4954144020664f5c3'
depends_on 'jdk8'
depends_on 'xdg_base'
depends_on 'sommelier'
def self.preflight
@@ -19,34 +18,25 @@ class Android_studio < Package
end
def self.install
FileUtils.mkdir_p(CREW_DEST_PREFIX + '/share/android-studio')
FileUtils.cp_r('.', CREW_DEST_PREFIX + '/share/android-studio/')
FileUtils.mkdir_p(CREW_DEST_PREFIX + '/bin')
FileUtils.mv 'usr/share', CREW_DEST_PREFIX
FileUtils.mv 'opt/android-studio', CREW_DEST_PREFIX + '/share'
FileUtils.cd(CREW_DEST_PREFIX + '/bin') do
FileUtils.ln_s(CREW_PREFIX + '/share/android-studio/bin/studio.sh', 'studio')
end
FileUtils.mkdir_p(CREW_DEST_PREFIX + '/.config/.AndroidStudio4.1')
FileUtils.mkdir_p(CREW_DEST_PREFIX + '/.config/Android')
FileUtils.mkdir_p(CREW_DEST_HOME)
FileUtils.cd(CREW_DEST_HOME) do
FileUtils.ln_sf(CREW_PREFIX + '/.config/.AndroidStudio4.1/', '.AndroidStudio4.1')
FileUtils.ln_sf(CREW_PREFIX + '/.config/Android/', 'Android')
end
end
def self.postinstall
puts
puts 'To start using Android Studio, type `studio`.'.lightblue
puts
puts "\nTo start using Android Studio, type `studio`.\n".lightblue
end
def self.remove
config_dirs = ["#{CREW_PREFIX}/.config/Android", "#{CREW_PREFIX}/.config/.AndroidStudio4.1"]
print "Would you like to remove the config directories? [y/N] "
response = STDIN.getc
config_dirs = ["#{HOME}/.android", "#{HOME}/Android"]
config_dirs.each { |config_dir|
if Dir.exists? config_dir
puts
print "Would you like to remove #{config_dir}? [y/N] "
case STDIN.getc
case response
when "y", "Y"
FileUtils.rm_rf config_dir
puts "#{config_dir} removed.".lightred

View File

@@ -3,13 +3,13 @@ require 'package'
class Atom < Package
description 'The hackable text editor'
homepage 'https://atom.io/'
@_ver = '1.56.0'
@_ver = '1.57.0'
version @_ver
license 'MIT'
compatibility 'x86_64'
source_url "https://github.com/atom/atom/releases/download/v#{@_ver}/atom-amd64.deb"
source_sha256 '2010c8a782bbc1aa330a9b89135204bfb056d2e3a3c98d12b0fb5f4aae4d6ee7'
source_sha256 'c418210ba30c270db33e7e19fbd83da32311dab0abe82dff1b174d49d596fdcb'
depends_on 'fakeroot'
depends_on 'gtk3'

View File

@@ -23,7 +23,10 @@ class Binutils < Package
x86_64: '784c5e9bfd884c411708ae3c2ee1c852022f411794ff109fb7d37e91f124037b'
})
depends_on 'flex'
depends_on 'zlibpkg' # R
depends_on 'glibc' # R
depends_on 'elfutils' # R
depends_on 'flex' # R
def self.patch
system 'filefix'

View File

@@ -3,11 +3,11 @@ require 'package'
class Brave < Package
description 'Next generation Brave browser for macOS, Windows, Linux, Android.'
homepage 'https://brave.com/'
version '1.26.11'
version '1.26.21'
license 'MPL-2'
compatibility 'x86_64'
source_url "https://github.com/brave/brave-browser/releases/download/v#{version}/brave-browser-nightly-#{version}-linux-amd64.zip"
source_sha256 '545bd0a9fbb20649837db333a8d945ab18cf8f6e70564368c4810b4ec66b59ac'
source_sha256 'd43665349e0575a38ec7109744b8c85c0dd54e9f775ffd8ee35016ef11b17fba'
depends_on 'gtk3'
depends_on 'xdg_base'

View File

@@ -11,7 +11,7 @@ class Buildessential < Package
# install first to get ldconfig
depends_on 'glibc'
depends_on 'gcc10'
depends_on 'gcc11'
depends_on 'gmp'
depends_on 'mpfr'
depends_on 'mpc'
@@ -38,6 +38,7 @@ class Buildessential < Package
depends_on 'doxygen'
depends_on 'help2man'
depends_on 'gtk_doc'
depends_on 'texinfo' # This contains makeinfo
# Assembler
#depends_on 'nasm'

View File

@@ -3,24 +3,24 @@ require 'package'
class Ccache < Package
description 'Compiler cache that speeds up recompilation by caching previous compilations'
homepage 'https://ccache.samba.org/'
@_ver = '4.2.1'
version "#{@_ver}-1"
@_ver = '4.3'
version @_ver
license 'GPL-3 and LGPL-3'
compatibility 'all'
source_url "https://github.com/ccache/ccache/releases/download/v#{@_ver}/ccache-#{@_ver}.tar.xz"
source_sha256 '9d6ba1cdefdc690401f404b747d81a9a1802b17af4235815866b7620d980477e'
source_sha256 '504a0f2184465c306826f035b4bc00bae7500308d6af4abbfb50e33a694989b4'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.2.1-1_armv7l/ccache-4.2.1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.2.1-1_armv7l/ccache-4.2.1-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.2.1-1_i686/ccache-4.2.1-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.2.1-1_x86_64/ccache-4.2.1-1-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.3_armv7l/ccache-4.3-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.3_armv7l/ccache-4.3-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.3_i686/ccache-4.3-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.3_x86_64/ccache-4.3-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '4198dda721970ec84c1a02fcd792cbf6c54afb8e6d48a8b0b39335030a79ce40',
armv7l: '4198dda721970ec84c1a02fcd792cbf6c54afb8e6d48a8b0b39335030a79ce40',
i686: '44ad63eb78b3fbe0973276d4724d97e0512ae42fd0b881a6825da8259584a15e',
x86_64: '1c063513b2fb098399ad94d8818d04d0eae4569ae1846411d2f421a5567bccca'
aarch64: 'abda944f6994dbd35338ad1cf124642f907c9dc37ea218843db6a20a635ccaef',
armv7l: 'abda944f6994dbd35338ad1cf124642f907c9dc37ea218843db6a20a635ccaef',
i686: '2b26758218334508e45aedbea916996dfefc5b414de8a6f1079523954a5f6982',
x86_64: '5b2cc2ccebe97eb2212091d478ac5168e4eddf887a1374cca2b5d566f142c40d'
})
depends_on 'xdg_base'
@@ -29,7 +29,7 @@ class Ccache < Package
def self.build
Dir.mkdir 'build'
Dir.chdir 'build' do
system "env CFLAGS='-flto' CXXFLAGS='-flto' \
system "env #{CREW_ENV_OPTIONS} \
cmake -G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DCMAKE_INSTALL_SYSCONFDIR=#{CREW_PREFIX}/etc \
@@ -41,24 +41,24 @@ class Ccache < Package
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C build install"
Dir.chdir 'build' do
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}/ccache/bin"
system "for _prog in gcc g++ c++; do
ln -s #{CREW_PREFIX}/bin/ccache #{CREW_DEST_LIB_PREFIX}/ccache/bin/$_prog
ln -s #{CREW_PREFIX}/bin/ccache #{CREW_DEST_LIB_PREFIX}/ccache/bin/#{CREW_TGT}-$_prog
done
for _prog in cc clang clang++; do
ln -s #{CREW_PREFIX}/bin/ccache #{CREW_DEST_LIB_PREFIX}/ccache/bin/$_prog
done"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/env.d/"
@ccacheenv = <<~CCACHEEOF
# ccache configuration
if ! [[ \$PATH == *"ccache/bin"* ]]; then
export PATH="#{CREW_LIB_PREFIX}/ccache/bin:\$PATH"
fi
CCACHEEOF
IO.write("#{CREW_DEST_PREFIX}/etc/env.d/ccache", @ccacheenv)
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}/ccache/bin"
@gcc_bins = %w[gcc g++ c++]
@llvm_bins = %w[cc clang clang++]
Dir.chdir "#{CREW_DEST_LIB_PREFIX}/ccache/bin" do
@gcc_bins.each do |bin|
FileUtils.ln_s '../../../bin/ccache', bin
end
@llvm_bins.each do |bin|
FileUtils.ln_s '../../../bin/ccache', bin
end
end
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/env.d/"
@ccacheenv = <<~CCACHEEOF
# ccache configuration
if ! [[ \$PATH == *"ccache/bin"* ]]; then
export PATH="#{CREW_LIB_PREFIX}/ccache/bin:\$PATH"
fi
CCACHEEOF
IO.write("#{CREW_DEST_PREFIX}/etc/env.d/ccache", @ccacheenv)
end
end

View File

@@ -3,13 +3,13 @@ require 'package'
class Chrome < Package
description 'Google Chrome is a fast, easy to use, and secure web browser.'
homepage 'https://www.google.com/chrome'
@_ver = '89.0.4389.114'
@_ver = '90.0.4430.212'
@_deb = "google-chrome-stable_#{@_ver}-1_amd64.deb"
version @_ver
license 'google-chrome'
compatibility 'x86_64'
source_url "https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/#{@_deb}"
source_sha256 '0ab92895e8b1b93a8d2591e0f89b32554af2ffc5a6f2bf9c1860a4ecb7a78b1b'
source_sha256 '274b473c4b4a3bcd0839e777ed466550daceae4352570ca4f342e824506163f8'
depends_on 'nspr'
depends_on 'cairo'

View File

@@ -3,17 +3,17 @@ require 'package'
class Codium < Package
description 'VSCodium is Open Source Software Binaries of VSCode with a community-driven default configuration.'
homepage 'https://vscodium.com/'
version '1.55.2'
version '1.56.2'
license 'MIT'
compatibility 'aarch64,armv7l,x86_64'
case ARCH
when 'aarch64', 'armv7l'
source_url "https://github.com/VSCodium/vscodium/releases/download/#{version}/VSCodium-linux-armhf-#{version}.tar.gz"
source_sha256 'a263e1c363ca8701ac73cc16c93b10577d49779f3a63ac6cbc506314d41548fb'
source_sha256 '75152bdb78370435ec08b4230f25077edb65bc99348144c8e6aa1f30e12022b5'
@arch = 'arm'
when 'x86_64'
source_url "https://github.com/VSCodium/vscodium/releases/download/#{version}/VSCodium-linux-x64-#{version}.tar.gz"
source_sha256 'fd937fe77c461f55e99d86144314a99b18a116900811a3d332f2ea97148dad8a'
source_sha256 '7ff6bde6bea18260ea864f75d077639c9967da99fcfc6ab6f2ed81a5c61182bf'
@arch = 'x64'
end

View File

@@ -22,17 +22,16 @@ class Cras < Package
x86_64: '1f53ed96948e29f71d42f1b437e7e4637f6e08a4e573966ec139bb3437ed0d21',
})
depends_on 'alsa_lib'
depends_on 'ladspa'
depends_on 'iniparser'
depends_on 'speex'
depends_on 'sbc'
depends_on 'dbus'
depends_on 'rust' => :build
depends_on 'llvm' => :build
depends_on 'gtest' => :build
depends_on 'eudev'
depends_on 'alsa_lib' # R
depends_on 'dbus' # R
depends_on 'eudev' # R
depends_on 'gtest' => :build
depends_on 'iniparser' # R
depends_on 'ladspa'
depends_on 'llvm' => :build
depends_on 'rust' => :build
depends_on 'sbc' # R
depends_on 'speexdsp' # R
def self.build
system 'git', 'clone', 'https://chromium.googlesource.com/chromiumos/third_party/adhd', '-b', version, '.'

View File

@@ -3,20 +3,20 @@ require 'package'
class Dart < Package
description 'The Dart SDK is a set of tools and libraries for the Dart programming language. You can find information about Dart online at dartlang.org.'
homepage 'https://dart.dev/'
@_ver = '2.10.5'
@_ver = '2.13.0'
version @_ver
license 'BSD-3'
compatibility 'all'
case ARCH
when 'aarch64', 'armv7l'
source_url "https://storage.googleapis.com/dart-archive/channels/stable/release/#{@_ver}/sdk/dartsdk-linux-arm-release.zip"
source_sha256 '12db2a878a450586da9cba8f22adaec23ae2d7c8b4838a2be58687c28d5b6814'
source_sha256 'daa1ff3a7efd6fed38cbf47bd26406858ba189562261e6840e2ae5683abd12b3'
when 'i686'
source_url "https://storage.googleapis.com/dart-archive/channels/stable/release/#{@_ver}/sdk/dartsdk-linux-ia32-release.zip"
source_sha256 'c7319de95d1e9c471d8dbe80ebdabc0c437e5ec21c7814c96b79a9ba79c6e481'
source_sha256 'b510bf547fae66ac2e5b345aeba5f669c67ec99e5d46e0341d264fa748e4f6f9'
when 'x86_64'
source_url "https://storage.googleapis.com/dart-archive/channels/stable/release/#{@_ver}/sdk/dartsdk-linux-x64-release.zip"
source_sha256 '5037a2c0fd631afc1e77e8ef86fe1ab60420d810cab67ac86f4179d9f7a866d5'
source_sha256 '4d39fe12ef1fc2f1c98246c1f8482203398eb120f724c0789db8d4b2ffe25362'
end
binary_url({

View File

@@ -3,30 +3,31 @@ require 'package'
class Dav1d < Package
description '**dav1d** is a new **AV1** cross-platform **d**ecoder, open-source, and focused on speed and correctness.'
homepage 'https://code.videolan.org/videolan/dav1d'
@_ver = '0.8.2'
@_ver = '0.9.0'
version @_ver
license 'BSD-2'
compatibility 'all'
source_url "https://get.videolan.org/dav1d/#{@_ver}/dav1d-#{@_ver}.tar.xz"
source_sha256 '3dd91d96b44e9d8ba7e82ad9e730d6c579ab5e19edca0db857a60f5ae6a0eb13'
source_sha256 'cfae88e8067c9b2e5b96d95a7a00155c353376fe9b992a96b4336e0eab19f9f6'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dav1d/0.8.2_armv7l/dav1d-0.8.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dav1d/0.8.2_armv7l/dav1d-0.8.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dav1d/0.8.2_i686/dav1d-0.8.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dav1d/0.8.2_x86_64/dav1d-0.8.2-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dav1d/0.9.0_armv7l/dav1d-0.9.0-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dav1d/0.9.0_armv7l/dav1d-0.9.0-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dav1d/0.9.0_i686/dav1d-0.9.0-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dav1d/0.9.0_x86_64/dav1d-0.9.0-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '1e55f2fb0514c8a5fb6b991a2280495b0706ff95f5ae4013e67e70de2e8b5bfe',
armv7l: '1e55f2fb0514c8a5fb6b991a2280495b0706ff95f5ae4013e67e70de2e8b5bfe',
i686: 'a2115b3d09915b60f6fdffff5ad624df55bbfb3207b55eea08277b77680c34c9',
x86_64: '86edb8b9bcd8d7ae8e5062da704f8c223a7c3745340108d13325100c96aafb2e'
aarch64: '54fa3dba94781b03e2e8c59ac24f29b3d085490a36a8cc18e438febd18509c24',
armv7l: '54fa3dba94781b03e2e8c59ac24f29b3d085490a36a8cc18e438febd18509c24',
i686: '72577ec0e01a901a1c8d1f7c0d8b673f556a3bed9d70570755ebe9b726659ec2',
x86_64: '3f3f2a3756402e37bbde7d5d9f6374d2e183f2d9ce6ca49288718dc6a3746cb3'
})
depends_on 'nasm' => :build
def self.build
system "meson #{CREW_MESON_OPTIONS} \
system "env CC=clang CXX=clang++ C_LD=lld CC_LD=lld \
meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'

View File

@@ -6,44 +6,45 @@ require 'package'
class Epiphany < Package
description 'A GNOME web browser based on the WebKit rendering engine'
homepage 'https://wiki.gnome.org/Apps/Web'
version '40.0'
version '40.1'
license 'GPL'
compatibility 'x86_64 aarch64 armv7l'
source_url "https://gitlab.gnome.org/GNOME/epiphany/-/archive/#{version}/epiphany-#{version}.tar.bz2"
source_sha256 '2603fcc30ea8c2ba1343eda845c70825af0749db1c5e1ef252240e30dd855c06'
source_url 'https://gitlab.gnome.org/GNOME/epiphany.git'
git_hashtag version
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/epiphany/40.0_armv7l/epiphany-40.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/epiphany/40.0_armv7l/epiphany-40.0-chromeos-armv7l.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/epiphany/40.0_x86_64/epiphany-40.0-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/epiphany/40.1_armv7l/epiphany-40.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/epiphany/40.1_armv7l/epiphany-40.1-chromeos-armv7l.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/epiphany/40.1_x86_64/epiphany-40.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '8985d22d9a78b08b3a8419acb4e9b808e2a1b4295c8d718a48cc9425025b6ca2',
armv7l: '8985d22d9a78b08b3a8419acb4e9b808e2a1b4295c8d718a48cc9425025b6ca2',
x86_64: '16990d7104da6872cfeb93f5fcbbc184d2d22f476dd544af848b22196f9facd0'
aarch64: '141150e042132087d7e1dc8738fae0d35c26f2a337fa969c414eb912c698b13d',
armv7l: '141150e042132087d7e1dc8738fae0d35c26f2a337fa969c414eb912c698b13d',
x86_64: 'e0e48fab65f7b75bd9dfb07243a4d14ced036376da71be28eb9491c363b640dd'
})
depends_on 'atk'
depends_on 'cairo' => :build
depends_on 'atk' # R
depends_on 'cairo' # R
depends_on 'docbook_xml' => :build
depends_on 'freetype' => :build
depends_on 'gcr'
depends_on 'gdk_pixbuf'
depends_on 'glib'
depends_on 'gcr' # R
depends_on 'gdk_pixbuf' # R
depends_on 'glib' # R
depends_on 'gmp' # R
depends_on 'gobject_introspection' => :build
depends_on 'gtk3'
depends_on 'gtk3' # R
depends_on 'help2man' => :build
depends_on 'json_glib'
depends_on 'libarchive'
depends_on 'libdazzle'
depends_on 'libhandy'
depends_on 'libportal'
depends_on 'libsecret'
depends_on 'libsoup2'
depends_on 'json_glib' # R
depends_on 'libdazzle' # R
depends_on 'libhandy' # R
depends_on 'libportal' # R
depends_on 'libsecret' # R
depends_on 'libsoup2' # R
depends_on 'lsb_release' => :build
depends_on 'pango'
depends_on 'pango' # R
depends_on 'startup_notification' => :build
depends_on 'webkit2gtk_4'
depends_on 'valgrind' => :build
depends_on 'webkit2gtk_4' # R
def self.build
system "meson #{CREW_MESON_OPTIONS} \

View File

@@ -9,43 +9,43 @@ class Evince < Package
version '40.1'
license 'GPL'
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/evince/-/archive/#{version}/evince-#{version}.tar.bz2"
source_sha256 '1c438051423334a49311c941f44924195c4823f64c2fcc55285eb529ef9bff06'
source_url 'https://gitlab.gnome.org/GNOME/evince.git'
git_hashtag version
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/evince/40.1_armv7l/evince-40.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/evince/40.1_armv7l/evince-40.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/evince/40.1_i686/evince-40.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/evince/40.1_x86_64/evince-40.1-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/evince/40.1_armv7l/evince-40.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/evince/40.1_armv7l/evince-40.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/evince/40.1_i686/evince-40.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/evince/40.1_x86_64/evince-40.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'ff53c6f065e9d3efe0db2528ced3cf03124201fbe072ad3e113ee4dcc348c1d3',
armv7l: 'ff53c6f065e9d3efe0db2528ced3cf03124201fbe072ad3e113ee4dcc348c1d3',
i686: 'b3fa8f819fae5d173de436bf2ca2886763e04777c5a05fe81ce27a6e7e98dd57',
x86_64: 'e9a5508adad335debaef3105f753fb3e2b821d554edcd8fcecf2da8c5a9bf5c5'
aarch64: '62b72ae5cb06f66f219254ca9538c1cb28f91d869689f70f1551d89d5acbd336',
armv7l: '62b72ae5cb06f66f219254ca9538c1cb28f91d869689f70f1551d89d5acbd336',
i686: '35fddcde12a82b65876ef8ddc6f4dee8b42f74b1c746a5f51a84e2b686bcce8b',
x86_64: '66c5249315ae4e4f348ea5c2d732323623f8eb834ffc7cd353a53de966a7672a'
})
depends_on 'atk'
depends_on 'cairo'
depends_on 'djvulibre'
depends_on 'atk' # R
depends_on 'cairo' # R
depends_on 'djvulibre' # R
depends_on 'docbook_xsl' => :build
depends_on 'gdk_pixbuf'
depends_on 'glib'
depends_on 'gnome_desktop'
depends_on 'gdk_pixbuf' # R
depends_on 'glib' # R
depends_on 'gnome_desktop' # R
depends_on 'gobject_introspection' => :build
depends_on 'gst_plugins_base'
depends_on 'gstreamer'
depends_on 'gtk3'
depends_on 'gst_plugins_base' # R
depends_on 'gstreamer' # R
depends_on 'gtk3' # R
depends_on 'gtk_doc' => :build
depends_on 'libarchive'
depends_on 'libgxps'
depends_on 'libhandy'
depends_on 'libsecret'
depends_on 'libspectre'
depends_on 'libtiff'
depends_on 'nautilus'
depends_on 'pango'
depends_on 'poppler'
depends_on 'libgxps' # R
depends_on 'libhandy' # R
depends_on 'libsecret' # R
depends_on 'libspectre' # R
depends_on 'libtiff' # R
depends_on 'nautilus' # R
depends_on 'pango' # R
depends_on 'poppler' # R
depends_on 'valgrind' => :build
def self.build
system "meson #{CREW_MESON_OPTIONS} \

View File

@@ -3,32 +3,48 @@ require 'package'
class Flutter < Package
description "Flutter is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase."
homepage 'https://flutter.dev/'
version '1.20.2'
version '2.2.0'
license 'BSD-3'
compatibility 'all'
source_url 'https://github.com/flutter/flutter/archive/1.20.2.tar.gz'
source_sha256 'b4086649d29f85d035ec38c27e383f8989382241331d2e352f12cc00a6b8c96b'
source_url 'https://github.com/flutter/flutter.git'
git_hashtag version
depends_on 'libglu'
def self.build
system 'bin/flutter'
end
def self.install
system "git clone https://github.com/flutter/flutter.git -b #{version} --depth 1"
FileUtils.mkdir_p CREW_DEST_HOME
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share"
FileUtils.cp_r 'flutter/', "#{CREW_DEST_PREFIX}/share"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/flutter"
FileUtils.cp_r Dir['.'], "#{CREW_DEST_PREFIX}/share/flutter"
FileUtils.touch "#{CREW_DEST_HOME}/.flutter_tool_state"
FileUtils.ln_sf "#{CREW_PREFIX}/share/flutter/bin/dart", "#{CREW_DEST_PREFIX}/bin/dart"
unless File.exist? "#{CREW_PREFIX}/bin/dart"
FileUtils.ln_sf "#{CREW_PREFIX}/share/flutter/bin/dart", "#{CREW_DEST_PREFIX}/bin/dart"
end
FileUtils.ln_sf "#{CREW_PREFIX}/share/flutter/bin/flutter", "#{CREW_DEST_PREFIX}/bin/flutter"
end
def self.postinstall
puts
puts "Type 'flutter' to get started.".lightblue
puts
puts "To uninstall, execute the following:".lightblue
puts "crew remove flutter".lightblue
puts "rm -rf #{CREW_PREFIX}/share/flutter".lightblue
puts
puts "\nType 'flutter' to get started.\n".lightblue
end
def self.remove
print "Would you like to remove the config directories? [y/N] "
response = STDIN.getc
config_dirs = ["#{HOME}/.flutter", "#{CREW_PREFIX}/share/flutter"]
config_dirs.each { |config_dir|
if Dir.exists? config_dir
case response
when "y", "Y"
FileUtils.rm_rf config_dir
puts "#{config_dir} removed.".lightred
else
puts "#{config_dir} saved.".lightgreen
end
end
}
end
end

View File

@@ -1,63 +1,100 @@
require 'package'
require 'open3'
class Gcc10 < Package
description 'The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go.'
homepage 'https://www.gnu.org/software/gcc/'
version '10.2.1-0f64'
version '10.3.0-3'
license 'GPL-3'
compatibility 'all'
source_url 'https://github.com/gcc-mirror/gcc/archive/0f64123bde80a37c8d9aced69405e71848a23b95.zip'
source_sha256 '87f1b3344db6cdcb7295e63c031e00f2c7755c2656cf9603aeb32cf5a5539ec7'
source_url 'https://ftpmirror.gnu.org/gcc/gcc-10.3.0/gcc-10.3.0.tar.xz'
source_sha256 '64f404c1a650f27fc33da242e1f2df54952e3963a49e06e73f6940f3223ac344'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc10/10.2.1-0f64_armv7l/gcc10-10.2.1-0f64-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc10/10.2.1-0f64_armv7l/gcc10-10.2.1-0f64-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc10/10.2.1-0f64_i686/gcc10-10.2.1-0f64-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc10/10.2.1-0f64_x86_64/gcc10-10.2.1-0f64-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc10/10.3.0-3_armv7l/gcc10-10.3.0-3-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc10/10.3.0-3_armv7l/gcc10-10.3.0-3-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc10/10.3.0-3_i686/gcc10-10.3.0-3-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc10/10.3.0-3_x86_64/gcc10-10.3.0-3-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: 'dc0760c6fc123a48a72a6f5492f56d2be4273c29be3dfce6e7b202521c659365',
armv7l: 'dc0760c6fc123a48a72a6f5492f56d2be4273c29be3dfce6e7b202521c659365',
i686: '52850f19acb5c7def3b7116a5873a5c68c4f9a7fa254b5198deacff36f1e15aa',
x86_64: '438ae78481cbbfcc38c6d917498f6b6f0681627a798b263bb9b8ef222ee38b35',
binary_sha256({
aarch64: '0c7c7fa852a1b95e7cd18c60e5950d8acfe204073e9a4a3ecd13fa715a38b1c4',
armv7l: '0c7c7fa852a1b95e7cd18c60e5950d8acfe204073e9a4a3ecd13fa715a38b1c4',
i686: 'd9648e0d2d042ccb771f215ab7ceaf566e43d64c77c2df4ac8e8c0182ae4ff22',
x86_64: '82d5f5c2c492a39494891f55cb37c7226ac2e3048241964816dceb1c517dd5f1'
})
depends_on 'unzip' => :build
depends_on 'mawk' => :build
depends_on 'dejagnu' => :build # for test
depends_on 'icu4c' => :build
depends_on 'python2' => :build
depends_on 'python3' => :build
depends_on 'ccache' => :build
depends_on 'dejagnu' => :build # for test
# depends_on 'hashpipe' => :build
depends_on 'glibc' # R
depends_on 'gmp' # R
depends_on 'isl' # R
depends_on 'mpc' # R
depends_on 'mpfr' # R
depends_on 'libssp' # L
depends_on 'binutils'
depends_on 'gmp'
depends_on 'mpfr'
depends_on 'mpc'
depends_on 'isl'
depends_on 'glibc'
depends_on 'zstd'
@gcc_version = version.split('-')[0].partition('.')[0]
def self.preinstall
installed_gccver = `gcc -v 2>&1 | tail -1 | cut -d' ' -f3`.chomp
gcc_version = version.split("-")[0]
abort "GCC version #{installed_gccver} already installed.".lightgreen unless "#{installed_gccver}" == "No" || "#{installed_gccver}" == "not" || "#{installed_gccver}" == "gcc:" || "#{installed_gccver}" == "#{gcc_version}"
@gcc_global_opts = '--disable-bootstrap \
--disable-libmpx \
--disable-libssp \
--disable-multilib \
--disable-werror \
--enable-cet=auto \
--enable-checking=release \
--enable-clocale=gnu \
--enable-default-pie \
--enable-default-ssp \
--enable-gnu-indirect-function \
--enable-gnu-unique-object \
--enable-host-shared \
--enable-lto \
--enable-plugin \
--enable-shared \
--enable-symvers \
--enable-static \
--enable-threads=posix \
--with-gcc-major-version-only \
--with-gmp \
--with-isl \
--with-mpc \
--with-mpfr \
--with-pic \
--with-system-libunwind \
--with-system-zlib'
@cflags = '-fPIC -pipe'
@cxxflags = '-fPIC -pipe'
@languages = 'c,c++,jit,objc,fortran,go'
case ARCH
when 'armv7l', 'aarch64'
@archflags = '--with-arch=armv7-a --with-float=hard --with-fpu=neon --with-tune=cortex-a15'
when 'x86_64'
@archflags = '--with-arch-64=x86-64'
when 'i686'
@archflags = '--with-arch-32=i686'
end
def self.build
# Set ccache sloppiness as per
# https://wiki.archlinux.org/index.php/Ccache#Sloppiness
system "ccache --set-config=sloppiness=file_macro,locale,time_macros"
# Prefix ccache to path.
ENV['PATH'] = "#{CREW_LIB_PREFIX}/ccache/bin:#{CREW_PREFIX}/bin:/usr/bin:/bin"
def self.preflight
# Use full gcc path to bypass ccache
stdout_and_stderr, status = Open3.capture2e('bash', '-c',
"#{CREW_PREFIX}/bin/gcc -dumpversion 2>&1 | tail -1 | cut -d' ' -f1")
if status.success?
installed_gccver = stdout_and_stderr.chomp
# One gets "-dumpversion" or "bash:" with no gcc installed.
unless installed_gccver.to_s == '-dumpversion' ||
installed_gccver.to_s == 'bash:' ||
installed_gccver.to_s == @gcc_version.to_s ||
installed_gccver.partition('.')[0].to_s == @gcc_version.partition('.')[0].to_s
$stderr.puts "GCC version #{installed_gccver} is currently installed.".lightred
$stderr.puts "To use #{self.to_s.downcase} please run:".lightgreen
$stderr.puts "crew remove gcc#{installed_gccver} && crew install #{self.to_s.downcase}".lightgreen
exit 1
end
end
end
gcc_version = version.split("-")[0]
# previous compile issue
# /usr/local/bin/ld: cannot find crti.o: No such file or directory
# /usr/local/bin/ld: cannot find /usr/lib64/libc_nonshared.a
ENV["LIBRARY_PATH"] = "#{CREW_LIB_PREFIX}" # fix x86_64 issues
FileUtils.mkdir_p "objdir/gcc/.deps"
def self.patch
# This fixes a PATH_MAX undefined error which breaks libsanitizer
# "libsanitizer/asan/asan_linux.cpp:217:21: error: PATH_MAX was not declared in this scope"
# This is defined in https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-5.4/include/uapi/linux/limits.h
@@ -66,131 +103,245 @@ class Gcc10 < Package
system "grep -q 4096 libsanitizer/asan/asan_linux.cpp || (sed -i '77a #endif' libsanitizer/asan/asan_linux.cpp &&
sed -i '77a #define PATH_MAX 4096' libsanitizer/asan/asan_linux.cpp &&
sed -i '77a #ifndef PATH_MAX' libsanitizer/asan/asan_linux.cpp)"
# Fix "crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object"
# when building static llvm
system "sed -i 's/-fbuilding-libgcc -fno-stack-protector/-fbuilding-libgcc -fPIC -fno-stack-protector/g' libgcc/Makefile.in"
Dir.chdir("objdir") do
ENV['CFLAGS'] = '-fPIC'
ENV['CXXFLAGS'] = '-fPIC'
case ARCH
when 'armv7l', 'aarch64'
system "../configure #{CREW_OPTIONS} \
--enable-checking=release \
--disable-multilib \
--enable-lto \
--enable-threads=posix \
--disable-werror \
--disable-libmpx \
--enable-static \
--enable-shared \
--with-pic \
--program-suffix=-#{gcc_version} \
--with-arch=armv7-a \
--with-tune=cortex-a15 \
--with-fpu=neon \
--with-float=hard \
--with-build-config=bootstrap-lto-lean"
when 'x86_64'
system "../configure #{CREW_OPTIONS} \
--enable-checking=release \
--enable-lto \
--disable-multilib \
--enable-threads=posix \
--disable-werror \
--disable-libmpx \
--enable-static \
--enable-shared \
--with-pic \
--program-suffix=-#{gcc_version} \
--with-arch-64=x86-64 \
--with-build-config=bootstrap-lto-lean"
when 'i686'
system "../configure #{CREW_OPTIONS} \
--enable-checking=release \
--enable-lto \
--disable-multilib \
--enable-threads=posix \
--disable-werror \
--disable-libmpx \
--enable-static \
--enable-shared \
--with-pic \
--program-suffix=-#{gcc_version} \
--with-arch-32=#{ARCH} \
--with-build-config=bootstrap-lto-lean"
end
system 'make'
end
def self.build
# Set ccache sloppiness as per
# https://wiki.archlinux.org/index.php/Ccache#Sloppiness
system 'ccache --set-config=sloppiness=file_macro,locale,time_macros'
# Prefix ccache to path.
@path = "#{CREW_LIB_PREFIX}/ccache/bin:#{CREW_PREFIX}/bin:/usr/bin:/bin"
# Install prereqs using the standard gcc method so they can be
# linked statically.
# system './contrib/download_prerequisites'
## Install newer version of gmp
# gmp_url = "https://gmplib.org/download/gmp/gmp-#{@gmp_ver}.tar.lz"
# gmp_sha256 = '2c7f4f0d370801b2849c48c9ef3f59553b5f1d3791d070cffb04599f9fc67b41'
# system "curl -Ls #{gmp_url} | hashpipe sha256 #{gmp_sha256} | tar --lzip -x"
# system "ln -sf ../gmp-#{@gmp_ver} gmp"
## Install newer version of isl
# isl_url = "http://isl.gforge.inria.fr/isl-#{@isl_ver}.tar.bz2"
# isl_sha256 = 'c58922c14ae7d0791a77932f377840890f19bc486b653fa64eba7f1026fb214d'
# system "curl -Ls #{isl_url} | hashpipe sha256 #{isl_sha256} | tar xj"
# system "ln -sf ../isl-#{@isl_ver} isl"
## Install newer version of mpc
# mpc_url = "https://ftp.gnu.org/gnu/mpc/mpc-#{@mpc_ver}.tar.gz"
# mpc_sha256 = '17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459'
# system "curl -Ls #{mpc_url} | hashpipe sha256 #{mpc_sha256} | tpxz"
# system "ln -sf ../mpc-#{@mpc_ver} mpc"
## Install newer version of mpfr
# mpfr_url = "https://www.mpfr.org/mpfr-current/mpfr-#{@mpfr_ver}.tpxz"
# mpfr_sha256 = '0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f'
# system "curl -Ls #{mpfr_url} | hashpipe sha256 #{mpfr_sha256} | tar xJ"
# Dir.chdir "mpfr-#{@mpfr_ver}" do
# system 'curl -Ls "https://gforge.inria.fr/scm/viewvc.php/mpfr/misc/www/mpfr-4.1.0/allpatches?revision=14491&view=co" | \
# hashpipe sha256 dfa7d8a14ec7cb3b344cb81cfd7bd7e22aba62379941cc9110759f11172ac013 | patch -NZp1 --binary'
# end
# system "ln -sf ../mpfr-#{@mpfr_ver} mpfr"
FileUtils.mkdir_p 'objdir/gcc/.deps'
Dir.chdir('objdir') do
system "env NM=gcc-nm AR=gcc-ar RANLIB=gcc-ranlib \
CFLAGS='#{@cflags}' CXXFLAGS='#{@cxxflags}' \
LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
../configure #{CREW_OPTIONS} \
#{@gcc_global_opts} \
#{@archflags} \
--enable-languages=#{@languages} \
--program-suffix=-#{@gcc_version}"
# LIBRARY_PATH=#{CREW_LIB_PREFIX} needed for x86_64 to avoid:
# /usr/local/bin/ld: cannot find crti.o: No such file or directory
# /usr/local/bin/ld: cannot find /usr/lib64/libc_nonshared.a
system "env PATH=#{@path} \
LIBRARY_PATH=#{CREW_LIB_PREFIX} \
make -j#{CREW_NPROC}"
end
end
# preserve for check, skip check for current version
def self.check
Dir.chdir("objdir") do
#system "make -k check -j#{CREW_NPROC}"
#system "../contrib/test_summary"
end
# Dir.chdir('objdir') do
# system "make -k check -j#{CREW_NPROC} || true"
# system '../contrib/test_summary'
# end
end
def self.install
Dir.chdir("objdir") do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
gcc_arch = `objdir/gcc/xgcc -dumpmachine`.chomp
gcc_dir = "gcc/#{gcc_arch}/#{@gcc_version}"
gcc_libdir = "#{CREW_DEST_LIB_PREFIX}/#{gcc_dir}"
Dir.chdir('objdir') do
# gcc-libs install
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libgcc DESTDIR=#{CREW_DEST_DIR} install-shared"
gcc_arch = `gcc/xgcc -dumpmachine`.chomp
gcc_version = version.split("-")[0]
gcc_dir = "gcc/#{gcc_arch}/#{gcc_version}"
gcc_libdir = "#{CREW_LIB_PREFIX}/#{gcc_dir}"
@gcc_libs = %w[libatomic libgfortran libgo libgomp libitm
libquadmath libsanitizer/asan libsanitizer/lsan libsanitizer/ubsan
libsanitizer/tsan libstdc++-v3/src libvtv]
@gcc_libs.each do |lib|
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/#{lib} \
DESTDIR=#{CREW_DEST_DIR} install-toolexeclibLTLIBRARIES || true"
end
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libobjc DESTDIR=#{CREW_DEST_DIR} install-libs || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libstdc++-v3/po DESTDIR=#{CREW_DEST_DIR} install || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libphobos DESTDIR=#{CREW_DEST_DIR} install || true"
@gcc_libs_info = %w[libgomp libitm libquadmath]
@gcc_libs_info.each do |lib|
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/#{lib} DESTDIR=#{CREW_DEST_DIR} install-info || true"
end
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make DESTDIR=#{CREW_DEST_DIR} install-strip"
# gcc-non-lib install
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C gcc DESTDIR=#{CREW_DEST_DIR} install-driver install-cpp install-gcc-ar \
c++.install-common install-headers install-plugin install-lto-wrapper"
@gcov_install = %w[gcov gcov-tool]
@gcov_install.each do |gcov_bin|
FileUtils.install "gcc/#{gcov_bin}", "#{CREW_DEST_PREFIX}/bin/#{gcov_bin}-#{@gcc_version}", mode: 0o755
end
FileUtils.mkdir_p gcc_libdir
@gcc_libdir_install = %w[cc1 cc1plus collect2 lto1]
@gcc_libdir_install.each do |lib|
FileUtils.install "gcc/#{lib}", "#{gcc_libdir}/", mode: 0o755
end
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libgcc DESTDIR=#{CREW_DEST_DIR} install"
@libstdc_install = %w[src include libsupc++]
@libstdc_install.each do |lib|
system "env LD_LIBRARY_PATH=#{CREW_LIB_PREFIX} \
LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libstdc++-v3/#{lib} DESTDIR=#{CREW_DEST_DIR} install"
end
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libstdc++-v3/python DESTDIR=#{CREW_DEST_DIR} install"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make DESTDIR=#{CREW_DEST_DIR} install-libcc1"
# http://www.linuxfromscratch.org/lfs/view/development/chapter06/gcc.html#contents-gcc
# move a misplaced file
# The installation stage puts some files used by gdb under the /usr/local/lib(64) directory. This generates spurious error messages when performing ldconfig. This command moves the files to another location.
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/gdb/auto-load/usr/lib"
FileUtils.mv Dir.glob("#{CREW_DEST_LIB_PREFIX}/*gdb.py"), "#{CREW_DEST_PREFIX}/share/gdb/auto-load/usr/lib/"
# The installation stage puts some files used by gdb under the /usr/local/lib(64) directory.
# This generates spurious error messages when performing ldconfig. This command moves the files to another location.
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/gdb/auto-load/usr/lib"
FileUtils.mv Dir.glob("#{CREW_DEST_LIB_PREFIX}/*gdb.py"),
"#{CREW_DEST_PREFIX}/share/gdb/auto-load/usr/lib/"
# Install Binary File Descriptor library (BFD)
system "install -v -dm755 #{CREW_DEST_LIB_PREFIX}/bfd-plugins"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make DESTDIR=#{CREW_DEST_DIR} install-fixincludes"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C gcc DESTDIR=#{CREW_DEST_DIR} install-mkheaders"
# Add a compatibility symlink to enable building programs with Link Time Optimization (LTO)
FileUtils.ln_s "#{CREW_PREFIX}/libexec/#{gcc_dir}/liblto_plugin.so", "#{CREW_DEST_LIB_PREFIX}/bfd-plugins/"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C lto-plugin DESTDIR=#{CREW_DEST_DIR} install"
# Make symbolic links
Dir.chdir "#{CREW_DEST_LIB_PREFIX}/#{gcc_dir}" do
system "find . -type f -maxdepth 1 -exec ln -sv #{gcc_libdir}/{} #{CREW_DEST_LIB_PREFIX}/{} \\;"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libgomp DESTDIR=#{CREW_DEST_DIR} install-nodist_libsubincludeHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libgomp DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libitm DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libquadmath DESTDIR=#{CREW_DEST_DIR} install-nodist_libsubincludeHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer DESTDIR=#{CREW_DEST_DIR} install-nodist_sanincludeHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer/asan DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
# This failed on i686
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer/tsan DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
# This might fail on i686
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer/lsan DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
# libiberty is installed from binutils
# system "env LD_LIBRARY_PATH=#{CREW_LIB_PREFIX} \
# LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
# make -C libiberty DESTDIR=#{CREW_DEST_DIR} install"
# install -m644 libiberty/pic/libiberty.a "#{CREW_DEST_PREFIX}/lib"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C gcc DESTDIR=#{CREW_DEST_DIR} install-man install-info"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C libcpp DESTDIR=#{CREW_DEST_DIR} install"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C gcc DESTDIR=#{CREW_DEST_DIR} install-po"
# install the libstdc++ man pages
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libstdc++-v3/doc DESTDIR=#{CREW_DEST_DIR} doc-install-man"
# byte-compile python libraries
system "python -m compileall #{CREW_DEST_PREFIX}/share/gcc-#{@gcc_version}/ || true"
system "python -O -m compileall #{CREW_DEST_PREFIX}/share/gcc-#{@gcc_version} || true"
end
Dir.chdir "#{CREW_DEST_MAN_PREFIX}/man1" do
Dir.glob("*-#{@gcc_version}.1*").each do |f|
@basefile = f.gsub("-#{@gcc_version}", '')
FileUtils.ln_sf f, @basefile
end
end
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/cc"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/gcc"
FileUtils.ln_s "#{CREW_PREFIX}/bin/c++-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/c++"
FileUtils.ln_s "#{CREW_PREFIX}/bin/g++-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/g++"
FileUtils.ln_s "#{CREW_PREFIX}/bin/cpp-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/cpp"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-ar-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/gcc-ar"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-nm-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/gcc-nm"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-ranlib-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/gcc-ranlib"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcov-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/gcov"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcov-dump-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/gcov-dump"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcov-tool-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/gcov-tool"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gfortran-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/gfortran"
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-c++-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-c++"
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-g++-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-g++"
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-gcc-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-gcc"
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-gcc-ar-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-gcc-ar"
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-gcc-nm-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-gcc-nm"
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-gcc-ranlib-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-gcc-ranlib"
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-gfortran-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-gfortran"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-ar-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-ar"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-nm-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-nm"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-ranlib-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-ranlib"
FileUtils.ln_s "#{CREW_MAN_PREFIX}/man1/cpp-#{gcc_version}.1.gz", "#{CREW_DEST_MAN_PREFIX}/man1/cpp.1.gz"
FileUtils.ln_s "#{CREW_MAN_PREFIX}/man1/g++-#{gcc_version}.1.gz", "#{CREW_DEST_MAN_PREFIX}/man1/g++.1.gz"
FileUtils.ln_s "#{CREW_MAN_PREFIX}/man1/gcc-#{gcc_version}.1.gz", "#{CREW_DEST_MAN_PREFIX}/man1/gcc.1.gz"
FileUtils.ln_s "#{CREW_MAN_PREFIX}/man1/gcov-#{gcc_version}.1.gz", "#{CREW_DEST_MAN_PREFIX}/man1/gcov.1.gz"
FileUtils.ln_s "#{CREW_MAN_PREFIX}/man1/gcov-dump-#{gcc_version}.1.gz", "#{CREW_DEST_MAN_PREFIX}/man1/gcov-dump.1.gz"
FileUtils.ln_s "#{CREW_MAN_PREFIX}/man1/gcov-tool-#{gcc_version}.1.gz", "#{CREW_DEST_MAN_PREFIX}/man1/gcov-tool.1.gz"
FileUtils.ln_s "#{CREW_MAN_PREFIX}/man1/gfortran-#{gcc_version}.1.gz", "#{CREW_DEST_MAN_PREFIX}/man1/gfortran.1.gz"
Dir.chdir "#{CREW_DEST_PREFIX}/bin/" do
Dir.glob("#{gcc_arch}-*-#{@gcc_version}").each do |f|
@basefile_nover = f.split(/-#{@gcc_version}/, 2).first
puts "Symlinking #{f} to #{@basefile_nover}"
FileUtils.ln_sf f, @basefile_nover
@basefile_noarch = f.split(/#{gcc_arch}-/, 2).last
puts "Symlinking #{f} to #{@basefile_noarch}"
FileUtils.ln_sf f, @basefile_noarch
@basefile_noarch_nover = @basefile_nover.split(/#{gcc_arch}-/, 2).last
puts "Symlinking #{f} to #{@basefile_noarch_nover}"
FileUtils.ln_sf f, @basefile_noarch_nover
@basefile_noarch_nover_nogcc = @basefile_noarch_nover.split(/gcc-/, 2).last
puts "Symlinking #{f} to #{gcc_arch}-#{@basefile_noarch_nover_nogcc}"
FileUtils.ln_sf f, "#{gcc_arch}-#{@basefile_noarch_nover_nogcc}"
end
Dir.glob("*-#{@gcc_version}").each do |f|
@basefile_nover = f.split(/-#{@gcc_version}/, 2).first
puts "Symlinking #{f} to #{@basefile_nover}"
FileUtils.ln_sf f, @basefile_nover
end
# many packages expect this symlink
puts "Symlinking gcc-#{@gcc_version} to cc"
FileUtils.ln_sf "gcc-#{@gcc_version}", 'cc'
end
# libgomp.so conflicts with llvm
@deletefiles = %W[#{CREW_DEST_LIB_PREFIX}/libgomp.so]
@deletefiles.each do |f|
FileUtils.rm f if File.exist?(f)
end
# make sure current version of gcc LTO plugin for Gold linker is installed.
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}/bfd-plugins/"
puts "Symlinking #{CREW_PREFIX}/libexec/#{gcc_dir}/liblto_plugin.so to #{CREW_DEST_LIB_PREFIX}/bfd-plugins/"
FileUtils.ln_sf "#{CREW_PREFIX}/libexec/#{gcc_dir}/liblto_plugin.so", "#{CREW_DEST_LIB_PREFIX}/bfd-plugins/"
# binutils makes a symlink here, but just in case it isn't there.
if ARCH == 'x86_64'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/lib/bfd-plugins/"
puts "Symlinking #{CREW_PREFIX}/libexec/#{gcc_dir}/liblto_plugin.so to #{CREW_DEST_PREFIX}/lib/bfd-plugins/"
FileUtils.ln_sf "#{CREW_PREFIX}/libexec/#{gcc_dir}/liblto_plugin.so", "#{CREW_DEST_PREFIX}/lib/bfd-plugins/"
end
end
end

347
packages/gcc11.rb Normal file
View File

@@ -0,0 +1,347 @@
require 'package'
require 'open3'
class Gcc11 < Package
description 'The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go.'
homepage 'https://www.gnu.org/software/gcc/'
version '11.1.0-2'
license 'GPL-3, LGPL-3, libgcc, FDL-1.2'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/gcc/gcc-11.1.0/gcc-11.1.0.tar.xz'
source_sha256 '4c4a6fb8a8396059241c2e674b85b351c26a5d678274007f076957afa1cc9ddf'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc11/11.1.0-2_armv7l/gcc11-11.1.0-2-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc11/11.1.0-2_armv7l/gcc11-11.1.0-2-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc11/11.1.0-2_i686/gcc11-11.1.0-2-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gcc11/11.1.0-2_x86_64/gcc11-11.1.0-2-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '5a245c4d158cc0c10fc7468d3fdc09cb5e38dd6a23646ceb658dce887c908dca',
armv7l: '5a245c4d158cc0c10fc7468d3fdc09cb5e38dd6a23646ceb658dce887c908dca',
i686: '9c1e13720a102c62bd0794e4872e9936d73c6c3bcb2934854c32798090035021',
x86_64: '91ed0f513618b8d548928d256e68219046c5dcf6726b79f1d71979e0ae5d64dc'
})
depends_on 'ccache' => :build
depends_on 'dejagnu' => :build # for test
# depends_on 'hashpipe' => :build
depends_on 'glibc' # R
depends_on 'gmp' # R
depends_on 'isl' # R
depends_on 'mpc' # R
depends_on 'mpfr' # R
depends_on 'libssp' # L
@gcc_version = version.split('-')[0].partition('.')[0]
@gcc_global_opts = '--disable-bootstrap \
--disable-libmpx \
--disable-libssp \
--disable-multilib \
--disable-werror \
--enable-cet=auto \
--enable-checking=release \
--enable-clocale=gnu \
--enable-default-pie \
--enable-default-ssp \
--enable-gnu-indirect-function \
--enable-gnu-unique-object \
--enable-host-shared \
--enable-lto \
--enable-plugin \
--enable-shared \
--enable-symvers \
--enable-static \
--enable-threads=posix \
--with-gcc-major-version-only \
--with-gmp \
--with-isl \
--with-mpc \
--with-mpfr \
--with-pic \
--with-system-libunwind \
--with-system-zlib'
@cflags = '-fPIC -pipe'
@cxxflags = '-fPIC -pipe'
@languages = 'c,c++,jit,objc,fortran,go'
case ARCH
when 'armv7l', 'aarch64'
@archflags = '--with-arch=armv7-a --with-float=hard --with-fpu=neon --with-tune=cortex-a15'
when 'x86_64'
@archflags = '--with-arch-64=x86-64'
when 'i686'
@archflags = '--with-arch-32=i686'
end
def self.preflight
# Use full gcc path to bypass ccache
stdout_and_stderr, status = Open3.capture2e('bash', '-c',
"#{CREW_PREFIX}/bin/gcc -dumpversion 2>&1 | tail -1 | cut -d' ' -f1")
if status.success?
installed_gccver = stdout_and_stderr.chomp
# One gets "-dumpversion" or "bash:" with no gcc installed.
unless installed_gccver.to_s == '-dumpversion' ||
installed_gccver.to_s == 'bash:' ||
installed_gccver.to_s == @gcc_version.to_s ||
installed_gccver.partition('.')[0].to_s == @gcc_version.partition('.')[0].to_s
$stderr.puts "GCC version #{installed_gccver} is currently installed.".lightred
$stderr.puts "To use #{self.to_s.downcase} please run:".lightgreen
$stderr.puts "crew remove gcc#{installed_gccver} && crew install #{self.to_s.downcase}".lightgreen
exit 1
end
end
end
def self.patch
# This fixes a PATH_MAX undefined error which breaks libsanitizer
# "libsanitizer/asan/asan_linux.cpp:217:21: error: PATH_MAX was not declared in this scope"
# This is defined in https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-5.4/include/uapi/linux/limits.h
# and is defined as per suggested method here: https://github.com/ZefengWang/cross-tool-chain-build
# The following is due to sed not passing newlines right.
system "grep -q 4096 libsanitizer/asan/asan_linux.cpp || (sed -i '77a #endif' libsanitizer/asan/asan_linux.cpp &&
sed -i '77a #define PATH_MAX 4096' libsanitizer/asan/asan_linux.cpp &&
sed -i '77a #ifndef PATH_MAX' libsanitizer/asan/asan_linux.cpp)"
end
def self.build
# Set ccache sloppiness as per
# https://wiki.archlinux.org/index.php/Ccache#Sloppiness
system 'ccache --set-config=sloppiness=file_macro,locale,time_macros'
# Prefix ccache to path.
@path = "#{CREW_LIB_PREFIX}/ccache/bin:#{CREW_PREFIX}/bin:/usr/bin:/bin"
# Install prereqs using the standard gcc method so they can be
# linked statically.
# system './contrib/download_prerequisites'
## Install newer version of gmp
# gmp_url = "https://gmplib.org/download/gmp/gmp-#{@gmp_ver}.tar.lz"
# gmp_sha256 = '2c7f4f0d370801b2849c48c9ef3f59553b5f1d3791d070cffb04599f9fc67b41'
# system "curl -Ls #{gmp_url} | hashpipe sha256 #{gmp_sha256} | tar --lzip -x"
# system "ln -sf ../gmp-#{@gmp_ver} gmp"
## Install newer version of isl
# isl_url = "http://isl.gforge.inria.fr/isl-#{@isl_ver}.tar.bz2"
# isl_sha256 = 'c58922c14ae7d0791a77932f377840890f19bc486b653fa64eba7f1026fb214d'
# system "curl -Ls #{isl_url} | hashpipe sha256 #{isl_sha256} | tar xj"
# system "ln -sf ../isl-#{@isl_ver} isl"
## Install newer version of mpc
# mpc_url = "https://ftp.gnu.org/gnu/mpc/mpc-#{@mpc_ver}.tar.gz"
# mpc_sha256 = '17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459'
# system "curl -Ls #{mpc_url} | hashpipe sha256 #{mpc_sha256} | tar xz"
# system "ln -sf ../mpc-#{@mpc_ver} mpc"
## Install newer version of mpfr
# mpfr_url = "https://www.mpfr.org/mpfr-current/mpfr-#{@mpfr_ver}.tar.xz"
# mpfr_sha256 = '0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f'
# system "curl -Ls #{mpfr_url} | hashpipe sha256 #{mpfr_sha256} | tar xJ"
# Dir.chdir "mpfr-#{@mpfr_ver}" do
# system 'curl -Ls "https://gforge.inria.fr/scm/viewvc.php/mpfr/misc/www/mpfr-4.1.0/allpatches?revision=14491&view=co" | \
# hashpipe sha256 dfa7d8a14ec7cb3b344cb81cfd7bd7e22aba62379941cc9110759f11172ac013 | patch -NZp1 --binary'
# end
# system "ln -sf ../mpfr-#{@mpfr_ver} mpfr"
FileUtils.mkdir_p 'objdir/gcc/.deps'
Dir.chdir('objdir') do
system "env NM=gcc-nm AR=gcc-ar RANLIB=gcc-ranlib \
CFLAGS='#{@cflags}' CXXFLAGS='#{@cxxflags}' \
LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
../configure #{CREW_OPTIONS} \
#{@gcc_global_opts} \
#{@archflags} \
--enable-languages=#{@languages} \
--program-suffix=-#{@gcc_version}"
# LIBRARY_PATH=#{CREW_LIB_PREFIX} needed for x86_64 to avoid:
# /usr/local/bin/ld: cannot find crti.o: No such file or directory
# /usr/local/bin/ld: cannot find /usr/lib64/libc_nonshared.a
system "env PATH=#{@path} \
LIBRARY_PATH=#{CREW_LIB_PREFIX} \
make -j#{CREW_NPROC}"
end
end
# preserve for check, skip check for current version
def self.check
# Dir.chdir('objdir') do
# system "make -k check -j#{CREW_NPROC} || true"
# system '../contrib/test_summary'
# end
end
def self.install
gcc_arch = `objdir/gcc/xgcc -dumpmachine`.chomp
gcc_dir = "gcc/#{gcc_arch}/#{@gcc_version}"
gcc_libdir = "#{CREW_DEST_LIB_PREFIX}/#{gcc_dir}"
Dir.chdir('objdir') do
# gcc-libs install
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libgcc DESTDIR=#{CREW_DEST_DIR} install-shared"
@gcc_libs = %w[libatomic libgfortran libgo libgomp libitm
libquadmath libsanitizer/asan libsanitizer/lsan libsanitizer/ubsan
libsanitizer/tsan libstdc++-v3/src libvtv]
@gcc_libs.each do |lib|
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/#{lib} \
DESTDIR=#{CREW_DEST_DIR} install-toolexeclibLTLIBRARIES || true"
end
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libobjc DESTDIR=#{CREW_DEST_DIR} install-libs || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libstdc++-v3/po DESTDIR=#{CREW_DEST_DIR} install || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libphobos DESTDIR=#{CREW_DEST_DIR} install || true"
@gcc_libs_info = %w[libgomp libitm libquadmath]
@gcc_libs_info.each do |lib|
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/#{lib} DESTDIR=#{CREW_DEST_DIR} install-info || true"
end
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make DESTDIR=#{CREW_DEST_DIR} install-strip"
# gcc-non-lib install
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C gcc DESTDIR=#{CREW_DEST_DIR} install-driver install-cpp install-gcc-ar \
c++.install-common install-headers install-plugin install-lto-wrapper"
@gcov_install = %w[gcov gcov-tool]
@gcov_install.each do |gcov_bin|
FileUtils.install "gcc/#{gcov_bin}", "#{CREW_DEST_PREFIX}/bin/#{gcov_bin}-#{@gcc_version}", mode: 0o755
end
FileUtils.mkdir_p gcc_libdir
@gcc_libdir_install = %w[cc1 cc1plus collect2 lto1]
@gcc_libdir_install.each do |lib|
FileUtils.install "gcc/#{lib}", "#{gcc_libdir}/", mode: 0o755
end
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libgcc DESTDIR=#{CREW_DEST_DIR} install"
@libstdc_install = %w[src include libsupc++]
@libstdc_install.each do |lib|
system "env LD_LIBRARY_PATH=#{CREW_LIB_PREFIX} \
LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libstdc++-v3/#{lib} DESTDIR=#{CREW_DEST_DIR} install"
end
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libstdc++-v3/python DESTDIR=#{CREW_DEST_DIR} install"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make DESTDIR=#{CREW_DEST_DIR} install-libcc1"
# http://www.linuxfromscratch.org/lfs/view/development/chapter06/gcc.html#contents-gcc
# move a misplaced file
# The installation stage puts some files used by gdb under the /usr/local/lib(64) directory.
# This generates spurious error messages when performing ldconfig. This command moves the files to another location.
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/gdb/auto-load/usr/lib"
FileUtils.mv Dir.glob("#{CREW_DEST_LIB_PREFIX}/*gdb.py"),
"#{CREW_DEST_PREFIX}/share/gdb/auto-load/usr/lib/"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make DESTDIR=#{CREW_DEST_DIR} install-fixincludes"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C gcc DESTDIR=#{CREW_DEST_DIR} install-mkheaders"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C lto-plugin DESTDIR=#{CREW_DEST_DIR} install"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libgomp DESTDIR=#{CREW_DEST_DIR} install-nodist_libsubincludeHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libgomp DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libitm DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libquadmath DESTDIR=#{CREW_DEST_DIR} install-nodist_libsubincludeHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer DESTDIR=#{CREW_DEST_DIR} install-nodist_sanincludeHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer/asan DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
# This failed on i686
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer/tsan DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
# This might fail on i686
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libsanitizer/lsan DESTDIR=#{CREW_DEST_DIR} install-nodist_toolexeclibHEADERS || true"
# libiberty is installed from binutils
# system "env LD_LIBRARY_PATH=#{CREW_LIB_PREFIX} \
# LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
# make -C libiberty DESTDIR=#{CREW_DEST_DIR} install"
# install -m644 libiberty/pic/libiberty.a "#{CREW_DEST_PREFIX}/lib"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C gcc DESTDIR=#{CREW_DEST_DIR} install-man install-info"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C libcpp DESTDIR=#{CREW_DEST_DIR} install"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C gcc DESTDIR=#{CREW_DEST_DIR} install-po"
# install the libstdc++ man pages
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} PATH=#{@path} \
make -C #{CREW_TGT}/libstdc++-v3/doc DESTDIR=#{CREW_DEST_DIR} doc-install-man"
# byte-compile python libraries
system "python -m compileall #{CREW_DEST_PREFIX}/share/gcc-#{@gcc_version}/"
system "python -O -m compileall #{CREW_DEST_PREFIX}/share/gcc-#{@gcc_version}"
end
Dir.chdir "#{CREW_DEST_MAN_PREFIX}/man1" do
Dir.glob("*-#{@gcc_version}.1*").each do |f|
@basefile = f.gsub("-#{@gcc_version}", '')
FileUtils.ln_sf f, @basefile
end
end
Dir.chdir "#{CREW_DEST_PREFIX}/bin/" do
Dir.glob("#{gcc_arch}-*-#{@gcc_version}").each do |f|
@basefile_nover = f.split(/-#{@gcc_version}/, 2).first
puts "Symlinking #{f} to #{@basefile_nover}"
FileUtils.ln_sf f, @basefile_nover
@basefile_noarch = f.split(/#{gcc_arch}-/, 2).last
puts "Symlinking #{f} to #{@basefile_noarch}"
FileUtils.ln_sf f, @basefile_noarch
@basefile_noarch_nover = @basefile_nover.split(/#{gcc_arch}-/, 2).last
puts "Symlinking #{f} to #{@basefile_noarch_nover}"
FileUtils.ln_sf f, @basefile_noarch_nover
@basefile_noarch_nover_nogcc = @basefile_noarch_nover.split(/gcc-/, 2).last
puts "Symlinking #{f} to #{gcc_arch}-#{@basefile_noarch_nover_nogcc}"
FileUtils.ln_sf f, "#{gcc_arch}-#{@basefile_noarch_nover_nogcc}"
end
Dir.glob("*-#{@gcc_version}").each do |f|
@basefile_nover = f.split(/-#{@gcc_version}/, 2).first
puts "Symlinking #{f} to #{@basefile_nover}"
FileUtils.ln_sf f, @basefile_nover
end
# many packages expect this symlink
puts "Symlinking gcc-#{@gcc_version} to cc"
FileUtils.ln_sf "gcc-#{@gcc_version}", 'cc'
end
# libgomp.so conflicts with llvm
@deletefiles = %W[#{CREW_DEST_LIB_PREFIX}/libgomp.so]
@deletefiles.each do |f|
FileUtils.rm f if File.exist?(f)
end
# make sure current version of gcc LTO plugin for Gold linker is installed.
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}/bfd-plugins/"
puts "Symlinking #{CREW_PREFIX}/libexec/#{gcc_dir}/liblto_plugin.so to #{CREW_DEST_LIB_PREFIX}/bfd-plugins/"
FileUtils.ln_sf "#{CREW_PREFIX}/libexec/#{gcc_dir}/liblto_plugin.so", "#{CREW_DEST_LIB_PREFIX}/bfd-plugins/"
# binutils makes a symlink here, but just in case it isn't there.
if ARCH == 'x86_64'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/lib/bfd-plugins/"
puts "Symlinking #{CREW_PREFIX}/libexec/#{gcc_dir}/liblto_plugin.so to #{CREW_DEST_PREFIX}/lib/bfd-plugins/"
FileUtils.ln_sf "#{CREW_PREFIX}/libexec/#{gcc_dir}/liblto_plugin.so", "#{CREW_DEST_PREFIX}/lib/bfd-plugins/"
end
end
end

View File

@@ -1,51 +1,79 @@
# Adapted from Arch Linux gdb PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/gdb/trunk/PKGBUILD
require 'package'
class Gdb < Package
description 'GDB, the GNU Project debugger, allows you to see what is going on \'inside\' another program while it executes -- or what another program was doing at the moment it crashed.'
description 'The GNU Debugger'
homepage 'https://www.gnu.org/software/gdb/'
version '8.3'
license 'GPL-2 and LGPL-2'
version '10.2'
license 'GPL3'
compatibility 'all'
source_url 'http://ftpmirror.gnu.org/gdb/gdb-8.3.tar.xz'
source_sha256 '802f7ee309dcc547d65a68d61ebd6526762d26c3051f52caebe2189ac1ffd72e'
source_url 'https://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.xz'
source_sha256 'aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/8.3_armv7l/gdb-8.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/8.3_armv7l/gdb-8.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/8.3_i686/gdb-8.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/8.3_x86_64/gdb-8.3-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/10.2_armv7l/gdb-10.2-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/10.2_armv7l/gdb-10.2-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/10.2_i686/gdb-10.2-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/10.2_x86_64/gdb-10.2-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: 'cb31458449dbe3901b104a0e0629e9ef0cd219ea2783db736360d0176c321ca9',
armv7l: 'cb31458449dbe3901b104a0e0629e9ef0cd219ea2783db736360d0176c321ca9',
i686: '84bd95e06d5515647135ab5ce1f1c6a2956d5df8f324837dc26705fc28bcd07c',
x86_64: 'afb397d5022e72ea19e7d87fff5167b798f5063f59b1174dd56337837fdc7dea',
binary_sha256({
aarch64: 'c3a708da100b18e4da8d22cfe3f046d7fbebe1f62af6f6f0fd19b3cceb75e349',
armv7l: 'c3a708da100b18e4da8d22cfe3f046d7fbebe1f62af6f6f0fd19b3cceb75e349',
i686: 'a25af22de11214b9d6011d533b47dac518f1c1ac7cc49f0cd1f2cca312167308',
x86_64: 'f3b420aff23c86604c9b0e4945458d734764f18372808bc5bddff568e1ed7262'
})
depends_on 'libx11'
depends_on 'py3_six'
depends_on 'mpfr' # R
depends_on 'gmp' # R
depends_on 'source_highlight' # R
depends_on 'boost' # R
def self.build
system './configure',
'--with-x',
'--with-lzma',
'--enable-sim',
'--with-expat',
'--enable-tui',
'--with-python',
'--with-curses',
'--enable-shared',
'--with-system-zlib',
'--enable-64-bit-bfd',
'--enable-host-shared',
'--with-system-readline',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--with-pkgversion=Chromebrew'
system "make"
FileUtils.mkdir_p 'build'
Dir.chdir('build') do
system "env #{CREW_ENV_OPTIONS} \
CPPFLAGS='-I#{CREW_PREFIX}/include/ncursesw -lncursesw' \
../configure \
#{CREW_OPTIONS} \
--disable-nls \
--enable-64-bit-bfd \
--enable-host-shared \
--enable-lto \
--enable-shared \
--enable-sim \
--enable-source-highlight \
--enable-tui \
--with-curses \
--with-lzma \
--with-pkgversion=Chromebrew \
--with-python=python3 \
--with-system-gdbinit=#{CREW_PREFIX}/etc/gdb/gdbinit \
--with-system-readline \
--with-system-zlib \
--with-x"
system 'make'
end
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
Dir.chdir('build') do
system "make -C gdb DESTDIR=#{CREW_DEST_DIR} install"
system "make -C gdbserver DESTDIR=#{CREW_DEST_DIR} install"
end
# Remove files conflicting with binutils
FileUtils.rm "#{CREW_DEST_PREFIX}/share/info/bfd.info" if File.exist?("#{CREW_DEST_PREFIX}/share/info/bfd.info")
conflict_packages = %w[binutils]
conflict_packages.each do |package|
file = File.open("#{CREW_META_PATH}#{package}.filelist").read
file.each_line do |line|
if File.exist?("#{CREW_DEST_DIR}#{line}")
FileUtils.rm_f "#{CREW_DEST_DIR}#{line}"
puts "Removed #{CREW_DEST_DIR}#{line}"
end
end
end
FileUtils.rm "#{CREW_DEST_LIB_PREFIX}/libinproctrace.so" if File.exist?("#{CREW_DEST_LIB_PREFIX}/libinproctrace.so")
end
end

View File

@@ -3,19 +3,32 @@ require 'package'
class Gdk_pixbuf < Package
description 'GdkPixbuf is a library for image loading and manipulation.'
homepage 'https://developer.gnome.org/gdk-pixbuf'
@_ver = '2.42.4-1'
version "#{@_ver}-1"
@_ver = '2.42.6'
version @_ver
license 'LGPL-2.1+'
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/archive/#{@_ver}/gdk-pixbuf-#{@_ver}.tar.bz2"
source_sha256 'd94d2e67165739559a6323a23eea8ad3560ab1085e2a3356a19548c9cb88e1e9'
source_url 'https://gitlab.gnome.org/GNOME/gdk-pixbuf.git'
git_hashtag @_ver
depends_on 'glib'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdk_pixbuf/2.42.6_armv7l/gdk_pixbuf-2.42.6-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdk_pixbuf/2.42.6_armv7l/gdk_pixbuf-2.42.6-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdk_pixbuf/2.42.6_i686/gdk_pixbuf-2.42.6-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdk_pixbuf/2.42.6_x86_64/gdk_pixbuf-2.42.6-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'e34b1d8685646cfcf999bb84c699e19c749d6cefd9d5346702bf8bc611293234',
armv7l: 'e34b1d8685646cfcf999bb84c699e19c749d6cefd9d5346702bf8bc611293234',
i686: 'e96ec7db0611cc7701754b3466b4b1d337123a62eefd06be0976254482b50027',
x86_64: '275ea5531916a62aa263e2f94c3eeb23af85140dfc4034ed513c044ad2277d6f'
})
depends_on 'glib' # R
depends_on 'gobject_introspection' => :build
depends_on 'jasper' => :build
depends_on 'libjpeg'
depends_on 'libpng'
depends_on 'libtiff'
depends_on 'libjpeg' # R
depends_on 'libpng' # R
depends_on 'libtiff' # R
depends_on 'libwebp' => :build
depends_on 'pango' => :build
depends_on 'py3_six' => :build
@@ -52,6 +65,6 @@ class Gdk_pixbuf < Package
def self.postinstall
system "env GDK_PIXBUF_MODULEDIR=#{CREW_LIB_PREFIX}/gdk-pixbuf-2.0/2.10.0/loaders \
GDK_PIXBUF_MODULE_FILE=#{CREW_LIB_PREFIX}/gdk-pixbuf-2.0/2.10.0/loaders.cache \
gdk-pixbuf-query-loaders --update-cache"
LD_LIBRARY_PATH=#{CREW_LIB_PREFIX} gdk-pixbuf-query-loaders --update-cache"
end
end

View File

@@ -3,41 +3,40 @@ require 'package'
class Gedit < Package
description 'GNOME Text Editor'
homepage 'https://wiki.gnome.org/Apps/Gedit'
version '40.0'
version '40.1'
license 'GPL-2+ CC-BY-SA-3.0'
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/gedit/-/archive/#{version}/gedit-#{version}.tar.bz2"
source_sha256 'b7ac78774fe2eadd09a9d91d19b2596ebd3388f2d3d1cf3cbac81cba649c399a'
source_url 'https://gitlab.gnome.org/GNOME/gedit.git'
git_hashtag version
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gedit/40.0_armv7l/gedit-40.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gedit/40.0_armv7l/gedit-40.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gedit/40.0_i686/gedit-40.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gedit/40.0_x86_64/gedit-40.0-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gedit/40.1_armv7l/gedit-40.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gedit/40.1_armv7l/gedit-40.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gedit/40.1_i686/gedit-40.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gedit/40.1_x86_64/gedit-40.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '7f976a406dd8e8137d0aa7217c1d75fbee756a028c8315c386c41dfb4c3b57f6',
armv7l: '7f976a406dd8e8137d0aa7217c1d75fbee756a028c8315c386c41dfb4c3b57f6',
i686: '4c495f8e7e307103ded815bc217b8bc021e7957a760f0e820a587e59f53d9569',
x86_64: 'd908a24c2ba3085980ad3ff0afbdd3c3996bbffb21bc1c538cb3d21364a8acd5'
aarch64: 'd00004e8fe0b7f2f9c1884f4f7657b208ac504cf9b19ef033f58559b4683588f',
armv7l: 'd00004e8fe0b7f2f9c1884f4f7657b208ac504cf9b19ef033f58559b4683588f',
i686: '415aa41a13957b20b7d420df9337e6344ce0668b29a43ae8913000fdbc5b5ed5',
x86_64: 'dc1aee9657dfa305d79fd9f4c582515886aeb6254d06794271997385d5f3060d'
})
depends_on 'amtk'
depends_on 'atk'
depends_on 'cairo'
depends_on 'gdk_pixbuf'
depends_on 'glib'
depends_on 'gobject_introspection'
depends_on 'gsettings_desktop_schemas'
depends_on 'gspell'
depends_on 'gtk3'
depends_on 'gtksourceview'
depends_on 'libpeas'
depends_on 'pango'
depends_on 'pygobject'
depends_on 'tepl_6'
depends_on 'gobject_introspection' => :build
depends_on 'amtk' # R
depends_on 'atk' # R
depends_on 'cairo' # R
depends_on 'gdk_pixbuf' # R
depends_on 'glib' # R
depends_on 'gobject_introspection' # R
depends_on 'gsettings_desktop_schemas' # L
depends_on 'gspell' # R
depends_on 'gtk3' # R
depends_on 'gtk_doc' => :build
depends_on 'gtksourceview_4' # R
depends_on 'libpeas' # R
depends_on 'pango' # R
depends_on 'pygobject'
depends_on 'tepl_6' # R
depends_on 'vala' => :build
depends_on 'yelp_tools' => :build

View File

@@ -2,33 +2,34 @@ require 'package'
class Gjs < Package
description 'Javascript Bindings for GNOME'
@_ver = '1.67.3'
@_ver = '1.68.1'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
license 'MIT and MPL-1.1, LGPL-2+ or GPL-2+'
compatibility 'all'
source_url "https://download.gnome.org/sources/gjs/#{@_ver_prelastdot}/gjs-#{@_ver}.tar.xz"
source_sha256 '12df0c0ff2dd4c944ad27477ee8053e1363c4ad499542686bba21e06d38c6733'
source_url 'https://gitlab.gnome.org/GNOME/gjs.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gjs/1.67.3_armv7l/gjs-1.67.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gjs/1.67.3_armv7l/gjs-1.67.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gjs/1.67.3_i686/gjs-1.67.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gjs/1.67.3_x86_64/gjs-1.67.3-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gjs/1.68.1_armv7l/gjs-1.68.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gjs/1.68.1_armv7l/gjs-1.68.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gjs/1.68.1_i686/gjs-1.68.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gjs/1.68.1_x86_64/gjs-1.68.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '6ee8b11391aee0245536d1d702b765739b20310df841ca4395fce2d9b07eb532',
armv7l: '6ee8b11391aee0245536d1d702b765739b20310df841ca4395fce2d9b07eb532',
i686: 'f8eeea3dd66b93420d99942db1dc355c8b0f36d0201e77ca239186e8de113051',
x86_64: '0bcdfb345b073565735fbd8b3e76a5cd6d9694590cbd10b217619207b91a3f88'
aarch64: 'a44d907e21468900d3ac6e0ea326dc051e431dd2eedf3ea8f3fc1603b5b93d70',
armv7l: 'a44d907e21468900d3ac6e0ea326dc051e431dd2eedf3ea8f3fc1603b5b93d70',
i686: 'd1c8db6ed575dd5f471fc3c91e8c7f5f34e448ba8eca2c3aa8802eaf923f3ff3',
x86_64: '0d0b81db80db509870491850ce86bc0b7b0aaca8407eb8d7c09e47797aa908ba'
})
depends_on 'cairo'
depends_on 'gobject_introspection'
depends_on 'js78'
depends_on 'dconf'
depends_on 'gobject_introspection' => :build
depends_on 'cairo' # R
depends_on 'dbus' => :build
depends_on 'dconf' => :build
depends_on 'glib' # R
depends_on 'gobject_introspection' # R
depends_on 'js78' => :build
depends_on 'libx11' # R
def self.build
system "meson #{CREW_MESON_OPTIONS} \

View File

@@ -3,40 +3,35 @@ require 'package'
class Glib < Package
description 'GLib provides the core application building blocks for libraries and applications written in C.'
homepage 'https://developer.gnome.org/glib'
@_ver = '2.68.0'
@_ver = '2.68.2'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
license 'LGPL-2.1'
compatibility 'all'
source_url "https://download.gnome.org/sources/glib/#{@_ver_prelastdot}/glib-#{@_ver}.tar.xz"
source_sha256 '67734f584f3a05a2872f57e9a8db38f3b06c7087fb531c5a839d9171968103ea'
source_url 'https://gitlab.gnome.org/GNOME/glib.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.68.0_armv7l/glib-2.68.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.68.0_armv7l/glib-2.68.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.68.0_i686/glib-2.68.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.68.0_x86_64/glib-2.68.0-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.68.2_armv7l/glib-2.68.2-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.68.2_armv7l/glib-2.68.2-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.68.2_i686/glib-2.68.2-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.68.2_x86_64/glib-2.68.2-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '074bbda5881173ce7d9cb01849cd9c1919ff3e111e3d40c4abbe655b1de6aa55',
armv7l: '074bbda5881173ce7d9cb01849cd9c1919ff3e111e3d40c4abbe655b1de6aa55',
i686: '4b4236243277ef9e2e1671090b9c5eb761fcbc1f4df43cbe54cffe19f838a922',
x86_64: '7c2bca7c57a8552eb0be3bac923d984eb01449d329b4d1a061b2dc42aacece82'
aarch64: '51cca2bdab9b0d8725010d9627e1af90553bd80627c7c0ca7822eb1d48977d5e',
armv7l: '51cca2bdab9b0d8725010d9627e1af90553bd80627c7c0ca7822eb1d48977d5e',
i686: '9edb7d402f59d21ed282bfd68b45c3bfe896a6edd0c6d5fed6b284e42532f8d3',
x86_64: '3f6a6728ad5b7e8b048665e2258ea22cf9ee5fa5c60c7e57d8172ada16486932'
})
depends_on 'pcre'
depends_on 'shared_mime_info'
depends_on 'util_linux'
depends_on 'py3_six'
depends_on 'py3_pygments'
depends_on 'pygments' => :build
depends_on 'shared_mime_info' # L
depends_on 'py3_six' => :build
depends_on 'py3_pygments' => :build
depends_on 'util_linux' # R
def self.build
system "meson #{CREW_MESON_OPTIONS} \
-Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcpp_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Das_needed=false \
-Dselinux=disabled \
-Dsysprof=disabled \
-Dman=false \

View File

@@ -3,32 +3,35 @@ require 'package'
class Gtk3 < Package
description 'GTK+ is a multi-platform toolkit for creating graphical user interfaces.'
homepage 'https://developer.gnome.org/gtk3/3.0/'
@_ver = '3.24.28'
@_ver = '3.24.29'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version "#{@_ver}-1"
version @_ver
license 'LGPL-2.1'
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/gtk/-/archive/#{@_ver}/gtk-#{@_ver}.tar.bz2"
source_sha256 'ab8e2799c71f4ff5052fade351a3a035d60d7d357035788227bf5e6270cde448'
source_url 'https://gitlab.gnome.org/GNOME/gtk.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk3/3.24.28-1_armv7l/gtk3-3.24.28-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk3/3.24.28-1_armv7l/gtk3-3.24.28-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk3/3.24.28-1_i686/gtk3-3.24.28-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk3/3.24.28-1_x86_64/gtk3-3.24.28-1-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk3/3.24.29_armv7l/gtk3-3.24.29-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk3/3.24.29_armv7l/gtk3-3.24.29-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk3/3.24.29_i686/gtk3-3.24.29-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk3/3.24.29_x86_64/gtk3-3.24.29-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '25b189ed5da4f41a7c31882c71ab7f4cacd6504987706a629c2b8cf63157e3eb',
armv7l: '25b189ed5da4f41a7c31882c71ab7f4cacd6504987706a629c2b8cf63157e3eb',
i686: 'db956665e7077a5699a24515ccbde0ac932c3d445def3e36f74bcd09f1608296',
x86_64: '16ef9237bd85428972d050da9d5307f30700b24ce26c6d165c39769ad3dc2d92'
aarch64: '05caf4c5661d197f4c82d3cf1ed919a5379fd82ac7df8b2ec0734c50984f49a1',
armv7l: '05caf4c5661d197f4c82d3cf1ed919a5379fd82ac7df8b2ec0734c50984f49a1',
i686: 'd23792469f08482573d02aaca7c3042e85c1f1f4b54ba9bd661ec473cdb1cf2c',
x86_64: '848d47ac2546f4bc554b9f6f0af8e148741d7c55ef52d83f4a5fbf51c07aa9eb'
})
# L = Logical Dependency, R = Runtime Dependency
depends_on 'docbook' => :build
depends_on 'ghostscript' => :build
depends_on 'gobject_introspection' => :build
depends_on 'iso_codes' => :build
depends_on 'libspectre' => :build
depends_on 'mesa' => :build
depends_on 'valgrind' => :build
depends_on 'graphene' => :build # Do we need this?
depends_on 'graphite' => :build # Do we need this?
depends_on 'libdeflate' => :build # Do we need this?
@@ -66,6 +69,15 @@ class Gtk3 < Package
depends_on 'rest' # R
depends_on 'wayland' # R
def self.patch
# Use locally build subprojects
@deps = %w[cairo librsvg]
@deps.each do |dep|
FileUtils.rm_rf "subprojects/#{dep}" if Dir.exist?("subprojects/#{dep}")
FileUtils.rm_rf "subprojects/#{dep}.wrap" if File.exist?("subprojects/#{dep}.wrap")
end
end
def self.build
system "meson #{CREW_MESON_OPTIONS} \
-Dbroadway_backend=true \
@@ -97,7 +109,10 @@ class Gtk3 < Package
system "#{CREW_PREFIX}/bin/glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
# update mime database
system "#{CREW_PREFIX}/bin/update-mime-database #{CREW_PREFIX}/share/mime"
# update icon cache
# update icon cache, but only if gdk_pixbuf is already installed.
@device = JSON.parse(File.read("#{CREW_CONFIG_PATH}device.json"), symbolize_names: true)
return unless @device[:installed_packages].any? 'gdk_pixbuf'
system "#{CREW_PREFIX}/bin/gtk-update-icon-cache -ft #{CREW_PREFIX}/share/icons/*"
end
end

View File

@@ -3,33 +3,36 @@ require 'package'
class Gtk4 < Package
description 'GTK+ is a multi-platform toolkit for creating graphical user interfaces.'
homepage 'https://developer.gnome.org/gtk4/'
@_ver = '4.2.0'
@_ver = '4.2.1'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version "#{@_ver}-1"
version @_ver
license 'LGPL-2.1'
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/gtk/-/archive/#{@_ver}/gtk-#{@_ver}.tar.bz2"
source_sha256 'ea817483d35cd5f5d949a61b15c904ee3157fe5befb98e084a241921562f1838'
source_url 'https://gitlab.gnome.org/GNOME/gtk.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk4/4.2.0-1_armv7l/gtk4-4.2.0-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk4/4.2.0-1_armv7l/gtk4-4.2.0-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk4/4.2.0-1_i686/gtk4-4.2.0-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk4/4.2.0-1_x86_64/gtk4-4.2.0-1-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk4/4.2.1_armv7l/gtk4-4.2.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk4/4.2.1_armv7l/gtk4-4.2.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk4/4.2.1_i686/gtk4-4.2.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gtk4/4.2.1_x86_64/gtk4-4.2.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'e6d12870ed535be19d04aff0eb4659e94728faa4464fd1d26de0dc51fec049d2',
armv7l: 'e6d12870ed535be19d04aff0eb4659e94728faa4464fd1d26de0dc51fec049d2',
i686: '26bba0fa27efbc129c81077260ae15adc03cd02dd4ebf664fb3b99082816510d',
x86_64: '68c169e9112531c9fc41f9bed15a542867500846a16eedc6f103cfbcd99c668b'
aarch64: '131b1ef2ee52e9e4e19ac99a2973f2a6b0322d9bb02b7141f792bfe9f6f0b7e8',
armv7l: '131b1ef2ee52e9e4e19ac99a2973f2a6b0322d9bb02b7141f792bfe9f6f0b7e8',
i686: '49d26942d98c39a093fd341cfb5f62c97d869c20246304ccd8f9ff1cee5c4b92',
x86_64: '47520c1d162a3f626e7df1dd50a936b737ce4cf09e76ed1cec228e806fc3e321'
})
# L = Logical Dependency, R = Runtime Dependency
depends_on 'docbook' => :build
depends_on 'ghostscript' => :build
depends_on 'gobject_introspection' => :build
depends_on 'intel_media_sdk' => :build if ARCH.eql?('x86_64')
depends_on 'iso_codes' => :build
depends_on 'libspectre' => :build
depends_on 'mesa' => :build
depends_on 'valgrind' => :build
depends_on 'py3_pygments' => :build # Is this needed?
depends_on 'py3_six' => :build # Is this needed?
depends_on 'vulkan_headers' => :build
@@ -76,6 +79,12 @@ class Gtk4 < Package
system "sed -i 's,#include <fcntl.h>,#include <linux/fcntl.h>,' gdk/wayland/cursor/os-compatibility.c"
system "sed -i 's/#define HAVE_MEMFD_CREATE/#define HAVE_MEMFD_CREATE_NO/' gdk/wayland/cursor/os-compatibility.c"
end
# Don't rebuild packaged subprojects
@deps = %w[cairo librsvg]
@deps.each do |dep|
FileUtils.rm_rf "subprojects/#{dep}" if Dir.exist?("subprojects/#{dep}")
FileUtils.rm_rf "subprojects/#{dep}.wrap" if File.exist?("subprojects/#{dep}.wrap")
end
end
def self.build
@@ -111,7 +120,10 @@ class Gtk4 < Package
system "#{CREW_PREFIX}/bin/glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
# update mime database
system "#{CREW_PREFIX}/bin/update-mime-database #{CREW_PREFIX}/share/mime"
# update icon cache
system "#{CREW_PREFIX}/bin/gtk4-update-icon-cache -ft #{CREW_PREFIX}/share/icons/*"
# update icon cache, but only if gdk_pixbuf is already installed.
@device = JSON.parse(File.read("#{CREW_CONFIG_PATH}device.json"), symbolize_names: true)
return unless @device[:installed_packages].any? 'gdk_pixbuf'
system "#{CREW_PREFIX}/bin/gtk-update-icon-cache -ft #{CREW_PREFIX}/share/icons/*"
end
end

View File

@@ -3,49 +3,48 @@ require 'package'
class Gvfs < Package
description 'Virtual filesystem implementation for GIO'
homepage 'https://wiki.gnome.org/Projects/gvfs'
@_ver = '1.48.0'
version "#{@_ver}-1"
@_ver = '1.48.1'
version @_ver
license 'GPLv2'
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/gvfs/-/archive/#{@_ver}/gvfs-#{@_ver}.tar.bz2"
source_sha256 'acde26bee8a04e8432b0946b0fd36bc831ccc4f58c32fbcee6a3f525a595f5e9'
source_url 'https://gitlab.gnome.org/GNOME/gvfs.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gvfs/1.48.0-1_armv7l/gvfs-1.48.0-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gvfs/1.48.0-1_armv7l/gvfs-1.48.0-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gvfs/1.48.0-1_i686/gvfs-1.48.0-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gvfs/1.48.0-1_x86_64/gvfs-1.48.0-1-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gvfs/1.48.1_armv7l/gvfs-1.48.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gvfs/1.48.1_armv7l/gvfs-1.48.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gvfs/1.48.1_i686/gvfs-1.48.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gvfs/1.48.1_x86_64/gvfs-1.48.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '97b9379b27f4005491a2737d7f549d750a8c7b7cb4939cf423e610306e888a66',
armv7l: '97b9379b27f4005491a2737d7f549d750a8c7b7cb4939cf423e610306e888a66',
i686: '7b1c91a1b4004bdee1904e5dda3fb4a57626c953105dc5ca65ba1d1f1604e9bf',
x86_64: '58d2e873fcd548ed212466b098f24925abb05e6e3a5fc76e5cbecfe42f3661a6'
aarch64: '3585ea23719cf4e3c3da8c84beed3df3f020a91feb3d3af7f05e81514cec1e21',
armv7l: '3585ea23719cf4e3c3da8c84beed3df3f020a91feb3d3af7f05e81514cec1e21',
i686: 'b617653b15b4c87f2759c36067f638b70e501f4ecf01243b6ae6ef1ced47b314',
x86_64: '5094180c75e7e99ac78a191935a6d0af41a50bf4dbcd7764bea96d7114282b19'
})
depends_on 'avahi'
depends_on 'avahi' # R
depends_on 'dbus' => :build
depends_on 'dconf'
depends_on 'docbook_xsl' => :build
depends_on 'elogind' => :build
depends_on 'fuse3'
depends_on 'gcr'
depends_on 'glib'
depends_on 'fuse3' # R
depends_on 'gcr' # R
depends_on 'glib' # R
depends_on 'gtk3' => :build
depends_on 'libarchive'
depends_on 'libcdio'
depends_on 'libcdio_paranoia'
depends_on 'libgcrypt'
depends_on 'libgphoto'
depends_on 'libgudev'
depends_on 'libimobiledevice'
depends_on 'libnfs'
depends_on 'libplist'
depends_on 'libsecret'
depends_on 'libsoup'
depends_on 'libsoup2'
depends_on 'polkit'
depends_on 'smbclient'
depends_on 'libcdio_paranoia' # R
depends_on 'libcdio' # R
depends_on 'libgcrypt' # R
depends_on 'libgphoto' # R
depends_on 'libgudev' # R
depends_on 'libimobiledevice' # R
depends_on 'libnfs' # R
depends_on 'libplist' # R
depends_on 'libsecret' # R
depends_on 'libsoup2' # R
depends_on 'polkit' # R
depends_on 'smbclient' # R
def self.build
system "meson #{CREW_MESON_OPTIONS} \

View File

@@ -2,35 +2,38 @@ require 'package'
class Htop < Package
description 'htop is an interactive process viewer for Unix systems.'
homepage 'https://hisham.hm/htop/'
version '2.2.0'
homepage 'https://github.com/htop-dev/htop'
version '3.0.5'
license 'BSD and GPL-2'
compatibility 'all'
source_url 'https://hisham.hm/htop/releases/2.2.0/htop-2.2.0.tar.gz'
source_sha256 'd9d6826f10ce3887950d709b53ee1d8c1849a70fa38e91d5896ad8cbc6ba3c57'
source_url 'https://github.com/htop-dev/htop/archive/refs/tags/3.0.5.tar.gz'
source_sha256 '4c2629bd50895bd24082ba2f81f8c972348aa2298cc6edc6a21a7fa18b73990c'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/htop/2.2.0_armv7l/htop-2.2.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/htop/2.2.0_armv7l/htop-2.2.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/htop/2.2.0_i686/htop-2.2.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/htop/2.2.0_x86_64/htop-2.2.0-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/htop/3.0.5_armv7l/htop-3.0.5-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/htop/3.0.5_armv7l/htop-3.0.5-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/htop/3.0.5_i686/htop-3.0.5-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/htop/3.0.5_x86_64/htop-3.0.5-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: '3d6c1ed809d819222a7d1f9f2b406df0a2c6caf6175870133d5538099c038d74',
armv7l: '3d6c1ed809d819222a7d1f9f2b406df0a2c6caf6175870133d5538099c038d74',
i686: 'b2442db4e63ea03b73cae57ccb48f62cfc05e599ee55790b63fe762915df1042',
x86_64: 'fec8aed1ed6dc3b232bb23b07f06401bbc991636d67bb291bbb4e6604a9f8229',
binary_sha256({
aarch64: '0d41a8aebc631c10aece2fe14fd1762bdeabaef59347af6e7e1e88b3cdabb5b4',
armv7l: '0d41a8aebc631c10aece2fe14fd1762bdeabaef59347af6e7e1e88b3cdabb5b4',
i686: '25835e8c7455192d539682ae269cd20e1accf6103d31f355f4a29cbcb215a646',
x86_64: 'ae62201f3496fd3b64c94002af594c9650f3e345ed34db7f1d9d04d667e03d5c'
})
depends_on 'buildessential' => :build
depends_on 'ncurses'
depends_on 'buildessential' => :build
def self.build
system "./configure --prefix=#{CREW_PREFIX} --disable-unicode"
system "make"
system '[ -x configure ] || NOCONFIGURE=1 ./autogen.sh'
system "env #{CREW_ENV_OPTIONS} \
CPPFLAGS='-I#{CREW_PREFIX}/include/ncursesw' \
./configure #{CREW_OPTIONS} \
--disable-unicode"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -3,32 +3,33 @@ require 'package'
class Jq < Package
description 'jq is a lightweight and flexible command-line JSON processor.'
homepage 'https://stedolan.github.io/jq/'
version '1.6'
version '1.6-1'
license 'MIT and CC-BY-3.0'
compatibility 'all'
source_url 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz'
source_sha256 '5de8c8e29aaa3fb9cc6b47bb27299f271354ebb72514e3accadc7d38b5bbaa72'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jq/1.6_armv7l/jq-1.6-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jq/1.6_armv7l/jq-1.6-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jq/1.6_i686/jq-1.6-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jq/1.6_x86_64/jq-1.6-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jq/1.6-1_armv7l/jq-1.6-1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jq/1.6-1_armv7l/jq-1.6-1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jq/1.6-1_i686/jq-1.6-1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jq/1.6-1_x86_64/jq-1.6-1-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: 'c230cb2046a0c1b40fe531a3480ee028cbe4db89cd7631eab48b3e4a38fac679',
armv7l: 'c230cb2046a0c1b40fe531a3480ee028cbe4db89cd7631eab48b3e4a38fac679',
i686: '135d38a61e055595485694711f8f47ab614d260b910ec73acd963333f1fe655e',
x86_64: 'c4c04bfd6860fe7b7072e253ee4a4a1d6e37895cf859bc7caebb8df44a164327',
binary_sha256({
aarch64: '6540447d8276d2485a2fe2d6f2a9837ab5fcf11609d55f64756af205e88e74b7',
armv7l: '6540447d8276d2485a2fe2d6f2a9837ab5fcf11609d55f64756af205e88e74b7',
i686: '68b25442f0f72f363365d3f436892a012aabadb1cc46ce91a0b10ed83468600c',
x86_64: 'ca1c96623283110b69acedbde1e8cab9f01525e4a11f33249687f23f8e6b1959'
})
depends_on 'oniguruma'
def self.build
system "./configure",
"--prefix=#{CREW_PREFIX}",
'--disable-maintainer-mode', # disable make rules and dependencies not useful
'--disable-docs' # there's no support for manpages
system 'filefix'
system "env #{CREW_ENV_OPTIONS} \
./configure #{CREW_OPTIONS} \
--disable-maintainer-mode \
--disable-docs" # there's no support for manpages
system 'make'
end

View File

@@ -3,29 +3,29 @@ require 'package'
class Libpcap < Package
description 'A portable C/C++ library for network traffic capture.'
homepage 'https://www.tcpdump.org/'
version '1.9.1'
version '1.10.0'
license 'BSD'
compatibility 'all'
source_url 'https://www.tcpdump.org/release/libpcap-1.9.1.tar.gz'
source_sha256 '635237637c5b619bcceba91900666b64d56ecb7be63f298f601ec786ce087094'
source_url 'https://www.tcpdump.org/release/libpcap-1.10.0.tar.gz'
source_sha256 '8d12b42623eeefee872f123bd0dc85d535b00df4d42e865f993c40f7bfc92b1e'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpcap/1.9.1_armv7l/libpcap-1.9.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpcap/1.9.1_armv7l/libpcap-1.9.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpcap/1.9.1_i686/libpcap-1.9.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpcap/1.9.1_x86_64/libpcap-1.9.1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpcap/1.10.0_armv7l/libpcap-1.10.0-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpcap/1.10.0_armv7l/libpcap-1.10.0-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpcap/1.10.0_i686/libpcap-1.10.0-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpcap/1.10.0_x86_64/libpcap-1.10.0-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: '6ed603b0fcfc2262772ab55efaf2ac4aca927131d67e796d9d7b5ebdb4a13646',
armv7l: '6ed603b0fcfc2262772ab55efaf2ac4aca927131d67e796d9d7b5ebdb4a13646',
i686: '9eac0cd730345403835a085f5acd9b1648a2610c4cf1f2ae2c3af988d4c28499',
x86_64: '475bcac8bcd6f24765c68151500470141d5faf85fa89879612d4a0336a43e0ef',
binary_sha256({
aarch64: '3ec810c7c9ddc2e2d684cae52dcc69375b786f18b4f53086dc70a3b794a4a759',
armv7l: '3ec810c7c9ddc2e2d684cae52dcc69375b786f18b4f53086dc70a3b794a4a759',
i686: '967dcedbb55c15c68c232692a76b4a9e4a7d1accbed443c3bcc30fda952ea6ad',
x86_64: '8afeecd5018fe6d0bb4958e08d8359ee7abd09d48633d575ac2a241ccbdbee96'
})
depends_on 'libnl3'
def self.build
system "CFLAGS='-I#{CREW_PREFIX}/include/libnl3' ./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "CFLAGS='-I#{CREW_PREFIX}/include/libnl3 -flto -fuse-ld=gold' ./configure #{CREW_OPTIONS}"
system 'make'
end

View File

@@ -3,25 +3,25 @@ require 'package'
class Libsoup < Package
description 'libsoup is an HTTP client/server library for GNOME.'
homepage 'https://wiki.gnome.org/Projects/libsoup'
@_ver = '2.99.2'
@_ver = '2.99.5'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
license 'LGPL-2.1+'
compatibility 'all'
source_url "https://download.gnome.org/sources/libsoup/#{@_ver_prelastdot}/libsoup-#{@_ver}.tar.xz"
source_sha256 '664fa1b78a15cc0aa1fa65efb3b281a888417530f9f56a219571c0630f942ba5'
source_url 'https://gitlab.gnome.org/GNOME/libsoup.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libsoup/2.99.2_armv7l/libsoup-2.99.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libsoup/2.99.2_armv7l/libsoup-2.99.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libsoup/2.99.2_i686/libsoup-2.99.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libsoup/2.99.2_x86_64/libsoup-2.99.2-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libsoup/2.99.5_armv7l/libsoup-2.99.5-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libsoup/2.99.5_armv7l/libsoup-2.99.5-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libsoup/2.99.5_i686/libsoup-2.99.5-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libsoup/2.99.5_x86_64/libsoup-2.99.5-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '7b0fd36b36395b4949af7915af3eab02ab1842ba085f7c1858c977aca4af0534',
armv7l: '7b0fd36b36395b4949af7915af3eab02ab1842ba085f7c1858c977aca4af0534',
i686: '994478c3f30ed64b0ec04dc13b1383086806c8607f644a541bb4f25de2440a15',
x86_64: '2226f557f9d63cf666a17edd10c0831589cd3bdd652774f77b8ae73d0caa6440'
aarch64: '4f50b3740fd20061dfe27d08ef6cfb0815fefdd8740e3f5b71e284617c51033b',
armv7l: '4f50b3740fd20061dfe27d08ef6cfb0815fefdd8740e3f5b71e284617c51033b',
i686: 'f4effaf7fb8acf0262edb3d199bb982e8de90283aee92463005cacd343738a23',
x86_64: '28192705371f712fa67d4c6d17a7bd48114f3114882a5a499795bfe1d04c3dda'
})
depends_on 'glib_networking'

View File

@@ -3,41 +3,92 @@ require 'package'
class Libssp < Package
description 'Libssp is a part of the GCC toolkit.'
homepage 'https://gcc.gnu.org/'
version '10.3.0'
version '11.1.0'
license 'GPL-3, LGPL-3, libgcc, FDL-1.2'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/gcc/gcc-10.3.0/gcc-10.3.0.tar.xz'
source_sha256 '64f404c1a650f27fc33da242e1f2df54952e3963a49e06e73f6940f3223ac344'
source_url 'https://ftpmirror.gnu.org/gcc/gcc-11.1.0/gcc-11.1.0.tar.xz'
source_sha256 '4c4a6fb8a8396059241c2e674b85b351c26a5d678274007f076957afa1cc9ddf'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libssp/10.3.0_armv7l/libssp-10.3.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libssp/10.3.0_armv7l/libssp-10.3.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libssp/10.3.0_i686/libssp-10.3.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libssp/10.3.0_x86_64/libssp-10.3.0-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libssp/11.1.0_armv7l/libssp-11.1.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libssp/11.1.0_armv7l/libssp-11.1.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libssp/11.1.0_i686/libssp-11.1.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libssp/11.1.0_x86_64/libssp-11.1.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '96cccac5b98b142fdfeed83fcd2cc163dfcda386246366b4f7702ef9f1076649',
armv7l: '96cccac5b98b142fdfeed83fcd2cc163dfcda386246366b4f7702ef9f1076649',
i686: 'a4bf6df2e4e7d325b12c882702ae0a7262fdda7c1a109f7e044a4de7b206bbfc',
x86_64: '6c59d395ebd6d461cdc619333566c2139f96209390f7826f58df264f42301c0e'
aarch64: '8befe2e0872e61a61f3c3b557905612e64358d7df0617e8101dec63768087eb8',
armv7l: '8befe2e0872e61a61f3c3b557905612e64358d7df0617e8101dec63768087eb8',
i686: '5b02bf769ec3754f4b0c937e5420f13bf285bc81bdc9c68fbc6f63c56562682b',
x86_64: '356cd568080dd0e724081ec7f020d0b21e091d5552d175746f830c48830bd8b9'
})
depends_on 'ccache' => :build
depends_on 'dejagnu' => :build # for test
depends_on 'glibc' # R
@gcc_name = 'libssp'
@gcc_global_opts = '--enable-static \
--enable-shared \
--disable-multilib \
--disable-cet \
--with-pic \
--enable-symvers \
--with-gcc-major-version-only \
--with-system-libunwind'
@gcc_global_opts = '--disable-libmpx \
--disable-libssp \
--disable-multilib \
--disable-werror \
--enable-cet=auto \
--enable-checking=release \
--enable-clocale=gnu \
--enable-default-pie \
--enable-default-ssp \
--enable-gnu-indirect-function \
--enable-gnu-unique-object \
--enable-host-shared \
--enable-lto \
--enable-plugin \
--enable-shared \
--enable-symvers \
--enable-static \
--enable-threads=posix \
--with-gcc-major-version-only \
--with-gmp \
--with-isl \
--with-mpc \
--with-mpfr \
--with-pic \
--with-system-libunwind \
--with-system-zlib'
@cflags = '-fPIC -pipe'
@cxxflags = '-fPIC -pipe'
@languages = 'c,c++,jit,objc,fortran,go'
case ARCH
when 'armv7l', 'aarch64'
@archflags = '--with-arch=armv7-a --with-float=hard --with-fpu=neon'
when 'x86_64'
@archflags = '--with-arch-64=x86-64'
when 'i686'
@archflags = '--with-arch-32=i686'
end
def self.build
# Set ccache sloppiness as per
# https://wiki.archlinux.org/index.php/Ccache#Sloppiness
system 'ccache --set-config=sloppiness=file_macro,locale,time_macros'
# Prefix ccache to path.
@path = "#{CREW_LIB_PREFIX}/ccache/bin:#{CREW_PREFIX}/bin:/usr/bin:/bin"
gcc_version = version.split('-')[0]
Dir.mkdir "#{@gcc_name}-builddir"
Dir.chdir "#{@gcc_name}-builddir" do
system "#{CREW_ENV_OPTIONS} ../#{@gcc_name}/configure #{CREW_OPTIONS} \
#{@gcc_global_opts}"
system 'make'
system "env NM=gcc-nm AR=gcc-ar RANLIB=gcc-ranlib \
CFLAGS='#{@cflags}' CXXFLAGS='#{@cxxflags}' \
PATH=#{@path} \
../#{@gcc_name}/configure #{CREW_OPTIONS} \
#{@gcc_global_opts} \
--enable-languages=#{@languages} \
--program-suffix=-#{gcc_version} \
#{@archflags}"
system "env PATH=#{@path} \
make"
end
end

View File

@@ -3,75 +3,93 @@ require 'package'
class Llvm < Package
description 'The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. The optional packages clang, lld, lldb, polly, compiler-rt, libcxx, libcxxabi, and openmp are included.'
homepage 'http://llvm.org/'
@_ver = '11.1.0'
@_ver = '12.0.0'
version @_ver
license 'Apache-2.0-with-LLVM-exceptions, UoI-NCSA, BSD, public-domain, rc, Apache-2.0 and MIT'
compatibility 'all'
source_url "https://github.com/llvm/llvm-project/archive/llvmorg-#{@_ver}.tar.gz"
source_sha256 '53a0719f3f4b0388013cfffd7b10c7d5682eece1929a9553c722348d1f866e79'
source_sha256 '8e6c99e482bb16a450165176c2d881804976a2d770e0445af4375e78a1fbf19c'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/llvm/11.1.0_armv7l/llvm-11.1.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/llvm/11.1.0_armv7l/llvm-11.1.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/llvm/11.1.0_i686/llvm-11.1.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/llvm/11.1.0_x86_64/llvm-11.1.0-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/llvm/12.0.0_armv7l/llvm-12.0.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/llvm/12.0.0_armv7l/llvm-12.0.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/llvm/12.0.0_i686/llvm-12.0.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/llvm/12.0.0_x86_64/llvm-12.0.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'ba0520a8d5bfa90efb3eb13a530c8d4052f9e7572aa30dd42dfc624b88a0251e',
armv7l: 'ba0520a8d5bfa90efb3eb13a530c8d4052f9e7572aa30dd42dfc624b88a0251e',
i686: '3a514f96c846d777c838fef6c585d2278abf2a586bfaeacfd3e2bccc9ffce838',
x86_64: '5b9e01c2411ea174293fc1d33b2dbf91f7001eb3cc3eda2e849b80f6f0dcb3c8'
aarch64: 'd5f6b88daa7d17c90a4dbda045641ac269aef5702c29ab4781cd19041d02a089',
armv7l: 'd5f6b88daa7d17c90a4dbda045641ac269aef5702c29ab4781cd19041d02a089',
i686: 'ae7555048502a018fb8eeeb26300b10d3916762eb8e730618abe62163d4d0f63',
x86_64: '51da1968be089ad011603156e1a74a26d684a69fdc61c651125bc319d7b2921f'
})
depends_on 'ocaml' => :build
depends_on 'py3_pygments' => :build
depends_on 'ccache' => :build
# depends_on 'llvm_stage1' => :build # Not needed with a functional
# prior llvm 11 build.
depends_on 'elfutils' # R
depends_on 'gcc11' # R or gcc11
case ARCH
when 'aarch64', 'armv7l'
# LLVM_TARGETS_TO_BUILD = 'ARM;AArch64;AMDGPU'
LLVM_TARGETS_TO_BUILD = 'all'.freeze
@ARCH_C_FLAGS = "-fPIC -march=armv7-a -mfloat-abi=hard -ccc-gcc-name #{CREW_BUILD}"
# LLVM_TARGETS_TO_BUILD = 'all'.freeze
@ARCH_C_FLAGS = "-ltinfow -fPIC -march=armv7-a -mfloat-abi=hard -ccc-gcc-name #{CREW_BUILD}"
@ARCH_CXX_FLAGS = "-fPIC -march=armv7-a -mfloat-abi=hard -ccc-gcc-name #{CREW_BUILD}"
@ARCH_LDFLAGS = ''
@ARCH_LTO_LDFLAGS = "#{@ARCH_LDFLAGS} -flto=thin"
# compiler-rt fails with
# [2967/6683] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.armhf.dir/sanitizer_unwind_linux_libcdep.cpp.o
# FAILED: projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.armhf.dir/sanitizer_unwind_linux_libcdep.cpp.o
# CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/local/bin/ccache /usr/local/bin/clang++ -DHAVE_RPC_XDR_H=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/compiler-rt/lib/sanitizer_common -I/usr/local/tmp/crew/llvm.20210420052043.dir/llvm-project-llvmorg-12.0.0/compiler-rt/lib/sanitizer_common -Iinclude -I/usr/local/tmp/crew/llvm.20210420052043.dir/llvm-project-llvmorg-12.0.0/llvm/include -I/usr/local/tmp/crew/llvm.20210420052043.dir/llvm-project-llvmorg-12.0.0/compiler-rt/lib/sanitizer_common/.. -fPIC -march=armv7-a -mfloat-abi=hard -ccc-gcc-name armv7l-cros-linux-gnueabihf -flto=thin -fuse-ld=lld -fvisibility-inlines-hidden -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wno-noexcept-type -Wnon-virtual-dtor -Wsuggest-override -Wno-comment -fdiagnostics-color -flto=thin -Wall -std=c++14 -O3 -DNDEBUG -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -O3 -gline-tables-only -nostdinc++ -fno-rtti -std=c++14 -MD -MT projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.armhf.dir/sanitizer_unwind_linux_libcdep.cpp.o -MF projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.armhf.dir/sanitizer_unwind_linux_libcdep.cpp.o.d -o projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.armhf.dir/sanitizer_unwind_linux_libcdep.cpp.o -c /usr/local/tmp/crew/llvm.20210420052043.dir/llvm-project-llvmorg-12.0.0/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cpp
# clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
# /usr/local/tmp/crew/llvm.20210420052043.dir/llvm-project-llvmorg-12.0.0/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cpp:63:3: error: use of undeclared identifier '_Unwind_VRS_Result'; did you mean '_Unwind_Resume'?
# _Unwind_VRS_Result res = _Unwind_VRS_Get(ctx, _UVRSC_CORE,
# ^~~~~~~~~~~~~~~~~~
# _Unwind_Resume
LLVM_PROJECTS_TO_BUILD = 'clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;lld;polly;openmp'.freeze
when 'i686'
LLVM_TARGETS_TO_BUILD = 'X86'.freeze
# LLVM_TARGETS_TO_BUILD = 'X86'.freeze
# Because ld.lld: error: undefined symbol: __atomic_store
# Polly demands fPIC
@ARCH_C_FLAGS = '-latomic -fPIC'
@ARCH_C_FLAGS = '-ltinfow -latomic -fPIC'
@ARCH_CXX_FLAGS = '-latomic -fPIC'
# Because getting this error:
# ld.lld: error: relocation R_386_PC32 cannot be used against symbol isl_map_fix_si; recompile with -fPIC
# So as per https://github.com/openssl/openssl/issues/11305#issuecomment-602003528
@ARCH_LDFLAGS = '-Wl,-znotext'
@ARCH_LTO_LDFLAGS = "#{@ARCH_LDFLAGS} -flto=thin"
LLVM_PROJECTS_TO_BUILD = 'clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;polly;openmp'.freeze
when 'x86_64'
# LLVM_TARGETS_TO_BUILD = 'X86;AMDGPU'
LLVM_TARGETS_TO_BUILD = 'all'.freeze
@ARCH_C_FLAGS = '-fPIC'
# LLVM_TARGETS_TO_BUILD = 'all'.freeze
@ARCH_C_FLAGS = '-ltinfow -fPIC'
@ARCH_CXX_FLAGS = '-fPIC'
@ARCH_LDFLAGS = ''
@ARCH_LTO_LDFLAGS = "#{@ARCH_LDFLAGS} -flto=thin"
LLVM_PROJECTS_TO_BUILD = 'clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;polly;openmp'.freeze
end
@ARCH_C_LTO_FLAGS = "#{@ARCH_C_FLAGS} -flto=thin -fuse-ld=lld"
@ARCH_CXX_LTO_FLAGS = "#{@ARCH_CXX_FLAGS} -flto=thin -fuse-ld=lld"
LLVM_PROJECTS_TO_BUILD = 'clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;polly;openmp'.freeze
# LLVM_PROJECTS_TO_BUILD = 'clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;polly;openmp'.freeze
# Using Targets 'all' for non-i686 because otherwise mesa complains.
# This may be patched upstream as per
# https://reviews.llvm.org/rG1de56d6d13c083c996dfd44a32041dacae037d66
# LLVM_TARGETS_TO_BUILD = 'all'
LLVM_TARGETS_TO_BUILD = 'all'.freeze
def self.patch
# This keeps system libraries from being linked in as dependencies on a build host image, such as in docker.
# Uncomment the rest of this section if you need to.
# system "sudo rm /lib#{CREW_LIB_SUFFIX}/libncurses.so.5 || true"
# system "sudo rm /usr/lib#{CREW_LIB_SUFFIX}/libform.so || true"
# system "sudo ln -s #{CREW_LIB_PREFIX}/libncurses.so.6 /lib#{CREW_LIB_SUFFIX}/libncurses.so.5 || true"
# system "sudo ln -s #{CREW_LIB_PREFIX}/libform.so /usr/lib#{CREW_LIB_SUFFIX}/libform.so || true"
#system "sudo rm /lib#{CREW_LIB_SUFFIX}/libncurses.so.5 || true"
#system "sudo rm /usr/lib#{CREW_LIB_SUFFIX}/libform.so || true"
#system "sudo ln -s #{CREW_LIB_PREFIX}/libncurses.so.6 /lib#{CREW_LIB_SUFFIX}/libncurses.so.5 || true"
#system "sudo ln -s #{CREW_LIB_PREFIX}/libform.so /usr/lib#{CREW_LIB_SUFFIX}/libform.so || true"
# Fix gold linker issues killing mesa builds as per
# https://reviews.llvm.org/D100624 and
# https://bugs.llvm.org/show_bug.cgi?id=49915 fixed in 13.0 but also
# hopefully making it to 12.0.1
system "sed -i 's#write16(buf, s.sym->versionId);#write16(buf, s.sym->isLazy() ? VER_NDX_GLOBAL : s.sym->versionId);#g' \
lld/ELF/SyntheticSections.cpp"
end
def self.build
@@ -155,6 +173,8 @@ clang++ -fPIC -rtlib=compiler-rt -stdlib=libc++ -cxx-isystem \${cxx_sys} -I \${
FileUtils.install 'clc++', "#{CREW_DEST_PREFIX}/bin/clc++", mode: 0o755
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}/bfd-plugins"
FileUtils.ln_s "lib#{CREW_LIB_SUFFIX}/LLVMgold.so", "#{CREW_DEST_LIB_PREFIX}/bfd-plugins/"
# libunwind.* conflicts with libunwind package
FileUtils.rm Dir.glob("#{CREW_DEST_LIB_PREFIX}/libunwind.*")
end
end

View File

@@ -3,27 +3,27 @@ require 'package'
class Lua < Package
description 'Lua is a powerful, efficient, lightweight, embeddable scripting language.'
homepage 'https://www.lua.org/'
version '5.4.2'
version '5.4.3'
license 'MIT'
compatibility 'all'
source_url 'https://www.lua.org/ftp/lua-5.4.2.tar.gz'
source_sha256 '11570d97e9d7303c0a59567ed1ac7c648340cd0db10d5fd594c09223ef2f524f'
source_url 'https://www.lua.org/ftp/lua-5.4.3.tar.gz'
source_sha256 'f8612276169e3bfcbcfb8f226195bfc6e466fe13042f1076cbde92b7ec96bbfb'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/lua/5.4.2_armv7l/lua-5.4.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/lua/5.4.2_armv7l/lua-5.4.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/lua/5.4.2_i686/lua-5.4.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/lua/5.4.2_x86_64/lua-5.4.2-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/lua/5.4.3_armv7l/lua-5.4.3-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/lua/5.4.3_armv7l/lua-5.4.3-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/lua/5.4.3_i686/lua-5.4.3-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/lua/5.4.3_x86_64/lua-5.4.3-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: '1d9a0982da7b59fa17892c699f2818ee137a1eaba895da3519c67e71b4aabd6d',
armv7l: '1d9a0982da7b59fa17892c699f2818ee137a1eaba895da3519c67e71b4aabd6d',
i686: '8c04a985efa92609659cb618efd59086c7b57ae7ca3f101ebb6bf68d13a127a9',
x86_64: 'a063effc0721cc63a4872338a6d139e2f5b8611e1eb3b9391c111444279d88f0',
binary_sha256({
aarch64: '2cbf9670bd0a9388537d70d5559ff0505d31b6be36e85ccec0077ddb4f3fd3e3',
armv7l: '2cbf9670bd0a9388537d70d5559ff0505d31b6be36e85ccec0077ddb4f3fd3e3',
i686: '828d08293bb955aa2daa222fb6295a3c8f002c6ddd147d4d067129bed6b6e706',
x86_64: 'a1e7d87857e5ea2be3988975750e4af3cb881643bd751beb316b19f9305f5b88'
})
def self.build
system "make PLAT=linux-readline"
system "env #{CREW_ENV_OPTIONS} make PLAT=linux-readline"
end
def self.install

View File

@@ -3,49 +3,50 @@ require 'package'
class Mesa < Package
description 'Open-source implementation of the OpenGL specification'
homepage 'https://www.mesa3d.org'
@_ver = '21.0.2'
@_ver = '21.1.1'
version @_ver
license 'MIT'
compatibility 'all'
source_url "https://mesa.freedesktop.org/archive/mesa-#{@_ver}.tar.xz"
source_sha256 '46c1dc5bb54a372dee43ec3c067229c299187d5bdadf1402756bbf66a6df5b88'
source_sha256 'eec25ea379054e8911bc5de816aeb50f581b5b708414725003d2f00386b38dd2'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mesa/21.0.2_armv7l/mesa-21.0.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mesa/21.0.2_armv7l/mesa-21.0.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mesa/21.0.2_i686/mesa-21.0.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mesa/21.0.2_x86_64/mesa-21.0.2-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mesa/21.1.1_armv7l/mesa-21.1.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mesa/21.1.1_armv7l/mesa-21.1.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mesa/21.1.1_i686/mesa-21.1.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mesa/21.1.1_x86_64/mesa-21.1.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '535d0993748c3331486a2a48f380898244d223f355306374fd7761260871731a',
armv7l: '535d0993748c3331486a2a48f380898244d223f355306374fd7761260871731a',
i686: 'dd315ca82272212afa69914bc1f4a676fd0d5f1e35f7e11c1264c569afed360d',
x86_64: '0d69570884f25ca4ea75635c05d60652148397d51afecedc92cf3dcee6955361'
aarch64: '242a34dde6605408a1e3b2065a83f90187a9bdd978bc515dd927717fef641a6b',
armv7l: '242a34dde6605408a1e3b2065a83f90187a9bdd978bc515dd927717fef641a6b',
i686: '6878fd22b4918af37b662ce4e974e8f43e50588ec9addddaf10638980488e771',
x86_64: 'a4e381761971625cc8b6120bed6aea5eaf6c068f4476321de08b8f5f06875635'
})
depends_on 'elfutils'
depends_on 'glslang' => :build
depends_on 'libdrm'
depends_on 'libdrm' # R
depends_on 'libomxil_bellagio' => :build
depends_on 'libunwind'
depends_on 'libunwind' => :build
depends_on 'libvdpau' => :build
depends_on 'libx11'
depends_on 'libxcb'
depends_on 'libx11' # R
depends_on 'libxcb' # R
depends_on 'libxdamage' => :build
depends_on 'libxext'
depends_on 'libxfixes'
depends_on 'libxrandr'
depends_on 'libxshmfence'
depends_on 'libxv'
depends_on 'libxvmc'
depends_on 'libxxf86vm'
depends_on 'lm_sensors'
depends_on 'libxext' # R
depends_on 'libxfixes' # R
depends_on 'libxrandr' # R
depends_on 'libxshmfence' # R
depends_on 'libxv' => :build
depends_on 'libxvmc' # R
depends_on 'libxv' # R
depends_on 'libxxf86vm' # R
depends_on 'llvm' # R
depends_on 'lm_sensors' # R
depends_on 'py3_mako'
depends_on 'valgrind' => :build
depends_on 'vulkan_headers' => :build
depends_on 'vulkan_icd_loader' => :build
depends_on 'wayland'
depends_on 'wayland_protocols' => :build
depends_on 'wayland' # R
def self.build
case ARCH

View File

@@ -3,34 +3,35 @@ require 'package'
class Mutter < Package
description 'A window manager for GNOME'
homepage 'https://wiki.gnome.org/Projects/Mutter'
version '40.0'
version '40.1'
license 'GPL-2+'
compatibility 'x86_64 aarch64 armv7l'
source_url "https://gitlab.gnome.org/GNOME/mutter/-/archive/#{version}/mutter-#{version}.tar.bz2"
source_sha256 '3f56768113d536f5842ea6db14d1d9c48f8c87cd240891f9b9305116e425771e'
source_url 'https://gitlab.gnome.org/GNOME/mutter.git'
git_hashtag version
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mutter/40.0_armv7l/mutter-40.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mutter/40.0_armv7l/mutter-40.0-chromeos-armv7l.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mutter/40.0_x86_64/mutter-40.0-chromeos-x86_64.tar.xz',
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mutter/40.1_armv7l/mutter-40.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mutter/40.1_armv7l/mutter-40.1-chromeos-armv7l.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mutter/40.1_x86_64/mutter-40.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'fafa169c22a7aa7595edf43a4c8dc7306210163e6759130f81d338120b92b8bd',
armv7l: 'fafa169c22a7aa7595edf43a4c8dc7306210163e6759130f81d338120b92b8bd',
x86_64: '1b28b4cd4f91f342bc6bde187f48f58954b7259f0377e679742c9c821b60f668',
aarch64: '45b333676e45c13fdeab755581875203cf3f1f23265b86c83db5933e6d80d937',
armv7l: '45b333676e45c13fdeab755581875203cf3f1f23265b86c83db5933e6d80d937',
x86_64: 'faf3da0f7e8868fdc885b822ce9fb23bb44e0df47a3f0174c19dc7caff9f6c68'
})
depends_on 'ccache' => :build
depends_on 'dconf'
depends_on 'gnome_settings_daemon'
depends_on 'gsettings_desktop_schemas'
depends_on 'gobject_introspection' => :build
depends_on 'xorg_server' => :build
depends_on 'gsettings_desktop_schemas'
depends_on 'libcanberra'
depends_on 'libinput'
depends_on 'libwacom'
depends_on 'startup_notification'
depends_on 'pipewire'
depends_on 'libcanberra'
depends_on 'ccache' => :build
depends_on 'startup_notification'
depends_on 'xorg_server' => :build
depends_on 'xwayland'
def self.build
system "meson #{CREW_MESON_OPTIONS} \

View File

@@ -6,47 +6,47 @@ require 'package'
class Nautilus < Package
description 'Default file manager for GNOME'
homepage 'https://wiki.gnome.org/Apps/Files'
@_ver = '40.0'
version "#{@_ver}-1"
@_ver = '40.1'
version @_ver
license 'GPLv3'
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/nautilus/-/archive/#{@_ver}/nautilus-#{@_ver}.tar.bz2"
source_sha256 '9bcb93c5ce56dbe1cd2b2d0808c21a5e37cc1d098ee037b7da75c0a4a59e84e7'
source_url 'https://gitlab.gnome.org/GNOME/nautilus.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nautilus/40.0-1_armv7l/nautilus-40.0-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nautilus/40.0-1_armv7l/nautilus-40.0-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nautilus/40.0-1_i686/nautilus-40.0-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nautilus/40.0-1_x86_64/nautilus-40.0-1-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nautilus/40.1_armv7l/nautilus-40.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nautilus/40.1_armv7l/nautilus-40.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nautilus/40.1_i686/nautilus-40.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nautilus/40.1_x86_64/nautilus-40.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '98663fed405335be9b9e297f641bd7e14edc631f43702e17a6477ba5b43368b3',
armv7l: '98663fed405335be9b9e297f641bd7e14edc631f43702e17a6477ba5b43368b3',
i686: '41b42d30a12e0e6597d994e8d159828ba68861b8336e46f2288451de08dc2948',
x86_64: 'b3412b0b281875a9cd1a9433e25e345246351f9a2eedc2e91e55f4cb4259a40c'
aarch64: '5be1b22e7f4c93ea940558f5cfcb7e33c7abbf86d3c2b8cc3ac039c1ca946215',
armv7l: '5be1b22e7f4c93ea940558f5cfcb7e33c7abbf86d3c2b8cc3ac039c1ca946215',
i686: '66f98e53dd52bd1670d229845b969964fa1be2bbce2419db006defa4919dc5b4',
x86_64: '2df5a25aa14395965a8891b3917044537b7faf89dd45b49b46eab331e9379e0f'
})
depends_on 'appstream_glib' => :build
depends_on 'atk'
depends_on 'cairo'
depends_on 'atk' # R
depends_on 'cairo' # R
depends_on 'dconf'
depends_on 'gdk_pixbuf'
depends_on 'gexiv2'
depends_on 'glib'
depends_on 'gnome_autoar'
depends_on 'gnome_desktop'
depends_on 'gdk_pixbuf' # R
depends_on 'gexiv2' # R
depends_on 'glib' # R
depends_on 'gnome_autoar' # R
depends_on 'gnome_desktop' # R
depends_on 'gobject_introspection' => :build
depends_on 'gst_plugins_base'
depends_on 'gstreamer'
depends_on 'gtk3'
depends_on 'gst_plugins_base' # R
depends_on 'gstreamer' # R
depends_on 'gtk3' # R
depends_on 'gtk_doc' => :build
depends_on 'gvfs'
depends_on 'libhandy'
depends_on 'libhandy' # R
depends_on 'libjpeg'
depends_on 'libportal'
depends_on 'pango'
depends_on 'tracker3'
depends_on 'libportal' # R
depends_on 'pango' # R
depends_on 'tracker3_miners'
depends_on 'tracker3' # R
def self.patch
# Source has libgnome-volume-control repo as submodule

View File

@@ -1,35 +1,62 @@
# Adapted from Arch Linux nmap PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/nmap/trunk/PKGBUILD
require 'package'
class Nmap < Package
description 'Nmap (\'Network Mapper\') is a free and open source (license) utility for network discovery and security auditing.'
description 'Utility for network discovery and security auditing'
homepage 'https://nmap.org/'
version '7.80'
license 'NPSL'
version '7.91'
license 'GPL2'
compatibility 'all'
source_url 'https://nmap.org/dist/nmap-7.80.tar.bz2'
source_sha256 'fcfa5a0e42099e12e4bf7a68ebe6fde05553383a682e816a7ec9256ab4773faa'
source_url 'https://nmap.org/dist/nmap-7.91.tar.bz2'
source_sha256 '18cc4b5070511c51eb243cdd2b0b30ff9b2c4dc4544c6312f75ce3a67a593300'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nmap/7.80_armv7l/nmap-7.80-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nmap/7.80_armv7l/nmap-7.80-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nmap/7.80_i686/nmap-7.80-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nmap/7.80_x86_64/nmap-7.80-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nmap/7.91_armv7l/nmap-7.91-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nmap/7.91_armv7l/nmap-7.91-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nmap/7.91_i686/nmap-7.91-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/nmap/7.91_x86_64/nmap-7.91-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: '05f6f7b8303f7249e0ce26650f13bd051d0d5665d321be0ff59f6ce51cff57fe',
armv7l: '05f6f7b8303f7249e0ce26650f13bd051d0d5665d321be0ff59f6ce51cff57fe',
i686: 'f40786b4937b7d3a6b6ddc67afb4a004ba577f865d9d922fa0982ebb871b1451',
x86_64: '624e3f64733244d3f987b5dfbd72a52acef314fa481857cc1ad4f92d621d2f3a',
binary_sha256({
aarch64: 'b4a00869eb4406a56b541d6f0acc93ac9ca94aa9e6aa89b9f8dea098abc23447',
armv7l: 'b4a00869eb4406a56b541d6f0acc93ac9ca94aa9e6aa89b9f8dea098abc23447',
i686: '1d02de32a0e266752fefab260e59d7dbfea5fcd3ac57f2dcc87116fe3e1aef00',
x86_64: '047f51c3a169ea6d76b45d18fa86c5f6eada542ceca4c02a9ff6e5fafcfb5201'
})
depends_on 'libpcap'
depends_on 'libssh2'
def self.build
#fixup "/usr/bin/file" -> "#{CREW_PREFIX}/bin/file" in the configure scripts
system "sed -i s#/usr/bin/file##{CREW_DEST_PREFIX}/bin/file#g libdnet-stripped/configure"
system "./configure --with-pcap=linux --without-zenmap --prefix=#{CREW_PREFIX}"
# ensure we build devendored deps"
@deps = %w[libpcap libpcre macosx mwin32 libssh2 libz]
@deps.each do |dep|
FileUtils.rm_rf dep if Dir.exist?(dep)
end
system 'autoreconf -fiv'
system 'filefix'
system "env #{CREW_ENV_OPTIONS} \
./configure \
#{CREW_OPTIONS} \
--with-libpcap=#{CREW_PREFIX} \
--with-libpcre=#{CREW_PREFIX} \
--with-zlib=#{CREW_PREFIX} \
--with-libssh2=#{CREW_PREFIX} \
--with-liblua=included \
--without-ndiff"
system 'make'
@zenmap_ = <<~'ZENMAP_EOF'
#!/bin/sh
xhost si:localuser:root
sudo -E LD_LIBRARY_PATH=#{CREW_LIB_PREFIX} zenmap.elf
ZENMAP_EOF
IO.write('zenmap_', @zenmap_)
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "make DESTDIR=#{CREW_DEST_DIR} install"
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/zenmap", "#{CREW_DEST_PREFIX}/bin/zenmap.elf"
FileUtils.install 'zenmap_', "#{CREW_DEST_PREFIX}/bin/zenmap", mode: 0o755
end
end

View File

@@ -3,30 +3,30 @@ require 'package'
class Oniguruma < Package
description 'Oniguruma is a modern and flexible regular expressions library.'
homepage 'https://github.com/kkos/oniguruma'
version '6.9.3'
version '6.9.7.1'
license 'BSD-2'
compatibility 'all'
source_url 'https://github.com/kkos/oniguruma/archive/v6.9.3.tar.gz'
source_sha256 'dc6dec742941e24b761cea1b9a2f12e750879107ae69fd80ae1046459d4fb1db'
source_url 'https://github.com/kkos/oniguruma.git'
git_hashtag "v#{version}"
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/oniguruma/6.9.3_armv7l/oniguruma-6.9.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/oniguruma/6.9.3_armv7l/oniguruma-6.9.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/oniguruma/6.9.3_i686/oniguruma-6.9.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/oniguruma/6.9.3_x86_64/oniguruma-6.9.3-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/oniguruma/6.9.7.1_armv7l/oniguruma-6.9.7.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/oniguruma/6.9.7.1_armv7l/oniguruma-6.9.7.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/oniguruma/6.9.7.1_i686/oniguruma-6.9.7.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/oniguruma/6.9.7.1_x86_64/oniguruma-6.9.7.1-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: 'b6235fcfb3eb95dddafe8979adca6a4ba1bfc47d2c802a8bc14b73f1f57a30f5',
armv7l: 'b6235fcfb3eb95dddafe8979adca6a4ba1bfc47d2c802a8bc14b73f1f57a30f5',
i686: '11d6178e2662c45b869e9f3c3335291f60c74623e33f8cb027f1cdc1b81ab686',
x86_64: 'ba64baffe8cc1797ac44d7385d6d0c11d9438bfe9f11ece17f80a34740e32753',
binary_sha256({
aarch64: '61e2b0c0a8096bc2acdb1d311021786c08c0a47298fab2a063e2821c19b95f28',
armv7l: '61e2b0c0a8096bc2acdb1d311021786c08c0a47298fab2a063e2821c19b95f28',
i686: 'e0c27b9259019fc5c1461d689a47cad568e7636de9480086e3e22aec8854c2e4',
x86_64: 'bd6365ccee10f95b6091eecf8b23e96a0b30f87a1b9c71f120dabcaa9f5c6cee'
})
def self.build
system './autogen.sh'
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}"
system 'NOCONFIGURE=1 ./autogen.sh'
system 'filefix'
system "env #{CREW_ENV_OPTIONS} \
./configure #{CREW_OPTIONS}"
system 'make'
end

39
packages/openhab.rb Normal file
View File

@@ -0,0 +1,39 @@
require 'package'
class Openhab < Package
description 'A vendor and technology agnostic open source automation software for your home'
homepage 'https://www.openhab.org/'
@_ver = '3.1.0'
version @_ver
license 'Eclipse Public License 2.0'
compatibility 'x86_64'
source_url 'https://ci.openhab.org/job/openHAB3-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-3.1.0-SNAPSHOT.tar.gz'
source_sha256 'cecf5a13ba0d1003da5366eaa5d23c3adb93f574c4d471ecbca38763c36554f7'
binary_url({
})
binary_sha256({
})
depends_on 'jdk11'
def self.build
openhab = <<~EOF
#!/bin/bash
cd #{CREW_PREFIX}/share/openhab
./start.sh
EOF
IO.write('openhab.sh', openhab)
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/openhab"
FileUtils.install 'openhab.sh', "#{CREW_DEST_PREFIX}/bin/openhab", mode: 0o755
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/openhab"
end
def self.postinstall
puts "\nTo get started, execute 'openhab'.\n".lightblue
end
end

View File

@@ -3,11 +3,11 @@ require 'package'
class Opera < Package
description "Opera is a multi-platform web browser based on Chromium and developed by Opera Software."
homepage 'https://www.opera.com/'
version '75.0.3969.171'
version '76.0.4017.123'
license 'OPERA-2018'
compatibility 'x86_64'
source_url "https://get.geo.opera.com/pub/opera/desktop/#{version}/linux/opera-stable_#{version}_amd64.deb"
source_sha256 '7ce460d2c53dbefb83106d90812f60e36e09165548dcb0907f52b44bd66b8039'
source_sha256 '8c3ddb304bf9f0a149228daef454904d89eba7019a5a013f38da361350daec77'
depends_on 'gtk3'
depends_on 'gsettings_desktop_schemas'

View File

@@ -3,41 +3,58 @@ require 'package'
class Perl < Package
description 'Perl 5 is a highly capable, feature-rich programming language with over 29 years of development.'
homepage 'https://www.perl.org/'
version '5.32.0'
@_ver = '5.32.1'
version @_ver
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'http://www.cpan.org/src/5.0/perl-5.32.0.tar.gz'
source_sha256 'efeb1ce1f10824190ad1cadbcccf6fdb8a5d37007d0100d2d9ae5f2b5900c0b4'
source_url "http://www.cpan.org/src/5.0/perl-#{@_ver}.tar.gz"
source_sha256 '03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl/5.32.1_armv7l/perl-5.32.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl/5.32.1_armv7l/perl-5.32.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl/5.32.1_i686/perl-5.32.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl/5.32.1_x86_64/perl-5.32.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl/5.32.1_x86_64/perl-5.32.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '8f96c4ac4e4927ff643670ba362568e5483ba4ef970acd742877ef49b48829df',
armv7l: '8f96c4ac4e4927ff643670ba362568e5483ba4ef970acd742877ef49b48829df',
i686: '2193da9719f91be5aa261471aae0314b19da430ae3f09006c30d7d276b5f230d',
x86_64: '8c12ba41052f0f49f1dccc7cc1de795d4b4c55ba70c4ed1eff866580405e300a',
x86_64: '8c12ba41052f0f49f1dccc7cc1de795d4b4c55ba70c4ed1eff866580405e300a'
})
depends_on 'patch' => :build
@perl_fullversion = @_ver.split('-')[0]
@perl_version = @_ver.rpartition('.')[0]
def self.build
FileUtils.ln_sf "#{CREW_LIB_PREFIX}/libnsl.so.1", "#{CREW_LIB_PREFIX}/libnsl.so"
# Use system zlib and bzip2
# Create shared library
# Install manual files into #{CREW_PREFIX}/share/man/man* even if groff is not installed.
system "BUILD_ZLIB=False BUILD_BZIP2=0 ./Configure -de -Duseshrplib -Dman1dir=#{CREW_MAN_PREFIX}/man1 -Dman3dir=#{CREW_MAN_PREFIX}/man3"
system "env AR=gcc-ar RANLIB=gcc-ranlib NM=gcc-nm \
CFLAGS='-Os -pipe -flto=auto' \
CXXFLAGS='-Os -pipe -flto=auto' \
LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -flto -fuse-linker-plugin' \
BUILD_ZLIB=False BUILD_BZIP2=0 \
./Configure \
-Doptimize='-Os -pipe -flto=auto' \
-Dusethreads \
-de -Duseshrplib -Dman1dir=#{CREW_MAN_PREFIX}/man1 -Dman3dir=#{CREW_MAN_PREFIX}/man3"
system 'make'
system 'curl -o cpanm https://cpanmin.us'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.mkdir_p CREW_DEST_LIB_PREFIX if ARCH == 'x86_64'
FileUtils.mkdir_p CREW_DEST_LIB_PREFIX
FileUtils.ln_sf "#{CREW_PREFIX}/lib/perl5/#{@perl_fullversion}/#{ARCH}-linux-thread-multi/CORE/libperl.so",
"#{CREW_DEST_LIB_PREFIX}/libperl.so"
FileUtils.ln_sf "#{CREW_LIB_PREFIX}/libnsl.so.1", "#{CREW_DEST_LIB_PREFIX}/libnsl.so"
# Avoid File conflict with tcl, ocaml
FileUtils.mv "#{CREW_DEST_MAN_PREFIX}/man3/Thread.3", "#{CREW_DEST_MAN_PREFIX}/man3/Thread.3perl"
system "install -Dm755 cpanm #{CREW_DEST_PREFIX}/bin/cpanm"
end
@@ -60,6 +77,6 @@ diff -ur perl-5.22.1.orig/t/lib/warnings/regexec perl-5.22.1/t/lib/warnings/rege
EOF'
# test
system "make test"
system 'make test || true'
end
end

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_carp_clan < Package
description 'Report errors from perspective of caller of a "clan" of modules'
homepage 'https://metacpan.org/pod/Carp::Clan'
version '6.08'
version '6.08-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/E/ET/ETHER/Carp-Clan-6.08.tar.gz'
source_sha256 'c75f92e34422cc5a65ab05d155842b701452434e9aefb649d6e2289c47ef6708'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_carp_clan/6.08_armv7l/perl_carp_clan-6.08-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_carp_clan/6.08_armv7l/perl_carp_clan-6.08-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_carp_clan/6.08_i686/perl_carp_clan-6.08-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_carp_clan/6.08_x86_64/perl_carp_clan-6.08-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_carp_clan/6.08-1_armv7l/perl_carp_clan-6.08-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_carp_clan/6.08-1_armv7l/perl_carp_clan-6.08-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_carp_clan/6.08-1_i686/perl_carp_clan-6.08-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_carp_clan/6.08-1_x86_64/perl_carp_clan-6.08-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'dc90c4812e8dc89fbdc37173fc5e28bdbbf2d4b7ef4e5a1848cafa3b93c92a0e',
armv7l: 'dc90c4812e8dc89fbdc37173fc5e28bdbbf2d4b7ef4e5a1848cafa3b93c92a0e',
i686: '937964b41cd2e593626e588c850f402eeea22c0cd0c26621590026599dca70db',
x86_64: '64a770bb270702be5eaab0092f20d2fdf3176cd73d73710e112f568f9df449eb',
binary_sha256({
aarch64: 'f3ebb5e1420ae2fb02e2043326019a84515432d33510749ae0cd7e917aeee109',
armv7l: 'f3ebb5e1420ae2fb02e2043326019a84515432d33510749ae0cd7e917aeee109',
i686: '44a337556d4ac69e3fa7d441b748653aad1a028309b0693ab79b2db99f03eacf',
x86_64: '295172aab40d44e24afc5a3f0dc6eed4303339b19b3b93a2366181a1e2b46b1f'
})
depends_on 'perl'
def self.build
system 'perl', 'Makefile.PL'
system 'make'

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_date_calc < Package
description 'Gregorian calendar date calculations'
homepage 'https://metacpan.org/pod/Date::Calc'
version '6.4'
version '6.4-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/S/ST/STBEY/Date-Calc-6.4.tar.gz'
source_sha256 '7ce137b2e797b7c0901f3adf1a05a19343356cd1f04676aa1c56a9f624f859ad'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_calc/6.4_armv7l/perl_date_calc-6.4-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_calc/6.4_armv7l/perl_date_calc-6.4-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_calc/6.4_i686/perl_date_calc-6.4-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_calc/6.4_x86_64/perl_date_calc-6.4-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_calc/6.4-1_armv7l/perl_date_calc-6.4-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_calc/6.4-1_armv7l/perl_date_calc-6.4-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_calc/6.4-1_i686/perl_date_calc-6.4-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_calc/6.4-1_x86_64/perl_date_calc-6.4-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '3814f76c7a5a978752feaeda8e8b69b2cd6464e862749c28c9db9984a573f9c9',
armv7l: '3814f76c7a5a978752feaeda8e8b69b2cd6464e862749c28c9db9984a573f9c9',
i686: 'e32643c29b7a584b795d798b04f43fa1dce5709e0b5aa640ea0d1377115b3e29',
x86_64: '41473868421126d03723e7abb31183e1bd7dfa4178cbd6c6065f4cbe2712dee4',
binary_sha256({
aarch64: '794fba788fdccc502c07cf8d213e8c4f116658beaa508a0964bbea36ce4d07fb',
armv7l: '794fba788fdccc502c07cf8d213e8c4f116658beaa508a0964bbea36ce4d07fb',
i686: 'a1b37b825b42512d796d38486f1d63696c68257a7c0d6f5be1e64784610d3d5d',
x86_64: 'f91b5551c3b2f7487d9dedec2a910c9a881bed5dbd732d7fe759adfcb843f186'
})
depends_on 'perl'
def self.build
system 'perl', 'Makefile.PL'
system 'make'

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_date_format < Package
description 'Date formatting subroutines'
homepage 'https://metacpan.org/pod/Date::Format'
version '2.33'
version '2.33-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/TimeDate-2.33.tar.gz'
source_sha256 'c0b69c4b039de6f501b0d9f13ec58c86b040c1f7e9b27ef249651c143d605eb2'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_format/2.33_armv7l/perl_date_format-2.33-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_format/2.33_armv7l/perl_date_format-2.33-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_format/2.33_i686/perl_date_format-2.33-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_format/2.33_x86_64/perl_date_format-2.33-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_format/2.33-1_armv7l/perl_date_format-2.33-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_format/2.33-1_armv7l/perl_date_format-2.33-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_format/2.33-1_i686/perl_date_format-2.33-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_format/2.33-1_x86_64/perl_date_format-2.33-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'e12636b27086aab2d0726826041b3b2765b6b5e6f83de7b65e8da61164faeff7',
armv7l: 'e12636b27086aab2d0726826041b3b2765b6b5e6f83de7b65e8da61164faeff7',
i686: 'ea76e2d8a143358d2813861b9cd89a5e80078d172310b321bd3a05f6af36094e',
x86_64: '3af38627d41d1e3536fa9d7c3db4e0d4a6573a579ee1eac9af10384ac19a1d95',
binary_sha256({
aarch64: '58c1886e79ef37627314f0ffa838d11190e45de6ff17e02de21af1d129bff4b3',
armv7l: '58c1886e79ef37627314f0ffa838d11190e45de6ff17e02de21af1d129bff4b3',
i686: 'f81f2743e65366196693cf781d30ec7b0a0c9387cee583b6789245f81eb2ffeb',
x86_64: '2998c9fed1b23f2b438c4320dae495129b3f7067e770cce38983a868088f1db5'
})
depends_on 'perl'
def self.build
system 'perl', 'Makefile.PL'
system 'make'
@@ -31,5 +29,8 @@ class Perl_date_format < Package
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
# Conflict with perl_xml_parser package.
FileUtils.rm "#{CREW_PREFIX}/lib/perl5/site_perl/5.32.1/Date/Language/Amharic.pm"
end
end

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_date_manip < Package
description 'Date manipulation routines'
homepage 'https://metacpan.org/pod/Date::Manip'
version '6.82'
version '6.82-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/S/SB/SBECK/Date-Manip-6.82.tar.gz'
source_sha256 'fa96bcf94c6b4b7d3333f073f5d0faad59f546e5aec13ac01718f2e6ef14672a'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_manip/6.82_armv7l/perl_date_manip-6.82-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_manip/6.82_armv7l/perl_date_manip-6.82-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_manip/6.82_i686/perl_date_manip-6.82-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_manip/6.82_x86_64/perl_date_manip-6.82-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_manip/6.82-1_armv7l/perl_date_manip-6.82-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_manip/6.82-1_armv7l/perl_date_manip-6.82-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_manip/6.82-1_i686/perl_date_manip-6.82-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_date_manip/6.82-1_x86_64/perl_date_manip-6.82-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '114afa63adb7758a46d04deba5917617872662dd440ab6dc3f5e89dfb547fced',
armv7l: '114afa63adb7758a46d04deba5917617872662dd440ab6dc3f5e89dfb547fced',
i686: '1d1d2202e2cca01e13660c8b9c3f430749d5c3619916de0e04a0c2072209da29',
x86_64: 'ab630a996ee8119a67846d16f51a0749e38a0ab6b46f9c6495304e09a03c4c03',
binary_sha256({
aarch64: '96b6434cacbc4c44472b663f92f8f1f66fa017aade85cf73b589cbc92b0cd988',
armv7l: '96b6434cacbc4c44472b663f92f8f1f66fa017aade85cf73b589cbc92b0cd988',
i686: '5d0213058c1d5c1d20eae4223cadde99c563f23a66cd7637553d1c35797bf7df',
x86_64: 'aac6357483d49208f09ee9b1c71087ca10924ddba8268fbf054fb3efc3ed7a5d'
})
depends_on 'perl'
def self.build
system 'perl', 'Makefile.PL'
system 'make'

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_file_tail < Package
description 'Perl extension for reading from continuously updated files'
homepage 'https://metacpan.org/pod/File::Tail'
version '1.3'
version '1.3-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/M/MG/MGRABNAR/File-Tail-1.3.tar.gz'
source_sha256 '26d09f81836e43eae40028d5283fe5620fe6fe6278bf3eb8eb600c48ec34afc7'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_file_tail/1.3_armv7l/perl_file_tail-1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_file_tail/1.3_armv7l/perl_file_tail-1.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_file_tail/1.3_i686/perl_file_tail-1.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_file_tail/1.3_x86_64/perl_file_tail-1.3-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_file_tail/1.3-1_armv7l/perl_file_tail-1.3-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_file_tail/1.3-1_armv7l/perl_file_tail-1.3-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_file_tail/1.3-1_i686/perl_file_tail-1.3-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_file_tail/1.3-1_x86_64/perl_file_tail-1.3-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'f01dfbccd682bd74baea061f0143963cfd7271219eedfbd4ee659e7561096923',
armv7l: 'f01dfbccd682bd74baea061f0143963cfd7271219eedfbd4ee659e7561096923',
i686: '9cb02093a16544f73b266b6f6ca112a336ad2b0453e2a1e3f20f7e1087b973aa',
x86_64: '16fef92f4059a8a047a8fc859f0297fbe2f7a056e7ab3f20a8d9a73c91334eda',
binary_sha256({
aarch64: 'a4ef2b1c64d500ab70f1e2bfa1eea3b9c4872ff1cd0479a340a8953583237e80',
armv7l: 'a4ef2b1c64d500ab70f1e2bfa1eea3b9c4872ff1cd0479a340a8953583237e80',
i686: 'e7598c65f241246fe6d4c95db13288675d3d150ba7fbc6285fee5ee01d9f6fa8',
x86_64: '2eb28e0e5cca3cab45a9bada46f58cbb793464df95f033e2dac025c44d65efd3'
})
depends_on 'perl'
def self.build
system 'perl', 'Makefile.PL'
system 'make'

View File

@@ -3,38 +3,31 @@ require 'package'
class Perl_gcstring_linebreak < Package
description 'UAX 14 Unicode Line Breaking Algorithm - Perl binding Unicode::LineBreak Unicode::GCString'
homepage 'http://search.cpan.org/~nezumi/Unicode-LineBreak-2018.003/lib/Unicode/LineBreak.pod'
version '2019.001'
version '2019.001-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://github.com/hatukanezumi/Unicode-LineBreak/archive/Unicode-LineBreak-2019.001.tar.gz'
source_sha256 'bc9f96cf8bea60665e8ad67e90b0db3cc0bcdb97101e15c8c44ea671ba256577'
source_url 'https://github.com/hatukanezumi/Unicode-LineBreak.git'
git_hashtag 'Unicode-LineBreak-2019.001'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_gcstring_linebreak/2019.001_armv7l/perl_gcstring_linebreak-2019.001-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_gcstring_linebreak/2019.001_armv7l/perl_gcstring_linebreak-2019.001-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_gcstring_linebreak/2019.001_i686/perl_gcstring_linebreak-2019.001-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_gcstring_linebreak/2019.001_x86_64/perl_gcstring_linebreak-2019.001-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_gcstring_linebreak/2019.001-1_armv7l/perl_gcstring_linebreak-2019.001-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_gcstring_linebreak/2019.001-1_armv7l/perl_gcstring_linebreak-2019.001-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_gcstring_linebreak/2019.001-1_i686/perl_gcstring_linebreak-2019.001-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_gcstring_linebreak/2019.001-1_x86_64/perl_gcstring_linebreak-2019.001-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'f3305554fcb79da45098b3b13aa792f74ba773447d2ca7c0b1c114e1fcfd6511',
armv7l: 'f3305554fcb79da45098b3b13aa792f74ba773447d2ca7c0b1c114e1fcfd6511',
i686: 'e98342303364ca0faaa8cb272147c4b12aa172ff2d923fb2ee3f3ad160f6c7b2',
x86_64: '155551083e64b975e1019808f89ca3d42a8ff318367124ad5eedaff610e3f3f0',
binary_sha256({
aarch64: '376dfc3b39d861076e0ead658cc62ae07d5d753eaaf86bb70d440a537c3a4da4',
armv7l: '376dfc3b39d861076e0ead658cc62ae07d5d753eaaf86bb70d440a537c3a4da4',
i686: 'bedf57b7890ffb8ad84fce620bc07b28c1128901829a9453905ce8f64982a3eb',
x86_64: '2ccb5f0a0e9d96e02b13d1d4e16719b9df93d82354642f8f94feae76fa0cbd87'
})
depends_on 'perl'
def self.build
system 'git', 'clone', '--recurse-submodules', 'https://github.com/hatukanezumi/Unicode-LineBreak', '-b', "Unicode-LineBreak-#{version}"
Dir.chdir 'Unicode-LineBreak' do
system 'perl', 'Makefile.PL'
system 'make'
end
system 'perl', 'Makefile.PL'
system 'make'
end
def self.install
Dir.chdir 'Unicode-LineBreak' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_io_socket_ssl < Package
description 'IO::Socket::SSL - SSL sockets with IO::Socket interface'
homepage 'https://metacpan.org/pod/IO::Socket::SSL'
version '2.068'
version '2.068-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.068.tar.gz'
source_sha256 '4420fc0056f1827b4dd1245eacca0da56e2182b4ef6fc078f107dc43c3fb8ff9'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_io_socket_ssl/2.068_armv7l/perl_io_socket_ssl-2.068-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_io_socket_ssl/2.068_armv7l/perl_io_socket_ssl-2.068-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_io_socket_ssl/2.068_i686/perl_io_socket_ssl-2.068-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_io_socket_ssl/2.068_x86_64/perl_io_socket_ssl-2.068-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_io_socket_ssl/2.068-1_armv7l/perl_io_socket_ssl-2.068-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_io_socket_ssl/2.068-1_armv7l/perl_io_socket_ssl-2.068-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_io_socket_ssl/2.068-1_i686/perl_io_socket_ssl-2.068-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_io_socket_ssl/2.068-1_x86_64/perl_io_socket_ssl-2.068-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '290136e4383f9f88e8d9ca18d73c41ed6eb96f7d81f1c3baa3c6ef3087283560',
armv7l: '290136e4383f9f88e8d9ca18d73c41ed6eb96f7d81f1c3baa3c6ef3087283560',
i686: '7cb1cfb6c47f5cc3f817867af6a883e403316258d68361028615b8b0373ad772',
x86_64: 'ffc3268461e4c52068243e8a1480bc829d420c284d842c02975d1175493f8558',
binary_sha256({
aarch64: '8c2230feb2b7205349703e5b5b5b10e9f21f3ce079e5b6036728c33ee91a1ff6',
armv7l: '8c2230feb2b7205349703e5b5b5b10e9f21f3ce079e5b6036728c33ee91a1ff6',
i686: '24df6cac573463073b723da4b9b1a65380e2cdd67a053aabb9e61491410960c7',
x86_64: 'd753d89a94d4a9538bf576040e00b3216b1746a9930e091a60366f2627978fc4'
})
depends_on 'perl'
def self.build
system "yes | perl Makefile.PL PREFIX=#{CREW_PREFIX} DESTDIR=#{CREW_DEST_DIR}"
system 'make'

View File

@@ -1,32 +1,28 @@
require 'package'
class Perl_locale_gettext < Package
description 'Locale::gettext - message handling functions'
homepage 'https://metacpan.org/pod/Locale::gettext'
compatibility 'all'
license 'GPL-1+ or Artistic'
version '1.07-1'
version '1.07-2'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/P/PV/PVANDRY/gettext-1.07.tar.gz'
source_sha256 '909d47954697e7c04218f972915b787bd1244d75e3bd01620bc167d5bbc49c15'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_gettext/1.07-1_armv7l/perl_locale_gettext-1.07-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_gettext/1.07-1_armv7l/perl_locale_gettext-1.07-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_gettext/1.07-1_i686/perl_locale_gettext-1.07-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_gettext/1.07-1_x86_64/perl_locale_gettext-1.07-1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_gettext/1.07-2_armv7l/perl_locale_gettext-1.07-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_gettext/1.07-2_armv7l/perl_locale_gettext-1.07-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_gettext/1.07-2_i686/perl_locale_gettext-1.07-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_gettext/1.07-2_x86_64/perl_locale_gettext-1.07-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '2ca25cdafbe78b4d6b5e01c8985c20a2341c06c3b6969c50fa57f5dda2980e07',
armv7l: '2ca25cdafbe78b4d6b5e01c8985c20a2341c06c3b6969c50fa57f5dda2980e07',
i686: 'cf09ba00b54abf698b8c90e08c0de4f99856179551033f81e7984b4f1ae99e8f',
x86_64: '1183aaa19a065dcc5578276614e4e42f178b76e629d52285f68a12dae87f9232',
binary_sha256({
aarch64: '5ba4484084fe099eb2bb9c2db6ac7461fd9b951e41992bc4105cd68ae48094a8',
armv7l: '5ba4484084fe099eb2bb9c2db6ac7461fd9b951e41992bc4105cd68ae48094a8',
i686: 'de64c0415d97e2d0f5fd5cc6cee55f55f511d86528442c8b382eb7223214c13f',
x86_64: '9cf2b992dad51c31253e717dadc1ea3318efa56eb0261958e389d554bb6436b3'
})
depends_on 'perl'
def self.build
end
def self.build; end
def self.install
# install files to build directory
@@ -42,6 +38,5 @@ class Perl_locale_gettext < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,29 +3,26 @@ require 'package'
class Perl_locale_messages < Package
description 'Perl Locale::Messages - Gettext Like Message Retrieval.'
homepage 'https://metacpan.org/pod/Locale::Messages'
version '1.31'
version '1.31-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/G/GU/GUIDO/libintl-perl-1.31.tar.gz'
source_sha256 'cad0b1fd0abfa1340dea089ec45ee3dacd9710c9fd942c064bb8124273b3caa9'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_messages/1.31_armv7l/perl_locale_messages-1.31-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_messages/1.31_armv7l/perl_locale_messages-1.31-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_messages/1.31_i686/perl_locale_messages-1.31-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_messages/1.31_x86_64/perl_locale_messages-1.31-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_messages/1.31-1_armv7l/perl_locale_messages-1.31-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_messages/1.31-1_armv7l/perl_locale_messages-1.31-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_messages/1.31-1_i686/perl_locale_messages-1.31-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_locale_messages/1.31-1_x86_64/perl_locale_messages-1.31-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'aac0aa6fe8609a8f51f755f738613842dad332d641e3ddbebb30565a82d87be9',
armv7l: 'aac0aa6fe8609a8f51f755f738613842dad332d641e3ddbebb30565a82d87be9',
i686: '3f100a08dfb9ef440f75bc5891c6642dbb569c8e404524c497df9f1778dad440',
x86_64: '11676c56fb5897372398f0ebb4ce8a870757e680ec63dcf7baee6695df53dc52',
binary_sha256({
aarch64: 'fda26b093588628e08bf3f7b4cce646b70ffe7074fc00458af7ee02ddbcc44dd',
armv7l: 'fda26b093588628e08bf3f7b4cce646b70ffe7074fc00458af7ee02ddbcc44dd',
i686: 'df20e08e1dfa946e067eb00bff209397d3901d7cec5f115d805d67d3b67b0b9b',
x86_64: 'c4ff271866c9dab9e707a591157c0fafa7a3230294473a6ee77f17a95bc4b978'
})
depends_on 'perl'
def self.build
end
def self.build; end
def self.install
# install files to build directory
@@ -41,6 +38,5 @@ class Perl_locale_messages < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,29 +3,26 @@ require 'package'
class Perl_module_build < Package
description 'Module::Build - Build and install Perl modules'
homepage 'https://metacpan.org/pod/Module::Build'
version '0.4231'
version '0.4231-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-0.4231.tar.gz'
source_sha256 '7e0f4c692c1740c1ac84ea14d7ea3d8bc798b2fb26c09877229e04f430b2b717'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_module_build/0.4231_armv7l/perl_module_build-0.4231-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_module_build/0.4231_armv7l/perl_module_build-0.4231-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_module_build/0.4231_i686/perl_module_build-0.4231-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_module_build/0.4231_x86_64/perl_module_build-0.4231-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_module_build/0.4231-1_armv7l/perl_module_build-0.4231-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_module_build/0.4231-1_armv7l/perl_module_build-0.4231-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_module_build/0.4231-1_i686/perl_module_build-0.4231-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_module_build/0.4231-1_x86_64/perl_module_build-0.4231-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'b8407fa11a374de2c9a07ecae133cee6872b433872b6b3bef2a51218bf0d3c4c',
armv7l: 'b8407fa11a374de2c9a07ecae133cee6872b433872b6b3bef2a51218bf0d3c4c',
i686: '5c0b7f602df7ff123b58d4e6cdea0fcc019a482f06de809219f9d4fbb23e9992',
x86_64: '71b31393762a1eaa299d3e519aa1b72f152eb405378e2d37001d62a809791a92',
binary_sha256({
aarch64: '20d2dc51249d27c1f77b8a07b9b5a0f184e15581df486192f8b62bdda579669b',
armv7l: '20d2dc51249d27c1f77b8a07b9b5a0f184e15581df486192f8b62bdda579669b',
i686: '5dc94b6562c86fefa1501fc1ae895c3159a3b0449fbce685a892286d7715e11e',
x86_64: 'e3178127a60be8154cd3f2bf57611959651e8d050ddb8b8682320e045db82cfa'
})
depends_on 'perl'
def self.build
end
def self.build; end
def self.install
# install files to build directory
@@ -41,6 +38,5 @@ class Perl_module_build < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -6,23 +6,23 @@ require 'package'
class Perl_parse_yapp < Package
description 'Yapp : Generates OO LALR parser modules'
homepage 'https://search.cpan.org/dist/Parse-Yapp'
version '1.21'
version '1.22'
license 'GPL'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/W/WB/WBRASWELL/Parse-Yapp-1.21.tar.gz'
source_sha256 '3810e998308fba2e0f4f26043035032b027ce51ce5c8a52a8b8e340ca65f13e5'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_parse_yapp/1.21_armv7l/perl_parse_yapp-1.21-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_parse_yapp/1.21_armv7l/perl_parse_yapp-1.21-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_parse_yapp/1.21_i686/perl_parse_yapp-1.21-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_parse_yapp/1.21_x86_64/perl_parse_yapp-1.21-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_parse_yapp/1.22_armv7l/perl_parse_yapp-1.22-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_parse_yapp/1.22_armv7l/perl_parse_yapp-1.22-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_parse_yapp/1.22_i686/perl_parse_yapp-1.22-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_parse_yapp/1.22_x86_64/perl_parse_yapp-1.22-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '6dbd2557641720a8abec288558c7e6708d4d9290c51db08dfcdf53eaeac2728b',
armv7l: '6dbd2557641720a8abec288558c7e6708d4d9290c51db08dfcdf53eaeac2728b',
i686: '505658a64ea424427c82cc07774f4a4cca4e03f743c8f8d9fc381ea4d8e67c8e',
x86_64: 'f0eead5040028f8beecee109a774f413e2abc4c5e55e0441e22d9a3c238146f5'
aarch64: 'cdc7fdd872f79b166421a6fcdcf02d15ef8b5612da90f4d5c6e87c127ad9436d',
armv7l: 'cdc7fdd872f79b166421a6fcdcf02d15ef8b5612da90f4d5c6e87c127ad9436d',
i686: 'f44f9ab5cb9b8a71d4ef86e0b2f0e503bdbab015a9ccae86e0a9c34dd30af5bb',
x86_64: 'bff95a47e92184654a9b1a2caac5b921b92d19c26bc4160a1306b91b5bde1e8c'
})
def self.install

View File

@@ -3,29 +3,26 @@ 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'
version '1.63-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/M/MA/MAREKR/Pod-Parser-1.63.tar.gz'
source_sha256 'dbe0b56129975b2f83a02841e8e0ed47be80f060686c66ea37e529d97aa70ccd'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_pod_parser/1.63_armv7l/perl_pod_parser-1.63-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_pod_parser/1.63_armv7l/perl_pod_parser-1.63-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_pod_parser/1.63_i686/perl_pod_parser-1.63-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_pod_parser/1.63_x86_64/perl_pod_parser-1.63-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_pod_parser/1.63-1_armv7l/perl_pod_parser-1.63-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_pod_parser/1.63-1_armv7l/perl_pod_parser-1.63-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_pod_parser/1.63-1_i686/perl_pod_parser-1.63-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_pod_parser/1.63-1_x86_64/perl_pod_parser-1.63-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '3b7eabb2c15a0a3dfc325d564ebb50bbb7c03fbc31ab6b6b094f3402c99e7bbf',
armv7l: '3b7eabb2c15a0a3dfc325d564ebb50bbb7c03fbc31ab6b6b094f3402c99e7bbf',
i686: '5fe0a77aeef18cbac0075f703a89eda4b729f5270b636c59af194a6ae55d8c6c',
x86_64: '62d5b260b5da61a1a21adaa5a8fc8a31e0f3e5a312534e506de331c80275c00b',
binary_sha256({
aarch64: '8ba74165129311c52ccf8add610eda8aba4ef5e7b24e4a7ed365fbe825837710',
armv7l: '8ba74165129311c52ccf8add610eda8aba4ef5e7b24e4a7ed365fbe825837710',
i686: 'a0ae78e4d2aafd3ef90d2b23fdf5bd5f43da4638b17183ac9e1cf7914e349625',
x86_64: '75ee5ada7995eb9c7bc6c5199069c944107fe555cd1ef2a9df67ac60b5269908'
})
depends_on 'perl'
def self.build
end
def self.build; end
def self.install
# install files to build directory
@@ -41,6 +38,5 @@ class Perl_pod_parser < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_read_key < Package
description 'Character mode terminal access for Perl Term::ReadKey'
homepage 'https://metacpan.org/source/JSTOWE/TermReadKey-2.37/'
version '2.38'
version '2.38-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://github.com/jonathanstowe/TermReadKey/archive/2.38.tar.gz'
source_sha256 'bb669c422d7094e19fa85d43676b67933b86d4a1f6b39fed5dbfaaaa97716c1d'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_read_key/2.38_armv7l/perl_read_key-2.38-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_read_key/2.38_armv7l/perl_read_key-2.38-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_read_key/2.38_i686/perl_read_key-2.38-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_read_key/2.38_x86_64/perl_read_key-2.38-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_read_key/2.38-1_armv7l/perl_read_key-2.38-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_read_key/2.38-1_armv7l/perl_read_key-2.38-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_read_key/2.38-1_i686/perl_read_key-2.38-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_read_key/2.38-1_x86_64/perl_read_key-2.38-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '2c32777a39c44accb5bf5ee9b9155cc186faf148a4cc89218c50fe9ca38a7fdf',
armv7l: '2c32777a39c44accb5bf5ee9b9155cc186faf148a4cc89218c50fe9ca38a7fdf',
i686: '8cf68da938a505a90e84d442e196f0eaa58802568cb42b1ffb087265ec79f251',
x86_64: 'e06db1036175a0277adc945b09d213dd3f18f4978399e6aa27c9d79b3aa18360',
binary_sha256({
aarch64: '76f4f39f14ad060edeca2bcf605985be09aa03296dcf3b4883bdebfa6984c2e6',
armv7l: '76f4f39f14ad060edeca2bcf605985be09aa03296dcf3b4883bdebfa6984c2e6',
i686: '896d0bcd908ab549c756b065b9edb0f4c6fe1977dd2719c63929f4756d49a543',
x86_64: 'a7694ccb4d399c07c92027268d5548223ad54c1234ae2a9248d8eaa9e73851b6'
})
depends_on 'perl'
def self.build
system 'perl', 'Makefile.PL'
system 'make'

View File

@@ -1,36 +1,34 @@
require 'package'
class Perl_sgmls < Package
description 'a set of Perl5 routines for processing the output from the onsgmls SGML parsers.'
homepage 'http://search.cpan.org/dist/SGMLSpm/'
compatibility 'all'
version '1.1-2'
license 'GPL-1+ or Artistic'
version '1.1-1'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/R/RA/RAAB/SGMLSpm-1.1.tar.gz'
source_sha256 '550c9245291c8df2242f7e88f7921a0f636c7eec92c644418e7d89cfea70b2bd'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_sgmls/1.1-1_armv7l/perl_sgmls-1.1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_sgmls/1.1-1_armv7l/perl_sgmls-1.1-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_sgmls/1.1-1_i686/perl_sgmls-1.1-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_sgmls/1.1-1_x86_64/perl_sgmls-1.1-1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_sgmls/1.1-2_armv7l/perl_sgmls-1.1-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_sgmls/1.1-2_armv7l/perl_sgmls-1.1-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_sgmls/1.1-2_i686/perl_sgmls-1.1-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_sgmls/1.1-2_x86_64/perl_sgmls-1.1-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '6ab37b70516fc82b41caf4f2fb4d41840cdb25d05ff370f3ac6f61b70352d0d9',
armv7l: '6ab37b70516fc82b41caf4f2fb4d41840cdb25d05ff370f3ac6f61b70352d0d9',
i686: 'e2affa6d9cb0e2b5ce47e782c04d18fd1cbd0cb7236ed081c0e2bc75ac5238dc',
x86_64: 'c04a99f872685d663b89e99ea435e1e62971b234889cc78880d1cb811202e5bd',
binary_sha256({
aarch64: 'bd2e6e4160a9ba8357f88c438641eb2d9147c0346467a046a0434a41ee391d7b',
armv7l: 'bd2e6e4160a9ba8357f88c438641eb2d9147c0346467a046a0434a41ee391d7b',
i686: 'c5d9783e0d0394548a6fbf6ee2f34e14dd3c5c4cd696f6b9ae36e1af268077d7',
x86_64: 'a11acbe5d5f8ccb9da8eb99144e199253b71d8798f886bb8c1652a2a359b64ad'
})
depends_on 'perl_module_build'
def self.build
end
def self.build; end
def self.install
# install files to build directory
system 'cpanm', '-l', 'build', '.' # remove '--self-contained' here, since it will build module_build again.
system 'cpanm', '-l', 'build', '.' # remove '--self-contained' here, since it will build module_build again.
# install lib
libdir = CREW_DEST_DIR + `perl -e 'require Config; print $Config::Config{'"'installsitelib'"'};'`
@@ -42,6 +40,5 @@ class Perl_sgmls < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

39
packages/perl_stow.rb Normal file
View File

@@ -0,0 +1,39 @@
require 'package'
class Perl_stow < Package
description 'Manage installation of multiple softwares in the same directory tree'
homepage 'https://www.gnu.org/software/stow/'
version '2.3.1'
license 'GPL-3+'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/stow/stow-2.3.1.tar.gz'
source_sha256 '09d5d99671b78537fd9b2c0b39a5e9761a7a0e979f6fdb7eabfa58ee45f03d4b'
def self.prebuild
system 'cpan App::cpanminus'
end
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_stow/2.3.1_armv7l/perl_stow-2.3.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_stow/2.3.1_armv7l/perl_stow-2.3.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_stow/2.3.1_i686/perl_stow-2.3.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_stow/2.3.1_x86_64/perl_stow-2.3.1-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '503b01aab3beaf36bd629ab7b8aee2d98e29b780bbc20becdb2e1d0cacdfe150',
armv7l: '503b01aab3beaf36bd629ab7b8aee2d98e29b780bbc20becdb2e1d0cacdfe150',
i686: '5a38f30a09b1815beda68dd24ae3ea298183eb40b23b6c455cc990314159d17f',
x86_64: 'bd129677fb5214d53531b7fde7afd8bc22160e04d55fd05b3c9c1dc8b0c21867'
})
def self.build
system 'cpanm Test::Output'
system "./configure #{CREW_OPTIONS} \
--with-pmdir=$(PERL5LIB= perl -le 'print $INC[0]')"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_term_ansicolor < Package
description 'Character mode terminal access for Perl Term::ANSIColor'
homepage 'https://www.eyrie.org/~eagle/software/ansicolor/'
version '5.01'
version '5.01-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://github.com/rra/ansicolor/archive/release/5.01.tar.gz'
source_sha256 'c4865a9fe2ce3a46fd4f11215dcba05a9d5603e797a2623abc19cc14b4a0609a'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_ansicolor/5.01_armv7l/perl_term_ansicolor-5.01-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_ansicolor/5.01_armv7l/perl_term_ansicolor-5.01-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_ansicolor/5.01_i686/perl_term_ansicolor-5.01-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_ansicolor/5.01_x86_64/perl_term_ansicolor-5.01-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_ansicolor/5.01-1_armv7l/perl_term_ansicolor-5.01-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_ansicolor/5.01-1_armv7l/perl_term_ansicolor-5.01-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_ansicolor/5.01-1_i686/perl_term_ansicolor-5.01-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_ansicolor/5.01-1_x86_64/perl_term_ansicolor-5.01-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'c96e95727d025667223e7a03bc89fdc061c3d83e4660815a4bf33aa72aafcd09',
armv7l: 'c96e95727d025667223e7a03bc89fdc061c3d83e4660815a4bf33aa72aafcd09',
i686: 'bd6ea6dff3b5ceed3f29f495c66473cc943a30d2e6c6a0337f8d0efb16e0b7e4',
x86_64: '057c9ccc3a3bb84354c4e81383961e9a0d886b3a1e7d3c8a960336da6383b3ba',
binary_sha256({
aarch64: '3007f881b95506691c56c97be273587e1155dd520ffcf680624628de15cf3abf',
armv7l: '3007f881b95506691c56c97be273587e1155dd520ffcf680624628de15cf3abf',
i686: 'ea4224102ff52f47853d1bafdd80a77eb49680f86138f7733dcf9ae918e7e677',
x86_64: '736e5f517bcefe676c75ebe6f251972119b6593b7be2acc6dc7504f1edc819ef'
})
depends_on 'perl'
def self.build
system 'perl', 'Makefile.PL'
system 'make'

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_term_readkey < Package
description 'Term::ReadKey - A perl module for simple terminal control'
homepage 'https://metacpan.org/pod/Term::ReadKey'
version '2.38'
version '2.38-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/TermReadKey-2.38.tar.gz'
source_sha256 '5a645878dc570ac33661581fbb090ff24ebce17d43ea53fd22e105a856a47290'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_readkey/2.38_armv7l/perl_term_readkey-2.38-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_readkey/2.38_armv7l/perl_term_readkey-2.38-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_readkey/2.38_i686/perl_term_readkey-2.38-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_readkey/2.38_x86_64/perl_term_readkey-2.38-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_readkey/2.38-1_armv7l/perl_term_readkey-2.38-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_readkey/2.38-1_armv7l/perl_term_readkey-2.38-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_readkey/2.38-1_i686/perl_term_readkey-2.38-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_term_readkey/2.38-1_x86_64/perl_term_readkey-2.38-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '94188d0e163fe8dd2ddd02eb2c7737821810b073d999189d3c8d4441f8a17d01',
armv7l: '94188d0e163fe8dd2ddd02eb2c7737821810b073d999189d3c8d4441f8a17d01',
i686: '339cd76509bee2cd027fe49e930e5defee969964df1929e969954d1b0b22507f',
x86_64: 'dcdb8f19f52e221a4b5629a8f7b22e0aab910c714feaf25e6c740614f217a5d9',
binary_sha256({
aarch64: '9cf3b95873bdfc2ba4e05c01afb25fec814f38d8601e766cbee82c86a7c46618',
armv7l: '9cf3b95873bdfc2ba4e05c01afb25fec814f38d8601e766cbee82c86a7c46618',
i686: '8e312e6fa55096ff34a84852c6056860ce377e8d5ddb2bbad68db29e08a4cc30',
x86_64: '85630e55516ebd09fb3b7f7c5a089062952a7352a7136579ef7e30ba8b4c373a'
})
depends_on 'perl'
def self.install
# install files to build directory
system 'cpanm', '-l', 'build', '--self-contained', '--force', '.'
@@ -38,6 +36,5 @@ class Perl_term_readkey < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,29 +3,26 @@ require 'package'
class Perl_text_charwidth < Package
description 'Text::CharWidth - Get number of occupied columns of a string on terminals'
homepage 'https://metacpan.org/pod/Text::CharWidth'
version '0.04-1'
version '0.04-2'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/K/KU/KUBOTA/Text-CharWidth-0.04.tar.gz'
source_sha256 'abded5f4fdd9338e89fd2f1d8271c44989dae5bf50aece41b6179d8e230704f8'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_charwidth/0.04-1_armv7l/perl_text_charwidth-0.04-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_charwidth/0.04-1_armv7l/perl_text_charwidth-0.04-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_charwidth/0.04-1_i686/perl_text_charwidth-0.04-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_charwidth/0.04-1_x86_64/perl_text_charwidth-0.04-1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_charwidth/0.04-2_armv7l/perl_text_charwidth-0.04-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_charwidth/0.04-2_armv7l/perl_text_charwidth-0.04-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_charwidth/0.04-2_i686/perl_text_charwidth-0.04-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_charwidth/0.04-2_x86_64/perl_text_charwidth-0.04-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'f3d97714e0b0a6004c74c2c0e3ce3b716bbd15faebf67f11b8c3b44744417e22',
armv7l: 'f3d97714e0b0a6004c74c2c0e3ce3b716bbd15faebf67f11b8c3b44744417e22',
i686: '876b30f1223dd35171bee51adcc898c2a5a0b2e77837fbcb08aa2d2570790c62',
x86_64: 'a8b8882ce818811dc8eeb67c42cea8ef9ef3ca53e7c791e031bcf127b69db277',
binary_sha256({
aarch64: '965175c70ca4cc515bdf139a4668434b6dd02ab565ae5b84705b508af005028e',
armv7l: '965175c70ca4cc515bdf139a4668434b6dd02ab565ae5b84705b508af005028e',
i686: 'ca46530e55475d03663fc0d821ee20e02eedafc4fa32ded01d622cd1af35d621',
x86_64: '38a4a507e655a9bbd3b4aeae1a49f32e9ef27b1a5ef2c5e7e9efef760f3e98ed'
})
depends_on 'perl'
def self.build
end
def self.build; end
def self.install
# install files to build directory
@@ -41,6 +38,5 @@ class Perl_text_charwidth < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,29 +3,26 @@ require 'package'
class Perl_text_unidecode < Package
description 'Perl Text::Unidecode -- plain ASCII transliterations of Unicode text.'
homepage 'https://metacpan.org/pod/Text::Unidecode'
version '1.30-1'
version '1.30-2'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/S/SB/SBURKE/Text-Unidecode-1.30.tar.gz'
source_sha256 '6c24f14ddc1d20e26161c207b73ca184eed2ef57f08b5fb2ee196e6e2e88b1c6'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_unidecode/1.30-2_armv7l/perl_text_unidecode-1.30-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_unidecode/1.30-2_armv7l/perl_text_unidecode-1.30-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_unidecode/1.30-2_i686/perl_text_unidecode-1.30-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_unidecode/1.30-2_x86_64/perl_text_unidecode-1.30-2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_unidecode/1.30-2_x86_64/perl_text_unidecode-1.30-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '0fb6cfb59c797bb0d5c94e7a06460f1863e4b03587d86d33be384d2cd80aa872',
armv7l: '0fb6cfb59c797bb0d5c94e7a06460f1863e4b03587d86d33be384d2cd80aa872',
i686: 'ef13e84d29e03bba52f2ab3dc2a20d0955e3440f2da50f69d3c5832f428a28f5',
x86_64: '9f9ace5d05847bb7d697fd27b02c43d3ef5224d7e036b5ac635b99409ee0142e',
binary_sha256({
aarch64: 'c26b735942fd9bb1fc193ecfdffdab25bce5c208dc3ed61c819e21b7fda5f502',
armv7l: 'c26b735942fd9bb1fc193ecfdffdab25bce5c208dc3ed61c819e21b7fda5f502',
i686: '4fc5095c5d47286e895ed3ef2b5c631a061c1ab62a0781dbfe5ffb141cc36bb9',
x86_64: '763201f6d7fc90327300341c4a33b43e2a60164fa33ce20c1c9f47e00231d5e3'
})
depends_on 'perl'
def self.build
end
def self.build; end
def self.install
# install files to build directory
@@ -41,6 +38,5 @@ class Perl_text_unidecode < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,29 +3,28 @@ require 'package'
class Perl_text_wrapi18n < Package
description 'Text::WrapI18N - Line wrapping module with support for multibyte, fullwidth, and combining characters and languages without whitespaces between words.'
homepage 'https://metacpan.org/pod/Text::WrapI18N'
version '0.06-1'
version '0.06-2'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/K/KU/KUBOTA/Text-WrapI18N-0.06.tar.gz'
source_sha256 '4bd29a17f0c2c792d12c1005b3c276f2ab0fae39c00859ae1741d7941846a488'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_wrapi18n/0.06-1_armv7l/perl_text_wrapi18n-0.06-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_wrapi18n/0.06-1_armv7l/perl_text_wrapi18n-0.06-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_wrapi18n/0.06-1_i686/perl_text_wrapi18n-0.06-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_wrapi18n/0.06-1_x86_64/perl_text_wrapi18n-0.06-1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_wrapi18n/0.06-2_armv7l/perl_text_wrapi18n-0.06-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_wrapi18n/0.06-2_armv7l/perl_text_wrapi18n-0.06-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_wrapi18n/0.06-2_i686/perl_text_wrapi18n-0.06-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_text_wrapi18n/0.06-2_x86_64/perl_text_wrapi18n-0.06-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '87bebe91adc2d9b6b288691dace869f93e51a828086174d8c9380665dc7267a5',
armv7l: '87bebe91adc2d9b6b288691dace869f93e51a828086174d8c9380665dc7267a5',
i686: '3e5e0d3bdea86b958a2fdfe990f51055e9e35ea761ab525c6063dbeed4a1b7bb',
x86_64: 'bef63d98fe23d6963d97c60051874e586ef7765b1284b62e8847832a73f5ff5d',
binary_sha256({
aarch64: 'baad1da36dc023de04364df3ee4f799d71cc7b6210016737b23e0d1015899159',
armv7l: 'baad1da36dc023de04364df3ee4f799d71cc7b6210016737b23e0d1015899159',
i686: 'f23dc5661e9721815a4504e57f82ac0c12513b830b31983d0454e628911cdd71',
x86_64: '3abbedc8db8e87eb086dafba589ebeda760ff2c16d9f97698e09dc15f1fdc309'
})
depends_on 'perl_text_charwidth'
def self.build
end
def self.build; end
def self.install
# install files to build directory
@@ -41,6 +40,5 @@ class Perl_text_wrapi18n < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_time_hires < Package
description 'High resolution alarm, sleep, gettimeofday, interval timers Time::HiRes'
homepage 'https://metacpan.org/release/Time-HiRes'
version '1.9758-1'
version '1.9758-2'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/J/JH/JHI/Time-HiRes-1.9758.tar.gz'
source_sha256 '5bfa145bc11e70a8e337543b1084a293743a690691b568493455dedf58f34b1e'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_time_hires/1.9758-1_armv7l/perl_time_hires-1.9758-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_time_hires/1.9758-1_armv7l/perl_time_hires-1.9758-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_time_hires/1.9758-1_i686/perl_time_hires-1.9758-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_time_hires/1.9758-1_x86_64/perl_time_hires-1.9758-1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_time_hires/1.9758-2_armv7l/perl_time_hires-1.9758-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_time_hires/1.9758-2_armv7l/perl_time_hires-1.9758-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_time_hires/1.9758-2_i686/perl_time_hires-1.9758-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_time_hires/1.9758-2_x86_64/perl_time_hires-1.9758-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '71dfe08892dc8c59a158448050d5d7bd5ea2a4c93adae3304c8645aa612a41e8',
armv7l: '71dfe08892dc8c59a158448050d5d7bd5ea2a4c93adae3304c8645aa612a41e8',
i686: '22b74828e23eb8c2a4e3394dbccbe05cd90423f99d3baeaa718dbad011100eef',
x86_64: 'dd240247cb8051dea6df3af7ea09c45cf16a26790f807139c5a02e9663433ae7',
binary_sha256({
aarch64: 'ffb188bb4deb933432df4a898c61139feb37a80e109fba522abc6b4ccb0e8e97',
armv7l: 'ffb188bb4deb933432df4a898c61139feb37a80e109fba522abc6b4ccb0e8e97',
i686: 'bf2394f78d35cdd3037ea4fd6436cffdb6ecac2376395f76a3bf5ae9a8644deb',
x86_64: 'b745056ffef107653bcd19139a58bf8f24c8e254656089195c0334bb80069923'
})
depends_on 'perl'
def self.build
system 'perl', 'Makefile.PL'
system 'make'

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_unicode_eastasianwidth < Package
description 'Perl Unicode::EastAsianWidth - East Asian Width properties.'
homepage 'https://metacpan.org/pod/Unicode::EastAsianWidth'
version '12.0'
version '12.0-2'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Unicode-EastAsianWidth-12.0.tar.gz'
source_sha256 '2a5bfd926c4fe5f77e6137da2c31ac2545282ae5fec6e9af0fdd403555a90ff4'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_unicode_eastasianwidth/12.0-1_armv7l/perl_unicode_eastasianwidth-12.0-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_unicode_eastasianwidth/12.0-1_armv7l/perl_unicode_eastasianwidth-12.0-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_unicode_eastasianwidth/12.0-1_i686/perl_unicode_eastasianwidth-12.0-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_unicode_eastasianwidth/12.0-1_x86_64/perl_unicode_eastasianwidth-12.0-1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_unicode_eastasianwidth/12.0-2_armv7l/perl_unicode_eastasianwidth-12.0-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_unicode_eastasianwidth/12.0-2_armv7l/perl_unicode_eastasianwidth-12.0-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_unicode_eastasianwidth/12.0-2_i686/perl_unicode_eastasianwidth-12.0-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_unicode_eastasianwidth/12.0-2_x86_64/perl_unicode_eastasianwidth-12.0-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'fe5c4b5bb96413f8e3841d1542961a79d288d57ea7ba49fda5704e9010e4625c',
armv7l: 'fe5c4b5bb96413f8e3841d1542961a79d288d57ea7ba49fda5704e9010e4625c',
i686: '5e79c41dec4627a50378058acbc0e815970571127a0dad29128a905eafc889a5',
x86_64: '55c5256381f12302211179f0a5aedecdd200b8e09fd28564630cc9bbd5294403',
binary_sha256({
aarch64: '8a72eba49c075cbb13b7e8a7575df34f463c7d4e73f4e9fadcd7b4c3ea3d0c7c',
armv7l: '8a72eba49c075cbb13b7e8a7575df34f463c7d4e73f4e9fadcd7b4c3ea3d0c7c',
i686: '98e1a3e9f2591f5342d512b67c916f87480d43276ee492d2238972ae8235d3f5',
x86_64: '7f8e2ade0b2d5481d8efe3f5a830baa814aacfb9897844aae067b7cb340b9183'
})
depends_on 'perl'
def self.prebuild
system 'perl', 'Makefile.PL'
system "sed -i 's,/usr/local,#{CREW_PREFIX},g' Makefile"

View File

@@ -3,30 +3,28 @@ require 'package'
class Perl_xml_parser < Package
description 'Perl XML::Parser - A perl module for parsing XML documents'
homepage 'https://metacpan.org/pod/XML::Parser'
version '2.46'
version '2.46-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.46.tar.gz'
source_sha256 'd331332491c51cccfb4cb94ffc44f9cd73378e618498d4a37df9e043661c515d'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_parser/2.46_armv7l/perl_xml_parser-2.46-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_parser/2.46_armv7l/perl_xml_parser-2.46-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_parser/2.46_i686/perl_xml_parser-2.46-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_parser/2.46_x86_64/perl_xml_parser-2.46-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_parser/2.46-1_armv7l/perl_xml_parser-2.46-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_parser/2.46-1_armv7l/perl_xml_parser-2.46-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_parser/2.46-1_i686/perl_xml_parser-2.46-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_parser/2.46-1_x86_64/perl_xml_parser-2.46-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '19c9f04e36592ba130c178c0b19a0418959f7dbc5ff69d926cc7d7953ebf5ce8',
armv7l: '19c9f04e36592ba130c178c0b19a0418959f7dbc5ff69d926cc7d7953ebf5ce8',
i686: 'a8be7da651c6064359978d81c536511c225f62d17a2c8d498b8290a48c6104ff',
x86_64: 'ba095c1e93328e0117c3ad5097dc4de88969f7ef70829e1d4d355afdb508f37d',
binary_sha256({
aarch64: '3c536628600008c19d089766ced4ebc96ebf3ec8beb5c99578ea452fc9e8c1d3',
armv7l: '3c536628600008c19d089766ced4ebc96ebf3ec8beb5c99578ea452fc9e8c1d3',
i686: 'e7cd0964006d7fa61d9ad49498443e956f0855821dd95777b808b79506eccde1',
x86_64: '83042563b3c4e95218c01fb384e55c190ec0066e6dddda67dcae7e353aab9975'
})
depends_on 'expat'
depends_on 'perl'
def self.build
end
def self.build; end
def self.install
# install files to build directory
@@ -42,6 +40,5 @@ class Perl_xml_parser < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,29 +3,26 @@ 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 '1.02'
version '1.02-1'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-1.02.tar.gz'
source_sha256 '4506c387043aa6a77b455f00f57409f3720aa7e553495ab2535263b4ed1ea12a'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_sax_parserfactory/1.02_armv7l/perl_xml_sax_parserfactory-1.02-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_sax_parserfactory/1.02_armv7l/perl_xml_sax_parserfactory-1.02-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_sax_parserfactory/1.02_i686/perl_xml_sax_parserfactory-1.02-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_sax_parserfactory/1.02_x86_64/perl_xml_sax_parserfactory-1.02-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_sax_parserfactory/1.02-1_armv7l/perl_xml_sax_parserfactory-1.02-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_sax_parserfactory/1.02-1_armv7l/perl_xml_sax_parserfactory-1.02-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_sax_parserfactory/1.02-1_i686/perl_xml_sax_parserfactory-1.02-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_sax_parserfactory/1.02-1_x86_64/perl_xml_sax_parserfactory-1.02-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '9a65d90e104f6345618c68a626188de073498c5a836f02478ee0388af74197d2',
armv7l: '9a65d90e104f6345618c68a626188de073498c5a836f02478ee0388af74197d2',
i686: 'beaa39f268e11c8b66b12599defed197de773bcc2f9938bdbfcf9696fa198fb4',
x86_64: '99d8022173ad714e70c9f235264bce34a3a2f1af65269cc929e4d23a0347e66a',
binary_sha256({
aarch64: '8ea748d73c2228eab13bc2d50b1cf920e73e45ca4f68063b8e1aaee232bb0725',
armv7l: '8ea748d73c2228eab13bc2d50b1cf920e73e45ca4f68063b8e1aaee232bb0725',
i686: '606e6b8bb6f39207b06f372b9f2b5e0570b32bf43e74fb3591337fd5587d963b',
x86_64: 'c4cd67e75427b61962ede81353888fe8cf13fb974803562ba541c1fff13a38bd'
})
depends_on 'perl'
def self.build
end
def self.build; end
def self.install
# install files to build directory
@@ -41,6 +38,5 @@ class Perl_xml_sax_parserfactory < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,23 +3,23 @@ require 'package'
class Perl_xml_simple < Package
description 'XML::Simple - An API for simple XML files'
homepage 'https://metacpan.org/pod/XML::Simple'
version '2.25-1'
version '2.25-2'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-Simple-2.25.tar.gz'
source_sha256 '531fddaebea2416743eb5c4fdfab028f502123d9a220405a4100e68fc480dbf8'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_simple/2.25-1_armv7l/perl_xml_simple-2.25-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_simple/2.25-1_armv7l/perl_xml_simple-2.25-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_simple/2.25-1_i686/perl_xml_simple-2.25-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_simple/2.25-1_x86_64/perl_xml_simple-2.25-1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_simple/2.25-2_armv7l/perl_xml_simple-2.25-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_simple/2.25-2_armv7l/perl_xml_simple-2.25-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_simple/2.25-2_i686/perl_xml_simple-2.25-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_xml_simple/2.25-2_x86_64/perl_xml_simple-2.25-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '1e59e0c43b8bfecf21365d9ee0b58db3faa544f07da1aa349734ba34b75541a0',
armv7l: '1e59e0c43b8bfecf21365d9ee0b58db3faa544f07da1aa349734ba34b75541a0',
i686: 'e035d818f9ef397fbc8f4f9e0aa95dc360c797931808f03e46a7cf7a7393a158',
x86_64: '13dd6b54550fc74148e635ea6ef7afecbe49ae691b85e745f4ed5e0667da79e6',
binary_sha256({
aarch64: 'c75d6a80e668aa4ca4515c0d4eaf57c81d95f43db722818b201f87e96a66295d',
armv7l: 'c75d6a80e668aa4ca4515c0d4eaf57c81d95f43db722818b201f87e96a66295d',
i686: '84d43b1ff8994d610b58d4084dc859a78cfbd1b614b037009b6af3149bc28434',
x86_64: 'ae76a1851970fb669756a75b9f2b51b48e4687da515ab015c448eeb4eac9c422'
})
depends_on 'perl_xml_parser'

View File

@@ -3,27 +3,25 @@ require 'package'
class Perl_yaml_tiny < Package
description 'YAML::Tiny - Read/Write YAML files with as little code as possible'
homepage 'https://metacpan.org/pod/YAML::Tiny'
version '1.73'
version '1.73-2'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/E/ET/ETHER/YAML-Tiny-1.73.tar.gz'
source_sha256 'bc315fa12e8f1e3ee5e2f430d90b708a5dc7e47c867dba8dce3a6b8fbe257744'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_yaml_tiny/1.73_armv7l/perl_yaml_tiny-1.73-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_yaml_tiny/1.73_armv7l/perl_yaml_tiny-1.73-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_yaml_tiny/1.73_i686/perl_yaml_tiny-1.73-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_yaml_tiny/1.73_x86_64/perl_yaml_tiny-1.73-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_yaml_tiny/1.73-2_armv7l/perl_yaml_tiny-1.73-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_yaml_tiny/1.73-2_armv7l/perl_yaml_tiny-1.73-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_yaml_tiny/1.73-2_i686/perl_yaml_tiny-1.73-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/perl_yaml_tiny/1.73-2_x86_64/perl_yaml_tiny-1.73-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'b8d1b77879017165e920e68843bcf2e20c0e3f9a90c7dea79e46e61ae1599b3d',
armv7l: 'b8d1b77879017165e920e68843bcf2e20c0e3f9a90c7dea79e46e61ae1599b3d',
i686: '7f89638189e8940a5b96f1a105612f88649143b40ebcfca83d3c03382827f81e',
x86_64: 'cf49cfc2fb0ad7605e6590a5ea0470420d212f64d494f9277cfd49e12b136714',
binary_sha256({
aarch64: 'e81f1c52c71e2c0557a8b5f935c4d55b4820b35d8564624b3008dbe124ea6bb1',
armv7l: 'e81f1c52c71e2c0557a8b5f935c4d55b4820b35d8564624b3008dbe124ea6bb1',
i686: 'd7f605c0c4c9cae7851f6647ec6513e0e0f400113cbd4236c3801b083d27eef6',
x86_64: 'a530bb292e61f1bd709b94fec1414d44f0b70656493fcb061ae1efac00444428'
})
depends_on 'perl'
def self.install
# install files to build directory
system 'cpanm', '-l', 'build', '--self-contained', '--force', '.'
@@ -38,6 +36,5 @@ class Perl_yaml_tiny < Package
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_MAN_PREFIX}; tar xfp -)"
end
def self.check
end
def self.check; end
end

View File

@@ -3,31 +3,30 @@ require 'package'
class Pipewire < Package
description 'PipeWire is a project that aims to greatly improve handling of audio and video under Linux.'
homepage 'https://pipewire.org'
@_ver = '0.3.27'
@_ver = '0.3.28'
version @_ver
license 'LGPL-2.1+'
compatibility 'all'
source_url "https://github.com/PipeWire/pipewire/archive/#{@_ver}.tar.gz"
source_sha256 '657db1b9a29ae17a9f1d9782a45bda2ba5a893fef55e1ca26453e8f7f2d4e64e'
source_sha256 '1d9271e121a5049aef379e9bb7c50524faa6f971e668806637d7b9df1b7cab88'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pipewire/0.3.27_armv7l/pipewire-0.3.27-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pipewire/0.3.27_armv7l/pipewire-0.3.27-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pipewire/0.3.27_i686/pipewire-0.3.27-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pipewire/0.3.27_x86_64/pipewire-0.3.27-chromeos-x86_64.tpxz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pipewire/0.3.28_armv7l/pipewire-0.3.28-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pipewire/0.3.28_armv7l/pipewire-0.3.28-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pipewire/0.3.28_i686/pipewire-0.3.28-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pipewire/0.3.28_x86_64/pipewire-0.3.28-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '87a66ffe7fe0454081a49ab17bb583f7b58bf529cc9914019540939551c065ea',
armv7l: '87a66ffe7fe0454081a49ab17bb583f7b58bf529cc9914019540939551c065ea',
i686: 'c3a2fe495e7c279638c3ec6d3b937259ac609e8d31e8087bd6ff37ba8b2d53dd',
x86_64: '7f9dd0164d68f19feb219d42996315ed8a6a4c9aa6265bdd83e1293f965a769e'
aarch64: '2f4f71d61319ef1882ae5240e093bb0db5518d095ec2de9223388b6118f336c7',
armv7l: '2f4f71d61319ef1882ae5240e093bb0db5518d095ec2de9223388b6118f336c7',
i686: 'ac80a8a44ba6c8cfbb3ac497ed9989c08b812f112b2b5da248fa87b0b0c35333',
x86_64: 'ce9b6af80ef7165dab519f278ea652e74a4aa403f7540b5417bd959aab1adfb6'
})
depends_on 'alsa_lib' # R
depends_on 'alsa_plugins' => :build
depends_on 'dbus' # R
depends_on 'eudev' # R
depends_on 'glibc' # R
depends_on 'glib' # R
depends_on 'gsettings_desktop_schemas' => :build
depends_on 'gst_plugins_base' # R

View File

@@ -31,7 +31,7 @@ class Pulseaudio < Package
depends_on 'dbus' # R
depends_on 'elogind' => :build
depends_on 'eudev' # R
depends_on 'gcc10' # R
depends_on 'gcc11' # R
depends_on 'glibc' # R
depends_on 'glib' # R
depends_on 'gsettings_desktop_schemas' # L
@@ -51,7 +51,7 @@ class Pulseaudio < Package
depends_on 'libxtst' # R
depends_on 'orc' # R
depends_on 'pipewire' # R
depends_on 'speex' # R
depends_on 'speexdsp' # R
depends_on 'tcpwrappers' => :build
depends_on 'tdb' # R
depends_on 'valgrind' => :build

View File

@@ -3,7 +3,7 @@ require 'package'
class Py3_pip < Package
description 'Pip is the python package manager from the Python Packaging Authority.'
homepage 'https://pip.pypa.io/'
@_ver = '21.0.1'
@_ver = '21.1.1'
version @_ver
license 'MIT'
compatibility 'all'
@@ -11,16 +11,16 @@ class Py3_pip < Package
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/py3_pip/21.0.1_armv7l/py3_pip-21.0.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/py3_pip/21.0.1_armv7l/py3_pip-21.0.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/py3_pip/21.0.1_i686/py3_pip-21.0.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/py3_pip/21.0.1_x86_64/py3_pip-21.0.1-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/py3_pip/21.1.1_armv7l/py3_pip-21.1.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/py3_pip/21.1.1_armv7l/py3_pip-21.1.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/py3_pip/21.1.1_i686/py3_pip-21.1.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/py3_pip/21.1.1_x86_64/py3_pip-21.1.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'ce0f563a1f9a8fdd16c9d44263d42206742d8fbbc705f5a2a11973c234a96ac0',
armv7l: 'ce0f563a1f9a8fdd16c9d44263d42206742d8fbbc705f5a2a11973c234a96ac0',
i686: 'd782d6d8cf6a857ee31e07a304dd4d07223f30f3e2812e29deb4d1a7962cad51',
x86_64: '729a9958cae998936dc3ca300feb7c10eb8d56f74b524913cc84cb1cf6bbe553'
aarch64: '9762d97c11d232dda3a0009620793d93f6f073839deb5478178b39131ebc568f',
armv7l: '9762d97c11d232dda3a0009620793d93f6f073839deb5478178b39131ebc568f',
i686: '167a767129284e150af3953dcfcf35caab2f9552d383ad55041d511d49b72e58',
x86_64: '794210d8b23bf7f3ecf2377eee166da6acc3e1cfaa8db7ddbff1b4ec29d60007'
})
depends_on 'python3'

View File

@@ -3,26 +3,27 @@ require 'package'
class Python3 < Package
description 'Python is a programming language that lets you work quickly and integrate systems more effectively.'
homepage 'https://www.python.org/'
@_ver = '3.9.4'
version "#{@_ver}-1"
@_ver = '3.9.5'
version @_ver
license 'PSF-2.0'
compatibility 'all'
source_url "https://www.python.org/ftp/python/#{@_ver}/Python-#{@_ver}.tar.xz"
source_sha256 '4b0e6644a76f8df864ae24ac500a51bbf68bd098f6a173e27d3b61cdca9aa134'
source_sha256 '0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/python3/3.9.4-1_armv7l/python3-3.9.4-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/python3/3.9.4-1_armv7l/python3-3.9.4-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/python3/3.9.4-1_i686/python3-3.9.4-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/python3/3.9.4-1_x86_64/python3-3.9.4-1-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/python3/3.9.5_armv7l/python3-3.9.5-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/python3/3.9.5_armv7l/python3-3.9.5-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/python3/3.9.5_i686/python3-3.9.5-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/python3/3.9.5_x86_64/python3-3.9.5-chromeos-x86_64.tar.xz',
})
binary_sha256({
aarch64: '17acda432cbbdcbcdf46a8fda536c160d460833d2e8d4e33f41669cd392d1ec3',
armv7l: '17acda432cbbdcbcdf46a8fda536c160d460833d2e8d4e33f41669cd392d1ec3',
i686: '2c47ce9690665232473be9582234f73f5bebdd616db1d1e0c9edf6a56880b59f',
x86_64: '23ade3fd6991f88f0207e8ed64def6c2a8823b5b51aa22358b08daf328a4caca'
aarch64: 'fa69875022aa4d3067d2ebff90681669e6531ed69c9a7921a19f827f9bdb086c',
armv7l: 'fa69875022aa4d3067d2ebff90681669e6531ed69c9a7921a19f827f9bdb086c',
i686: 'f47186768e5fc9dad1b71c89360b2248f4a90c14b5cd7d9be38087160f1e4088',
x86_64: '808f2dc915e47b646a15de657ab1b240b09472e2b2441424179f8ec8f789b2f9',
})
depends_on 'autoconf_archive' => :build
depends_on 'krb5' => :build
depends_on 'libtirpc' => :build
depends_on 'bz2' # R

View File

@@ -3,23 +3,23 @@ require 'package'
class Rust < Package
description 'Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.'
homepage 'https://www.rust-lang.org/'
@_ver = '1.51.0'
@_ver = '1.52.1'
version @_ver
license 'Apache-2.0 and MIT'
compatibility 'all'
source_url 'SKIP'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/rust/1.51.0_armv7l/rust-1.51.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/rust/1.51.0_armv7l/rust-1.51.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/rust/1.51.0_i686/rust-1.51.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/rust/1.51.0_x86_64/rust-1.51.0-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/rust/1.52.1_armv7l/rust-1.52.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/rust/1.52.1_armv7l/rust-1.52.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/rust/1.52.1_i686/rust-1.52.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/rust/1.52.1_x86_64/rust-1.52.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '1673202f5a6ff0b3753468bc96084da810ba1d5952c207be459556598faa6f68',
armv7l: '1673202f5a6ff0b3753468bc96084da810ba1d5952c207be459556598faa6f68',
i686: '07b04e4b808aba2e34a98ace8939a7b3285c41e99596a5560ac941729635e90a',
x86_64: 'e272a06829c9bb3d1c14752b668767bd85911231ba48e3a6281fc746b40ac19a'
aarch64: 'd097b95fbc232485bbec6f62faa461efa9577a2af4c7310a73b6ce89dec24fdb',
armv7l: 'd097b95fbc232485bbec6f62faa461efa9577a2af4c7310a73b6ce89dec24fdb',
i686: '8d5ca2caef9388156f2e7a0789e99a7333fe42c780e5b608e9cd0212787314b1',
x86_64: 'a69248bf35e9ce7270304ba7f52ca1a6db62ac1f186a727840558e7dea50fb60'
})
def self.install
@@ -33,7 +33,7 @@ class Rust < Package
default_host = "#{ARCH}-unknown-linux-gnu"
end
system 'curl -Lf https://sh.rustup.rs -o rustup.sh'
unless Digest::SHA256.hexdigest(File.read('rustup.sh')) == 'fa50ccf79c30ce9446cc45917e8ea10655674c2a9509221cb12bd865c60ab709'
unless Digest::SHA256.hexdigest(File.read('rustup.sh')) == '427614d934032ae48a218136dc9e2aad30979575fadf1c53940676ceb3ca0561'
abort 'Checksum mismatch. :/ Try again.'.lightred
end
system "sed -i 's,\$(mktemp -d 2>/dev/null || ensure mktemp -d -t rustup),#{CREW_PREFIX}/tmp,' rustup.sh"

View File

@@ -3,30 +3,30 @@ require 'package'
class Screen < Package
description 'Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.'
homepage 'https://www.gnu.org/software/screen/'
version '4.6.2'
version '4.8.0'
license 'public-domain'
compatibility 'all'
source_url 'https://ftp.gnu.org/gnu/screen/screen-4.6.2.tar.gz'
source_sha256 '1b6922520e6a0ce5e28768d620b0f640a6631397f95ccb043b70b91bb503fa3a'
source_url 'https://ftp.gnu.org/gnu/screen/screen-4.8.0.tar.gz'
source_sha256 '6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/screen/4.6.2_armv7l/screen-4.6.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/screen/4.6.2_armv7l/screen-4.6.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/screen/4.6.2_i686/screen-4.6.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/screen/4.6.2_x86_64/screen-4.6.2-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/screen/4.8.0_armv7l/screen-4.8.0-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/screen/4.8.0_armv7l/screen-4.8.0-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/screen/4.8.0_i686/screen-4.8.0-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/screen/4.8.0_x86_64/screen-4.8.0-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: 'f8d903c06175118730ea3d44ed59f6d6fbd94c7f5c6ed190e8e7ca42bb3cfc76',
armv7l: 'f8d903c06175118730ea3d44ed59f6d6fbd94c7f5c6ed190e8e7ca42bb3cfc76',
i686: '43e1b9056ee3d67b7b3f45ef52c381a62340bcaf97748a7ebc8b92adfed10026',
x86_64: '27ec590cfff20b1429f86baca0d42a6e3819a4978d13155b5ec31db04a374b5b',
binary_sha256({
aarch64: '9326008594f4e219f65995c8ee60e2aa5053b507d6b03c0561f2090ecae35f4e',
armv7l: '9326008594f4e219f65995c8ee60e2aa5053b507d6b03c0561f2090ecae35f4e',
i686: 'c7cf733507523e8e57c5b290c9b131a08d0c9a824b5ccc68a578e448afa152ca',
x86_64: '4ca4a6c4da3801b368b2cdc924310e304fb378ece773e15e7ca714c7ad0c94b3'
})
depends_on 'ncurses'
def self.build
system './configure',
"--prefix=#{CREW_PREFIX}"
system "env #{CREW_ENV_OPTIONS} \
./configure \
#{CREW_OPTIONS} \
--enable-colors256"
system 'make'
end

View File

@@ -3,12 +3,24 @@ require 'package'
class Smbclient < Package
description 'Tools to access a servers filespace and printers via SMB'
homepage 'https://www.samba.org'
@_ver '4.14.2'
version "#{@_ver}-1"
license 'GPL-3'
version '4.14.4'
license 'GPLv3'
compatibility 'all'
source_url "https://us1.samba.org/samba/ftp/stable/samba-#{@_ver}.tar.gz"
source_sha256 '95651da478743f7cb407aec81287536c096e3e18bb4981dbe47ca70bf6181f96'
source_url "https://us1.samba.org/samba/ftp/stable/samba-#{version}.tar.gz"
source_sha256 '89af092a0b00f5354ed287f0aa37b8c2cf9ba2ce67ea6464192e2c18528f89b9'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/smbclient/4.14.4_armv7l/smbclient-4.14.4-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/smbclient/4.14.4_armv7l/smbclient-4.14.4-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/smbclient/4.14.4_i686/smbclient-4.14.4-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/smbclient/4.14.4_x86_64/smbclient-4.14.4-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '22d24a7a51efc97853ed1b7b110a84b099efd7b465dbf46194a406fc9af6b8d5',
armv7l: '22d24a7a51efc97853ed1b7b110a84b099efd7b465dbf46194a406fc9af6b8d5',
i686: '2e50aa2792825d119143bd9cbeae10d167623d2ffee50f4e4b7d64ff69251b7e',
x86_64: '8f0f6e9e37d39b8893034af1e019bcf4c1c4fcf0c689edbb37da967658c7c1f4'
})
depends_on 'avahi'
depends_on 'cmocka'
@@ -17,10 +29,8 @@ class Smbclient < Package
depends_on 'gpgme' => :build
depends_on 'jansson'
depends_on 'ldb'
depends_on 'libarchive'
depends_on 'libbsd'
depends_on 'libcap'
depends_on 'libdb'
depends_on 'libunwind'
depends_on 'liburing' => :build
depends_on 'linux_pam'

View File

@@ -0,0 +1,47 @@
# Adapted from Arch Linux source-highlight PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/source-highlight/trunk/PKGBUILD
require 'package'
class Source_highlight < Package
description 'Convert source code to syntax highlighted document'
homepage 'https://www.gnu.org/software/src-highlite/'
version '3.1.9-9049'
license 'GPL'
compatibility 'all'
source_url 'https://git.savannah.gnu.org/git/src-highlite.git'
git_hashtag '904949c9026cb772dc93fbe0947a252ef47127f4'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/source_highlight/3.1.9-9049_armv7l/source_highlight-3.1.9-9049-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/source_highlight/3.1.9-9049_armv7l/source_highlight-3.1.9-9049-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/source_highlight/3.1.9-9049_i686/source_highlight-3.1.9-9049-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/source_highlight/3.1.9-9049_x86_64/source_highlight-3.1.9-9049-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'd684918851e16cda44873f6f9d70f9c7c1d65c93689851de6cbc9a6024311986',
armv7l: 'd684918851e16cda44873f6f9d70f9c7c1d65c93689851de6cbc9a6024311986',
i686: 'a177f2214443d14111a75242e97b1f3b45d2d5dcfc23a5336215a358b6f80a9a',
x86_64: '1e0ea17e28e39601fb97771dfa75f13dc9a5b9a201381f0470ce3a7f5d2d12e1'
})
depends_on 'boost' # R
depends_on 'ctags' => :build
depends_on 'texinfo' => :build
def self.build
system 'NOCONFIGURE=1 autoreconf -fiv'
system 'filefix'
system "env #{CREW_ENV_OPTIONS} \
./configure #{CREW_OPTIONS} \
--sysconfdir=#{CREW_PREFIX}/etc \
--with-bash-completion=#{CREW_PREFIX}/share/bash-completion/completions"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "make prefix=#{CREW_DEST_PREFIX} bash_completiondir=#{CREW_DEST_PREFIX}/share/bash-completion/completions install"
end
end

View File

@@ -3,23 +3,23 @@ require 'package'
class Speex < Package
description 'Speex is an Open Source/Free Software patent-free audio compression format designed for speech.'
homepage 'https://speex.org/'
version '1.2rc3-1'
version '1.2-870f'
license 'BSD'
compatibility 'all'
source_url 'http://downloads.xiph.org/releases/speex/speexdsp-1.2rc3.tar.gz'
source_sha256 '4ae688600039f5d224bdf2e222d2fbde65608447e4c2f681585e4dca6df692f1'
source_url 'https://gitlab.xiph.org/xiph/speex.git'
git_hashtag '870ff845b32f314aec0036641ffe18aba4916887'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speex/1.2rc3-1_armv7l/speex-1.2rc3-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speex/1.2rc3-1_armv7l/speex-1.2rc3-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speexdsp/1.2rc3_i686/speexdsp-1.2rc3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speex/1.2rc3-1_x86_64/speex-1.2rc3-1-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speex/1.2-870f_armv7l/speex-1.2-870f-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speex/1.2-870f_armv7l/speex-1.2-870f-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speex/1.2-870f_i686/speex-1.2-870f-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speex/1.2-870f_x86_64/speex-1.2-870f-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '7583ec635edf411815b3ec3b03941559180d41cb7f1e375ee9d43bb720fc47bb',
armv7l: '7583ec635edf411815b3ec3b03941559180d41cb7f1e375ee9d43bb720fc47bb',
i686: '5c3d9bd633a11a8da1e8408d6db745f620d759ea2e4f8239a9ab5b34a9fe6b6a',
x86_64: '209375ce4d5f48d6449ddb876f3bf94f4f562979a3937ef81fbedffddc7d3898'
aarch64: '1f4901f04da81fe723e0c0181ad1ec5066c138c4ecb7f8854983e986108914be',
armv7l: '1f4901f04da81fe723e0c0181ad1ec5066c138c4ecb7f8854983e986108914be',
i686: 'e69fcd81e05805c964067e130961e9467add67ec50a850b2837ba6df705e6712',
x86_64: 'e448b7e79abf3a303d54d3997a9f491b086c55f7c5ae8b3654f61cfb636fd917'
})
def self.patch
@@ -27,6 +27,7 @@ class Speex < Package
end
def self.build
system 'NOCONFIGURE=1 ./autogen.sh'
system "env #{CREW_ENV_OPTIONS} \
./configure \
#{CREW_OPTIONS} \

View File

@@ -3,14 +3,43 @@ require 'package'
class Speexdsp < Package
description 'Speex is an Open Source/Free Software patent-free audio compression format designed for speech.'
homepage 'https://speex.org/'
version '1.2rc3-1'
version '1.2-095f'
license 'BSD'
compatibility 'all'
source_url 'http://downloads.xiph.org/releases/speex/speexdsp-1.2rc3.tar.gz'
source_sha256 '4ae688600039f5d224bdf2e222d2fbde65608447e4c2f681585e4dca6df692f1'
source_url 'https://gitlab.xiph.org/xiph/speexdsp.git'
git_hashtag '095fd36e189554bbcbfd9884630a53d7792409dc'
is_fake
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speexdsp/1.2-095f_armv7l/speexdsp-1.2-095f-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speexdsp/1.2-095f_armv7l/speexdsp-1.2-095f-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speexdsp/1.2-095f_i686/speexdsp-1.2-095f-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/speexdsp/1.2-095f_x86_64/speexdsp-1.2-095f-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'fe34514fd4960fd4fe424a054329a56b6c502d85453b679a149129fd57b39cce',
armv7l: 'fe34514fd4960fd4fe424a054329a56b6c502d85453b679a149129fd57b39cce',
i686: 'd88d59b9f0165918fb0d6f34218209fa9ed3617c5ca5b5a70c3227ecfa328bb7',
x86_64: '037c5fbb5c957ef1de46fed752894aec4edb08994343bc88ca1c40584b72e53f'
})
depends_on 'speex'
def self.patch
system 'filefix'
end
def self.build
system 'NOCONFIGURE=1 ./autogen.sh'
system "env #{CREW_ENV_OPTIONS} \
./configure \
#{CREW_OPTIONS} \
--disable-dependency-tracking \
--disable-maintainer-mode \
--disable-examples"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -6,34 +6,9 @@ class Stow < Package
version '2.3.1'
license 'GPL-3+'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/stow/stow-2.3.1.tar.gz'
source_sha256 '09d5d99671b78537fd9b2c0b39a5e9761a7a0e979f6fdb7eabfa58ee45f03d4b'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/stow/2.3.1_armv7l/stow-2.3.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/stow/2.3.1_armv7l/stow-2.3.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/stow/2.3.1_i686/stow-2.3.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/stow/2.3.1_x86_64/stow-2.3.1-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '503b01aab3beaf36bd629ab7b8aee2d98e29b780bbc20becdb2e1d0cacdfe150',
armv7l: '503b01aab3beaf36bd629ab7b8aee2d98e29b780bbc20becdb2e1d0cacdfe150',
i686: '5a38f30a09b1815beda68dd24ae3ea298183eb40b23b6c455cc990314159d17f',
x86_64: 'bd129677fb5214d53531b7fde7afd8bc22160e04d55fd05b3c9c1dc8b0c21867'
})
depends_on 'perl_stow'
def self.prebuild
system 'cpan App::cpanminus'
end
is_fake
def self.build
system 'cpanm Test::Output'
system "./configure #{CREW_OPTIONS} \
--with-pmdir=$(PERL5LIB= perl -le 'print $INC[0]')"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -3,7 +3,7 @@ require 'package'
class Texinfo < Package
description 'Texinfo is the official documentation format of the GNU project.'
homepage 'https://www.gnu.org/software/texinfo/'
version '6.7'
version '6.7-1'
license 'GPL-3'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/texinfo/texinfo-6.7.tar.xz'
@@ -22,20 +22,16 @@ class Texinfo < Package
x86_64: '4e7a16cb4f7d93a7c949c7ff10b03fa2e27b9db4372e5c138b0f10561fafa292',
})
depends_on 'gettext' => :build
depends_on 'perl'
depends_on 'perl_locale_messages'
depends_on 'perl_text_unidecode'
depends_on 'perl_unicode_eastasianwidth'
depends_on 'ncurses'
def self.build
# configure and make
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--with-external-Text-Unidecode',
'--with-external-Unicode-EastAsianWidth'
system "env #{CREW_ENV_OPTIONS} \
./configure #{CREW_OPTIONS} \
--with-external-Text-Unidecode \
--with-external-Unicode-EastAsianWidth"
system 'make'
end

View File

@@ -3,7 +3,7 @@ require 'package'
class Torbrowser < Package
description "'The Onion Router' browser"
homepage 'https://www.torproject.org/'
@_ver = '10.0.15'
@_ver = '10.0.16'
version @_ver
license 'BSD, custom, MPL-2.0 and MIT'
compatibility 'x86_64'
@@ -11,7 +11,7 @@ class Torbrowser < Package
@_url = "https://www.torproject.org/dist/torbrowser/#{@_ver}"
@_name = "tor-browser-linux64-#{@_ver}_en-US.tar.xz"
source_url "#{@_url}/#{@_name}"
source_sha256 '3a73b44f68fe97c4d89984fd0a23be069c495ada7ecf97dc3060c6e7aa4c06aa'
source_sha256 'fc0acea2d62767a67038296e0cc041dea2bc7b80ca5dc9333d0173ce4c7b021e'
depends_on 'gtk3'
depends_on 'sommelier'

38
packages/ucl.rb Normal file
View File

@@ -0,0 +1,38 @@
# Adapted from Arch Linux ucl PKGBUILD at:
# https://github.com/archlinux/svntogit-community/raw/packages/ucl/trunk/PKGBUILD
require 'package'
class Ucl < Package
description 'Portable lossless data compression library written in ANSI C'
homepage 'https://www.oberhumer.com/opensource/ucl/'
version '1.03'
compatibility 'all'
source_url 'https://www.oberhumer.com/opensource/ucl/download/ucl-1.03.tar.gz'
source_sha256 'b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ucl/1.03_armv7l/ucl-1.03-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ucl/1.03_armv7l/ucl-1.03-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ucl/1.03_i686/ucl-1.03-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ucl/1.03_x86_64/ucl-1.03-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'da7156b3f5c3def28ef1e276d4e24c9ba0bcb5f623c1856d0c4f886233d16676',
armv7l: 'da7156b3f5c3def28ef1e276d4e24c9ba0bcb5f623c1856d0c4f886233d16676',
i686: 'c69ddc889d2fbecf1b77b646fe0623565da9d11f7a6c71762fbebc5c77b27882',
x86_64: '1d0c3cfc926a6e8c119794d253680044bc10d54a18438199409287d42f6f979f'
})
def self.build
system "env CFLAGS='-pipe -std=gnu90 -fPIC -flto' \
./configure #{CREW_OPTIONS} \
--enable-shared \
--enable-static"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end

49
packages/upx.rb Normal file
View File

@@ -0,0 +1,49 @@
# Adapted from Arch Linux upx PKGBUILD at:
# https://github.com/archlinux/svntogit-community/raw/packages/upx/trunk/PKGBUILD
require 'package'
class Upx < Package
description 'Extendable, high-performance executable packer for several executable formats'
homepage 'https://github.com/upx/upx'
version '4.0.0-66fe'
license 'custom GPL2'
compatibility 'all'
source_url 'https://github.com/upx/upx.git'
git_hashtag '66fe8a624d1a4945173955b9edd626664708b383'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.0.0-66fe_armv7l/upx-4.0.0-66fe-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.0.0-66fe_armv7l/upx-4.0.0-66fe-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.0.0-66fe_i686/upx-4.0.0-66fe-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.0.0-66fe_x86_64/upx-4.0.0-66fe-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '412f53e51a9e4cc07d1c5eb43a19afbfca359c045faa0cd821824c56e5e34e95',
armv7l: '412f53e51a9e4cc07d1c5eb43a19afbfca359c045faa0cd821824c56e5e34e95',
i686: 'c594ec89c0596866ae7d919465615923dd2d5244b926bb6d0b0f1aed10fbb4d6',
x86_64: 'cc24e68b8f1ae2212fb375333a64a3bfb3220df3e07811c38687cd87789c1d49'
})
depends_on 'ucl'
def self.patch
# Disable a warning. upx believes this is not a release version if the git revision is set.
system "sed -i 's/bool warn = true/bool warn = false/' src/main.cpp"
end
def self.build
system "#{CREW_ENV_OPTIONS} make \
CHECK_WHITESPACE=/bin/true \
UPX_LZMA_VERSION=0x465 \
UPX_LZMADIR=`pwd` \
all"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_MAN_PREFIX}/man1"
FileUtils.install 'src/upx.out', "#{CREW_DEST_PREFIX}/bin/upx", mode: 0o755
FileUtils.install 'doc/upx.1', "#{CREW_DEST_MAN_PREFIX}/man1/upx.1", mode: 0o644
end
end

View File

@@ -3,7 +3,7 @@ require 'package'
class Vivaldi < Package
description 'Vivaldi is a new browser that blocks unwanted ads, protects you from trackers, and puts you in control with unique built-in features.'
homepage 'https://vivaldi.com/'
@_ver = '3.7.2218.52'
@_ver = '3.8.2259.42'
version @_ver
compatibility 'all'
license 'Vivaldi'
@@ -19,13 +19,13 @@ class Vivaldi < Package
case ARCH
when 'aarch64', 'armv7l'
@_arch = 'armhf'
source_sha256 '1f92f3ea5ef6d2260b2784089d334a32be54aa3d955955fc3cc443d8937cae06'
source_sha256 '7a24258f6cb0578d5200b762ee7c52aed47d979d41923384419b06281a688fdf'
when 'x86_64'
@_arch = 'amd64'
source_sha256 'f131f182bc6dd6e735a83ffaa4ff2a3cca90184daa26e0996d1cb64ed765ab2a'
source_sha256 'cd6648b4a6b45069e7bc4955cc0464abca6bd9c5c70f7a63f3a162e9e002f80c'
when 'i686'
@_arch = 'i386'
source_sha256 '6f93e285e1cd48103fbdc3266e1188556ed2a98b08f7c6420eeb07c05c559a08'
source_sha256 '68557d8723c3db7acea990524b4c3da895a2a1c150e547fc3bcb2c1590511675'
end
source_url "https://downloads.vivaldi.com/stable/vivaldi-stable_#{@_ver}-1_#{@_arch}.deb"

View File

@@ -3,23 +3,23 @@ require 'package'
class Wayland_protocols < Package
description 'Wayland is a protocol for a compositor to talk to its clients.'
homepage 'https://wayland.freedesktop.org/'
version '1.20-1'
version '1.21'
license 'MIT'
compatibility 'all'
source_url 'https://wayland.freedesktop.org/releases/wayland-protocols-1.20.tar.xz'
source_sha256 '9782b7a1a863d82d7c92478497d13c758f52e7da4f197aa16443f73de77e4de7'
source_url 'https://wayland.freedesktop.org/releases/wayland-protocols-1.21.tar.xz'
source_sha256 'b99945842d8be18817c26ee77dafa157883af89268e15f4a5a1a1ff3ffa4cde5'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wayland_protocols/1.20-1_armv7l/wayland_protocols-1.20-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wayland_protocols/1.20-1_armv7l/wayland_protocols-1.20-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wayland_protocols/1.20-1_i686/wayland_protocols-1.20-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wayland_protocols/1.20-1_x86_64/wayland_protocols-1.20-1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wayland_protocols/1.21_armv7l/wayland_protocols-1.21-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wayland_protocols/1.21_armv7l/wayland_protocols-1.21-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wayland_protocols/1.21_i686/wayland_protocols-1.21-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wayland_protocols/1.21_x86_64/wayland_protocols-1.21-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: '1decd76dce195360e3b2879b7a1ee63efefc64b437faa98e9ff5c833758730d2',
armv7l: '1decd76dce195360e3b2879b7a1ee63efefc64b437faa98e9ff5c833758730d2',
i686: '6ff5c74feef6541c342f7393fb2df70e4ec121f4b94d55f254bfa28c6e3e3dc0',
x86_64: 'a88f0f3c10c6108c6b9b584a1c74998d8a49ea70cb022f6350d3df129f120a72',
binary_sha256({
aarch64: '487266d1e54fd7094f0b75184bbea84044304dbbe4d64c9214069ff6cfee4472',
armv7l: '487266d1e54fd7094f0b75184bbea84044304dbbe4d64c9214069ff6cfee4472',
i686: '79e0dc6d2724fdc3ca0724a5d04649adf2e88136e3fc1b5a4ee2f4001117cac2',
x86_64: 'fd5283cabe38f85f245a5dcbb6b946594fefa64a5d0777a5554ee534f985ee56'
})
depends_on 'wayland'

View File

@@ -3,29 +3,30 @@ require 'package'
class Waypipe < Package
description 'A proxy for Wayland protocol applications. WARNING: different versions are incompatible'
homepage 'https://gitlab.freedesktop.org/mstoeckl/waypipe'
version '0.7.2'
version '0.8.0'
license 'MIT'
compatibility 'all'
source_url 'https://gitlab.freedesktop.org/mstoeckl/waypipe/-/archive/v0.7.2/waypipe-v0.7.2.tar.gz'
source_sha256 'b280079b05aef9b243be3644fc803e3feaa2fc2952d11a6c02ab33257fb52479'
source_url 'https://gitlab.freedesktop.org/mstoeckl/waypipe.git'
git_hashtag "v#{version}"
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/waypipe/0.7.2_armv7l/waypipe-0.7.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/waypipe/0.7.2_armv7l/waypipe-0.7.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/waypipe/0.7.2_i686/waypipe-0.7.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/waypipe/0.7.2_x86_64/waypipe-0.7.2-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/waypipe/0.8.0_armv7l/waypipe-0.8.0-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/waypipe/0.8.0_armv7l/waypipe-0.8.0-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/waypipe/0.8.0_i686/waypipe-0.8.0-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/waypipe/0.8.0_x86_64/waypipe-0.8.0-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '115949938eaf98fd38af6b1b8ffdb90e7976e87910fb5e0288d17c69d3cdb47c',
armv7l: '115949938eaf98fd38af6b1b8ffdb90e7976e87910fb5e0288d17c69d3cdb47c',
i686: '462f32367698388dd6333d14be082a20d1293102bfbb3ab5dfa9c8f55e42b3ea',
x86_64: '3e2bfc20d665b49b6023b2f6d1e703e9bfce519a802ea8c8d8dde33e5a179640'
aarch64: '7ed1843341ca708c08c6ec854ece411d0dc4a2e37af472e8c11a75651c5beecc',
armv7l: '7ed1843341ca708c08c6ec854ece411d0dc4a2e37af472e8c11a75651c5beecc',
i686: '0c994fb5538080d055b0116fa26b65538e9b4f237b7be268b877df1c006ae408',
x86_64: '96d33e96782fe12fb707271c66de01d3e5948a7c9d9fc59963bae8f33f19bf9f'
})
depends_on 'mesa'
depends_on 'ffmpeg'
depends_on 'libva'
depends_on 'speexdsp' => :build
depends_on 'ffmpeg' # R
depends_on 'libdrm' => :build
depends_on 'libva' # R
depends_on 'mesa' # R
def self.patch
system "sed -i '/#include \"util.h\"/a #include <linux/version.h>' src/dmabuf.c"

View File

@@ -3,29 +3,29 @@ require 'package'
class Webkit2gtk_4 < Package
description 'Web content engine for GTK'
homepage 'https://webkitgtk.org'
@_ver = '2.32.0'
@_ver = '2.32.1'
version @_ver
license 'LGPL-2+ and BSD-2'
compatibility 'all'
source_url "https://webkitgtk.org/releases/webkitgtk-#{@_ver}.tar.xz"
source_sha256 '9d7df4dae9ada2394257565acc2a68ace9308c4c61c3fcc00111dc1f11076bf0'
source_sha256 '136117317f70f66486f71b8edf5e46f8776403c5d8a296e914b11a36ef836917'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_4/2.32.0_armv7l/webkit2gtk_4-2.32.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_4/2.32.0_armv7l/webkit2gtk_4-2.32.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_4/2.32.0_i686/webkit2gtk_4-2.32.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_4/2.32.0_x86_64/webkit2gtk_4-2.32.0-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_4/2.32.1_armv7l/webkit2gtk_4-2.32.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_4/2.32.1_armv7l/webkit2gtk_4-2.32.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_4/2.32.1_i686/webkit2gtk_4-2.32.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_4/2.32.1_x86_64/webkit2gtk_4-2.32.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'be723ff23a31c85ad8c5dea8cadbeaac12aa17810f6bf448999b46f008a30034',
armv7l: 'be723ff23a31c85ad8c5dea8cadbeaac12aa17810f6bf448999b46f008a30034',
i686: 'b0bd0f98543cee946931bd3726a0a7d10d709006d930f28ecb322086876567a2',
x86_64: '2bfe6213119d1bbaa98634a99e0390a222ea95c30ef1d329d0b17d6df0aaf89b'
aarch64: '6c5cbf8c55706aa5253e2bbe5fccd9478103c35ff9ac7c68056099c2a18fe85f',
armv7l: '6c5cbf8c55706aa5253e2bbe5fccd9478103c35ff9ac7c68056099c2a18fe85f',
i686: 'ab5cc183f6b51d9bd971c7bac70f617485d66efb0436dfbd941d153d32f5bf8d',
x86_64: '34d1284e175e6ebdf078ce0ba7e08b404ebb125849470668a35162d2aa2d1daf'
})
depends_on 'atk'
depends_on 'cairo'
depends_on 'ccache' => :build
depends_on 'dav1d'
depends_on 'enchant'
depends_on 'fontconfig'
depends_on 'freetype'
@@ -68,10 +68,10 @@ class Webkit2gtk_4 < Package
# system "env #{CREW_ENV_OPTIONS} \
# Bubblewrap sandbox breaks on epiphany with
# bwrap: Can't make symlink at /var/run: File exists
# ccache currently breaks gcc builds of webkit-gtk
system "cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
#{CREW_CMAKE_FNO_LTO_OPTIONS} \
-DCMAKE_SKIP_RPATH=ON \
-DENABLE_BUBBLEWRAP_SANDBOX=OFF \
-DENABLE_GAMEPAD=OFF \
@@ -86,6 +86,8 @@ class Webkit2gtk_4 < Package
-DUSE_GTK4=OFF \
-DUSE_SOUP2=ON \
-DUSE_SYSTEMD=OFF \
-DUSE_AVIF=ON \
-DPYTHON_EXECUTABLE=`which python` \
.."
end
system 'ninja -C builddir4'

View File

@@ -3,29 +3,29 @@ require 'package'
class Webkit2gtk_5 < Package
description 'Web content engine for GTK'
homepage 'https://webkitgtk.org'
@_ver = '2.32.0'
@_ver = '2.32.1'
version @_ver
license 'LGPL-2+ and BSD-2'
compatibility 'all'
source_url "https://webkitgtk.org/releases/webkitgtk-#{@_ver}.tar.xz"
source_sha256 '9d7df4dae9ada2394257565acc2a68ace9308c4c61c3fcc00111dc1f11076bf0'
source_sha256 '136117317f70f66486f71b8edf5e46f8776403c5d8a296e914b11a36ef836917'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_5/2.32.0_armv7l/webkit2gtk_5-2.32.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_5/2.32.0_armv7l/webkit2gtk_5-2.32.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_5/2.32.0_i686/webkit2gtk_5-2.32.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_5/2.32.0_x86_64/webkit2gtk_5-2.32.0-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_5/2.32.1_armv7l/webkit2gtk_5-2.32.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_5/2.32.1_armv7l/webkit2gtk_5-2.32.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_5/2.32.1_i686/webkit2gtk_5-2.32.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/webkit2gtk_5/2.32.1_x86_64/webkit2gtk_5-2.32.1-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '0d49b1141892ec63b2b43c682aa4feb3c5b64dc04bfea08ec9f9c0d2c6fb583d',
armv7l: '0d49b1141892ec63b2b43c682aa4feb3c5b64dc04bfea08ec9f9c0d2c6fb583d',
i686: 'f1481e0a9cdf9df4308320777971dc6c168344aa9488169caad6c4c6549c56d4',
x86_64: '11d1d701c17bdf1f7de0e4d0df094dd6342195134cf153b22b125ec1dfd58ead'
aarch64: '706890a948d02cb2db17d3f1ef0718710c88ba8900a6bc31cb6905498aa85189',
armv7l: '706890a948d02cb2db17d3f1ef0718710c88ba8900a6bc31cb6905498aa85189',
i686: '74d8d4d4badd3f4484cd098a1828aeb423d05a1dad4b5e1a42f13101c5af123b',
x86_64: '5dfa210eecb769b0b301474ee2bd819f68eda3fa27e1e372a0cb046718675a90'
})
depends_on 'atk'
depends_on 'cairo'
depends_on 'ccache' => :build
depends_on 'dav1d'
depends_on 'enchant'
depends_on 'fontconfig'
depends_on 'freetype'
@@ -56,6 +56,7 @@ class Webkit2gtk_5 < Package
depends_on 'mesa'
depends_on 'openjpeg'
depends_on 'pango'
depends_on 'vulkan_headers' => :build
depends_on 'vulkan_icd_loader'
depends_on 'wayland'
depends_on 'woff2'
@@ -69,10 +70,10 @@ class Webkit2gtk_5 < Package
# system "env #{CREW_ENV_OPTIONS} \
# Bubblewrap sandbox breaks on epiphany with
# bwrap: Can't make symlink at /var/run: File exists
# ccache currently breaks gcc builds of webkit-gtk
system "cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
#{CREW_CMAKE_FNO_LTO_OPTIONS} \
-DCMAKE_SKIP_RPATH=ON \
-DENABLE_BUBBLEWRAP_SANDBOX=OFF \
-DENABLE_GAMEPAD=OFF \
@@ -87,6 +88,8 @@ class Webkit2gtk_5 < Package
-DUSE_GTK4=ON \
-DUSE_SOUP2=OFF \
-DUSE_SYSTEMD=OFF \
-DUSE_AVIF=ON \
-DPYTHON_EXECUTABLE=`which python` \
.."
end
system 'ninja -C builddir5'

View File

@@ -3,24 +3,24 @@ require 'package'
class Wpebackend_fdo < Package
description 'Freedesktop.org backend for WPE WebKit'
homepage 'https://wpewebkit.org'
@_ver = '1.8.0'
@_ver = '1.8.4'
version @_ver
license 'BSD-2'
compatibility 'all'
source_url "https://github.com/Igalia/WPEBackend-fdo/releases/download/#{@_ver}/wpebackend-fdo-#{@_ver}.tar.xz"
source_sha256 '9652a99c75fe1c6eab0585b6395f4e104b2427e4d1f42969f1f77df29920d253'
source_sha256 'def59bed5e8cdabb65ffa76ee2eef349fba7b42a75dac80f3da5954b17f4074a'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wpebackend_fdo/1.8.0_armv7l/wpebackend_fdo-1.8.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wpebackend_fdo/1.8.0_armv7l/wpebackend_fdo-1.8.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wpebackend_fdo/1.8.0_i686/wpebackend_fdo-1.8.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wpebackend_fdo/1.8.0_x86_64/wpebackend_fdo-1.8.0-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wpebackend_fdo/1.8.4_armv7l/wpebackend_fdo-1.8.4-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wpebackend_fdo/1.8.4_armv7l/wpebackend_fdo-1.8.4-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wpebackend_fdo/1.8.4_i686/wpebackend_fdo-1.8.4-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/wpebackend_fdo/1.8.4_x86_64/wpebackend_fdo-1.8.4-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: '2eb8dbb4be7ec82b3b48c5396759f447374b206ef3d498d49899a86b066b60d0',
armv7l: '2eb8dbb4be7ec82b3b48c5396759f447374b206ef3d498d49899a86b066b60d0',
i686: '77e5834339fe892f5f4eca9f642b28a5e7f72e5c1ecaafff8b5acea570543e90',
x86_64: 'a6ebf24575dc975a1615508cd259542ea3379529dae274ae800e64b5166cf5f6',
binary_sha256({
aarch64: 'fe50fe41d14a69954f6df24f77f4a86ed123c62c07cecbd9e20881b22ec8a4b6',
armv7l: 'fe50fe41d14a69954f6df24f77f4a86ed123c62c07cecbd9e20881b22ec8a4b6',
i686: 'df008b94ea6fc3172ba993d5aab760f92659bbdfe022a012d20837cf35a242ab',
x86_64: '8da6d976164abe12aaea42e61d57dfab772639fffa954305c9b9e59889d09f8d'
})
depends_on 'libwpe'
@@ -32,8 +32,8 @@ class Wpebackend_fdo < Package
def self.build
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system "meson configure builddir"
system "ninja -C builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install

View File

@@ -3,44 +3,26 @@ require 'package'
class Zstd < Package
description 'Zstandard - Fast real-time compression algorithm'
homepage 'http://www.zstd.net'
@_ver = '1.4.9'
@_ver = '1.5.0'
version @_ver
license 'BSD or GPL-2'
compatibility 'all'
source_url "https://github.com/facebook/zstd/archive/v#{@_ver}.tar.gz"
source_sha256 'acf714d98e3db7b876e5b540cbf6dee298f60eb3c0723104f6d3f065cd60d6a8'
source_sha256 '0d9ade222c64e912d6957b11c923e214e2e010a18f39bec102f572e693ba2867'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/zstd/1.4.9_armv7l/zstd-1.4.9-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/zstd/1.4.9_armv7l/zstd-1.4.9-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/zstd/1.4.9_i686/zstd-1.4.9-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/zstd/1.4.9_x86_64/zstd-1.4.9-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/zstd/1.5.0_armv7l/zstd-1.5.0-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/zstd/1.5.0_armv7l/zstd-1.5.0-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/zstd/1.5.0_i686/zstd-1.5.0-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/zstd/1.5.0_x86_64/zstd-1.5.0-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: 'c94ef7aecad9675d4fdcfc444cfd74c1560f6f8090c851bffe2be2a5250fc4f9',
armv7l: 'c94ef7aecad9675d4fdcfc444cfd74c1560f6f8090c851bffe2be2a5250fc4f9',
i686: 'd59795e6cc367cfb9120e4a7b60df706cfd1746c5b41485767cf2ff75eddb2cb',
x86_64: '055c10b86abdb5268f90c28f73ccb7cc1db155ef7d7e14fba97a977ed3886832'
aarch64: 'ee8ce213f9209da69ed272c684cf20d1dcf75e24c1d7bfb11e1091b9484793c2',
armv7l: 'ee8ce213f9209da69ed272c684cf20d1dcf75e24c1d7bfb11e1091b9484793c2',
i686: 'a8d8312f83a0cdf627ceb5f9a6099e5036f20fbedd9a6c53c678b50c3d1a34c9',
x86_64: '4da82c8d02a0f8b2a2e2591110708df8e36b9451631420de28a8c2d14f579265'
})
def self.patch
# Patch from https://github.com/facebook/zstd/issues/2519#issuecomment-790092538
@meson_patch = <<~'MESON_PATCH_EOF'
--- a/build/meson/lib/meson.build~ 2021-03-02 22:20:57.000000000 +0000
+++ b/build/meson/lib/meson.build 2021-03-03 21:56:00.058700361 +0000
@@ -22,6 +22,7 @@
join_paths(zstd_rootdir, 'lib/common/threading.c'),
join_paths(zstd_rootdir, 'lib/common/pool.c'),
join_paths(zstd_rootdir, 'lib/common/zstd_common.c'),
+ join_paths(zstd_rootdir, 'lib/common/zstd_trace.c'),
join_paths(zstd_rootdir, 'lib/common/error_private.c'),
join_paths(zstd_rootdir, 'lib/common/xxhash.c'),
join_paths(zstd_rootdir, 'lib/compress/hist.c'),
MESON_PATCH_EOF
IO.write('meson.patch', @meson_patch)
system 'patch -p1 -i meson.patch'
end
def self.build
Dir.chdir 'build/meson' do
system "meson \

View File

@@ -7,17 +7,20 @@ c_ares
ca_certificates
crew_profile_base
curl
elfutils
expat
filecmd
flex
gcc10
gdbm
gettext
git
glibc
gnutls
groff
icu4c
krb5
less
libarchive
libcyrussasl
libdb
libedit
@@ -28,12 +31,16 @@ libnghttp2
libpipeline
libpsl
libseccomp
libsigsegv
libssp
libtasn1
libtirpc
libunistring
libxml2
libyaml
lz4
lzip
m4
mandb
manpages
mawk
@@ -46,8 +53,11 @@ p11kit
pcre
pcre2
perl
pixz
py3_pip
python27
py3_setuptools
py3_wheel
python2
python3
readline
rtmpdump

View File

@@ -504,6 +504,11 @@ url: https://www.bleachbit.org/download/source
activity: medium
---
kind: url
name: blender
url: https://mirror.clarkson.edu/blender/release
activity: medium
---
kind: url
name: bluefish
url: https://www.bennewitz.com/bluefish/stable/source/
activity: none
@@ -829,6 +834,11 @@ url: https://sourceforge.net/projects/collectl/files/collectl/
activity: low
---
kind: url
name: colord
url: https://www.freedesktop.org/software/colord/releases/
activity: low
---
kind: url
name: colordiff
url: https://www.colordiff.org/
activity: low
@@ -884,6 +894,11 @@ url: https://github.com/cpputest/cpputest/releases
activity: none
---
kind: url
name: cpu_x
url: https://github.com/X0rg/CPU-X/releases/
activity: medium
---
kind: url
name: cpustat
url: http://kernel.ubuntu.com/~cking/tarballs/cpustat
activity: medium
@@ -909,6 +924,11 @@ url: https://github.com/ethanmad/chromeos-resize/releases/
activity: low
---
kind: url
name: crossmobile
url: https://github.com/crossmob/CrossMobile/releases/
activity: medium
---
kind: url
name: cryptsetup
url: https://www.kernel.org/pub/linux/utils/cryptsetup/
activity: low
@@ -959,6 +979,11 @@ url: https://unix4lyfe.org/darkhttpd
activity: none
---
kind: url
name: darktable
url: https://github.com/darktable-org/darktable/releases/
activity: low
---
kind: url
name: dart
url: https://github.com/dart-lang/sdk/releases
activity: high
@@ -1654,6 +1679,11 @@ url: https://sourceforge.net/projects/fbc/files/Source%20Code/
activity: none
---
kind: url
name: freecad
url: https://github.com/FreeCAD/FreeCAD/releases/
activity: high
---
kind: url
name: freedos
url: https://sourceforge.net/projects/freedos/files/Kernel/
activity: none
@@ -1754,11 +1784,6 @@ url: https://gitlab.gnome.org/GNOME/gcab/-/tags
activity: low
---
kind: url
name: gcalculator
url: https://gitlab.gnome.org/GNOME/gnome-calculator/-/tags
activity: high
---
kind: url
name: gcc
url: https://github.com/gcc-mirror/gcc/releases
activity: low
@@ -2059,6 +2084,11 @@ url: https://gitlab.gnome.org/GNOME/gnome-autoar/-/tags
activity: low
---
kind: url
name: gnome_calculator
url: https://gitlab.gnome.org/GNOME/gnome-calculator/-/tags
activity: high
---
kind: url
name: gnome_common
url: https://github.com/GNOME/gnome-common/releases/
activity: low
@@ -2409,6 +2439,11 @@ url: https://download.mono-project.com/sources/gtk-sharp212/
activity: none
---
kind: url
name: gtksourceview_3
url: https://gitlab.gnome.org/GNOME/gtksourceview/-/tags
activity: none
---
kind: url
name: gtksourceview_4
url: https://gitlab.gnome.org/GNOME/gtksourceview/-/tags
activity: high
@@ -2934,6 +2969,11 @@ url: https://github.com/SimonKagstrom/kcov/releases
activity: low
---
kind: url
name: keepassxc
url: https://github.com/keepassxreboot/keepassxc/releases/
activity: low
---
kind: url
name: keybase
url: https://github.com/keybase/client/releases
activity: high
@@ -3944,6 +3984,11 @@ url: https://www.libssh2.org/download
activity: none
---
kind: url
name: libssp
url: https://ftpmirror.gnu.org/gcc/
activity: low
---
kind: url
name: libstemmer
url: https://github.com/zvelo/libstemmer/
activity: none
@@ -4469,11 +4514,6 @@ url: http://download.savannah.gnu.org/releases/lzip
activity: low
---
kind: url
name: lzma
url: https://tukaani.org/lzma/
activity: none
---
kind: url
name: lzo
url: http://www.oberhumer.com/opensource/lzo/download
activity: none
@@ -4824,6 +4864,11 @@ url: https://github.com/Jehan/mypaint-brushes/releases
activity: low
---
kind: url
name: mysql
url: https://dev.mysql.com/downloads/mysql/
activity: low
---
kind: url
name: mysqltuner
url: https://github.com/major/MySQLTuner-perl/
activity: none
@@ -5149,6 +5194,11 @@ url: https://github.com/openexr/openexr/releases/
activity: low
---
kind: url
name: openhab
url: https://www.openhab.org/download/
activity: high
---
kind: url
name: openjpeg
url: https://github.com/uclouvain/openjpeg/releases
activity: low
@@ -5474,6 +5524,11 @@ url: http://search.cpan.org/CPAN/authors/id/R/RA/RAAB/
activity: none
---
kind: url
name: perl_stow
url: https://ftp.gnu.org/gnu/stow
activity: none
---
kind: url
name: perl_term_ansicolor
url: https://github.com/rra/ansicolor/releases
activity: none
@@ -5589,6 +5644,11 @@ url: https://www.cairographics.org/releases/
activity: none
---
kind: url
name: pixz
url: https://github.com/vasi/pixz/releases
activity: low
---
kind: url
name: pkgconf
url: https://github.com/pkgconf/pkgconf/releases
activity: low
@@ -5769,6 +5829,36 @@ url: https://sourceforge.net/projects/pwgen/files/pwgen/
activity: low
---
kind: url
name: py2_pip
url: https://github.com/pypa/pip/releases
activity: medium
---
kind: url
name: py2_setuptools
url: https://github.com/pypa/setuptools/releases
activity: medium
---
kind: url
name: py2_wheel
url: https://github.com/pypa/wheel/releases
activity: low
---
kind: url
name: py3_pip
url: https://github.com/pypa/pip/releases
activity: medium
---
kind: url
name: py3_setuptools
url: https://github.com/pypa/setuptools/releases
activity: medium
---
kind: url
name: py3_wheel
url: https://github.com/pypa/wheel/releases
activity: low
---
kind: url
name: pycairo
url: https://cairographics.org/releases/
activity: none
@@ -6069,6 +6159,11 @@ url: http://www.ruby-lang.org/en/downloads/
activity: medium
---
kind: url
name: ruby_docopt
url: https://github.com/docopt/docopt/releases
activity: none
---
kind: url
name: ruby_webrick
url: https://github.com/ruby/webrick/releases
activity: medium
@@ -6199,11 +6294,6 @@ url: https://www.apache.org/dist/serf
activity: none
---
kind: url
name: setuptools
url: https://github.com/pypa/setuptools/releases
activity: medium
---
kind: url
name: sfk
url: https://sourceforge.net/projects/swissfileknife/files/1-swissfileknife
activity: high
@@ -6379,11 +6469,6 @@ url: http://downloads.us.xiph.org/releases/speex
activity: none
---
kind: url
name: speexdsp
url: http://downloads.xiph.org/releases/speex
activity: none
---
kind: url
name: sphinx
url: https://github.com/sphinx-doc/sphinx/releases
activity: high
@@ -6479,11 +6564,6 @@ url: https://freedesktop.org/software/startup-notification/releases
activity: none
---
kind: url
name: stow
url: https://ftp.gnu.org/gnu/stow
activity: none
---
kind: url
name: strace
url: https://sourceforge.net/projects/strace/files/strace/
activity: low
@@ -7559,6 +7639,11 @@ url: https://pwmt.org/projects/zathura-pdf-poppler/download/
activity: low
---
kind: url
name: zenity
url: https://deb.debian.org/debian/pool/main/z/zenity/
activity: low
---
kind: url
name: zeromq
url: https://github.com/zeromq/libzmq/releases
activity: low