mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* Remove i686 compatibility from packages with dependencies incompatible with i686 * Remove armv7l compatibility from packages with dependencies incompatible with arvm7l * Abort builds/installs if the package has incompatible dependencies
40 lines
1.1 KiB
Ruby
40 lines
1.1 KiB
Ruby
require 'package'
|
|
|
|
class Textract < Package
|
|
description 'Textract provides text extracting tools for many formats.'
|
|
homepage 'http://textract.readthedocs.io/'
|
|
version '1.6.4'
|
|
license 'MIT'
|
|
compatibility 'x86_64 aarch64 armv7l'
|
|
source_url 'https://github.com/deanmalmgren/textract.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tpxz'
|
|
|
|
binary_sha256({
|
|
aarch64: 'd621a56b5d12557eb7d96c234a70f46fe009bb9f9cf4cb3ccf1d3d2193f95ce2',
|
|
armv7l: 'd621a56b5d12557eb7d96c234a70f46fe009bb9f9cf4cb3ccf1d3d2193f95ce2',
|
|
x86_64: '0b3fedcbfd45de8555ac00ae5bf343bc979a0d8b843315335959996332e8fb90'
|
|
})
|
|
|
|
depends_on 'py3_pdfminer_six'
|
|
depends_on 'py3_ebooklib'
|
|
depends_on 'py3_pptx'
|
|
depends_on 'py3_extract_msg'
|
|
depends_on 'py3_xlrd'
|
|
depends_on 'py3_docx2txt'
|
|
depends_on 'py3_argcomplete'
|
|
depends_on 'py3_speechrecognition'
|
|
depends_on 'py3_chardet'
|
|
depends_on 'py3_beautifulsoup4'
|
|
depends_on 'py3_six'
|
|
depends_on 'python3' => :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
|