summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-03-01 12:03:25 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-03-01 12:03:25 +0000
commita51b863efebbbf10d718969cf560fdb94cbe7fe3 (patch)
tree47b79741e65a8d3e78e71062d77575cce8a9ef7f /app-office
parentbump, uses eapi=1 now (diff)
downloadgentoo-2-a51b863efebbbf10d718969cf560fdb94cbe7fe3.tar.gz
gentoo-2-a51b863efebbbf10d718969cf560fdb94cbe7fe3.tar.bz2
gentoo-2-a51b863efebbbf10d718969cf560fdb94cbe7fe3.zip
Bump to 0.6.7. Modified ebuild by Peter Gaal and Joel Martin. Adding ~amd64 keyword.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'app-office')
-rw-r--r--app-office/indeview/ChangeLog10
-rw-r--r--app-office/indeview/indeview-0.6.7.ebuild100
2 files changed, 108 insertions, 2 deletions
diff --git a/app-office/indeview/ChangeLog b/app-office/indeview/ChangeLog
index 732783f20ccc..e63eaf8e9fff 100644
--- a/app-office/indeview/ChangeLog
+++ b/app-office/indeview/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-office/indeview
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/ChangeLog,v 1.13 2006/10/16 15:49:20 kanaka Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/ChangeLog,v 1.14 2009/03/01 12:03:25 patrick Exp $
+
+*indeview-0.6.7 (01 Mar 2009)
+
+ 01 Mar 2009; Patrick Lauer <patrick@gentoo.org> +indeview-0.6.7.ebuild:
+ Bump to 0.6.7. Modified ebuild by Peter Gaal and Joel Martin. Adding
+ ~amd64 keyword.
16 Oct 2006; Joel Martin <kanaka@gentoo.org> indeview-0.6.6.ebuild:
Move qt from RDEPEND to DEPEND since it uses qmake to build
diff --git a/app-office/indeview/indeview-0.6.7.ebuild b/app-office/indeview/indeview-0.6.7.ebuild
new file mode 100644
index 000000000000..d76133af3ef3
--- /dev/null
+++ b/app-office/indeview/indeview-0.6.7.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/indeview-0.6.7.ebuild,v 1.1 2009/03/01 12:03:25 patrick 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="~amd64 ~ppc ~x86"
+IUSE=""
+DEPEND="=x11-libs/qt-3*"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}/Viewer
+
+src_compile() {
+ ${QTDIR}/bin/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/&/\&amp;/g' IndeViewExport.mo.bas
+ sed -i -e 's/"/\&quot;/g' IndeViewExport.mo.bas
+ sed -i -e 's/</\&lt;/g' IndeViewExport.mo.bas
+ sed -i -e 's/>/\&gt;/g' IndeViewExport.mo.bas
+ sed -i -e "s/'/\&apos;/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 README AUTHORS
+
+ dodir /usr/share/IndeView
+ cp -pPR "${S}"/../ROOT_DATA "${D}"/usr/share/IndeView/
+
+ if [ -e /opt/OpenOffice.org ]; then
+ dodir /opt/OpenOffice.org/share/basic/Tools
+ insinto /opt/OpenOffice.org/share/basic/Tools
+ cd "${S}"/../Creator/OpenOffice/
+ doins IndeViewExport.xba
+ else
+ dodir /usr/lib/openoffice/share/basic/Tools
+ insinto /usr/lib/openoffice/share/basic/Tools
+ cd "${S}"/../Creator/OpenOffice/
+ doins IndeViewExport.xba
+ fi
+}
+
+pkg_postinst() {
+ # Add script to OpenOffice macros list
+ if [ -e /opt/OpenOffice.org ];
+ then
+ 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
+ else
+ grep "IndeViewExport" /usr/lib/openoffice/share/basic/Tools/script.xlb > /dev/null 2>&1 ||
+ sed -i -e 's;</library:library>; <library:element library:name="IndeViewExport"/>\n</library:library>;' /usr/lib/openoffice/share/basic/Tools/script.xlb
+ fi
+
+ echo
+ ewarn "If you install or re-install openoffice, "
+ ewarn "you will need to re-merge this package."
+ echo
+}
+
+pkg_postrm() {
+ # Delete script from OpenOffice macros list
+ if [ ! -e "${ROOT}"/usr/bin/indeview ];
+ then
+ if [ -e /opt/OpenOffice.org ]; 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
+ else
+ grep "IndeViewExport" /usr/lib/openoffice/share/basic/Tools/script.xlb > /dev/null 2>&1 &&
+ sed -i -e '/^ <library:element library:name="IndeViewExport"\/>$/d' /usr/lib/openoffice/share/basic/Tools/script.xlb
+ fi
+ fi
+}