59 lines
2.1 KiB
Ruby
59 lines
2.1 KiB
Ruby
class Anjuta < Formula
|
|
desc "GNOME Integrated Development Environment"
|
|
homepage "http://anjuta.org"
|
|
url "https://download.gnome.org/sources/anjuta/3.34/anjuta-3.34.0.tar.xz"
|
|
sha256 "42a93130ed3ee02d064a7094e94e1ffae2032b3f35a87bf441e37fc3bb3a148f"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 "b9394ffec202e2a073a98433fdb71a7f4f0855df6d579a6c719e82f2edd7a645" => :catalina
|
|
sha256 "d1f1cf5e9930dba037b4c010b5470defc006e669d1e209bc1554f6086e139fb9" => :mojave
|
|
sha256 "455139ca29653f310b2bc98a42501d0b0a1c1a0205b4ff21a16f7972b509aa95" => :high_sierra
|
|
end
|
|
|
|
depends_on "intltool" => :build
|
|
depends_on "itstool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "adwaita-icon-theme"
|
|
depends_on "autogen"
|
|
depends_on "gdl"
|
|
depends_on "gnome-themes-standard"
|
|
depends_on "gnutls"
|
|
depends_on "gtksourceview3"
|
|
depends_on "hicolor-icon-theme"
|
|
depends_on "libgda"
|
|
depends_on "libxml2"
|
|
depends_on "python"
|
|
depends_on "shared-mime-info"
|
|
depends_on "vala"
|
|
depends_on "vte3"
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}",
|
|
"--disable-schemas-compile"
|
|
|
|
xy = Language::Python.major_minor_version "python3"
|
|
ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python#{xy}/site-packages"
|
|
system "make", "install"
|
|
end
|
|
|
|
def post_install
|
|
hshare = HOMEBREW_PREFIX/"share"
|
|
|
|
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", hshare/"glib-2.0/schemas"
|
|
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", hshare/"icons/hicolor"
|
|
# HighContrast is provided by gnome-themes-standard
|
|
if File.file?("#{hshare}/icons/HighContrast/.icon-theme.cache")
|
|
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", hshare/"icons/HighContrast"
|
|
end
|
|
system "#{Formula["shared-mime-info"].opt_bin}/update-mime-database", hshare/"mime"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/anjuta", "--version"
|
|
end
|
|
end
|