Skip to content

Commit

Permalink
gedit: update 42.0 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Ho committed May 21, 2022
1 parent 323e189 commit c3a605e
Showing 1 changed file with 7 additions and 84 deletions.
91 changes: 7 additions & 84 deletions Formula/gedit.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
class Gedit < Formula
desc "GNOME text editor"
homepage "https://wiki.gnome.org/Apps/Gedit"
url "https://download.gnome.org/sources/gedit/40/gedit-40.1.tar.xz"
sha256 "55e394a82cb65678b1ab49526cf5bd43f00d8fba21476a4849051a8e137d3691"
url "https://download.gnome.org/sources/gedit/42/gedit-42.0.tar.xz"
sha256 "a87991f42961eb4f6abcdbaabb784760c23aeaeefae6363d3e21a61e9c458437"
license "GPL-2.0-or-later"

bottle do
sha256 arm64_big_sur: "944db5b9131011efb9ac1ca370342b21895bc8c2220138c90fd137cc883ccc1e"
sha256 big_sur: "7cee9c8a408d1f8bfc28f05475babd0e9d0236cfb2411042c56112c97d6ccbd7"
sha256 catalina: "f36d6723b16e6271e0c5327b6d7723ed501c51bd1ab07a4c3c125ed877ff4e99"
sha256 mojave: "5a842c19e3ff549f23d6854265423064666686548356d0c188df63b741d49d77"
sha256 x86_64_linux: "43fd433db4952cba82e79d384f06abc89d5dbd46d8ed6b37fca84a002ebadff4"
root_url "https://github.com/gromgit/homebrew-core-mojave/releases/download/gedit"
sha256 mojave: "22eb298f0b873e6b46b6d4646a659bcc2d96cd6d98b18f6d63d10b8762d11d17"
end

depends_on "itstool" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "pkg-config" => [:build, :test]
depends_on "vala" => :build
depends_on "adwaita-icon-theme"
depends_on "atk"
Expand All @@ -33,7 +30,6 @@ class Gedit < Formula
depends_on "libsoup"
depends_on "libxml2"
depends_on "pango"
depends_on "tepl"

def install
ENV["DESTDIR"] = "/"
Expand Down Expand Up @@ -63,81 +59,8 @@ def post_install
return 0;
}
EOS
ENV.libxml2
atk = Formula["atk"]
cairo = Formula["cairo"]
fontconfig = Formula["fontconfig"]
freetype = Formula["freetype"]
gdk_pixbuf = Formula["gdk-pixbuf"]
gettext = Formula["gettext"]
glib = Formula["glib"]
gobject_introspection = Formula["gobject-introspection"]
gtkx3 = Formula["gtk+3"]
gtksourceview4 = Formula["gtksourceview4"]
harfbuzz = Formula["harfbuzz"]
libepoxy = Formula["libepoxy"]
libffi = Formula["libffi"]
libpeas = Formula["libpeas"]
libpng = Formula["libpng"]
pango = Formula["pango"]
pixman = Formula["pixman"]
flags = %W[
-I#{atk.opt_include}/atk-1.0
-I#{cairo.opt_include}/cairo
-I#{fontconfig.opt_include}
-I#{freetype.opt_include}/freetype2
-I#{gdk_pixbuf.opt_include}/gdk-pixbuf-2.0
-I#{gettext.opt_include}
-I#{glib.opt_include}/gio-unix-2.0/
-I#{glib.opt_include}/glib-2.0
-I#{glib.opt_lib}/glib-2.0/include
-I#{gobject_introspection.opt_include}/gobject-introspection-1.0
-I#{gtksourceview4.opt_include}/gtksourceview-4
-I#{gtkx3.opt_include}/gtk-3.0
-I#{harfbuzz.opt_include}/harfbuzz
-I#{include}/gedit-40.0
-I#{libepoxy.opt_include}
-I#{libffi.opt_lib}/libffi-3.0.13/include
-I#{libpeas.opt_include}/libpeas-1.0
-I#{libpng.opt_include}/libpng16
-I#{pango.opt_include}/pango-1.0
-I#{pixman.opt_include}/pixman-1
-D_REENTRANT
-L#{atk.opt_lib}
-L#{cairo.opt_lib}
-L#{gdk_pixbuf.opt_lib}
-L#{lib}/gedit
-L#{gettext.opt_lib}
-L#{glib.opt_lib}
-L#{gobject_introspection.opt_lib}
-L#{gtksourceview4.opt_lib}
-L#{gtkx3.opt_lib}
-L#{libpeas.opt_lib}
-L#{lib}
-L#{pango.opt_lib}
-latk-1.0
-lcairo
-lcairo-gobject
-lgdk-3
-lgdk_pixbuf-2.0
-lgedit-40.0
-lgio-2.0
-lgirepository-1.0
-lglib-2.0
-lgmodule-2.0
-lgobject-2.0
-lgtk-3
-lgtksourceview-4
-lpango-1.0
-lpangocairo-1.0
-lpeas-1.0
-lpeas-gtk-1.0
]
flags << if OS.mac?
"-lintl"
else
"-Wl,-rpath,#{lib}/gedit"
end
flags = shell_output("pkg-config --cflags --libs gedit").chomp.split
flags << "-Wl,-rpath,#{lib}/gedit" if OS.linux?
system ENV.cc, "test.c", "-o", "test", *flags
system "./test"
end
Expand Down

0 comments on commit c3a605e

Please sign in to comment.