Skip to content

Commit

Permalink
Merge pull request #99 from angerman/patch-1
Browse files Browse the repository at this point in the history
Make homebrew optional
  • Loading branch information
vshabanov committed Apr 6, 2024
2 parents 6f48020 + ceb0842 commit 8ab47a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion text-icu.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ license: BSD3
license-file: LICENSE
build-type: Simple

flag homebrew
Description: Assume homebrew on macOS. Automatically add /usr/local/opt/ and /usr/homebrew/opt/ paths to extra-lib-dirs and include-dirs.
Default: True
Manual: True

extra-doc-files:
README.markdown
changelog.md
Expand Down Expand Up @@ -122,7 +127,7 @@ library
c-sources: cbits/text_icu.c
cc-options: -Wall -Wextra -pedantic -Wno-deprecated
include-dirs: include
if os(darwin)
if os(darwin) && flag(homebrew)
extra-lib-dirs:
/usr/local/opt/icu4c/lib
/opt/homebrew/opt/icu4c/lib
Expand Down

0 comments on commit 8ab47a5

Please sign in to comment.