Files
chromebrew/packages/qttools.rb
Satadru Pramanik 22bb47bd45 add missing runtime deps to ALL core packages, add getrealdeps script (#7472)
* gcc: add missing zlibpkg dep

* add getrealdeps script

* add color

* suggested changes from @supechicken

* suggested changes

* fix verbiage

* add NOCOLORS option

* use read in lieu of head, and do not check nonexistent files

* Exit early if wrong package name is given.

* Add some quick exit code

* Allow for pkg.rb in getrealdeps and also add deps to all core packages

* fix lint error

* fix zlibpkg

* cleanup gcc deps

* move filecmd to be a ruby dependency

* fix llvm deps

* lint fix

* update more deps

* make sure package is installed before checking for deps

* add more deps

* change verbiage

* add more deps

* more dep updates
2022-10-10 18:39:48 -05:00

52 lines
2.4 KiB
Ruby

require 'package'
class Qttools < Package
description 'Qt Tools'
homepage 'https://github.com/qt/qttools'
version '5.15.2'
license 'FDL, GPL-2, GPL-3, GPL-3-with-qt-exception and LGPL-3'
compatibility 'all'
source_url 'https://download.qt.io/official_releases/qt/5.15/5.15.2/submodules/qttools-everywhere-src-5.15.2.tar.xz'
source_sha256 'c189d0ce1ff7c739db9a3ace52ac3e24cb8fd6dbf234e49f075249b38f43c1cc'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/qttools/5.15.2_armv7l/qttools-5.15.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/qttools/5.15.2_armv7l/qttools-5.15.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/qttools/5.15.2_i686/qttools-5.15.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/qttools/5.15.2_x86_64/qttools-5.15.2-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '0d40cb342b8b31427bc976979dbc4c5bfcd8995e5bcc1e74a2a91cf4d84c2265',
armv7l: '0d40cb342b8b31427bc976979dbc4c5bfcd8995e5bcc1e74a2a91cf4d84c2265',
i686: '1f94a4b40c8f94d47b13445fd9dfb7abb50694cf0876d83e71287f59f36caeca',
x86_64: '4fe6c1fcd3b4bdfbdface915f9c7d71b6c73deadbb5bb20cb5d89af8d6d9d2d2'
})
depends_on 'gcc' # R
depends_on 'glibc' # R
depends_on 'mesa' # R
depends_on 'qtbase'
depends_on 'libtinfo'
def self.build
# NOTE: This MAY NOT COMPILE with llvm installed on x86. Install dependencies,
# disable depends, and uninstall llvm before attempting compile.
system 'qmake -Wall -early QMAKE_CFLAGS=-flto -early QMAKE_CXXFLAGS=-flto && make'
end
def self.install
FileUtils.mkdir_p CREW_DEST_LIB_PREFIX.to_s
system "cp -a lib/* #{CREW_DEST_LIB_PREFIX}"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/Qt-5"
FileUtils.cp_r 'bin', "#{CREW_DEST_PREFIX}/share/Qt-5"
FileUtils.cp_r 'examples', "#{CREW_DEST_PREFIX}/share/Qt-5"
FileUtils.cp_r 'include', "#{CREW_DEST_PREFIX}/share/Qt-5"
FileUtils.cp_r 'mkspecs', "#{CREW_DEST_PREFIX}/share/Qt-5"
FileUtils.cp_r 'src/linguist/phrasebooks', "#{CREW_DEST_PREFIX}/share/Qt-5"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
Dir.chdir "#{CREW_DEST_PREFIX}/share/Qt-5/bin" do
system "find . -type f -exec ln -s #{CREW_PREFIX}/share/Qt-5/bin/{} #{CREW_DEST_PREFIX}/bin/{} \\;"
end
end
end