This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tox.ini: Move homebrew environment settings to script .homebrew-build…
…-env
- Loading branch information
Matthias Koeppe
committed
Mar 19, 2020
1 parent
2553b5a
commit 2f79c76
Showing
2 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
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,36 @@ | ||
# Source this -*- shell-script -*- to set some environment variables | ||
# that activate keg-only homebrew package installations | ||
|
||
HOMEBREW=`brew --prefix` || return 1 | ||
for l in gettext; do | ||
if [ -d "$HOMEBREW/opt/$l/bin" ]; then | ||
PATH="$HOMEBREW/opt/$l/bin:$PATH" | ||
fi | ||
done | ||
export PATH | ||
PKG_CONFIG_PATH="$HOMEBREW/lib/pkgconfig:$PKG_CONFIG_PATH" | ||
# libpng.pc depends on zlib.pc | ||
for l in openblas openssl readline sqlite zlib; do | ||
if [ -d "$HOMEBREW/opt/$l/lib/pkgconfig" ]; then | ||
PKG_CONFIG_PATH="$HOMEBREW/opt/$l/lib/pkgconfig:$PKG_CONFIG_PATH" | ||
fi | ||
done | ||
export PKG_CONFIG_PATH | ||
LDFLAGS="-L$HOMEBREW/lib $LDFLAGS" | ||
CPPFLAGS="-I$HOMEBREW/include $CPPFLAGS" | ||
for l in readline; do | ||
if [ -d "$HOMEBREW/opt/$l/lib" ]; then | ||
LDFLAGS="-L$HOMEBREW/opt/$l/lib $LDFLAGS" | ||
fi | ||
if [ -d "$HOMEBREW/opt/$l/include" ]; then | ||
CPPFLAGS="-I$HOMEBREW/opt/$l/include $CPPFLAGS" | ||
fi | ||
done | ||
export LDFLAGS | ||
export CPPFLAGS | ||
for l in gettext; do | ||
if [ -d "$HOMEBREW/opt/$l/share/aclocal" ]; then | ||
ACLOCAL_PATH="$HOMEBREW/opt/$l/share/aclocal:$ACLOCAL_PATH" | ||
fi | ||
done | ||
export ACLOCAL_PATH |
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