Lines 59-68
Link Here
|
59 |
# ----------------------------------------------------------------------------- |
59 |
# ----------------------------------------------------------------------------- |
60 |
# @variable-internal JAVA_PKG_PORTAGE_DEP |
60 |
# @variable-internal JAVA_PKG_PORTAGE_DEP |
61 |
# |
61 |
# |
62 |
# The version of portage we need to function properly. At this moment it's |
62 |
# The version of portage we need to function properly. Previously it was |
63 |
# portage with phase hooks support. |
63 |
# portage with phase hooks support but now we use a version with proper env |
|
|
64 |
# saving. |
64 |
# ----------------------------------------------------------------------------- |
65 |
# ----------------------------------------------------------------------------- |
65 |
JAVA_PKG_PORTAGE_DEP=">=sys-apps/portage-2.1_pre1" |
66 |
JAVA_PKG_PORTAGE_DEP=">=sys-apps/portage-2.1.2.7" |
66 |
|
67 |
|
67 |
# ----------------------------------------------------------------------------- |
68 |
# ----------------------------------------------------------------------------- |
68 |
# @variable-internal JAVA_PKG_E_DEPEND |
69 |
# @variable-internal JAVA_PKG_E_DEPEND |
Lines 1781-1791
Link Here
|
1781 |
# EANT_GENTOO_CLASSPATH - calls java-pkg_getjars for the value and adds to the |
1820 |
# EANT_GENTOO_CLASSPATH - calls java-pkg_getjars for the value and adds to the |
1782 |
# gentoo.classpath property. Be sure to call |
1821 |
# gentoo.classpath property. Be sure to call |
1783 |
# java-ant_rewrite-classpath in src_unpack. |
1822 |
# java-ant_rewrite-classpath in src_unpack. |
|
|
1823 |
# JAVA_PKG_NO_BUNDLED_SEARCH - Don't search for bundled jars or class files |
1784 |
# *ANT_TASKS - used to determine ANT_TASKS before calling Ant. |
1824 |
# *ANT_TASKS - used to determine ANT_TASKS before calling Ant. |
1785 |
# ------------------------------------------------------------------------------ |
1825 |
# ------------------------------------------------------------------------------ |
1786 |
eant() { |
1826 |
eant() { |
1787 |
debug-print-function ${FUNCNAME} $* |
1827 |
debug-print-function ${FUNCNAME} $* |
1788 |
|
1828 |
|
|
|
1829 |
if [[ ${EBUILD_PHASE} = compile ]]; then |
1830 |
# Used to be done in hooks in java-ant-2.eclass but moved here so that we can |
1831 |
# finally get rid of the hooks without breaking stuff |
1832 |
|
1833 |
[[ "${JAVA_ANT_IGNORE_SYSTEM_CLASSES}" && "${JAVA_PKG_BSFIX}" ]] \ |
1834 |
&& java-ant_ignore-system-classes "${S}/build.xml" |
1835 |
|
1836 |
if hasq java-ant-2 ${INHERITED}; then |
1837 |
java-ant_bsfix |
1838 |
fi |
1839 |
|
1840 |
# eant can be called multiple times |
1841 |
JAVA_PKG_BSFIX="off" |
1842 |
|
1843 |
if [[ -z ${JAVA_PKG_NO_BUNDLED_SEARCH} ]] && is-java-strict; then |
1844 |
echo "Searching for bundled jars:" |
1845 |
java-pkg_find-normal-jars || echo "None found." |
1846 |
echo "Searching for bundled classes (no output if none found):" |
1847 |
find "${WORKDIR}" -name "*.class" |
1848 |
echo "Search done." |
1849 |
JAVA_PKG_NO_BUNDLED_SEARCH=true # eant can be called many times |
1850 |
fi |
1851 |
fi |
1852 |
|
1789 |
if ! hasq java-ant-2 ${INHERITED}; then |
1853 |
if ! hasq java-ant-2 ${INHERITED}; then |
1790 |
local msg="You should inherit java-ant-2 when using eant" |
1854 |
local msg="You should inherit java-ant-2 when using eant" |
1791 |
java-pkg_announce-qa-violation "${msg}" |
1855 |
java-pkg_announce-qa-violation "${msg}" |
Lines 1797-1803
Link Here
|
1797 |
local compiler="${GENTOO_COMPILER}" |
1861 |
local compiler="${GENTOO_COMPILER}" |
1798 |
|
1862 |
|
1799 |
local compiler_env="${JAVA_PKG_COMPILER_DIR}/${compiler}" |
1863 |
local compiler_env="${JAVA_PKG_COMPILER_DIR}/${compiler}" |
1800 |
|
|
|
1801 |
local build_compiler="$(source ${compiler_env} 1>/dev/null 2>&1; echo ${ANT_BUILD_COMPILER})" |
1864 |
local build_compiler="$(source ${compiler_env} 1>/dev/null 2>&1; echo ${ANT_BUILD_COMPILER})" |
1802 |
if [[ "${compiler}" != "javac" && -z "${build_compiler}" ]]; then |
1865 |
if [[ "${compiler}" != "javac" && -z "${build_compiler}" ]]; then |
1803 |
die "ANT_BUILD_COMPILER undefined in ${compiler_env}" |
1866 |
die "ANT_BUILD_COMPILER undefined in ${compiler_env}" |
Lines 2018-2023
Link Here
|
2018 |
I_WANT_GLOBAL_JAVA_OPTIONS="true" |
2081 |
I_WANT_GLOBAL_JAVA_OPTIONS="true" |
2019 |
fi |
2082 |
fi |
2020 |
|
2083 |
|
|
|
2084 |
if java-pkg_func-exists ant_src_unpack; then |
2085 |
java-pkg_announce-qa-violation "Using old ant_src_unpack. Should be src_unpack" |
2086 |
fi |
2087 |
|
2021 |
java-pkg_init_paths_ |
2088 |
java-pkg_init_paths_ |
2022 |
java-pkg_switch-vm |
2089 |
java-pkg_switch-vm |
2023 |
PATH=${JAVA_HOME}/bin:${PATH} |
2090 |
PATH=${JAVA_HOME}/bin:${PATH} |
Lines 2464-2477
Link Here
|
2464 |
java-pkg_append_ LD_LIBRARY_PATH "$(java-config -g LDPATH)" |
2531 |
java-pkg_append_ LD_LIBRARY_PATH "$(java-config -g LDPATH)" |
2465 |
|
2532 |
|
2466 |
local tann="${T}/announced-vm" |
2533 |
local tann="${T}/announced-vm" |
|
|
2534 |
# With the hooks we should only get here once from pkg_setup but better safe than sorry |
2535 |
# if people have for example modified eclasses some where |
2467 |
if [[ -n "${JAVA_PKG_DEBUG}" ]] || [[ ! -f "${tann}" ]] ; then |
2536 |
if [[ -n "${JAVA_PKG_DEBUG}" ]] || [[ ! -f "${tann}" ]] ; then |
2468 |
# Add a check for setup/preinst phase... to avoid duplicate outputs |
2537 |
einfo "Using: $(java-config -f)" |
2469 |
# for when FEATURES=buildpkg |
2538 |
[[ ! -f "${tann}" ]] && touch "${tann}" |
2470 |
if [[ ${EBUILD_PHASE} != "setup" && ${EBUILD_PHASE} != "preinst" && ${EBUILD_PHASE} != "postinst" ]]; |
|
|
2471 |
then |
2472 |
einfo "Using: $(java-config -f)" |
2473 |
[[ ! -f "${tann}" ]] && touch "${tann}" |
2474 |
fi |
2475 |
fi |
2539 |
fi |
2476 |
|
2540 |
|
2477 |
else |
2541 |
else |