/[gentoo-x86]/eclass/office-ext.eclass
Gentoo

Diff of /eclass/office-ext.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.5
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/office-ext.eclass,v 1.3 2012/05/09 16:12:16 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/office-ext.eclass,v 1.5 2012/05/10 09:33:59 scarabeus Exp $
4 4
5# @ECLASS: office-ext.eclass 5# @ECLASS: office-ext.eclass
6# @AUTHOR: 6# @AUTHOR:
7# Tomáš Chvátal <scarabeus@gentoo.org> 7# Tomáš Chvátal <scarabeus@gentoo.org>
8# @MAINTAINER: 8# @MAINTAINER:
44 local i 44 local i
45 45
46 default 46 default
47 47
48 for i in ${OO_EXTENSIONS[@]}; do 48 for i in ${OO_EXTENSIONS[@]}; do
49 # Copy only if the oxt is present, sometimes they are in tarballs
50 # so we want to fail only when we do need to do the cp.
51 if [[ -f "${DISTDIR}/${i}" ]] ; then
49 debug-print "${FUNCNAME}: cp -v \"${DISTDIR}/${i}\" \"${S}\"" 52 debug-print "${FUNCNAME}: cp -v \"${DISTDIR}/${i}\" \"${S}\""
50 cp -v "${DISTDIR}/${i}" "${S}" || die 53 cp -v "${DISTDIR}/${i}" "${S}" || die
54 fi
51 done 55 done
52} 56}
53 57
54# @FUNCTION: office-ext_flush_unopkg_cache 58# @FUNCTION: office-ext_flush_unopkg_cache
55# @DESCRIPTION: 59# @DESCRIPTION:
91 local ext=$1 95 local ext=$1
92 local tmpdir=$(mktemp -d --tmpdir="${T}") 96 local tmpdir=$(mktemp -d --tmpdir="${T}")
93 97
94 debug-print "${FUNCNAME}: ${UNOPKG_BINARY} add --shared \"${ext}\"" 98 debug-print "${FUNCNAME}: ${UNOPKG_BINARY} add --shared \"${ext}\""
95 ebegin "Adding office extension: \"${ext}\"" 99 ebegin "Adding office extension: \"${ext}\""
96 ${UNOPKG_BINARY} add --shared "${ext}" \ 100 ${UNOPKG_BINARY} add --suppress-license \
101 --shared "${ext}" \
97 "-env:UserInstallation=file:///${tmpdir}" \ 102 "-env:UserInstallation=file:///${tmpdir}" \
98 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" 103 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
99 eend $? 104 eend $?
100 rm -rf "${tmpdir}" 105 rm -rf "${tmpdir}"
101} 106}
108 local ext=$1 113 local ext=$1
109 local tmpdir=$(mktemp -d --tmpdir="${T}") 114 local tmpdir=$(mktemp -d --tmpdir="${T}")
110 115
111 debug-print "${FUNCNAME}: ${UNOPKG_BINARY} remove --shared \"${ext}\"" 116 debug-print "${FUNCNAME}: ${UNOPKG_BINARY} remove --shared \"${ext}\""
112 ebegin "Removing office extension: \"${ext}\"" 117 ebegin "Removing office extension: \"${ext}\""
113 ${UNOPKG_BINARY} remove --shared "${ext}" \ 118 ${UNOPKG_BINARY} remove --suppress-license \
119 --shared "${ext}" \
114 "-env:UserInstallation=file:///${tmpdir}" \ 120 "-env:UserInstallation=file:///${tmpdir}" \
115 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" 121 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
116 eend $? 122 eend $?
117 office-ext_flush_unopkg_cache 123 office-ext_flush_unopkg_cache
118 rm -rf "${tmpdir}" 124 rm -rf "${tmpdir}"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20