irssi: backport patches for Apple silicon
parent
9d1087501c
commit
badcdb2f8d
|
@ -1,10 +1,32 @@
|
||||||
class Irssi < Formula
|
class Irssi < Formula
|
||||||
desc "Modular IRC client"
|
desc "Modular IRC client"
|
||||||
homepage "https://irssi.org/"
|
homepage "https://irssi.org/"
|
||||||
url "https://github.com/irssi/irssi/releases/download/1.2.2/irssi-1.2.2.tar.xz"
|
|
||||||
sha256 "6727060c918568ba2ff4295ad736128dba0b995d7b20491bca11f593bd857578"
|
|
||||||
license "GPL-2.0"
|
license "GPL-2.0"
|
||||||
revision 1
|
revision 2
|
||||||
|
|
||||||
|
stable do
|
||||||
|
# We can switch back to a tarball after the next release;
|
||||||
|
# irssi's autogen refuses to work from a tarball
|
||||||
|
url "https://github.com/irssi/irssi.git",
|
||||||
|
tag: "1.2.2",
|
||||||
|
revision: "42110b92e92cb40e82fd736d88b099d096483939"
|
||||||
|
|
||||||
|
# Backports an upstream patch which disables some autoconf behaviour;
|
||||||
|
# prerequisite for the next patch to work.
|
||||||
|
# https://github.com/irssi/irssi/pull/1268
|
||||||
|
patch do
|
||||||
|
url "https://github.com/Homebrew/formula-patches/raw/467f95fcd0438b5f7a88ae0c406a8f73bc93b501/irssi/nostdinc.diff"
|
||||||
|
sha256 "00a7fe5e796ec3e37d629e0484f08f23b0fa33a428088d120ac0d8283054449c"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Backports a patch which adjusts how irssi uses curses headers,
|
||||||
|
# required for it to work properly on Apple silicon.
|
||||||
|
# https://github.com/irssi/irssi/pull/1290
|
||||||
|
patch do
|
||||||
|
url "https://github.com/Homebrew/formula-patches/raw/467f95fcd0438b5f7a88ae0c406a8f73bc93b501/irssi/curses_check.patch"
|
||||||
|
sha256 "a505394680e518712e9d0ab0ff14622d34b633b8310dbbfa42b5ad1df7fd3050"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
livecheck do
|
livecheck do
|
||||||
url "https://irssi.org/download/"
|
url "https://irssi.org/download/"
|
||||||
|
@ -29,6 +51,11 @@ class Irssi < Formula
|
||||||
depends_on "lynx" => :build
|
depends_on "lynx" => :build
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Needed while we're regenerating configure due to the patch
|
||||||
|
depends_on "autoconf" => :build
|
||||||
|
depends_on "automake" => :build
|
||||||
|
depends_on "libtool" => :build
|
||||||
|
|
||||||
depends_on "pkg-config" => :build
|
depends_on "pkg-config" => :build
|
||||||
depends_on "glib"
|
depends_on "glib"
|
||||||
depends_on "openssl@1.1"
|
depends_on "openssl@1.1"
|
||||||
|
@ -58,10 +85,10 @@ class Irssi < Formula
|
||||||
args << "--with-ncurses=#{Formula["ncurses"].prefix}"
|
args << "--with-ncurses=#{Formula["ncurses"].prefix}"
|
||||||
end
|
end
|
||||||
|
|
||||||
if build.head?
|
# Restore this to an `if build.head?` conditional
|
||||||
ENV["NOCONFIGURE"] = "yes"
|
# once we no longer need the patch
|
||||||
system "./autogen.sh", *args
|
ENV["NOCONFIGURE"] = "yes"
|
||||||
end
|
system "./autogen.sh", *args
|
||||||
|
|
||||||
system "./configure", *args
|
system "./configure", *args
|
||||||
# "make" and "make install" must be done separately on some systems
|
# "make" and "make install" must be done separately on some systems
|
||||||
|
|
Loading…
Reference in New Issue