/[gentoo-x86]/eclass/java-utils-2.eclass
Gentoo

Diff of /eclass/java-utils-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.27 Revision 1.28
1615# Writes the package.env out to disk. 1615# Writes the package.env out to disk.
1616# 1616#
1617# ------------------------------------------------------------------------------ 1617# ------------------------------------------------------------------------------
1618# TODO change to do-write, to match everything else 1618# TODO change to do-write, to match everything else
1619java-pkg_do_write_() { 1619java-pkg_do_write_() {
1620 java-pkg_init_paths_
1620 # Create directory for package.env 1621 # Create directory for package.env
1621 dodir "${JAVA_PKG_SHAREPATH}" 1622 dodir "${JAVA_PKG_SHAREPATH}"
1622 if [[ -n "${JAVA_PKG_CLASSPATH}" || -n "${JAVA_PKG_LIBRARY}" || -f "${JAVA_PKG_DEPEND}" ]]; then 1623 if [[ -n "${JAVA_PKG_CLASSPATH}" || -n "${JAVA_PKG_LIBRARY}" || -f "${JAVA_PKG_DEPEND}" ]]; then
1623 java-pkg_init_paths_
1624 # Create package.env 1624 # Create package.env
1625 ( 1625 (
1626 echo "DESCRIPTION=\"${DESCRIPTION}\"" 1626 echo "DESCRIPTION=\"${DESCRIPTION}\""
1627 echo "GENERATION=\"2\"" 1627 echo "GENERATION=\"2\""
1628 1628
1653 # Strip unnecessary leading and trailing colons 1653 # Strip unnecessary leading and trailing colons
1654 # TODO try to cleanup if possible 1654 # TODO try to cleanup if possible
1655 sed -e "s/=\":/=\"/" -e "s/:\"$/\"/" -i "${JAVA_PKG_ENV}" || die "Did you forget to call java_init ?" 1655 sed -e "s/=\":/=\"/" -e "s/:\"$/\"/" -i "${JAVA_PKG_ENV}" || die "Did you forget to call java_init ?"
1656 fi 1656 fi
1657} 1657}
1658
1659 1658
1660# ------------------------------------------------------------------------------ 1659# ------------------------------------------------------------------------------
1661# @internal-function java-pkg_record-jar_ 1660# @internal-function java-pkg_record-jar_
1662# 1661#
1663# Record a dependency to the package.env 1662# Record a dependency to the package.env

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20