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 2
|
|
|
|
bottle do
|
|
sha256 "3541b46101d2fe9e164a741f37b24261b78b4eceaff0e13e407c55b144dd068f" => :mojave
|
|
sha256 "62955320e97bcb4f636ca0e0b880678619fe90a43309f311aa60991f2ff0a21f" => :high_sierra
|
|
sha256 "632a0e87e234f5285a99072c1927affe8ab5efe438493035f472f652d8a951fe" => :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
|