diff --git a/Formula/u/urlview.rb b/Formula/u/urlview.rb index d96460d32400..d8e8bfabe141 100644 --- a/Formula/u/urlview.rb +++ b/Formula/u/urlview.rb @@ -1,8 +1,11 @@ class Urlview < Formula desc "URL extractor/launcher" homepage "https://packages.debian.org/sid/misc/urlview" + # TODO: Consider switching to new Debian maintainer's fork if it is adopted + # by other repositories as allowed by our documented policy. Alternatively, + # we could introduce the fork as `urlview-ng` and deprecate this formula. url "https://deb.debian.org/debian/pool/main/u/urlview/urlview_0.9.orig.tar.gz" - version "0.9-24" + version "0.9-23.1" sha256 "746ff540ccf601645f500ee7743f443caf987d6380e61e5249fc15f7a455ed42" license "GPL-2.0-or-later" @@ -33,8 +36,8 @@ class Urlview < Formula end patch do - url "http://ftp.debian.org/debian/pool/main/u/urlview/urlview_0.9-24.debian.tar.xz" - sha256 "2dd710baa5af98f5dc32ffedfa051220a83cb8b1d7250e75966d7658cf2e2228" + url "http://ftp.debian.org/debian/pool/main/u/urlview/urlview_0.9-23.1.debian.tar.xz" + sha256 "bdb3b403b165ff1fe7d1a7c05275b6c865e4740d9ed46fd9c81495be1fbe2b9f" apply "patches/debian.patch", "patches/Fix-warning-about-implicit-declaration-of-function.patch", "patches/invoke-AM_INIT_AUTOMAKE-with-foreign.patch", @@ -43,6 +46,9 @@ class Urlview < Formula end def install + # Workaround for newer Clang + ENV.append_to_cflags "-Wno-implicit-int" if DevelopmentTools.clang_build_version >= 1403 + man1.mkpath url_handler = OS.mac? ? "open" : etc/"urlview/url_handler.sh"