Skip to content

Commit

Permalink
use latest make in homebrew formulae
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Aug 11, 2021
1 parent ba3debb commit f4bc829
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ jobs:
brew tap cppfw/tap
brew update
- name: install ci tools
run: brew install myci
run: brew install myci make
- name: set PATH to use latest make
uses: myci-actions/export-env-var@master
with: {name: PATH, value: "/usr/local/opt/make/libexec/gnubin:$PATH"}
- name: install deps
run: myci-brew-install.sh `myci-list-deps-homebrew.sh`
- name: build
Expand Down
4 changes: 4 additions & 0 deletions conan/conanfile.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ class AggConan(ConanFile):

def package_info(self):
self.cpp_info.libs = ["antigrain"]

# change package id only when minor or major version changes, i.e. when ABI breaks
def package_id(self):
self.info.requires.minor_mode()
5 changes: 3 additions & 2 deletions homebrew/libantigrain.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ class Libantigrain < Formula
depends_on "prorab-extra" => :build
depends_on "myci" => :build

# use gmake here because otherwise homebrew uses default Mac's make which is of too old version 3.81
def install
ENV['PATH'] += ':/usr/local/bin'
system "make", "install", "PREFIX=#{prefix}"
system "/usr/local/opt/make/libexec/gnubin/make", "install", "PREFIX=#{prefix}"
end

test do
system "make", "test"
system "/usr/local/opt/make/libexec/gnubin/make", "test"
end
end

0 comments on commit f4bc829

Please sign in to comment.