Lines 24-31
Link Here
|
24 |
### helper utility to validate a LAPACK library directory |
24 |
### helper utility to validate a LAPACK library directory |
25 |
validate_lapacklibdir() { |
25 |
validate_lapacklibdir() { |
26 |
[[ -d $1 ]] || return 2 # dir doesn't exist |
26 |
[[ -d $1 ]] || return 2 # dir doesn't exist |
27 |
[[ -r "${1}/liblapack.so.3" ]] && [[ -r "${1}/liblapack.so" ]] \ |
27 |
[[ -r "${1}/liblapack.so" ]] || return 1 |
28 |
|| return 1 |
|
|
29 |
} |
28 |
} |
30 |
|
29 |
|
31 |
### show action |
30 |
### show action |
Lines 143-148
Link Here
|
143 |
echo "# Auto-generated by eselect::lapack. DON'T EDIT." >> $ldconf |
142 |
echo "# Auto-generated by eselect::lapack. DON'T EDIT." >> $ldconf |
144 |
echo "$libpath" >> $ldconf |
143 |
echo "$libpath" >> $ldconf |
145 |
|
144 |
|
|
|
145 |
store_config ${EROOT}/etc/env.d/50lapack PKG_CONFIG_PATH $libpath |
146 |
|
146 |
# refresh cache. env-update will call ldconfig (see |
147 |
# refresh cache. env-update will call ldconfig (see |
147 |
# portage::env_update.py) so we don't need to call it explicitly. |
148 |
# portage::env_update.py) so we don't need to call it explicitly. |
148 |
env-update |
149 |
env-update |