summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2023-03-17 23:04:23 +0100
committerDavid Seifert <soap@gentoo.org>2023-03-17 23:04:23 +0100
commitf64d9b08d20674815f5e80adca327f0a98bc0af0 (patch)
treea3910ea5b4b88a06e6f242c515d9734d1a227007 /eclass/office-ext-r1.eclass
parentmono-env.eclass: remove EAPI 5 (diff)
downloadgentoo-f64d9b08d20674815f5e80adca327f0a98bc0af0.tar.gz
gentoo-f64d9b08d20674815f5e80adca327f0a98bc0af0.tar.bz2
gentoo-f64d9b08d20674815f5e80adca327f0a98bc0af0.zip
office-ext-r1.eclass: remove EAPI 5
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/office-ext-r1.eclass')
-rw-r--r--eclass/office-ext-r1.eclass22
1 files changed, 13 insertions, 9 deletions
diff --git a/eclass/office-ext-r1.eclass b/eclass/office-ext-r1.eclass
index 8cf472fe5bcc..abc0cabaa310 100644
--- a/eclass/office-ext-r1.eclass
+++ b/eclass/office-ext-r1.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: office-ext-r1.eclass
@@ -6,18 +6,18 @@
# The office team <office@gentoo.org>
# @AUTHOR:
# Tomáš Chvátal <scarabeus@gentoo.org>
-# @SUPPORTED_EAPIS: 5 7
+# @SUPPORTED_EAPIS: 7
# @BLURB: Eclass for installing libreoffice extensions
# @DESCRIPTION:
# Eclass for easing maintenance of libreoffice extensions.
-case "${EAPI:-0}" in
- 5) inherit eutils multilib ;;
- 7) inherit eutils ;;
- *) die "EAPI=${EAPI} is not supported" ;;
+case ${EAPI} in
+ 7) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-EXPORT_FUNCTIONS src_unpack src_install
+if [[ -z ${_OFFICE_EXT_R1_ECLASS} ]]; then
+_OFFICE_EXT_R1_ECLASS=1
# @ECLASS_VARIABLE: OFFICE_REQ_USE
# @PRE_INHERIT
@@ -112,7 +112,7 @@ office-ext-r1_src_unpack() {
for i in ${OFFICE_EXTENSIONS[@]}; do
# Unpack the extensions where required and add case for oxt
# which should be most common case for the extensions.
- if [[ -f "${OFFICE_EXTENSIONS_LOCATION}/${i}" ]] ; then
+ if [[ -f ${OFFICE_EXTENSIONS_LOCATION}/${i} ]] ; then
case ${i} in
*.oxt)
mkdir -p "${WORKDIR}/${i}/" || die
@@ -142,9 +142,13 @@ office-ext-r1_src_install() {
for j in ${OFFICE_EXTENSIONS[@]}; do
pushd "${WORKDIR}/${j}/" > /dev/null || die
insinto /usr/$(get_libdir)/${i}/share/extensions/${j/.oxt/}
- doins -r *
+ doins -r .
popd > /dev/null || die
done
fi
done
}
+
+fi
+
+EXPORT_FUNCTIONS src_unpack src_install