summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-08-14 20:49:40 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-08-14 22:06:19 +0200
commit30100cd160b1f4984f1eae8c7c403f97056233a9 (patch)
tree013835d386e78956cba22b3d3c0325785dc87546 /eclass
parentdev-qt/qtgui: Add systemtrayicon-plugin-system to FILESDIR (diff)
downloadkde-sunset-30100cd160b1f4984f1eae8c7c403f97056233a9.tar.gz
kde-sunset-30100cd160b1f4984f1eae8c7c403f97056233a9.tar.bz2
kde-sunset-30100cd160b1f4984f1eae8c7c403f97056233a9.zip
perl-app.eclass: Add last state before Gentoo ebuild repo removal
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/perl-app.eclass53
1 files changed, 53 insertions, 0 deletions
diff --git a/eclass/perl-app.eclass b/eclass/perl-app.eclass
new file mode 100644
index 00000000..e0131cca
--- /dev/null
+++ b/eclass/perl-app.eclass
@@ -0,0 +1,53 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# @DEAD
+# This eclass is dead and all its consumers have been removed from
+# the tree.
+# Please use perl-module.eclass if you need phase functions, and
+# perl-functions.eclass if you don't.
+# In overlays, perl-app.eclass usage can be replaced by
+# perl-module.eclass without further changes.
+# Bug 637836. Removal in 14 days.
+
+# Author: Michael Cummings <mcummings@gentoo.org>
+# @MAINTAINER:
+# kde-sunset overlay maintainers
+# @SUPPORTED_EAPIS: 5
+
+# If the ebuild doesn't override this, ensure we do not depend on the perl subslot value
+: ${GENTOO_DEPEND_ON_PERL_SUBSLOT:="no"}
+inherit perl-module
+
+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
+
+# @FUNCTION: perl-app_src_prep
+# @DESCRIPTION:
+# This is a wrapper function to perl-app_src_configure().
+perl-app_src_prep() {
+ perl-app_src_configure
+}
+
+# @FUNCTION: perl-app_src_configure
+# @DESCRIPTION:
+# This is a wrapper function to perl-module_src_configure().
+perl-app_src_configure() {
+ perl-module_src_configure
+}
+
+# @FUNCTION: perl-app_src_compile
+# @DESCRIPTION:
+# This is a wrapper function to perl-module_src_compile().
+perl-app_src_compile() {
+ has "${EAPI:-0}" 0 1 && perl-app_src_prep
+ perl-module_src_compile
+}