@@ -923,24 +923,24 @@ use_homebrew_yaml() {
923923use_freebsd_pkg () {
924924 # check if FreeBSD
925925 if [ " FreeBSD" = " $( uname -s) " ]; then
926- # use openssl if installed from Ports Collection
927- if [ -f /usr/local/include/openssl/ssl.h ]; then
928- package_option ruby configure --with-openssl-dir=" /usr/local"
929- fi
926+ # use openssl if installed from Ports Collection
927+ if [ -f /usr/local/include/openssl/ssl.h ]; then
928+ package_option ruby configure --with-openssl-dir=" /usr/local"
929+ fi
930930
931- # check if 11-R or later
932- release=" $( uname -r) "
933- if [ " ${release%% .* } " -ge 11 ]; then
934- # prefers readline to compile most of ruby versions
935- if pkg info -e readline > /dev/null; then
936- # use readline from Ports Collection
937- package_option ruby configure --with-readline-dir=" /usr/local"
938- elif pkg info -e libedit > /dev/null; then
939- # use libedit from Ports Collection
940- package_option ruby configure --enable-libedit
941- package_option ruby configure --with-libedit-dir=" /usr/local"
942- fi
931+ # check if 11-R or later
932+ release=" $( uname -r) "
933+ if [ " ${release%% .* } " -ge 11 ]; then
934+ # prefers readline to compile most of ruby versions
935+ if pkg info -e readline > /dev/null; then
936+ # use readline from Ports Collection
937+ package_option ruby configure --with-readline-dir=" /usr/local"
938+ elif pkg info -e libedit > /dev/null; then
939+ # use libedit from Ports Collection
940+ package_option ruby configure --enable-libedit
941+ package_option ruby configure --with-libedit-dir=" /usr/local"
943942 fi
943+ fi
944944 fi
945945}
946946
0 commit comments