Skip to content

Commit

Permalink
urlview 0.9-23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Sep 16, 2024
1 parent ee0a8bf commit f616371
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Formula/u/urlview.rb
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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",
Expand All @@ -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"
Expand Down

0 comments on commit f616371

Please sign in to comment.