Lines 640-646
econf() {
Link Here
|
640 |
fi |
640 |
fi |
641 |
|
641 |
|
642 |
local conf_args=() |
642 |
local conf_args=() |
643 |
if ___eapi_econf_passes_--disable-dependency-tracking || ___eapi_econf_passes_--disable-silent-rules || ___eapi_econf_passes_--docdir_and_--htmldir || ___eapi_econf_passes_--with-sysroot; then |
643 |
if ___eapi_econf_passes_--disable-dependency-tracking || ___eapi_econf_passes_--disable-silent-rules || ___eapi_econf_passes_--docdir_and_--htmldir || ___eapi_econf_passes_--with-sysroot || ___eapi_econf_passes_--includedir; then |
644 |
local conf_help=$("${ECONF_SOURCE}/configure" --help 2>/dev/null) |
644 |
local conf_help=$("${ECONF_SOURCE}/configure" --help 2>/dev/null) |
645 |
|
645 |
|
646 |
if ___eapi_econf_passes_--disable-dependency-tracking; then |
646 |
if ___eapi_econf_passes_--disable-dependency-tracking; then |
Lines 670-675
econf() {
Link Here
|
670 |
conf_args+=( --with-sysroot="${ESYSROOT:-/}" ) |
670 |
conf_args+=( --with-sysroot="${ESYSROOT:-/}" ) |
671 |
fi |
671 |
fi |
672 |
fi |
672 |
fi |
|
|
673 |
|
674 |
if ___eapi_econf_passes_--includedir; then |
675 |
# if the ebuild passes in --includedir, they're responsible for the conf_incdir fun. |
676 |
local CONF_INCDIR INCDIR_VAR="INCDIR_${ABI}" |
677 |
if [[ -n ${ABI} && -n ${!INCDIR_VAR} ]] ; then |
678 |
CONF_INCDIR=${!INCDIR_VAR} |
679 |
fi |
680 |
if [[ -n ${CONF_INCDIR} ]] && ! __hasgq --includedir=\* "$@" ; then |
681 |
export CONF_PREFIX=$(__hasg --exec-prefix=\* "$@") |
682 |
[[ -z ${CONF_PREFIX} ]] && CONF_PREFIX=$(__hasg --prefix=\* "$@") |
683 |
: ${CONF_PREFIX:=${EPREFIX}/usr} |
684 |
CONF_PREFIX=${CONF_PREFIX#*=} |
685 |
[[ ${CONF_PREFIX} != /* ]] && CONF_PREFIX="/${CONF_PREFIX}" |
686 |
[[ ${CONF_INCDIR} != /* ]] && CONF_INCDIR="/${CONF_INCDIR}" |
687 |
conf_args+=( |
688 |
--includedir="$(__strip_duplicate_slashes "${CONF_PREFIX}${CONF_INCDIR}")" |
689 |
) |
690 |
fi |
691 |
fi |
673 |
fi |
692 |
fi |
674 |
|
693 |
|
675 |
# if the profile defines a location to install libs to aside from default, pass it on. |
694 |
# if the profile defines a location to install libs to aside from default, pass it on. |
Lines 976-981
best_version() {
Link Here
|
976 |
___best_version_and_has_version_common "$@" |
995 |
___best_version_and_has_version_common "$@" |
977 |
} |
996 |
} |
978 |
|
997 |
|
|
|
998 |
if ___eapi_has_get_incdir; then |
999 |
get_incdir() { |
1000 |
local incdir_var="INCDIR_${ABI}" |
1001 |
local incdir="include" |
1002 |
|
1003 |
[[ -n ${ABI} && -n ${!incdir_var} ]] && incdir=${!incdir_var} |
1004 |
|
1005 |
echo "${incdir}" |
1006 |
} |
1007 |
fi |
1008 |
|
979 |
if ___eapi_has_get_libdir; then |
1009 |
if ___eapi_has_get_libdir; then |
980 |
get_libdir() { |
1010 |
get_libdir() { |
981 |
local libdir_var="LIBDIR_${ABI}" |
1011 |
local libdir_var="LIBDIR_${ABI}" |
982 |
- |
|
|