wine 4.0.2

Closes #43827.

Signed-off-by: Jonathan Chang <jchang641@gmail.com>
This commit is contained in:
EricFromCanada 2019-09-03 16:17:34 -04:00 committed by Jonathan Chang
parent cdcaca2c0d
commit 65ec9ddf15

View file

@ -3,13 +3,13 @@
# - https://wiki.winehq.org/Gecko
# - https://wiki.winehq.org/Mono
# with `GECKO_VERSION` and `MONO_VERSION`, as in:
# https://source.winehq.org/git/wine.git/blob/refs/tags/wine-3.0:/dlls/appwiz.cpl/addons.c
# https://source.winehq.org/git/wine.git/blob/refs/tags/wine-4.0:/dlls/appwiz.cpl/addons.c
class Wine < Formula
desc "Run Windows applications without a copy of Microsoft Windows"
homepage "https://www.winehq.org/"
url "https://dl.winehq.org/wine/source/4.0/wine-4.0.1.tar.xz"
mirror "https://downloads.sourceforge.net/project/wine/Source/wine-4.0.1.tar.xz"
sha256 "d3a692f04c2fe03c8bd856655eaf4e6eeb4ad47f7d3120898dbf997e816b4948"
url "https://dl.winehq.org/wine/source/4.0/wine-4.0.2.tar.xz"
mirror "https://downloads.sourceforge.net/project/wine/Source/wine-4.0.2.tar.xz"
sha256 "994050692f8417ee206daafa5fc0ff810cc9392ffda1786ac0f0fb0cf74dbd74"
head "https://source.winehq.org/git/wine.git"
bottle do
@ -42,9 +42,9 @@ class Wine < Formula
end
resource "openssl" do
url "https://www.openssl.org/source/openssl-1.0.2r.tar.gz"
mirror "https://dl.bintray.com/homebrew/mirror/openssl-1.0.2r.tar.gz"
sha256 "ae51d08bba8a83958e894946f15303ff894d75c2b8bbd44a852b64e3fe11d0d6"
url "https://www.openssl.org/source/openssl-1.0.2s.tar.gz"
mirror "https://dl.bintray.com/homebrew/mirror/openssl-1.0.2s.tar.gz"
sha256 "cabd5c9492825ce5bd23f3c3aeed6a97f8142f606d893df216411f07d1abab96"
end
resource "libtool" do
@ -78,9 +78,9 @@ class Wine < Formula
end
resource "freetype" do
url "https://downloads.sourceforge.net/project/freetype/freetype2/2.10.0/freetype-2.10.0.tar.bz2"
mirror "https://download.savannah.gnu.org/releases/freetype/freetype-2.10.0.tar.bz2"
sha256 "fccc62928c65192fff6c98847233b28eb7ce05f12d2fea3f6cc90e8b4e5fbe06"
url "https://downloads.sourceforge.net/project/freetype/freetype2/2.10.1/freetype-2.10.1.tar.xz"
mirror "https://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.xz"
sha256 "16dbfa488a21fe827dc27eaf708f42f7aa3bb997d745d31a19781628c36ba26f"
end
resource "libusb" do
@ -90,8 +90,8 @@ class Wine < Formula
end
resource "webp" do
url "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.2.tar.gz"
sha256 "3d47b48c40ed6476e8047b2ddb81d93835e0ca1b8d3e8c679afbb3004dd564b1"
url "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.3.tar.gz"
sha256 "e20a07865c8697bba00aebccc6f54912d6bc333bb4d604e6b07491c1a226b34f"
end
resource "fontconfig" do
@ -107,8 +107,8 @@ class Wine < Formula
end
resource "libgphoto2" do
url "https://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.22/libgphoto2-2.5.22.tar.bz2"
sha256 "15d7327aa9a986af1e1dbfd8f15ba81352b67450d30e44562ce768ff9435ce58"
url "https://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.23/libgphoto2-2.5.23.tar.bz2"
sha256 "d8af23364aa40fd8607f7e073df74e7ace05582f4ba13f1724d12d3c97e8852d"
end
resource "net-snmp" do
@ -117,15 +117,14 @@ class Wine < Formula
end
resource "sane-backends" do
url "https://deb.debian.org/debian/pool/main/s/sane-backends/sane-backends_1.0.27.orig.tar.gz"
mirror "https://fossies.org/linux/misc/sane-backends-1.0.27.tar.gz"
sha256 "293747bf37275c424ebb2c833f8588601a60b2f9653945d5a3194875355e36c9"
url "https://gitlab.com/sane-project/backends/uploads/9e718daff347826f4cfe21126c8d5091/sane-backends-1.0.28.tar.gz"
sha256 "31260f3f72d82ac1661c62c5a4468410b89fb2b4a811dabbfcc0350c1346de03"
end
resource "mpg123" do
url "https://downloads.sourceforge.net/project/mpg123/mpg123/1.25.10/mpg123-1.25.10.tar.bz2"
mirror "https://www.mpg123.de/download/mpg123-1.25.10.tar.bz2"
sha256 "6c1337aee2e4bf993299851c70b7db11faec785303cfca3a5c3eb5f329ba7023"
url "https://downloads.sourceforge.net/project/mpg123/mpg123/1.25.12/mpg123-1.25.12.tar.bz2"
mirror "https://www.mpg123.de/download/mpg123-1.25.12.tar.bz2"
sha256 "1ffec7c9683dfb86ea9040d6a53d6ea819ecdda215df347f79def08f1fe731d1"
end
def openssl_arch_args
@ -374,6 +373,10 @@ class Wine < Formula
resource("sane-backends").stage do
save_env do
# malloc lives in malloc/malloc.h instead of just malloc.h on macOS.
# Merge request opened upstream: https://gitlab.com/sane-project/backends/merge_requests/90
inreplace "backend/ricoh2_buffer.c", "#include <malloc.h>", "#include <malloc/malloc.h>"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{libexec}",
"--localstatedir=#{var}",
@ -381,11 +384,6 @@ class Wine < Formula
"--enable-local-backends",
"--with-usb=yes",
*depflags
# Remove for > 1.0.27
# Workaround for bug in Makefile.am described here:
# https://lists.alioth.debian.org/pipermail/sane-devel/2017-August/035576.html.
# Fixed in https://anonscm.debian.org/cgit/sane/sane-backends.git/commit/?id=519ff57
system "make"
system "make", "install"
end
end