diff options
author | Joel Martin <kanaka@gentoo.org> | 2005-03-10 19:24:06 +0000 |
---|---|---|
committer | Joel Martin <kanaka@gentoo.org> | 2005-03-10 19:24:06 +0000 |
commit | 993c3f2b6959c5249f81f0c88e5b1beede11f97a (patch) | |
tree | ee2779878210569276d39986541bbfbc37160006 /app-office/indeview | |
parent | Added an extra check for a bad symlink, bug 84441. (diff) | |
download | gentoo-2-993c3f2b6959c5249f81f0c88e5b1beede11f97a.tar.gz gentoo-2-993c3f2b6959c5249f81f0c88e5b1beede11f97a.tar.bz2 gentoo-2-993c3f2b6959c5249f81f0c88e5b1beede11f97a.zip |
Version bump
(Portage version: 2.0.51-r15)
Diffstat (limited to 'app-office/indeview')
-rw-r--r-- | app-office/indeview/ChangeLog | 5 | ||||
-rw-r--r-- | app-office/indeview/Manifest | 4 | ||||
-rw-r--r-- | app-office/indeview/files/digest-indeview-0.6.6 | 1 | ||||
-rw-r--r-- | app-office/indeview/indeview-0.6.6.ebuild | 83 |
4 files changed, 91 insertions, 2 deletions
diff --git a/app-office/indeview/ChangeLog b/app-office/indeview/ChangeLog index 7bb41d8ef883..746ec2aa8254 100644 --- a/app-office/indeview/ChangeLog +++ b/app-office/indeview/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-office/indeview # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/ChangeLog,v 1.6 2005/01/01 15:34:37 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/ChangeLog,v 1.7 2005/03/10 19:24:06 kanaka Exp $ + + 10 Mar 2005; Joel Martin <kanaka@gentoo.org> : + Bump version 22 Apr 2004; David Holm <dholm@gentoo.org> indeview-0.6.5.ebuild: Added to ~ppc. diff --git a/app-office/indeview/Manifest b/app-office/indeview/Manifest index 6e94e0fc316a..60470e3e3a15 100644 --- a/app-office/indeview/Manifest +++ b/app-office/indeview/Manifest @@ -1,4 +1,6 @@ -MD5 5e525205321f8148f32069040875999c ChangeLog 668 +MD5 709b60f946b41cb5c1872d88462ef4f7 ChangeLog 733 MD5 27c6f6eecd6d49488a95045ebebae51e indeview-0.6.5.ebuild 2740 MD5 999957c815f1f66cd06973b1da035051 metadata.xml 218 +MD5 a531e9efca3901a30db520dee3a43967 indeview-0.6.6.ebuild 2740 MD5 af867adfa8e9bd51546181498d308927 files/digest-indeview-0.6.5 64 +MD5 27ca16448a510baad8ef2438527d7d03 files/digest-indeview-0.6.6 64 diff --git a/app-office/indeview/files/digest-indeview-0.6.6 b/app-office/indeview/files/digest-indeview-0.6.6 new file mode 100644 index 000000000000..2aecab44abdd --- /dev/null +++ b/app-office/indeview/files/digest-indeview-0.6.6 @@ -0,0 +1 @@ +MD5 13a164a4564513a71829fa1b1bc8050e indeview-0.6.6.tgz 7074575 diff --git a/app-office/indeview/indeview-0.6.6.ebuild b/app-office/indeview/indeview-0.6.6.ebuild new file mode 100644 index 000000000000..5e35e7c7d885 --- /dev/null +++ b/app-office/indeview/indeview-0.6.6.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/indeview-0.6.6.ebuild,v 1.1 2005/03/10 19:24:06 kanaka Exp $ + +DESCRIPTION="Convert OpenOffice/KOffice to run independently on Linux, OSX, or Windows" +HOMEPAGE="http://www.indeview.org/" +SRC_URI="http://www.${PN}.org/download/${P}.tgz" +LICENSE="LGPL-2.1" +SLOT="0" + +KEYWORDS="~x86 ~ppc" +IUSE="" +RDEPEND="x11-libs/qt" + +S=${WORKDIR}/${P}/Viewer + +src_compile() { + qmake || die "qmake failed" + make || die "make failed" + + # Fix up the OpenOffice macro file + cd ${S}/../Creator/OpenOffice/ + cp IndeViewExport.bas IndeViewExport.mo.bas + sed -i -e 's:unknown:/usr/share/IndeView/ROOT_DATA:' IndeViewExport.mo.bas + # Convert special characters to &XXX; style + sed -i -e 's/&/\&/g' IndeViewExport.mo.bas + sed -i -e 's/"/\"/g' IndeViewExport.mo.bas + sed -i -e 's/</\</g' IndeViewExport.mo.bas + sed -i -e 's/>/\>/g' IndeViewExport.mo.bas + sed -i -e "s/'/\'/g" IndeViewExport.mo.bas + sed -i -e 's/ö/o/g' IndeViewExport.mo.bas + + cat >> IndeViewExport.xba << _EOF_ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> +<script:module xmlns:script="http://openoffice.org/2000/script" script:name="IndeViewExport" script:language="StarBasic"> +_EOF_ + cat IndeViewExport.mo.bas >> IndeViewExport.xba + cat >> IndeViewExport.xba << _EOF_ +</script:module> +_EOF_ + + cd ${S}/../Creator/KPresenter + sed -i -e 's:^ROOT_DATA=unknown:ROOT_DATA=/usr/share/IndeView/ROOT_DATA:' kpr2iv.sh +} + +src_install() { + dobin bin/indeview + dobin ../Creator/KPresenter/kpr2iv.sh + + cd ${S}/.. + dohtml -r doc/html/* + dodoc LICENSE README AUTHORS + + dodir /usr/share/IndeView + cp -a ${S}/../ROOT_DATA ${D}/usr/share/IndeView/ + + dodir /opt/OpenOffice.org/share/basic/Tools + insinto /opt/OpenOffice.org/share/basic/Tools + cd ${S}/../Creator/OpenOffice/ + + doins IndeViewExport.xba +} + +pkg_postinst() { + # 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 + ewarn "If you install or re-install openoffice, " + ewarn "you will need to re-merge this pacakge." + echo +} + +pkg_postrm() { + # Delete script from OpenOffice macros list + if [ ! -e ${ROOT}/usr/bin/indeview ]; + then + 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 +} |