Remove spellcheck_test and rework load_test into prop_test (#8987)

This commit is contained in:
Maximilian Downey Twiss
2023-11-28 12:01:51 +11:00
committed by GitHub
parent fd08b719f5
commit 2e6eb61dc1
63 changed files with 106 additions and 145 deletions

View File

@@ -19,4 +19,6 @@ jobs:
CREW_REPO=${{ github.event.pull_request.head.repo.clone_url }} CREW_BRANCH=${{ github.head_ref }} crew update && \ CREW_REPO=${{ github.event.pull_request.head.repo.clone_url }} CREW_BRANCH=${{ github.head_ref }} crew update && \
yes | crew upgrade && \ yes | crew upgrade && \
yes | crew install vim && \ yes | crew install vim && \
yes | crew remove vim" yes | crew remove vim && \
cd ../tests && \
./prop_test"

View File

@@ -286,23 +286,7 @@ def generate_compatible
puts "Error with #{pkgName}.rb: #{e}".red unless e.to_s.include?('uninitialized constant') puts "Error with #{pkgName}.rb: #{e}".red unless e.to_s.include?('uninitialized constant')
end end
puts "Checking #{pkgName} for compatibility.".orange if @opt_verbose puts "Checking #{pkgName} for compatibility.".orange if @opt_verbose
# If compatibility property does not exist, check if a binary package if @pkg.compatible?
# exists, and if not, see if at least a source url exists.
@compatibility = true
@binary_url = ''
@url = ''
if @pkg.compatibility.nil?
@binary_url = @pkg.get_binary_url(@device[:architecture])
@url = @pkg.get_url(@device[:architecture])
unless @binary_url
puts "#{pkgName} is missing compatibility information".red
# puts "url: #{@url}".green
# If no source package is available, then package is not compatible.
@compatibility = false unless @url
puts "#{pkgName} compatibility is #{@compatibility}" if @opt_verbose
end
end
if @pkg.compatible? && @compatibility
# add to compatible packages # add to compatible packages
puts "Adding #{pkgName} #{@pkg.version} to compatible packages.".lightgreen if @opt_verbose puts "Adding #{pkgName} #{@pkg.version} to compatible packages.".lightgreen if @opt_verbose
@device[:compatible_packages].push(name: @pkg.name) @device[:compatible_packages].push(name: @pkg.name)

View File

@@ -2,7 +2,7 @@ require 'package'
class Buildessential < Package class Buildessential < Package
description 'A collection of tools essential to compile and build software.' description 'A collection of tools essential to compile and build software.'
homepage '' homepage 'SKIP'
version '1.25' version '1.25'
license 'GPL-3+' license 'GPL-3+'
compatibility 'all' compatibility 'all'

View File

@@ -1,15 +0,0 @@
require 'package'
class Camp < Package
description 'Server stack which includes httpd, percona_server and php'
homepage ''
version '1.0'
license 'GPL-3+'
compatibility 'all'
is_fake
depends_on 'httpd'
depends_on 'percona_server'
depends_on 'php74' unless File.exist? "#{CREW_PREFIX}/bin/php"
end

View File

@@ -4,7 +4,7 @@ class Ck4up < Package
description 'Check for Updates, a utility to monitor web pages for updates' description 'Check for Updates, a utility to monitor web pages for updates'
homepage 'http://jue.li/crux/ck4up' homepage 'http://jue.li/crux/ck4up'
version '1.4' version '1.4'
license '' # Can't find license for project license 'GPL-2+'
compatibility 'all' compatibility 'all'
source_url 'http://jue.li/crux/ck4up/ck4up-1.4.tar.gz' source_url 'http://jue.li/crux/ck4up/ck4up-1.4.tar.gz'
source_sha256 '37f2f981cfdb6811a906e5520cb27203cb5ecb725d2180aaac59d377c1ac9fbf' source_sha256 '37f2f981cfdb6811a906e5520cb27203cb5ecb725d2180aaac59d377c1ac9fbf'

View File

@@ -4,7 +4,7 @@ class Clean < Package
description 'Clean is a program that searches for files identified by regular expressions and deletes them' description 'Clean is a program that searches for files identified by regular expressions and deletes them'
homepage 'https://sourceforge.net/projects/clean/' homepage 'https://sourceforge.net/projects/clean/'
version '3.4' version '3.4'
license '' # Can't find license for project license 'custom'
compatibility 'all' compatibility 'all'
source_url 'https://downloads.sourceforge.net/project/clean/clean/3.4/clean-3.4.tar.bz2' source_url 'https://downloads.sourceforge.net/project/clean/clean/3.4/clean-3.4.tar.bz2'
source_sha256 '761f3a9e1ed50747b6a62a8113fa362a7cc74d359ac6e8e30ba6b30d59115320' source_sha256 '761f3a9e1ed50747b6a62a8113fa362a7cc74d359ac6e8e30ba6b30d59115320'

View File

@@ -4,7 +4,7 @@ class Comgt < Package
description 'Comgt is a command line tool for controlling, configuring and interacting with Option Wireless 3G and 2G (HSDPA, UMTS, EDGE, GPRS, GSM) data devices within the Linux environment.' description 'Comgt is a command line tool for controlling, configuring and interacting with Option Wireless 3G and 2G (HSDPA, UMTS, EDGE, GPRS, GSM) data devices within the Linux environment.'
homepage 'https://sourceforge.net/projects/comgt/' homepage 'https://sourceforge.net/projects/comgt/'
version '0.32' version '0.32'
license '' # Can't find license for project license 'GPL-2+'
compatibility 'all' compatibility 'all'
source_url 'https://downloads.sourceforge.net/project/comgt/comgt/0.32/comgt.0.32.tgz' source_url 'https://downloads.sourceforge.net/project/comgt/comgt/0.32/comgt.0.32.tgz'
source_sha256 '0cedb2a5aa608510da66a99aab74df3db363df495032e57e791a2ff55f1d7913' source_sha256 '0cedb2a5aa608510da66a99aab74df3db363df495032e57e791a2ff55f1d7913'

View File

@@ -2,6 +2,7 @@ require 'package'
class Evolution_data_server < Package class Evolution_data_server < Package
description 'Centralized access to appointments and contacts' description 'Centralized access to appointments and contacts'
homepage 'https://wiki.gnome.org/Apps/Evolution'
version '3.48.1' version '3.48.1'
license 'LGPL-2 or LGPL-3, BSD and Sleepycat' license 'LGPL-2 or LGPL-3, BSD and Sleepycat'
compatibility 'x86_64' compatibility 'x86_64'

View File

@@ -7,6 +7,7 @@ class Fcft < Package
description 'Simple library for font loading and glyph rasterization using FontConfig, FreeType and pixman.' description 'Simple library for font loading and glyph rasterization using FontConfig, FreeType and pixman.'
homepage 'https://codeberg.org/dnkl/fcft' homepage 'https://codeberg.org/dnkl/fcft'
version '2.5.1' version '2.5.1'
license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'https://codeberg.org/dnkl/fcft.git' source_url 'https://codeberg.org/dnkl/fcft.git'
git_hashtag version git_hashtag version

View File

@@ -7,6 +7,7 @@ class Foot < Meson
description 'Wayland terminal emulator - fast, lightweight and minimalistic' description 'Wayland terminal emulator - fast, lightweight and minimalistic'
homepage 'https://codeberg.org/dnkl/foot' homepage 'https://codeberg.org/dnkl/foot'
version '1.15.0' version '1.15.0'
license 'MIT'
compatibility 'x86_64 aarch64 armv7l' compatibility 'x86_64 aarch64 armv7l'
source_url 'https://codeberg.org/dnkl/foot.git' source_url 'https://codeberg.org/dnkl/foot.git'
git_hashtag version git_hashtag version

View File

@@ -2,6 +2,7 @@ require 'package'
class Gjs < Package class Gjs < Package
description 'Javascript Bindings for GNOME' description 'Javascript Bindings for GNOME'
homepage 'https://gitlab.gnome.org/GNOME/gjs/'
version '1.74.0' version '1.74.0'
license 'MIT and MPL-1.1, LGPL-2+ or GPL-2+' license 'MIT and MPL-1.1, LGPL-2+ or GPL-2+'
compatibility 'all' compatibility 'all'

View File

@@ -1,8 +1,10 @@
require 'package' require 'package'
class Gnome_text_editor < Package class Gnome_text_editor < Package
description 'GNOME Text Editor (2021)' description 'GNOME Text Editor'
homepage 'https://gitlab.gnome.org/GNOME/gnome-text-editor'
version '44.0' version '44.0'
license 'GPL-3'
compatibility 'x86_64 aarch64 armv7l' compatibility 'x86_64 aarch64 armv7l'
source_url 'https://gitlab.gnome.org/GNOME/gnome-text-editor.git' source_url 'https://gitlab.gnome.org/GNOME/gnome-text-editor.git'
git_hashtag version git_hashtag version

View File

@@ -2,6 +2,7 @@ require 'buildsystems/meson'
class Gnome_tweaks < Meson class Gnome_tweaks < Meson
description 'Graphical interface for advanced GNOME 3 settings Tweak Tool' description 'Graphical interface for advanced GNOME 3 settings Tweak Tool'
homepage 'https://wiki.gnome.org/Apps/Tweaks'
@_ver = '42.0' @_ver = '42.0'
version "#{@_ver}-py3.12" version "#{@_ver}-py3.12"
license 'GPL-3+ and CC0-1.0' license 'GPL-3+ and CC0-1.0'

View File

@@ -7,6 +7,7 @@ class Hwloc < Package
description 'Portable Hardware Locality is a portable abstraction of hierarchical architectures' description 'Portable Hardware Locality is a portable abstraction of hierarchical architectures'
homepage 'https://www.open-mpi.org/projects/hwloc/' homepage 'https://www.open-mpi.org/projects/hwloc/'
version '2.7.0' version '2.7.0'
license 'BSD-3 Clause'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/open-mpi/hwloc.git' source_url 'https://github.com/open-mpi/hwloc.git'
git_hashtag "hwloc-#{version}" git_hashtag "hwloc-#{version}"

View File

@@ -4,7 +4,7 @@ class Iptraf < Package
description 'IPTraf is a console-based network statistics utility for Linux.' description 'IPTraf is a console-based network statistics utility for Linux.'
homepage 'http://iptraf.seul.org/' homepage 'http://iptraf.seul.org/'
version '3.0.0' version '3.0.0'
license '' # Can't find license license 'GPL-2+'
compatibility 'all' compatibility 'all'
source_url 'ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz' # Unable to connect source_url 'ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz' # Unable to connect
source_sha256 '9ee433d95573d612539da4b452e6cdcbca6ab6674a88bfbf6eaf12d4902b5163' source_sha256 '9ee433d95573d612539da4b452e6cdcbca6ab6674a88bfbf6eaf12d4902b5163'

View File

@@ -4,7 +4,7 @@ class Jam < Package
description 'Jam is a software build tool that makes building simple things simple and building complicated things manageable.' description 'Jam is a software build tool that makes building simple things simple and building complicated things manageable.'
homepage 'https://www.perforce.com/documentation/jam-documentation' homepage 'https://www.perforce.com/documentation/jam-documentation'
version '2.6' version '2.6'
license '' # Can't find license license 'JAM License'
compatibility 'all' compatibility 'all'
source_url 'https://swarm.workshop.perforce.com/downloads/guest/perforce_software/jam/jam-2.6.zip' source_url 'https://swarm.workshop.perforce.com/downloads/guest/perforce_software/jam/jam-2.6.zip'
source_sha256 '7c510be24dc9d0912886c4364dc17a013e042408386f6b937e30bd9928d5223c' source_sha256 '7c510be24dc9d0912886c4364dc17a013e042408386f6b937e30bd9928d5223c'

View File

@@ -2,6 +2,7 @@ require 'package'
class Js102 < Package class Js102 < Package
description 'Spidermonkey is a javaScript interpreter with libraries from Mozilla — Version 102' description 'Spidermonkey is a javaScript interpreter with libraries from Mozilla — Version 102'
homepage 'https://spidermonkey.dev/'
version '102.4.0' version '102.4.0'
license 'MPL-2.0' license 'MPL-2.0'
compatibility 'all' compatibility 'all'

View File

@@ -2,6 +2,7 @@ require 'package'
class Js78 < Package class Js78 < Package
description 'Spidermonkey is a javaScript interpreter with libraries from Mozilla — Version 78' description 'Spidermonkey is a javaScript interpreter with libraries from Mozilla — Version 78'
homepage 'https://spidermonkey.dev/'
version '78.7.0' version '78.7.0'
license 'MPL-2.0' license 'MPL-2.0'
compatibility 'all' compatibility 'all'

View File

@@ -2,6 +2,7 @@ require 'package'
class Js91 < Package class Js91 < Package
description 'Spidermonkey is a javaScript interpreter with libraries from Mozilla — Version 91' description 'Spidermonkey is a javaScript interpreter with libraries from Mozilla — Version 91'
homepage 'https://spidermonkey.dev/'
version '91.4.1' version '91.4.1'
license 'MPL-2.0' license 'MPL-2.0'
compatibility 'all' compatibility 'all'

View File

@@ -4,6 +4,7 @@ class Libjpeg < Package
description 'Libjpeg-turbo implements both the traditional libjpeg API as well as the less powerful but more straightforward TurboJPEG API.' description 'Libjpeg-turbo implements both the traditional libjpeg API as well as the less powerful but more straightforward TurboJPEG API.'
homepage 'https://libjpeg-turbo.org' homepage 'https://libjpeg-turbo.org'
version '3.0.1' version '3.0.1'
license 'IJG License'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/libjpeg-turbo/libjpeg-turbo.git' source_url 'https://github.com/libjpeg-turbo/libjpeg-turbo.git'
git_hashtag version git_hashtag version

View File

@@ -7,6 +7,7 @@ class Libmaxminddb < Package
description 'MaxMind GeoIP2 database - split package with library and utilities' description 'MaxMind GeoIP2 database - split package with library and utilities'
homepage 'https://dev.maxmind.com/geoip/geoip2/downloadable/' homepage 'https://dev.maxmind.com/geoip/geoip2/downloadable/'
version '1.6.0' version '1.6.0'
license 'Apache-2.0'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/maxmind/libmaxminddb.git' source_url 'https://github.com/maxmind/libmaxminddb.git'
git_hashtag version git_hashtag version

View File

@@ -7,6 +7,7 @@ class Libxcvt < Package
description 'library providing a standalone version of the X server implementation of the VESA CVT standard timing modelines generator' description 'library providing a standalone version of the X server implementation of the VESA CVT standard timing modelines generator'
homepage 'https://gitlab.freedesktop.org/xorg/lib/libxcvt' homepage 'https://gitlab.freedesktop.org/xorg/lib/libxcvt'
version '0.1.1' version '0.1.1'
license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'https://gitlab.freedesktop.org/xorg/lib/libxcvt.git' source_url 'https://gitlab.freedesktop.org/xorg/lib/libxcvt.git'
git_hashtag "libxcvt-#{version}" git_hashtag "libxcvt-#{version}"

View File

@@ -4,7 +4,7 @@ class Live555 < Package
description 'This code forms a set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP).' description 'This code forms a set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP).'
homepage 'http://www.live555.com/liveMedia/' homepage 'http://www.live555.com/liveMedia/'
version '2019.08.28' version '2019.08.28'
license '' # Can't find license license 'LGPL'
compatibility 'all' compatibility 'all'
source_url 'http://www.live555.com/liveMedia/public/live.2019.08.28.tar.gz' source_url 'http://www.live555.com/liveMedia/public/live.2019.08.28.tar.gz'
source_sha256 'a3dcd157865186cf883c3a80b4bb09637e91fff96b234b2c780a7f7dcc7a35dc' source_sha256 'a3dcd157865186cf883c3a80b4bb09637e91fff96b234b2c780a7f7dcc7a35dc'

View File

@@ -7,6 +7,7 @@ class Lv2 < Meson
description 'Plugin standard for audio systems' description 'Plugin standard for audio systems'
homepage 'http://lv2plug.in/' homepage 'http://lv2plug.in/'
version '1.18.10' version '1.18.10'
license 'ISC License'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/lv2/lv2.git' source_url 'https://github.com/lv2/lv2.git'
git_hashtag "v#{version}" git_hashtag "v#{version}"

View File

@@ -9,6 +9,7 @@ class Mimalloc < Package
git_hashtag '221f96ac2c999ef22414521fb39438018dfa9a41' git_hashtag '221f96ac2c999ef22414521fb39438018dfa9a41'
@_ver = (@git_hashtag[0, 6]) @_ver = (@git_hashtag[0, 6])
version "dev-slice-#{@_ver}" version "dev-slice-#{@_ver}"
license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/microsoft/mimalloc.git' source_url 'https://github.com/microsoft/mimalloc.git'
git_branch 'dev-slice' git_branch 'dev-slice'

View File

@@ -7,6 +7,7 @@ class Musl_libbacktrace < Package
description 'Library to produce symbolic backtraces' description 'Library to produce symbolic backtraces'
homepage 'https://github.com/ianlancetaylor/libbacktrace' homepage 'https://github.com/ianlancetaylor/libbacktrace'
version 'd0f5e95a87a4d3e0a1ed6c069b5dae7cbab3ed2a' version 'd0f5e95a87a4d3e0a1ed6c069b5dae7cbab3ed2a'
license 'BSD-3 Clause'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/ianlancetaylor/libbacktrace.git' source_url 'https://github.com/ianlancetaylor/libbacktrace.git'
git_hashtag version git_hashtag version

View File

@@ -7,6 +7,7 @@ class Musl_wolfssl < Package
description 'small, fast, portable implementation of TLS/SSL for embedded devices to the cloud formerly CyaSSL' description 'small, fast, portable implementation of TLS/SSL for embedded devices to the cloud formerly CyaSSL'
homepage 'https://www.wolfssl.com/' homepage 'https://www.wolfssl.com/'
version '5.1.1' version '5.1.1'
license 'GPL-2+'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/wolfSSL/wolfssl/archive/v5.1.1-stable.tar.gz' source_url 'https://github.com/wolfSSL/wolfssl/archive/v5.1.1-stable.tar.gz'
source_sha256 'd3e0544dbe7e9587c0f6538cdc671b6492663bb7a4281819538abe6c99cdbd92' source_sha256 'd3e0544dbe7e9587c0f6538cdc671b6492663bb7a4281819538abe6c99cdbd92'

View File

@@ -7,6 +7,7 @@ class Opam < Package
description 'OCaml package manager' description 'OCaml package manager'
homepage 'https://opam.ocaml.org/' homepage 'https://opam.ocaml.org/'
version '2.1.4' version '2.1.4'
license 'LGPL-2.1-with-linking-exception'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/ocaml/opam.git' source_url 'https://github.com/ocaml/opam.git'
git_hashtag version git_hashtag version

View File

@@ -1,10 +1,10 @@
require 'package' require 'package'
class Openrtsp < Package class Openrtsp < Package
description '"openRTSP" is a command-line program that can be used to open, stream, receive, and (optionally) record media streams that are specified by a RTSP URL - i.e., an URL that begins with rtsp://' description 'openRTSP is a command-line program that can be used to open, stream, receive, and (optionally) record media streams that are specified by a RTSP URL - i.e., an URL that begins with rtsp://'
homepage 'http://www.live555.com/openRTSP/' homepage 'http://www.live555.com/openRTSP/'
version '2018.02.28' version '2018.02.28'
license '' # Can't find license license 'GPL-3+'
compatibility 'all' compatibility 'all'
source_url 'http://www.live555.com/liveMedia/public/live.2018.02.28.tar.gz' source_url 'http://www.live555.com/liveMedia/public/live.2018.02.28.tar.gz'
source_sha256 '2db4f05616bdd21a609baf82c836486c44820c16a006315e02abe2b0b53a247e' source_sha256 '2db4f05616bdd21a609baf82c836486c44820c16a006315e02abe2b0b53a247e'

View File

@@ -2,14 +2,14 @@ require 'package'
class Pipewire < Package class Pipewire < Package
description 'PipeWire is a project that aims to greatly improve handling of audio and video under Linux.' description 'PipeWire is a project that aims to greatly improve handling of audio and video under Linux.'
@_ver = if Gem::Version.new(CREW_KERNEL_VERSION.to_s) < Gem::Version.new('3.9') homepage 'https://pipewire.org'
'0.3.29' if Gem::Version.new(CREW_KERNEL_VERSION.to_s) < Gem::Version.new('3.9')
elsif Gem::Version.new(CREW_KERNEL_VERSION.to_s) <= Gem::Version.new('5.4') version '0.3.29'
'0.3.60' elsif Gem::Version.new(CREW_KERNEL_VERSION.to_s) <= Gem::Version.new('5.4')
else version '0.3.60'
'1.0.0' else
end version '1.0.0'
version @_ver end
compatibility 'all' compatibility 'all'
license 'LGPL-2.1+' license 'LGPL-2.1+'
source_url 'https://gitlab.freedesktop.org/pipewire/pipewire.git' source_url 'https://gitlab.freedesktop.org/pipewire/pipewire.git'

View File

@@ -4,7 +4,7 @@ class Pkgsrc < Package
description 'pkgsrc is a framework for building third-party software on NetBSD and other UNIX-like systems' description 'pkgsrc is a framework for building third-party software on NetBSD and other UNIX-like systems'
homepage 'https://github.com/NetBSD/pkgsrc' homepage 'https://github.com/NetBSD/pkgsrc'
version '2021Q1' version '2021Q1'
license '' # Can't find license license 'BSD-2 Clause'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/NetBSD/pkgsrc/archive/ccaf3cb68a965f1b055b3e04485d725fc7043813.tar.gz' source_url 'https://github.com/NetBSD/pkgsrc/archive/ccaf3cb68a965f1b055b3e04485d725fc7043813.tar.gz'
source_sha256 '16039f24bb84d5046832e462cfd7a21c5f53dd15792a9e6b71fa4faec3a7ab4e' source_sha256 '16039f24bb84d5046832e462cfd7a21c5f53dd15792a9e6b71fa4faec3a7ab4e'

View File

@@ -4,7 +4,7 @@ class Powerline_fonts < Package
description 'Patched fonts for Powerline users.' description 'Patched fonts for Powerline users.'
homepage 'https://github.com/powerline/fonts' homepage 'https://github.com/powerline/fonts'
version '2015-12-04' version '2015-12-04'
license '' # Can't find license license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/powerline/fonts/archive/2015-12-04.tar.gz' source_url 'https://github.com/powerline/fonts/archive/2015-12-04.tar.gz'
source_sha256 '3a0b73abca6334b5e6bddefab67f6eb1b2fac1231817d95fc79126c8998c4844' source_sha256 '3a0b73abca6334b5e6bddefab67f6eb1b2fac1231817d95fc79126c8998c4844'

View File

@@ -5,6 +5,7 @@ class Python27 < Package
description 'A compatibility package for python2.' description 'A compatibility package for python2.'
homepage Python2.homepage homepage Python2.homepage
version Python2.version version Python2.version
license Python2.license
compatibility Python2.compatibility compatibility Python2.compatibility
is_fake is_fake

View File

@@ -4,6 +4,7 @@ class Qemu < Package
description 'QEMU is a generic and open source machine emulator and virtualizer.' description 'QEMU is a generic and open source machine emulator and virtualizer.'
homepage 'http://www.qemu.org/' homepage 'http://www.qemu.org/'
version '8.1.2' version '8.1.2'
license 'GPL-2'
compatibility 'x86_64 aarch64 armv7l' compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/qemu/qemu.git' source_url 'https://github.com/qemu/qemu.git'
git_hashtag "v#{version}" git_hashtag "v#{version}"

View File

@@ -4,6 +4,7 @@ class Ruby_asciidoctor < Package
description 'A fast text processor & publishing toolchain for converting AsciiDoc to HTML5, DocBook & more.' description 'A fast text processor & publishing toolchain for converting AsciiDoc to HTML5, DocBook & more.'
homepage 'https://asciidoctor.org/' homepage 'https://asciidoctor.org/'
version '2.0.18-ruby-3.2' version '2.0.18-ruby-3.2'
license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'SKIP' source_url 'SKIP'

View File

@@ -4,6 +4,7 @@ class Ruby_concurrent_ruby < Package
description 'Modern concurrency tools for Ruby. Inspired by Erlang, Clojure, Scala, Haskell, F#, C#, Java, and classic concurrency patterns.' description 'Modern concurrency tools for Ruby. Inspired by Erlang, Clojure, Scala, Haskell, F#, C#, Java, and classic concurrency patterns.'
homepage 'https://github.com/ruby-concurrency/concurrent-ruby' homepage 'https://github.com/ruby-concurrency/concurrent-ruby'
version '1.1.10-ruby-3.2' version '1.1.10-ruby-3.2'
license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'SKIP' source_url 'SKIP'

View File

@@ -4,6 +4,7 @@ class Ruby_debug < Package
description 'Debugging functionality for Ruby. This is completely rewritten debug.rb which was contained by the ancient Ruby versions.' description 'Debugging functionality for Ruby. This is completely rewritten debug.rb which was contained by the ancient Ruby versions.'
homepage 'https://github.com/ruby/debug' homepage 'https://github.com/ruby/debug'
version '1.7.1-ruby-3.2' version '1.7.1-ruby-3.2'
license 'BSD-2 Clause'
compatibility 'all' compatibility 'all'
source_url 'SKIP' source_url 'SKIP'

View File

@@ -4,6 +4,7 @@ class Ruby_mdl < Package
description 'Style checker/lint tool for markdown files.' description 'Style checker/lint tool for markdown files.'
homepage 'https://github.com/markdownlint/markdownlint' homepage 'https://github.com/markdownlint/markdownlint'
version '0.12.0-ruby-3.2' version '0.12.0-ruby-3.2'
license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'SKIP' source_url 'SKIP'

View File

@@ -7,6 +7,7 @@ class Ruby_rubocop < Package
description 'A Ruby static code analyzer and formatter' description 'A Ruby static code analyzer and formatter'
homepage 'https://rubocop.org' homepage 'https://rubocop.org'
version '1.57.2-ruby-3.2' version '1.57.2-ruby-3.2'
license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/chromebrew/chromebrew/raw/master/.rubocop.yml' source_url 'https://github.com/chromebrew/chromebrew/raw/master/.rubocop.yml'
source_sha256 '3942911bbee4c316617fa78825160726a398737db9a6085c743c9477acd55222' source_sha256 '3942911bbee4c316617fa78825160726a398737db9a6085c743c9477acd55222'

View File

@@ -4,6 +4,7 @@ class Ruby_yaml_lint < Package
description 'Check if your YAML files can be loaded.' description 'Check if your YAML files can be loaded.'
homepage 'https://rubygems.org/gems/yaml-lint' homepage 'https://rubygems.org/gems/yaml-lint'
version '0.0.10-ruby-3.2' version '0.0.10-ruby-3.2'
license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'SKIP' source_url 'SKIP'

View File

@@ -7,6 +7,7 @@ class Serd < Meson
description 'Lightweight C library for RDF syntax supporting reading/ writing Turtle and NTriples.' description 'Lightweight C library for RDF syntax supporting reading/ writing Turtle and NTriples.'
homepage 'https://drobilla.net/software/serd/' homepage 'https://drobilla.net/software/serd/'
version '0.30.16' version '0.30.16'
license 'ISC'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/drobilla/serd.git' source_url 'https://github.com/drobilla/serd.git'
git_hashtag "v#{version}" git_hashtag "v#{version}"

View File

@@ -2,9 +2,9 @@ require 'package'
class Sg3_utils < Package class Sg3_utils < Package
description 'The sg3_utils package contains utilities that send SCSI commands to devices.' description 'The sg3_utils package contains utilities that send SCSI commands to devices.'
homepage 'http://sg.danny.cz/sg/sg3_utils.html' # 404 Not Found homepage 'http://sg.danny.cz/sg/sg3_utils.html'
version '1.44' version '1.44'
license '' # Can't find license license 'BSD-2 Clause'
compatibility 'all' compatibility 'all'
source_url 'http://sg.danny.cz/sg/p/sg3_utils-1.44.tar.xz' source_url 'http://sg.danny.cz/sg/p/sg3_utils-1.44.tar.xz'
source_sha256 'ca94ac106510742cd8ff5ead4a7e5c89d410653291401daf4632d2bef2a35b05' source_sha256 'ca94ac106510742cd8ff5ead4a7e5c89d410653291401daf4632d2bef2a35b05'

View File

@@ -5,8 +5,9 @@ require 'package'
class Shaderc < Package class Shaderc < Package
description 'Collection of tools, libraries and tests for shader compilation' description 'Collection of tools, libraries and tests for shader compilation'
homepage 'https://github.com/google/shaderc'
version '2023.2' version '2023.2'
license 'Apache' license 'Apache-2.0'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/google/shaderc.git' source_url 'https://github.com/google/shaderc.git'
git_hashtag "v#{version}" git_hashtag "v#{version}"

View File

@@ -4,7 +4,7 @@ class Shells < Package
description 'Launch your Shells™ virtual desktop' description 'Launch your Shells™ virtual desktop'
homepage 'https://www.shells.com/' homepage 'https://www.shells.com/'
version '0.2b' version '0.2b'
license '' license 'Proprietary'
compatibility 'x86_64' compatibility 'x86_64'
source_url 'https://static.atonline.net/download/cswvf-5htgl5-77xz-glna-lowp-45nddony/shells-go-debian-buster-0.2b.tar.bz2' source_url 'https://static.atonline.net/download/cswvf-5htgl5-77xz-glna-lowp-45nddony/shells-go-debian-buster-0.2b.tar.bz2'
source_sha256 '6d1a8267056c5c372f2bc1918e022f618006e2bcec1869cf2bfbb7d33e8dbc84' source_sha256 '6d1a8267056c5c372f2bc1918e022f618006e2bcec1869cf2bfbb7d33e8dbc84'

View File

@@ -2,9 +2,9 @@ require 'package'
class Shhmsg < Package class Shhmsg < Package
description 'C-functions for error messages, verbose messages and \'normal\' messages in terminal-based programs.' description 'C-functions for error messages, verbose messages and \'normal\' messages in terminal-based programs.'
homepage 'http://shh.thathost.com/pub-unix/#sshmsg' # 404 Not Found homepage 'http://shh.thathost.com/pub-unix/#sshmsg'
version '1.4.2-2' version '1.4.2-2'
license '' # Can't find license license 'Artistic'
compatibility 'all' compatibility 'all'
source_url 'http://shh.thathost.com/pub-unix/files/shhmsg-1.4.2.tar.gz' source_url 'http://shh.thathost.com/pub-unix/files/shhmsg-1.4.2.tar.gz'
source_sha256 '88c69e3f0b920b1ef93f6c10f354786f171d7cb3ab170a463bb9ab8bbf13a02b' source_sha256 '88c69e3f0b920b1ef93f6c10f354786f171d7cb3ab170a463bb9ab8bbf13a02b'

View File

@@ -2,9 +2,9 @@ require 'package'
class Shhopt < Package class Shhopt < Package
description 'C-functions for parsing command line options, both traditional one-character options, and GNU\'ish --long-options.' description 'C-functions for parsing command line options, both traditional one-character options, and GNU\'ish --long-options.'
homepage 'http://shh.thathost.com/pub-unix/#sshopt' # 404 Not Found homepage 'http://shh.thathost.com/pub-unix/#sshopt'
version '1.1.7-2' version '1.1.7-2'
license '' # Can't find license license 'Artistic'
compatibility 'all' compatibility 'all'
source_url 'http://shh.thathost.com/pub-unix/files/shhopt-1.1.7.tar.gz' source_url 'http://shh.thathost.com/pub-unix/files/shhopt-1.1.7.tar.gz'
source_sha256 'bae94335124efa6fcc2f0a55cabd68c9c90be935bcdb8054d7e5188e0d5da679' source_sha256 'bae94335124efa6fcc2f0a55cabd68c9c90be935bcdb8054d7e5188e0d5da679'

View File

@@ -1,15 +0,0 @@
require 'package'
class Snap < Package
description 'Server stack which includes sqlite, nginx and php. Not to be confused with snapd.'
homepage ''
version '1.1'
license 'GPL-3+'
compatibility 'all'
is_fake
depends_on 'nginx'
depends_on 'sqlite'
depends_on 'php81' unless File.exist? "#{CREW_PREFIX}/bin/php"
end

View File

@@ -7,6 +7,7 @@ class Sord < Meson
description 'A lightweight C library for storing RDF data in memory' description 'A lightweight C library for storing RDF data in memory'
homepage 'https://drobilla.net/software/sord/' homepage 'https://drobilla.net/software/sord/'
version '0.16.14' version '0.16.14'
license 'ISC'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/drobilla/sord.git' source_url 'https://github.com/drobilla/sord.git'
git_hashtag "v#{version}" git_hashtag "v#{version}"

View File

@@ -4,6 +4,7 @@
require 'package' require 'package'
class Spirv_headers < Package class Spirv_headers < Package
homepage 'https://github.com/KhronosGroup/SPIRV-Headers'
description 'SPIR-V Headers' description 'SPIR-V Headers'
version '1.3.239.0' version '1.3.239.0'
license 'MIT' license 'MIT'

View File

@@ -3,6 +3,7 @@
require 'package' require 'package'
class Spirv_tools < Package class Spirv_tools < Package
homepage 'https://github.com/KhronosGroup/SPIRV-Tools'
description 'API and commands for processing SPIR-V modules' description 'API and commands for processing SPIR-V modules'
version '2023.1' version '2023.1'
license 'custom' license 'custom'

View File

@@ -7,6 +7,7 @@ class Sratom < Meson
description 'An LV2 Atom RDF serialisation library' description 'An LV2 Atom RDF serialisation library'
homepage 'https://drobilla.net/software/sratom/' homepage 'https://drobilla.net/software/sratom/'
version '0.6.14' version '0.6.14'
license 'ISC'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/lv2/sratom.git' source_url 'https://github.com/lv2/sratom.git'
git_hashtag "v#{version}" git_hashtag "v#{version}"

View File

@@ -7,6 +7,7 @@ class Tbb < Package
description 'High level abstract threading library' description 'High level abstract threading library'
homepage 'https://www.threadingbuildingblocks.org/' homepage 'https://www.threadingbuildingblocks.org/'
version '2021.5.0' version '2021.5.0'
license 'Apache-2.0'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/oneapi-src/oneTBB.git' source_url 'https://github.com/oneapi-src/oneTBB.git'
git_hashtag "v#{version}" git_hashtag "v#{version}"

View File

@@ -5,7 +5,7 @@ class Tinycore < Package
This is a wrapper script to be able to execute their .tcz files.' This is a wrapper script to be able to execute their .tcz files.'
homepage 'https://distro.ibiblio.org/tinycorelinux/' homepage 'https://distro.ibiblio.org/tinycorelinux/'
version '9.0-0' version '9.0-0'
license '' # Figuring out license 'GPL-2'
compatibility 'all' compatibility 'all'
case ARCH case ARCH
when 'armv7l', 'aarch64' when 'armv7l', 'aarch64'

View File

@@ -7,6 +7,7 @@ class Tllist < Package
description 'A typed linked list C header file only library' description 'A typed linked list C header file only library'
homepage 'https://codeberg.org/dnkl/tllist' homepage 'https://codeberg.org/dnkl/tllist'
version '1.0.5' version '1.0.5'
license 'MIT'
compatibility 'all' compatibility 'all'
source_url 'https://codeberg.org/dnkl/tllist.git' source_url 'https://codeberg.org/dnkl/tllist.git'
git_hashtag version git_hashtag version

View File

@@ -7,6 +7,7 @@ class Ucl < Package
description 'Portable lossless data compression library written in ANSI C' description 'Portable lossless data compression library written in ANSI C'
homepage 'https://www.oberhumer.com/opensource/ucl/' homepage 'https://www.oberhumer.com/opensource/ucl/'
version '1.03' version '1.03'
license 'GPL-2+'
compatibility 'all' compatibility 'all'
source_url 'https://www.oberhumer.com/opensource/ucl/download/ucl-1.03.tar.gz' source_url 'https://www.oberhumer.com/opensource/ucl/download/ucl-1.03.tar.gz'
source_sha256 'b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348' source_sha256 'b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348'

View File

@@ -4,6 +4,7 @@ class Wayland_proxy_virtwl < Package
description 'Proxy Wayland connections across the VM boundary' description 'Proxy Wayland connections across the VM boundary'
homepage 'https://github.com/talex5/wayland-proxy-virtwl' homepage 'https://github.com/talex5/wayland-proxy-virtwl'
version 'd7f58d405514dd031f2f12e402c8c6a58e62a885' version 'd7f58d405514dd031f2f12e402c8c6a58e62a885'
license 'Apache-2.0'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/talex5/wayland-proxy-virtwl.git' source_url 'https://github.com/talex5/wayland-proxy-virtwl.git'
git_hashtag version git_hashtag version

View File

@@ -7,6 +7,7 @@ class Wireshark < CMake
description 'Network traffic and protocol analyzer/sniffer' description 'Network traffic and protocol analyzer/sniffer'
homepage 'https://www.wireshark.org/' homepage 'https://www.wireshark.org/'
version '4.2.0' version '4.2.0'
license 'GPL-2'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/wireshark/wireshark.git' source_url 'https://github.com/wireshark/wireshark.git'
git_hashtag "wireshark-#{version}" git_hashtag "wireshark-#{version}"

View File

@@ -5,6 +5,7 @@ class Wxwidgets31 < Package
homepage 'https://www.wxwidgets.org/' homepage 'https://www.wxwidgets.org/'
@_ver = '3.1.7' @_ver = '3.1.7'
version "#{@_ver}-2" version "#{@_ver}-2"
license 'wxWindows Library Licence'
compatibility 'x86_64 aarch64 armv7l' compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/wxWidgets/wxWidgets.git' source_url 'https://github.com/wxWidgets/wxWidgets.git'
git_hashtag "v#{@_ver}" git_hashtag "v#{@_ver}"

View File

@@ -1,40 +1,4 @@
# Tests # Tests
## Why to run tests These are a collection of programs used to ensure crew is working correctly.
They **must** be run in this directory, otherwise they will result in false positives.
Running tests will make sure that crew is working correctly or explain the problem if it's not.
## When to run tests
The tests can be used at any time to help with development but make sure to run them before submitting a Pull Request.
## Preparing new tests
To prepare a new test, create a ruby script. It may use crew constants (created in `lib/const.rb`) and import packages (be sure to use `require_relative`).
It should finish normally if the test passed, otherwise abort with `exit 1` and preferably explain why the test failed.
A simple example of a test script called `my_test` is below:
```ruby
#!/usr/bin/env ruby
# Makes sure buildessential package depends on gcc
require_relative "../lib/package"
pkg = Package.load_package('../package/buildessential.rb')
if pkg.dependencies and pkg.dependencies.has_key?('gcc') then
puts "Everything works properly.".lightgreen
else
puts "Buildessential should depend on gcc!".lightred
exit 1
end
```
Make sure the script is executable with `chmod +x my_test`. Note: This will only work in directories with execute permission.
## How to run tests
Execute `ruby my_test` from this directory (`tests/`). If all tests pass, it should display a message similar to `All tests successful.`, otherwise it should indicate what went wrong.
Running tests manually may not work!

View File

@@ -2,6 +2,9 @@
# This test checks whether the packages create a dependency cycle. # This test checks whether the packages create a dependency cycle.
# Add >LOCAL< lib to LOAD_PATH
$LOAD_PATH.unshift '../lib'
require 'find' require 'find'
require_relative '../lib/const' require_relative '../lib/const'
require_relative '../lib/color' require_relative '../lib/color'
@@ -9,8 +12,6 @@ require_relative '../lib/package'
@all_pkgs = {} @all_pkgs = {}
$LOAD_PATH.unshift '../lib'
puts "Running dependency cycle tests...\n".yellow puts "Running dependency cycle tests...\n".yellow
# Loads all packages # Loads all packages

View File

@@ -1,15 +0,0 @@
#!/usr/bin/env ruby
require 'find'
require_relative '../lib/const'
require_relative '../lib/color'
# Add >LOCAL< lib to LOAD_PATH
$LOAD_PATH.unshift '../lib'
Dir.glob('../packages/*.rb').each do |filename|
puts "Loading #{File.basename(filename, '.rb')}..."
load filename
end
puts "\nAll load tests successful.".lightgreen

29
tests/prop_test Executable file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
# Add >LOCAL< lib to LOAD_PATH
$LOAD_PATH.unshift '../lib'
require 'find'
require_relative '../lib/const'
require_relative '../lib/color'
require_relative '../lib/package'
tofail = 0
Dir.glob('../packages/*.rb').each do |filename|
pkg = Package.load_package(filename)
name = File.basename(filename, '.rb').gsub('_', '-')
puts "#{name} is missing a description." if pkg.description.to_s.empty?
puts "#{name} is missing a homepage." if pkg.homepage.to_s.empty?
puts "#{name} is missing a version." if pkg.version.to_s.empty?
puts "#{name} is missing a license." if pkg.license.to_s.empty?
puts "#{name} is missing a compatibility property." if pkg.compatibility.to_s.empty?
tofail += 1 if pkg.description.to_s.empty? || pkg.homepage.to_s.empty? || pkg.version.to_s.empty? || pkg.license.to_s.empty? || pkg.compatibility.to_s.empty?
end
if tofail.positive?
puts "\n#{tofail} failing packages."
exit(1) if tofail.positive?
else
puts "\nAll property tests successful.".lightgreen
end

View File

@@ -1,13 +0,0 @@
#!/usr/bin/env ruby
# This test checks for spelling errors and provides suggested changes.
require_relative '../lib/const'
require_relative '../lib/color'
puts "This test requires codespell. Install with 'pip install codespell'.".lightred unless File.exist? "#{CREW_PREFIX}/bin/codespell"
# Check for spelling errors.
Dir.chdir '../' do
system 'codespell'
end