libhttpseverywhere 0.4.0

Closes #11391.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-03-21 08:22:59 -07:00
parent 11cc0189be
commit 1eadde5ecc

View file

@ -1,8 +1,8 @@
class Libhttpseverywhere < Formula
desc "Bring HTTPSEverywhere to desktop apps"
homepage "https://github.com/gnome/libhttpseverywhere"
url "https://download.gnome.org/sources/libhttpseverywhere/0.2/libhttpseverywhere-0.2.10.tar.xz"
sha256 "235f5b7f96188d800470871774e31696fbde085b63f65bd71434af8e9e6ac8aa"
url "https://download.gnome.org/sources/libhttpseverywhere/0.4/libhttpseverywhere-0.4.0.tar.xz"
sha256 "b5d2e923bb079074115312ebb4788410adf4f15b9c81b1d3d9579c91c95fa38f"
bottle do
sha256 "ed51e7503a52894a2d13c1ee6cb1ec02a7bca381e13a546e9e77ba1828194c9c" => :sierra
@ -20,6 +20,14 @@ class Libhttpseverywhere < Formula
depends_on "libgee"
depends_on "libarchive"
# Remove for > 0.4.0
# Fix "Tried to form an absolute path to a source dir."
# Upstream commit from 25 Mar 2017 "meson: Fix building with Meson 0.39.0"
patch do
url "https://git.gnome.org/browse/libhttpseverywhere/patch/?id=7075c895b6cd9f255fc5f42cea5d3d3ab6d12f4f"
sha256 "92938341ea09b55a87350b12557c7108a80112f09dfcd04a7c44af6badc9a910"
end
def install
mkdir "build" do
system "meson", "--prefix=#{prefix}", ".."
@ -51,7 +59,7 @@ class Libhttpseverywhere < Formula
-I#{gettext.opt_include}
-I#{glib.opt_include}/glib-2.0
-I#{glib.opt_lib}/glib-2.0/include
-I#{include}/httpseverywhere-0.2
-I#{include}/httpseverywhere-0.4
-I#{json_glib.opt_include}/json-glib-1.0
-I#{libarchive.opt_include}
-I#{libgee.opt_include}/gee-0.8
@ -70,7 +78,7 @@ class Libhttpseverywhere < Formula
-lgio-2.0
-lglib-2.0
-lgobject-2.0
-lhttpseverywhere-0.2
-lhttpseverywhere-0.4
-lintl
-ljson-glib-1.0
-lsoup-2.4