class Ghex < Formula desc "GNOME hex editor" homepage "https://wiki.gnome.org/Apps/Ghex" url "https://download.gnome.org/sources/ghex/3.18/ghex-3.18.3.tar.xz" sha256 "c67450f86f9c09c20768f1af36c11a66faf460ea00fbba628a9089a6804808d3" revision 1 bottle do cellar :any rebuild 1 sha256 "15cfe34d49bf84016e783add666298473e546af509589b689af65bd866e294a5" => :mojave sha256 "cd309a461d6e472c27709919220cac62bdddbf8f8efc767e7924df205006b64b" => :high_sierra sha256 "95015010fd216769d84c5651a8c58fc80fd799d3ad35a9178022dece741def31" => :sierra end depends_on "intltool" => :build depends_on "itstool" => :build depends_on "libxml2" => :build depends_on "pkg-config" => :build depends_on "python" => :build depends_on "gtk+3" depends_on "hicolor-icon-theme" def install xy = Language::Python.major_minor_version "python3" ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python#{xy}/site-packages" system "./configure", "--disable-debug", "--disable-dependency-tracking", "--disable-silent-rules", "--disable-schemas-compile", "--prefix=#{prefix}" system "make", "install" end def post_install system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas" system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/hicolor" end test do system "#{bin}/ghex", "--help" end end