/[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.2 Revision 1.3
1# Copyright 1999-2011 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.2 2011/11/12 12:03:05 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/office-ext.eclass,v 1.3 2012/05/09 16:12:16 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:
10# @BLURB: Eclass for installing libreoffice/openoffice extensions 10# @BLURB: Eclass for installing libreoffice/openoffice extensions
11# @DESCRIPTION: 11# @DESCRIPTION:
12# Eclass for easing maitenance of libreoffice/openoffice extensions. 12# Eclass for easing maitenance of libreoffice/openoffice extensions.
13 13
14case "${EAPI:-0}" in 14case "${EAPI:-0}" in
15 4) OEXT_EXPORTED_FUNCTIONS="src_install pkg_postinst pkg_prerm" ;; 15 4) OEXT_EXPORTED_FUNCTIONS="src_unpack src_install pkg_postinst pkg_prerm" ;;
16 *) die "EAPI=${EAPI} is not supported" ;; 16 *) die "EAPI=${EAPI} is not supported" ;;
17esac 17esac
18 18
19inherit eutils multilib 19inherit eutils multilib
20 20
29 die "OO_EXTENSIONS variable is not an array." 29 die "OO_EXTENSIONS variable is not an array."
30fi 30fi
31 31
32DEPEND="virtual/ooo" 32DEPEND="virtual/ooo"
33RDEPEND="virtual/ooo" 33RDEPEND="virtual/ooo"
34
35# Most projects actually do not provide any workdir and we do not unpack the
36# .oxt file at all.
37S="${WORKDIR}"
38
39# @FUNCTION: office-ext_src_unpack
40# @DESCRIPTION:
41# Flush the cache after removal of an extension.
42office-ext_src_unpack() {
43 debug-print-function ${FUNCNAME} "$@"
44 local i
45
46 default
47
48 for i in ${OO_EXTENSIONS[@]}; do
49 debug-print "${FUNCNAME}: cp -v \"${DISTDIR}/${i}\" \"${S}\""
50 cp -v "${DISTDIR}/${i}" "${S}" || die
51 done
52}
34 53
35# @FUNCTION: office-ext_flush_unopkg_cache 54# @FUNCTION: office-ext_flush_unopkg_cache
36# @DESCRIPTION: 55# @DESCRIPTION:
37# Flush the cache after removal of an extension. 56# Flush the cache after removal of an extension.
38office-ext_flush_unopkg_cache() { 57office-ext_flush_unopkg_cache() {

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

  ViewVC Help
Powered by ViewVC 1.1.20