perl-app.eclass 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # Author: Michael Cummings <mcummings@gentoo.org>
  4. # Maintained by the Perl herd <perl@gentoo.org>
  5. # If the ebuild doesn't override this, ensure we do not depend on the perl subslot value
  6. : ${GENTOO_DEPEND_ON_PERL_SUBSLOT:="no"}
  7. inherit perl-module
  8. case "${EAPI:-0}" in
  9. 5)
  10. ;;
  11. 6)
  12. die "EAPI=${EAPI} is not supported by perl-app.eclass. Please use perl-module.eclass instead."
  13. ;;
  14. *)
  15. die "EAPI=${EAPI} is not supported by perl-app.eclass"
  16. ;;
  17. esac
  18. # @FUNCTION: perl-app_src_prep
  19. # @USAGE: perl-app_src_prep
  20. # @DESCRIPTION:
  21. # This is a wrapper function to perl-app_src_configure().
  22. perl-app_src_prep() {
  23. perl-app_src_configure
  24. }
  25. # @FUNCTION: perl-app_src_configure
  26. # @USAGE: perl-app_src_configure
  27. # @DESCRIPTION:
  28. # This is a wrapper function to perl-module_src_configure().
  29. perl-app_src_configure() {
  30. perl-module_src_configure
  31. }
  32. # @FUNCTION: perl-app_src_compile
  33. # @USAGE: perl-app_src_compile
  34. # @DESCRIPTION:
  35. # This is a wrapper function to perl-module_src_compile().
  36. perl-app_src_compile() {
  37. has "${EAPI:-0}" 0 1 && perl-app_src_prep
  38. perl-module_src_compile
  39. }