-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the environment in opam env as well for macOS
This has to be done using a separate package since setenv cannot be filtered and opam 2.0.10/2.1.4 and earlier cannot handle a setenv with an empty string in the environment update.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
packages/conf-openblas-macOS-env/conf-openblas-macOS-env.1/opam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
opam-version: "2.0" | ||
maintainer: "David Allsopp" | ||
authors: [ "David Allsopp" ] | ||
homepage: "https://opam.ocaml.org" | ||
bug-reports: "https://github.com/ocaml/opam-repository/issues" | ||
license: "ISC" | ||
build: [ | ||
"sh" | ||
"-exc" | ||
"printf 'opam-version: \"2.0\"\\nvariables {\\n pkg-config-homebrew: \"%s/lib/pkgconfig\"\\n}' \"$(brew --prefix openblas)\" > %{_:name}%.config" | ||
] | ||
depends: [ | ||
"conf-openblas" {>= "0.2.1"} | ||
] | ||
setenv: [ | ||
PKG_CONFIG_PATH += "%{_:pkg-config-homebrew}%" | ||
] | ||
synopsis: "Virtual package to set the environment correctly for OpenBLAS in Homebrew" | ||
description: """ | ||
Homebrew requires an update to PKG_CONFIG_PATH in order to detect the openblas | ||
package. opam 2.0.10 and earlier and 2.1.4 and earlier cannot handle a setenv | ||
update of "", and setenv updates cannot be filtered. This package exists to | ||
workaround these two limitations.""" | ||
flags: conf | ||
available: os = "macos" & os-distribution = "homebrew" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters