mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
yamllint
This commit is contained in:
22
packages/py3_pathspec.rb
Normal file
22
packages/py3_pathspec.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
require 'package'
|
||||
|
||||
class Py3_pathspec < Package
|
||||
description 'Path specification is a utility library for gitignore style pattern matching of file paths.'
|
||||
homepage 'https://github.com/cpburnz/python-path-specification/'
|
||||
@_ver = '0.8.1'
|
||||
version @_ver
|
||||
license 'MPL-2.0'
|
||||
compatibility 'all'
|
||||
source_url 'https://github.com/cpburnz/python-path-specification.git'
|
||||
git_hashtag '7b125acf41702cb82679dcf56aaf6a14d34bd785'
|
||||
|
||||
depends_on 'py3_setuptools' => :build
|
||||
|
||||
def self.build
|
||||
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
|
||||
end
|
||||
end
|
||||
24
packages/py3_yamllint.rb
Normal file
24
packages/py3_yamllint.rb
Normal file
@@ -0,0 +1,24 @@
|
||||
require 'package'
|
||||
|
||||
class Py3_yamllint < Package
|
||||
description 'YAMLlint is a linter for YAML files.'
|
||||
homepage 'https://github.com/adrienverge/yamllint/'
|
||||
@_ver = '1.26.1'
|
||||
version @_ver
|
||||
license 'GPL-3'
|
||||
compatibility 'all'
|
||||
source_url 'https://github.com/adrienverge/yamllint.git'
|
||||
git_hashtag 'v' + @_ver
|
||||
|
||||
depends_on 'py3_pathspec'
|
||||
depends_on 'py3_pyyaml'
|
||||
depends_on 'py3_setuptools' => :build
|
||||
|
||||
def self.build
|
||||
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
|
||||
end
|
||||
end
|
||||
@@ -1,32 +0,0 @@
|
||||
require 'package'
|
||||
|
||||
class Yamllint < Package
|
||||
description 'A linter for YAML files.'
|
||||
homepage 'https://github.com/adrienverge/yamllint'
|
||||
version '1.11.1'
|
||||
license 'GPL-3'
|
||||
compatibility 'all'
|
||||
source_url 'https://github.com/adrienverge/yamllint/archive/v1.11.1.tar.gz'
|
||||
source_sha256 '56221b7c0a50b1619e491eb157624a5d1b160c1a4f019d64f117268f42fe4ca4'
|
||||
|
||||
binary_url ({
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/yamllint/1.11.1_armv7l/yamllint-1.11.1-chromeos-armv7l.tar.xz',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/yamllint/1.11.1_armv7l/yamllint-1.11.1-chromeos-armv7l.tar.xz',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/yamllint/1.11.1_i686/yamllint-1.11.1-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/yamllint/1.11.1_x86_64/yamllint-1.11.1-chromeos-x86_64.tar.xz',
|
||||
})
|
||||
binary_sha256 ({
|
||||
aarch64: '9798d172ec31c7b2c6b739dfd1177084c80aeb9ad15d129e3a84caed558bde54',
|
||||
armv7l: '9798d172ec31c7b2c6b739dfd1177084c80aeb9ad15d129e3a84caed558bde54',
|
||||
i686: '5cf8682e924268a750cd34433bb2a99698d8c31460c25495be924210617ba40f',
|
||||
x86_64: 'fa88bcfa61c580b18e421518bd1f2078dcd2f8fc050e6c564643fdf46c074191',
|
||||
})
|
||||
|
||||
def self.build
|
||||
system 'python3 setup.py sdist'
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "pip3 install dist/yamllint-*.tar.gz --root #{CREW_DEST_DIR} --prefix #{CREW_PREFIX}"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user