summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2009-09-01 03:16:55 +0000
committerMarkus Dittrich <markusle@gentoo.org>2009-09-01 03:16:55 +0000
commit82212bb9a19d71bbd6905f4c0420bc1396407c38 (patch)
tree377d1802a8bd0acd150e8ca6e8bf1ef6025b6662 /app-text
parentFix building on arm OABI (bug #266703). (diff)
downloadgentoo-2-82212bb9a19d71bbd6905f4c0420bc1396407c38.tar.gz
gentoo-2-82212bb9a19d71bbd6905f4c0420bc1396407c38.tar.bz2
gentoo-2-82212bb9a19d71bbd6905f4c0420bc1396407c38.zip
Removed hard coded python paths (fixes bug #259722).
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/bibus/ChangeLog9
-rw-r--r--app-text/bibus/bibus-1.4.3.2-r1.ebuild (renamed from app-text/bibus/bibus-1.4.3.ebuild)46
-rw-r--r--app-text/bibus/files/bibus-1.4.3.2-install.1.patch262
3 files changed, 288 insertions, 29 deletions
diff --git a/app-text/bibus/ChangeLog b/app-text/bibus/ChangeLog
index accfbf7bf04d..6c4a1a41cffa 100644
--- a/app-text/bibus/ChangeLog
+++ b/app-text/bibus/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/bibus
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/bibus/ChangeLog,v 1.11 2009/02/26 15:48:53 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/bibus/ChangeLog,v 1.12 2009/09/01 03:16:54 markusle Exp $
+
+*bibus-1.4.3.2-r1 (01 Sep 2009)
+
+ 01 Sep 2009; Markus Dittrich <markusle@gentoo.org> -bibus-1.4.3.ebuild,
+ +bibus-1.4.3.2-r1.ebuild, +files/bibus-1.4.3.2-install.1.patch:
+ Removed hard coded python paths (fixes bug #259722). Got rid of
+ old ebuild.
26 Feb 2009; Joseph Jezak <josejx@gentoo.org> bibus-1.4.3.1.ebuild:
Marked ppc stable for bug #250823.
diff --git a/app-text/bibus/bibus-1.4.3.ebuild b/app-text/bibus/bibus-1.4.3.2-r1.ebuild
index 2237e200592c..a416a90d6f3a 100644
--- a/app-text/bibus/bibus-1.4.3.ebuild
+++ b/app-text/bibus/bibus-1.4.3.2-r1.ebuild
@@ -1,17 +1,19 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/bibus/bibus-1.4.3.ebuild,v 1.2 2008/05/29 15:52:15 hawking Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/bibus/bibus-1.4.3.2-r1.ebuild,v 1.1 2009/09/01 03:16:54 markusle Exp $
-inherit python multilib eutils
+EAPI="2"
-MY_PV="1.4.3"
+inherit python multilib eutils versionator
+
+MY_VERSION=$(get_version_component_range 1-3)
DESCRIPTION="Bibliographic and reference management software, integrates with OO.o and MS Word"
HOMEPAGE="http://bibus-biblio.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}-biblio/${PN}_${MY_PV}-1.tar.gz"
+SRC_URI="mirror://sourceforge/${PN}-biblio/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~ppc ~x86 ~amd64"
+KEYWORDS="~amd64 ~ppc ~x86"
IUSE="mysql sqlite"
# Most of this mess is designed to give the choice of sqlite or mysql
# but prefer sqlite. We also need to default to sqlite if neither is requested.
@@ -32,21 +34,16 @@ RDEPEND="virtual/ooo
)
)
dev-db/unixODBC"
-DEPEND="${RDEPEND}
- app-arch/unzip"
+DEPEND="${RDEPEND}"
-S="${WORKDIR}/${PN}${MY_PV}"
+S="${WORKDIR}/${PN}-${MY_VERSION}"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-install.patch
- sed -e "s:GENTOO-PF:${P}:g" \
- -e "69aall:\n" \
- -e "s:\$\(compile\)::" \
- -i Makefile || die "Failed to patch makefile"
- sed -e "s:/usr/lib/:/usr/$(get_libdir)/:" \
- -i Setup/bibus.sh Makefile || die "Failed to fix bibus wrapper"
+src_prepare() {
+ python_version
+ epatch "${FILESDIR}"/${P}-install.1.patch
+ sed -e "s:gentoo-python:python${PYVER}:g" \
+ -i Makefile Setup/Makefile Setup/bibus.cfg Setup/bibus.sh \
+ || die "Failed to adjust python paths"
}
src_install() {
@@ -62,19 +59,12 @@ src_install() {
prefix='$(DESTDIR)/usr' \
sysconfdir='$(DESTDIR)/etc' \
install-doc-en || die "emake install failed"
-
- insinto /usr/share/applications/
- doins Setup/bibus.desktop
- insinto /usr/share/icons/hicolor/48x48/apps/
- doins Pixmaps/bibus.png
-
- dodoc Docs/installation.txt
}
pkg_postinst() {
- python_mod_optimize /usr/share/bibus
+ python_mod_optimize /usr/lib/python${PYVER}/site-packages/bibus
}
pkg_postrm() {
- python_mod_cleanup /usr/share/bibus
+ python_mod_cleanup /usr/lib/python${PYVER}/site-packages/bibus
}
diff --git a/app-text/bibus/files/bibus-1.4.3.2-install.1.patch b/app-text/bibus/files/bibus-1.4.3.2-install.1.patch
new file mode 100644
index 000000000000..7f5d04ee6ccd
--- /dev/null
+++ b/app-text/bibus/files/bibus-1.4.3.2-install.1.patch
@@ -0,0 +1,262 @@
+diff -Naur bibus-1.4.3/Makefile bibus-1.4.3.new/Makefile
+--- bibus-1.4.3/Makefile 2009-01-08 18:00:26.000000000 -0500
++++ bibus-1.4.3.new/Makefile 2009-08-31 22:51:50.000000000 -0400
+@@ -1,24 +1,25 @@
+ # you presumably will only have to change the three first lines below
+-DESTDIR = /usr/local
++DESTDIR = ${D}usr
+ python = /usr/bin/python
+ oopath = /usr/lib/openoffice/program
+-ooure = /usr/lib/openoffice.org/basis-link/ure-link/lib
++ooure = /usr/lib/openoffice/basis-link/ure-link/lib
+ oobasis = /usr/lib/openoffice/basis-link/program
+ #
+ prefix = $(DESTDIR)
+ exec_prefix = $(prefix)
+ bindir = $(exec_prefix)/bin
+ datadir = $(prefix)/share
+-sysconfdir = /etc
++pythondir = $(prefix)/lib/gentoo-python/site-packages
++sysconfdir = ${D}etc
+ mandir = $(prefix)/share/man
+ man1dir = $(mandir)/man1
+
+ define install-files
+- install -d $(datadir)/bibus
+- install -m644 *.py MySQL_Bibus.ini $(datadir)/bibus/
++ install -d $(pythondir)/bibus
++ install -m644 *.py MySQL_Bibus.ini $(pythondir)/bibus/
+ #
+ for dir in Export Format Import StyleEditor FirstStart bibOOo db_models Pixmaps Data; do \
+- find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(datadir)/bibus/'{}' ';' ; \
++ find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(pythondir)/bibus/'{}' ';' ; \
+ done
+ install -m644 Setup/UnoConnectionListener.odg -D $(datadir)/bibus/Setup/UnoConnectionListener.odg
+ # locale files. We look for all the directory in locale/
+@@ -35,41 +36,38 @@
+ # freedesktop icon and shortcut
+ install -m644 Pixmaps/bibus.png -D $(datadir)/icons/hicolor/48x48/apps/bibus.png
+ install -m644 Setup/bibus.desktop -D $(datadir)/applications/bibus.desktop
+- # The following lines are presumably not needed since icons/desktop are in standard locations
+- #echo 'Exec=$(bindir)/bibus' >> $(datadir)/applications/bibus.desktop
+- #echo 'Icon=$(datadir)/icons/hicolor/48x48/apps/bibus.png' >> $(datadir)/applications/bibus.desktop
+
+ # bibus command
+ install -d $(bindir)
+- ln -sf $(datadir)/bibus/bibusStart.py $(bindir)/bibus
+- chmod 755 $(datadir)/bibus/bibusStart.py
++ ln -sf $(pythondir)/bibus/bibusStart.py $(bindir)/bibus
++ chmod 755 $(pythondir)/bibus/bibusStart.py
+
+ # basic doc files
+- install -m755 -d $(datadir)/doc/bibus
+- install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/bibus
++ install -m755 -d $(datadir)/doc/${PF}
++ install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/${PF}
+
+ # generating bibus.cfg file
+- echo '[PATH]' > $(datadir)/bibus/bibus.cfg
+- echo 'python = $(python)' >> $(datadir)/bibus/bibus.cfg
+- echo 'oopath = $(oopath)' >> $(datadir)/bibus/bibus.cfg
+- echo 'ooure = $(ooure)' >> $(datadir)/bibus/bibus.cfg
+- echo 'oobasis = $(oobasis)' >> $(datadir)/bibus/bibus.cfg
+- echo 'docdir = $(datadir)/doc/bibus/html' >> $(datadir)/bibus/bibus.cfg
+- echo 'licence = $(datadir)/doc/bibus/copying' >> $(datadir)/bibus/bibus.cfg
+- echo 'localedir = $(datadir)/locale' >> $(datadir)/bibus/bibus.cfg
+- echo 'systemconf = $(sysconfdir)/bibus.config' >> $(datadir)/bibus/bibus.cfg
++ echo '[PATH]' > $(pythondir)/bibus/bibus.cfg
++ echo 'python = $(python)' >> $(pythondir)/bibus/bibus.cfg
++ echo 'oopath = $(oopath)' >> $(pythondir)/bibus/bibus.cfg
++ echo 'ooure = $(ooure)' >> $(pythondir)/bibus/bibus.cfg
++ echo 'oobasis = $(oobasis)' >> $(pythondir)/bibus/bibus.cfg
++ echo 'docdir = /usr/share/doc/${PF}/html' >> $(pythondir)/bibus/bibus.cfg
++ echo 'licence = /usr/share/doc/${PF}/copying' >> $(pythondir)/bibus/bibus.cfg
++ echo 'localedir = /usr/share/locale' >> $(pythondir)/bibus/bibus.cfg
++ echo 'systemconf = /etc/bibus.config' >> $(pythondir)/bibus/bibus.cfg
+ endef
+
+ define install-doc-en
+ # copying docs in from Docs/html/en/ for bibus-doc-en
+ cd Docs;\
+- find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/bibus/'{}' ';'
++ find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/${PF}/'{}' ';'
+ endef
+
+ define compile
+- # compile recursively all the python files located in $(datadir)/bibus
+- $(python) -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')"
+- $(python) -O -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')"
++ # compile recursively all the python files located in $(pythondir)/bibus
++ $(python) -c "import compileall ; compileall.compile_dir('$(pythondir)/bibus')"
++ $(python) -O -c "import compileall ; compileall.compile_dir('$(pythondir)/bibus')"
+ endef
+
+ install-files:
+@@ -85,13 +83,15 @@
+
+ # write uninstaller in $(datadir)/bibus/Setup/uninstall.sh
+ echo "#!/bin/sh" > $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm -rf $(datadir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(bindir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "find $(datadir)/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(sysconfdir)/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(man1dir)/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm -rf $(datadir)/doc/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(datadir)/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(datadir)/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm -rf /usr/share/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/share/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm -rf /usr/lib/gentoo-python/site-packages/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/lib/gentoo-python/site-packages/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "find /usr/share/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /etc/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/share/man/man1/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm -rf /usr/share/doc/${PF}" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/share/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/share/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh
+ chmod 744 $(datadir)/bibus/Setup/uninstall.sh
+ # end uninstaller
+diff -Naur bibus-1.4.3/Setup/Makefile bibus-1.4.3.new/Setup/Makefile
+--- bibus-1.4.3/Setup/Makefile 2009-01-08 18:00:26.000000000 -0500
++++ bibus-1.4.3.new/Setup/Makefile 2009-08-31 22:52:23.000000000 -0400
+@@ -1,24 +1,25 @@
+ # you presumably will only have to change the three first lines below
+-DESTDIR = /usr/local
++DESTDIR = ${D}usr
+ python = /usr/bin/python
+ oopath = /usr/lib/openoffice/program
+-ooure = /usr/lib/openoffice.org/basis-link/ure-link/lib
++ooure = /usr/lib/openoffice/basis-link/ure-link/lib
+ oobasis = /usr/lib/openoffice/basis-link/program
+ #
+ prefix = $(DESTDIR)
+ exec_prefix = $(prefix)
+ bindir = $(exec_prefix)/bin
+ datadir = $(prefix)/share
+-sysconfdir = /etc
++pythondir = $(prefix)/lib/gentoo-python/site-packages
++sysconfdir = ${D}etc
+ mandir = $(prefix)/share/man
+ man1dir = $(mandir)/man1
+
+ define install-files
+- install -d $(datadir)/bibus
+- install -m644 *.py MySQL_Bibus.ini $(datadir)/bibus/
++ install -d $(pythondir)/bibus
++ install -m644 *.py MySQL_Bibus.ini $(pythondir)/bibus/
+ #
+ for dir in Export Format Import StyleEditor FirstStart bibOOo db_models Pixmaps Data; do \
+- find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(datadir)/bibus/'{}' ';' ; \
++ find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(pythondir)/bibus/'{}' ';' ; \
+ done
+ install -m644 Setup/UnoConnectionListener.odg -D $(datadir)/bibus/Setup/UnoConnectionListener.odg
+ # locale files. We look for all the directory in locale/
+@@ -35,41 +36,38 @@
+ # freedesktop icon and shortcut
+ install -m644 Pixmaps/bibus.png -D $(datadir)/icons/hicolor/48x48/apps/bibus.png
+ install -m644 Setup/bibus.desktop -D $(datadir)/applications/bibus.desktop
+- # The following lines are presumably not needed since icons/desktop are in standard locations
+- #echo 'Exec=$(bindir)/bibus' >> $(datadir)/applications/bibus.desktop
+- #echo 'Icon=$(datadir)/icons/hicolor/48x48/apps/bibus.png' >> $(datadir)/applications/bibus.desktop
+
+ # bibus command
+ install -d $(bindir)
+- ln -sf $(datadir)/bibus/bibusStart.py $(bindir)/bibus
+- chmod 755 $(datadir)/bibus/bibusStart.py
++ ln -sf $(pythondir)/bibus/bibusStart.py $(bindir)/bibus
++ chmod 755 $(pythondir)/bibus/bibusStart.py
+
+ # basic doc files
+- install -m755 -d $(datadir)/doc/bibus
+- install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/bibus
++ install -m755 -d $(datadir)/doc/${PF}
++ install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/${PF}
+
+ # generating bibus.cfg file
+- echo '[PATH]' > $(datadir)/bibus/bibus.cfg
+- echo 'python = $(python)' >> $(datadir)/bibus/bibus.cfg
+- echo 'oopath = $(oopath)' >> $(datadir)/bibus/bibus.cfg
+- echo 'ooure = $(ooure)' >> $(datadir)/bibus/bibus.cfg
+- echo 'oobasis = $(oobasis)' >> $(datadir)/bibus/bibus.cfg
+- echo 'docdir = $(datadir)/doc/bibus/html' >> $(datadir)/bibus/bibus.cfg
+- echo 'licence = $(datadir)/doc/bibus/copying' >> $(datadir)/bibus/bibus.cfg
+- echo 'localedir = $(datadir)/locale' >> $(datadir)/bibus/bibus.cfg
+- echo 'systemconf = $(sysconfdir)/bibus.config' >> $(datadir)/bibus/bibus.cfg
++ echo '[PATH]' > $(pythondir)/bibus/bibus.cfg
++ echo 'python = $(python)' >> $(pythondir)/bibus/bibus.cfg
++ echo 'oopath = $(oopath)' >> $(pythondir)/bibus/bibus.cfg
++ echo 'ooure = $(ooure)' >> $(pythondir)/bibus/bibus.cfg
++ echo 'oobasis = $(oobasis)' >> $(pythondir)/bibus/bibus.cfg
++ echo 'docdir = /usr/share/doc/${PF}/html' >> $(pythondir)/bibus/bibus.cfg
++ echo 'licence = /usr/share/doc/${PF}/copying' >> $(pythondir)/bibus/bibus.cfg
++ echo 'localedir = /usr/share/locale' >> $(pythondir)/bibus/bibus.cfg
++ echo 'systemconf = /etc/bibus.config' >> $(pythondir)/bibus/bibus.cfg
+ endef
+
+ define install-doc-en
+ # copying docs in from Docs/html/en/ for bibus-doc-en
+ cd Docs;\
+- find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/bibus/'{}' ';'
++ find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/${PF}/'{}' ';'
+ endef
+
+ define compile
+- # compile recursively all the python files located in $(datadir)/bibus
+- $(python) -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')"
+- $(python) -O -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')"
++ # compile recursively all the python files located in $(pythondir)/bibus
++ $(python) -c "import compileall ; compileall.compile_dir('$(pythondir)/bibus')"
++ $(python) -O -c "import compileall ; compileall.compile_dir('$(pythondir)/bibus')"
+ endef
+
+ install-files:
+@@ -85,13 +83,15 @@
+
+ # write uninstaller in $(datadir)/bibus/Setup/uninstall.sh
+ echo "#!/bin/sh" > $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm -rf $(datadir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(bindir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "find $(datadir)/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(sysconfdir)/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(man1dir)/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm -rf $(datadir)/doc/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(datadir)/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh
+- echo "rm $(datadir)/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm -rf /usr/share/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/share/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm -rf /usr/lib/gentoo-python/site-packages/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/lib/gentoo-python/site-packages/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "find /usr/share/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /etc/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/share/man/man1/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm -rf /usr/share/doc/${PF}" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/share/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh
++ echo "rm /usr/share/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh
+ chmod 744 $(datadir)/bibus/Setup/uninstall.sh
+ # end uninstaller
+diff -Naur bibus-1.4.3/Setup/bibus.cfg bibus-1.4.3.new/Setup/bibus.cfg
+--- bibus-1.4.3/Setup/bibus.cfg 2009-01-08 18:00:26.000000000 -0500
++++ bibus-1.4.3.new/Setup/bibus.cfg 2009-08-31 22:48:22.000000000 -0400
+@@ -1,7 +1,7 @@
+ [PATH]
+ python = /usr/bin/python
+ oopath = /usr/lib/openoffice/program
+-docdir = /usr/local/share/doc/bibus/html
+-licence = /usr/local/share/doc/bibus/copying
+-localedir = /usr/local/share/locale
+-systemconf = /usr/local/etc/bibus.config
++docdir = /usr/share/doc/bibus-1.4.3.2-r1/html
++licence = /usr/share/doc/bibus-1.4.3.2-r1/copying
++localedir = /usr/share/locale
++systemconf = /etc/bibus.config
+diff -Naur bibus-1.4.3/Setup/bibus.sh bibus-1.4.3.new/Setup/bibus.sh
+--- bibus-1.4.3/Setup/bibus.sh 2009-01-08 18:00:26.000000000 -0500
++++ bibus-1.4.3.new/Setup/bibus.sh 2009-08-31 22:54:14.000000000 -0400
+@@ -1,4 +1,4 @@
+ #!/bin/sh
+-export LD_LIBRARY_PATH=/usr/lib/openoffice/program
+-export PYTHONPATH=/usr/lib/openoffice/program
+-exec /usr/bin/python /usr/local/share/bibus/bibus.py
++export LD_LIBRARY_PATH=/usr/lib/openoffice/program:/usr/lib/openoffice/basis-link/program:/usr/lib/openoffice/basis-link/ure-link/lib
++export PYTHONPATH=/usr/lib/openoffice/program:/usr/lib/openoffice/basis-link/program:/usr/lib/openoffice/basis-link/ure-link/lib
++exec /usr/bin/python /usr/lib/gentoo-python/site-packages/bibus/bibus.py