Skip to content

Commit 8aff3c6

Browse files
authored
Merge pull request #206703 from botantony/di
di 5.0.0
2 parents 476b078 + 84cc5da commit 8aff3c6

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

Formula/d/di.rb

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Di < Formula
22
desc "Advanced df-like disk information utility"
33
homepage "https://diskinfo-di.sourceforge.io/"
4-
url "https://downloads.sourceforge.net/project/diskinfo-di/di-4.54.0.1.tar.gz"
5-
sha256 "b401e647ecc3c8a697651bd29ad1cc6ae319f69a248b4dc4d3af0742f64b4ffb"
4+
url "https://downloads.sourceforge.net/project/diskinfo-di/di-5.0.0.tar.gz"
5+
sha256 "f6007412d5350f6bdc7c6ac6fc522139723520d6cd1d6ae0a348cfa66b2ce582"
66
license "Zlib"
77

88
# This only matches tarballs in the root directory, as a way of avoiding
@@ -13,16 +13,29 @@ class Di < Formula
1313
end
1414

1515
bottle do
16-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "e5366283a2233265aeec1d630e627b8fa9d4db9811b0ef34d5b8a051e8fe0163"
17-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "c939223c1ec05541c4b9ca28a3e387cd4c5df4687c243f54a22e206f6ec3e1a0"
18-
sha256 cellar: :any_skip_relocation, arm64_ventura: "4a3a377fd49be3eb9d5bfdc16ca4a7b66dc5b1cb64bef27ab88bff581e010e56"
19-
sha256 cellar: :any_skip_relocation, sonoma: "9fc90ffa73aa063421977eeafe04c3b2c0a9319fcbdc80c90decef338da935c1"
20-
sha256 cellar: :any_skip_relocation, ventura: "b41d6c79939170ffa37d2ca760e085024988832e82c15a84f38bec5950738ff5"
21-
sha256 cellar: :any_skip_relocation, x86_64_linux: "8d3898fd49a626edd4b27777a5b5f9a58c2e9f65fd4939eed0a3e47d0ee6a361"
16+
sha256 cellar: :any, arm64_sequoia: "12c40216386fbb2a42dd5e13ac7881965713147729a3320ab718ac71b10f1b65"
17+
sha256 cellar: :any, arm64_sonoma: "a5df7ea4025f12dff44febfd2d628ed2d62a9a235df42a0b14a4c08f71adb40d"
18+
sha256 cellar: :any, arm64_ventura: "3c786d2a23fd6eedde28c98b88202e6ec1467a7b19ae89831b302629f5e38c70"
19+
sha256 cellar: :any, sonoma: "08675e01f97c6e45269e49f08a7c76e044fbe6465eed8ee48f948174b4709341"
20+
sha256 cellar: :any, ventura: "942d153cf0364327e988b4ca4978b7268a7bd7b0f37ce28e74ade83b93f83c78"
21+
sha256 cellar: :any_skip_relocation, x86_64_linux: "3ebf8426adae77f2e3db12e1b003f30f8581b5e795cd1728d2e44781de0d1cd6"
2222
end
2323

24+
depends_on "cmake" => :build
25+
depends_on "pkgconf" => :build
26+
2427
def install
25-
system "make", "install", "prefix=#{prefix}"
28+
args = %W[
29+
-DDI_BUILD=Release
30+
-DDI_VERSION=#{version}
31+
-DDI_LIBVERSION=#{version}
32+
-DDI_SOVERSION=#{version.major}
33+
-DDI_RELEASE_STATUS=production
34+
]
35+
36+
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
37+
system "cmake", "--build", "build"
38+
system "cmake", "--install", "build"
2639
end
2740

2841
test do

0 commit comments

Comments
 (0)