diff options
author | Joel Martin <kanaka@gentoo.org> | 2004-04-22 17:19:31 +0000 |
---|---|---|
committer | Joel Martin <kanaka@gentoo.org> | 2004-04-22 17:19:31 +0000 |
commit | 4e8e84b3704670cc911b5ca96ecf2102e1dc2a90 (patch) | |
tree | 7bf7e967f4c703a192b52fbcc5179214e10958b7 /app-office | |
parent | Version Bump. (diff) | |
download | historical-4e8e84b3704670cc911b5ca96ecf2102e1dc2a90.tar.gz historical-4e8e84b3704670cc911b5ca96ecf2102e1dc2a90.tar.bz2 historical-4e8e84b3704670cc911b5ca96ecf2102e1dc2a90.zip |
Be more graceful about openoffice (non) existence
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/indeview/ChangeLog | 5 | ||||
-rw-r--r-- | app-office/indeview/Manifest | 4 | ||||
-rw-r--r-- | app-office/indeview/indeview-0.6.5.ebuild | 14 |
3 files changed, 17 insertions, 6 deletions
diff --git a/app-office/indeview/ChangeLog b/app-office/indeview/ChangeLog index ebd045d84585..da57fb1dcee5 100644 --- a/app-office/indeview/ChangeLog +++ b/app-office/indeview/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-office/indeview # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/ChangeLog,v 1.1 2004/04/22 17:00:17 kanaka Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/ChangeLog,v 1.2 2004/04/22 17:19:31 kanaka Exp $ + + 22 Apr 2004; Joel Martin <kanaka@gentoo.org> indeview-0.6.5.ebuild: + Be more graceful about openoffice (non) existence *indeview-0.6.5 (22 Apr 2004) diff --git a/app-office/indeview/Manifest b/app-office/indeview/Manifest index 55237c967039..b98efbff021d 100644 --- a/app-office/indeview/Manifest +++ b/app-office/indeview/Manifest @@ -1,4 +1,4 @@ -MD5 87be4743b86541504178037df23b95aa indeview-0.6.5.ebuild 2327 -MD5 ea1a8590c4d4b4c66cdf2e4cc148f378 ChangeLog 362 +MD5 36c52daced0219cf1f80c5f54290386d indeview-0.6.5.ebuild 2624 +MD5 b747a48126ce427a32092c6acc0c1fda ChangeLog 485 MD5 999957c815f1f66cd06973b1da035051 metadata.xml 218 MD5 af867adfa8e9bd51546181498d308927 files/digest-indeview-0.6.5 64 diff --git a/app-office/indeview/indeview-0.6.5.ebuild b/app-office/indeview/indeview-0.6.5.ebuild index 02afe50bb151..f6e0cd481566 100644 --- a/app-office/indeview/indeview-0.6.5.ebuild +++ b/app-office/indeview/indeview-0.6.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/indeview-0.6.5.ebuild,v 1.1 2004/04/22 17:00:17 kanaka Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/indeview-0.6.5.ebuild,v 1.2 2004/04/22 17:19:31 kanaka Exp $ DESCRIPTION="Convert OpenOffice/KOffice to run independently on Linux, OSX, or Windows" HOMEPAGE="http://www.indeview.org/" @@ -61,13 +61,21 @@ src_install() { } pkg_postinst() { - grep "IndeViewExport" /opt/OpenOffice.org/share/basic/Tools/script.xlb > /dev/null || + # Add script to OpenOffice macros list + grep "IndeViewExport" /opt/OpenOffice.org/share/basic/Tools/script.xlb > /dev/null 2>&1 || sed -i -e 's;</library:library>; <library:element library:name="IndeViewExport"/>\n</library:library>;' /opt/OpenOffice.org/share/basic/Tools/script.xlb + + echo + einfo "If you install or re-install openoffice, " + einfo "you will need to re-merge this pacakge." + echo } pkg_postrm() { + # Delete script from OpenOffice macros list if [ ! -e ${ROOT}/usr/bin/indeview ]; then - sed -i -e '/^ <library:element library:name="IndeViewExport"\/>$/d' /opt/OpenOffice.org/share/basic/Tools/script.xlb + grep "IndeViewExport" /opt/OpenOffice.org/share/basic/Tools/script.xlb > /dev/null 2>&1 && + sed -i -e '/^ <library:element library:name="IndeViewExport"\/>$/d' /opt/OpenOffice.org/share/basic/Tools/script.xlb fi } |