Skip to content

Commit 9f3c6e6

Browse files
committed
di 5.0.0
1 parent f765a94 commit 9f3c6e6

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

Formula/d/di.rb

Lines changed: 16 additions & 3 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
@@ -21,8 +21,21 @@ class Di < Formula
2121
sha256 cellar: :any_skip_relocation, x86_64_linux: "8d3898fd49a626edd4b27777a5b5f9a58c2e9f65fd4939eed0a3e47d0ee6a361"
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)