34 lines
1.1 KiB
Ruby
34 lines
1.1 KiB
Ruby
class Prefixsuffix < Formula
|
|
desc "GUI batch renaming utility"
|
|
homepage "https://github.com/murraycu/prefixsuffix"
|
|
url "https://download.gnome.org/sources/prefixsuffix/0.6/prefixsuffix-0.6.9.tar.xz"
|
|
sha256 "fc3202bddf2ebbb93ffd31fc2a079cfc05957e4bf219535f26e6d8784d859e9b"
|
|
revision 3
|
|
|
|
bottle do
|
|
sha256 "e9386e2cb510ab0b72827396981bd8ae7d6bce5b111b7e0675e6359da7ef69eb" => :mojave
|
|
sha256 "c37b51cc76574951241c1db920d738fe8d01757abe2ddbd1499f4cfe2494f109" => :high_sierra
|
|
sha256 "b8db23d40d8efc9213da4952a6f6801346af4331b5877a32d531c5f9631662c7" => :sierra
|
|
end
|
|
|
|
depends_on "intltool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gtkmm3"
|
|
|
|
def install
|
|
ENV.cxx11
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}",
|
|
"--disable-schemas-compile"
|
|
system "make", "install"
|
|
end
|
|
|
|
def post_install
|
|
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/prefixsuffix", "--version"
|
|
end
|
|
end
|