This commit is contained in:
saltedcoffii
2021-05-04 19:14:13 -04:00
parent 7ceb0c9261
commit c328066e85

View File

@@ -3,36 +3,22 @@ require 'package'
class Itstool < Package
description 'Translate XML with PO files using W3C Internationalization Tag Set rules'
homepage 'http://itstool.org/'
version '2.0.6-1'
@_ver = '2.0.6'
version @_ver + '-2'
license 'GPL-3+'
compatibility 'all'
source_url 'https://github.com/itstool/itstool/archive/2.0.6.tar.gz'
source_sha256 'bda0b08e9a1db885c9d7d1545535e9814dd8931d5b8dd5ab4a47bd769d0130c6'
source_url 'https://github.com/itstool/itstool.git'
git_hashtag @_ver
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/itstool/2.0.6-1_armv7l/itstool-2.0.6-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/itstool/2.0.6-1_armv7l/itstool-2.0.6-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/itstool/2.0.6-1_i686/itstool-2.0.6-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/itstool/2.0.6-1_x86_64/itstool-2.0.6-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '765e60cddd633a23262c94f0b9093d3b1ffcfe40eba35ca4b533ef85e2112949',
armv7l: '765e60cddd633a23262c94f0b9093d3b1ffcfe40eba35ca4b533ef85e2112949',
i686: '596bacc10fced4176a5d79e50739c02f299a3998398ae635b949a4fb8ad16478',
x86_64: '64c99cf974fec8958a31b3cc642d93ed68b9458ec7c403e93734e344afc191ed',
})
depends_on 'py3_setuptools' => :build
def self.build
system './autogen.sh'
system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
./configure #{CREW_OPTIONS}"
system 'make'
system 'env NOCONFIGURE=1 ./autogen.sh'
system "#{CREW_ENV_OPTIONS} ./configure #{CREW_OPTIONS}"
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "pip3 uninstall -y itstool"
system "pip3 install --upgrade --no-warn-script-location itstool --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR}"
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end