commit:     63a16dcb7bddd055b1756d39076e82ed8efcbbb5
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  6 14:46:50 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Apr  6 14:51:07 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63a16dcb

office-ext-r1.eclass: EAPI-7 bump

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/office-ext-r1.eclass | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/eclass/office-ext-r1.eclass b/eclass/office-ext-r1.eclass
index 3c95b0c9c1e..7ac6145342a 100644
--- a/eclass/office-ext-r1.eclass
+++ b/eclass/office-ext-r1.eclass
@@ -1,22 +1,23 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: office-ext-r1.eclass
 # @MAINTAINER:
-# The office team <[email protected]>
+# The office team <[email protected]>
 # @AUTHOR:
 # Tomáš Chvátal <[email protected]>
-# @SUPPORTED_EAPIS: 5 6
+# @SUPPORTED_EAPIS: 5 6 7
 # @BLURB: Eclass for installing libreoffice/openoffice extensions
 # @DESCRIPTION:
 # Eclass for easing maintenance of libreoffice/openoffice extensions.
 
 case "${EAPI:-0}" in
-       5|6) OEXT_EXPORTED_FUNCTIONS="src_unpack src_install pkg_postinst 
pkg_prerm" ;;
+       5|6) inherit eutils multilib ;;
+       7) ;;
        *) die "EAPI=${EAPI} is not supported" ;;
 esac
 
-inherit eutils multilib
+OEXT_EXPORTED_FUNCTIONS="src_unpack src_install pkg_postinst pkg_prerm"
 
 # @ECLASS-VARIABLE: OFFICE_REQ_USE
 # @DESCRIPTION:
@@ -183,7 +184,7 @@ office-ext-r1_add_extension() {
                "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
        eend $?
        ${UNOPKG_BINARY} list --shared > /dev/null
-       rm -rf "${tmpdir}"
+       rm -r "${tmpdir}" || dir "failed to clean up"
 }
 
 # @FUNCTION: office-ext-r1_remove_extension
@@ -202,7 +203,7 @@ office-ext-r1_remove_extension() {
                "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
        eend $?
        ${UNOPKG_BINARY} list --shared > /dev/null
-       rm -rf "${tmpdir}"
+       rm -r "${tmpdir}" || dir "failed to clean up"
 }
 
 # @FUNCTION: office-ext-r1_pkg_postinst

Reply via email to