2013-12-30 18:39:49 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-12-30 18:39:49 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/eclass/perl-app.eclass,v 1.13 2013/12/29 21:39:51 dilfridge Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
# Author: Michael Cummings <mcummings@gentoo.org>
|
|
|
|
# Maintained by the Perl herd <perl@gentoo.org>
|
|
|
|
|
2013-12-30 18:39:49 +04:00
|
|
|
GENTOO_DEPEND_ON_PERL_SUBSLOT="no"
|
2012-02-06 16:39:49 +04:00
|
|
|
inherit perl-module
|
|
|
|
|
|
|
|
case "${EAPI:-0}" in
|
|
|
|
0|1) EXPORT_FUNCTIONS src_compile ;;
|
|
|
|
2) EXPORT_FUNCTIONS src_configure src_compile ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
perl-app_src_prep() {
|
|
|
|
perl-app_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
perl-app_src_configure() {
|
|
|
|
perl-module_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
perl-app_src_compile() {
|
|
|
|
has "${EAPI:-0}" 0 1 && perl-app_src_prep
|
|
|
|
perl-module_src_compile
|
|
|
|
}
|