2014-10-15 23:19:12 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
# Author: Michael Cummings <mcummings@gentoo.org>
|
|
|
|
# Maintained by the Perl herd <perl@gentoo.org>
|
2018-08-16 14:08:53 +03:00
|
|
|
# @SUPPORTED_EAPIS: 5
|
2011-11-09 11:33:19 +04:00
|
|
|
|
2014-10-15 23:19:12 +04:00
|
|
|
# If the ebuild doesn't override this, ensure we do not depend on the perl subslot value
|
|
|
|
: ${GENTOO_DEPEND_ON_PERL_SUBSLOT:="no"}
|
2011-11-09 11:33:19 +04:00
|
|
|
inherit perl-module
|
|
|
|
|
2015-12-04 19:20:14 +03:00
|
|
|
case "${EAPI:-0}" in
|
|
|
|
5)
|
|
|
|
;;
|
|
|
|
6)
|
|
|
|
die "EAPI=${EAPI} is not supported by perl-app.eclass. Please use perl-module.eclass instead."
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
die "EAPI=${EAPI} is not supported by perl-app.eclass"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2014-11-16 18:00:49 +03:00
|
|
|
# @FUNCTION: perl-app_src_prep
|
|
|
|
# @USAGE: perl-app_src_prep
|
|
|
|
# @DESCRIPTION:
|
|
|
|
# This is a wrapper function to perl-app_src_configure().
|
2011-11-09 11:33:19 +04:00
|
|
|
perl-app_src_prep() {
|
|
|
|
perl-app_src_configure
|
|
|
|
}
|
|
|
|
|
2014-11-16 18:00:49 +03:00
|
|
|
# @FUNCTION: perl-app_src_configure
|
|
|
|
# @USAGE: perl-app_src_configure
|
|
|
|
# @DESCRIPTION:
|
|
|
|
# This is a wrapper function to perl-module_src_configure().
|
2011-11-09 11:33:19 +04:00
|
|
|
perl-app_src_configure() {
|
|
|
|
perl-module_src_configure
|
|
|
|
}
|
|
|
|
|
2014-11-16 18:00:49 +03:00
|
|
|
# @FUNCTION: perl-app_src_compile
|
|
|
|
# @USAGE: perl-app_src_compile
|
|
|
|
# @DESCRIPTION:
|
|
|
|
# This is a wrapper function to perl-module_src_compile().
|
2011-11-09 11:33:19 +04:00
|
|
|
perl-app_src_compile() {
|
|
|
|
has "${EAPI:-0}" 0 1 && perl-app_src_prep
|
|
|
|
perl-module_src_compile
|
|
|
|
}
|