/[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.4 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.4 2012/05/09 20:33: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:
95 local ext=$1 95 local ext=$1
96 local tmpdir=$(mktemp -d --tmpdir="${T}") 96 local tmpdir=$(mktemp -d --tmpdir="${T}")
97 97
98 debug-print "${FUNCNAME}: ${UNOPKG_BINARY} add --shared \"${ext}\"" 98 debug-print "${FUNCNAME}: ${UNOPKG_BINARY} add --shared \"${ext}\""
99 ebegin "Adding office extension: \"${ext}\"" 99 ebegin "Adding office extension: \"${ext}\""
100 ${UNOPKG_BINARY} add --shared "${ext}" \ 100 ${UNOPKG_BINARY} add --suppress-license \
101 --shared "${ext}" \
101 "-env:UserInstallation=file:///${tmpdir}" \ 102 "-env:UserInstallation=file:///${tmpdir}" \
102 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" 103 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
103 eend $? 104 eend $?
104 rm -rf "${tmpdir}" 105 rm -rf "${tmpdir}"
105} 106}
112 local ext=$1 113 local ext=$1
113 local tmpdir=$(mktemp -d --tmpdir="${T}") 114 local tmpdir=$(mktemp -d --tmpdir="${T}")
114 115
115 debug-print "${FUNCNAME}: ${UNOPKG_BINARY} remove --shared \"${ext}\"" 116 debug-print "${FUNCNAME}: ${UNOPKG_BINARY} remove --shared \"${ext}\""
116 ebegin "Removing office extension: \"${ext}\"" 117 ebegin "Removing office extension: \"${ext}\""
117 ${UNOPKG_BINARY} remove --shared "${ext}" \ 118 ${UNOPKG_BINARY} remove --suppress-license \
119 --shared "${ext}" \
118 "-env:UserInstallation=file:///${tmpdir}" \ 120 "-env:UserInstallation=file:///${tmpdir}" \
119 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" 121 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
120 eend $? 122 eend $?
121 office-ext_flush_unopkg_cache 123 office-ext_flush_unopkg_cache
122 rm -rf "${tmpdir}" 124 rm -rf "${tmpdir}"

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

  ViewVC Help
Powered by ViewVC 1.1.20