Reduce more of the python2 dependency (#10422)

* Remove q package as it is no longer suitable for packaging (see Homebrew/homebrew-core#90174)

* smem 1.4 -> 1.5

* sqlmap 1.4.2 -> 1.8.8

* weechat 2.1 -> 4.4.1
This commit is contained in:
Maximilian Downey Twiss
2024-09-05 17:22:14 +10:00
committed by GitHub
parent 5557dafde7
commit 1ee091587d
14 changed files with 79 additions and 109 deletions

View File

@@ -3,30 +3,29 @@ require 'package'
class Smem < Package
description 'A Linux memory reporting tool that uses proportional set size.'
homepage 'https://www.selenic.com/smem/'
version '1.4'
version '1.5'
license 'GPL-2+'
compatibility 'all'
source_url 'https://www.selenic.com/smem/download/smem-1.4.tar.gz'
source_sha256 '2ea9f878f4cf3c276774c3f7e2a41977a1f2d64f98d2dcb6a15f1f3d84df61ec'
binary_compression 'tar.xz'
source_url "https://selenic.com/repo/smem/archive/#{version}.tar.bz2"
source_sha256 '950c39ee8b1e051866564b25c36a6113eae2617e597b8302324bb8ee57d82ba6'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '914a30f98944155240bfefd8b4181b06a5b868f2e5949d86c806fe02fecf7c49',
armv7l: '914a30f98944155240bfefd8b4181b06a5b868f2e5949d86c806fe02fecf7c49',
i686: 'a971c2ea408330aa01ab3ad1740057d480f6dcbc64f1507e45d33a4f9d82d695',
x86_64: 'aff43254df620f1dcd080a5071a0f58b223d57b6f48d8545ed453062c115ada6'
aarch64: '9b525a1287322f8a3d152031b34963d471e74f30101af27c1bc2cee5ffff7e42',
armv7l: '9b525a1287322f8a3d152031b34963d471e74f30101af27c1bc2cee5ffff7e42',
i686: 'f63a138b571fd6f391bc823007f2649b6ac2f6cb75c2495e1540cf30adb048b2',
x86_64: '28884e546d36071a800018570f84c95847332d66f592743acb553ccc0f2e2509'
})
depends_on 'buildessential' => :build
depends_on 'python2'
depends_on 'python3'
def self.build
system 'make smemcap'
end
def self.install
system "install -Dm755 smem #{CREW_DEST_PREFIX}/bin/smem"
system "install -Dm755 smemcap #{CREW_DEST_PREFIX}/bin/smemcap"
system "install -Dm644 smem.8 #{CREW_DEST_PREFIX}/man/man8/smem.8"
FileUtils.install 'smem', "#{CREW_DEST_PREFIX}/bin/smem", mode: 0o755
FileUtils.install 'smemcap', "#{CREW_DEST_PREFIX}/bin/smemcap", mode: 0o755
FileUtils.install 'smem.8', "#{CREW_DEST_MAN_PREFIX}/man8/smem.8", mode: 0o644
end
end