Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a bottle for macOS 12 Monterey (x86_64 only) #71

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
# Remember to re-enable it one day.
#
# - ubuntu-latest

# https://github.com/actions/virtual-environments/#available-environments
- macos-12
- macos-11
- macos-10.15
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion amc-pango.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class AmcPango < Formula
homepage "https://www.pango.org/"
url "https://download.gnome.org/sources/pango/1.42/pango-1.42.4.tar.xz"
sha256 "1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d"
revision 2
revision 3

bottle do
root_url "https://github.com/maelvls/homebrew-amc/releases/download/amc-pango-1.42.4_2"
Expand Down
8 changes: 4 additions & 4 deletions auto-multiple-choice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class AutoMultipleChoice < Formula
homepage "https://www.auto-multiple-choice.net"
url "https://gitlab.com/jojo_boulix/auto-multiple-choice/uploads/3262cbab3161e5e63239a281e9a2ce23/auto-multiple-choice_1.5.0_dist.tar.gz"
sha256 "2e48ebb11a215c7882212c46f31d9013bb488c32899104008b0840e67f716948"
revision 0
revision 1

bottle do
root_url "https://github.com/maelvls/homebrew-amc/releases/download/auto-multiple-choice-1.5.0"
Expand Down Expand Up @@ -472,7 +472,7 @@ def install
# broke things. Now c++11 is needed and I use pkg-config for conveniency.
# And since pkg-config is used, CFLAGS, CXXFLAGS and LDFLAGS aren't needed
# anymore.
inreplace "Makefile", "opencv\)", "opencv4)"
inreplace "Makefile", "opencv)", "opencv4)"
inreplace "Makefile", "$(GCC_OPENCV) $(GCC_OPENCV_LIBS)", "$(GCC_OPENCV) $(GCC_OPENCV_LIBS) -std=c++11"
inreplace "Makefile-brew.conf", /^GCC_.*/, ""
inreplace "Makefile-brew.conf", /^CFLAGS.*/, ""
Expand Down Expand Up @@ -502,8 +502,8 @@ def install
(bin/"auto-multiple-choice").write_env_script libexec/"bin/auto-multiple-choice",
PERL5LIB: ENV["PERL5LIB"],
# netpbm, poppler and imagemagick@6 must be in the PATH
PATH: "#{libexec}/bin:#{Formula["qpdf"].bin}:#{Formula["netpbm"].bin}"\
":#{Formula["poppler"].bin}:#{Formula["imagemagick@6"].bin}"\
PATH: "#{libexec}/bin:#{Formula["qpdf"].bin}:#{Formula["netpbm"].bin}" \
":#{Formula["poppler"].bin}:#{Formula["imagemagick@6"].bin}" \
":#{Formula["gobject-introspection"].bin}:$PATH",
AMCBASEDIR: prefix

Expand Down