summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/app-office')
-rw-r--r--trunk/app-office/oo2-voikko/Manifest35
-rw-r--r--trunk/app-office/oo2-voikko/files/digest-oo2-voikko-0.46
-rw-r--r--trunk/app-office/oo2-voikko/files/digest-oo2-voikko-1.09
-rw-r--r--trunk/app-office/oo2-voikko/files/digest-oo2-voikko-1.13
-rw-r--r--trunk/app-office/oo2-voikko/files/ooo-2.0-homedir.tar.bz2bin0 -> 9966 bytes
-rw-r--r--trunk/app-office/oo2-voikko/files/ooo-bootstrap-decoy.tar.bz2bin0 -> 9966 bytes
-rw-r--r--trunk/app-office/oo2-voikko/oo2-voikko-0.4.ebuild123
-rw-r--r--trunk/app-office/oo2-voikko/oo2-voikko-1.0.ebuild212
-rw-r--r--trunk/app-office/oo2-voikko/oo2-voikko-1.1.ebuild153
-rw-r--r--trunk/app-office/openoffice-sdk/Manifest24
-rw-r--r--trunk/app-office/openoffice-sdk/files/digest-openoffice-sdk-2.0.33
-rw-r--r--trunk/app-office/openoffice-sdk/files/digest-openoffice-sdk-2.0.43
-rw-r--r--trunk/app-office/openoffice-sdk/files/setsdkenv_unix.csh.gentoo269
-rw-r--r--trunk/app-office/openoffice-sdk/files/setsdkenv_unix.sh.gentoo304
-rw-r--r--trunk/app-office/openoffice-sdk/openoffice-sdk-2.0.3.ebuild79
-rw-r--r--trunk/app-office/openoffice-sdk/openoffice-sdk-2.0.4.ebuild83
-rw-r--r--trunk/app-office/openoffice-voikko/Manifest31
-rw-r--r--trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-1.1-r13
-rw-r--r--trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-1.23
-rw-r--r--trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-99991
-rw-r--r--trunk/app-office/openoffice-voikko/files/ooo-2.0-home.tar.bz2bin0 -> 9966 bytes
-rw-r--r--trunk/app-office/openoffice-voikko/files/openoffice-voikko-1.1-r1-stlport.patch11
-rw-r--r--trunk/app-office/openoffice-voikko/openoffice-voikko-1.1-r1.ebuild156
-rw-r--r--trunk/app-office/openoffice-voikko/openoffice-voikko-1.2.ebuild149
-rw-r--r--trunk/app-office/openoffice-voikko/openoffice-voikko-9999.ebuild153
25 files changed, 1813 insertions, 0 deletions
diff --git a/trunk/app-office/oo2-voikko/Manifest b/trunk/app-office/oo2-voikko/Manifest
new file mode 100644
index 0000000..2fdcde8
--- /dev/null
+++ b/trunk/app-office/oo2-voikko/Manifest
@@ -0,0 +1,35 @@
+AUX ooo-2.0-homedir.tar.bz2 9966 RMD160 75e687e207d60291d32f6accaa526c74984b073c SHA1 d1495be0eaa1ce1394417d21f3b9db526d17b89e SHA256 f5c716bf2bd2b31be84dcdcd2f7d05ca4df560dbbe7f1a4f1ceab645d69600a7
+MD5 5f0a3f813a9ab90831a938fdfbf0875d files/ooo-2.0-homedir.tar.bz2 9966
+RMD160 75e687e207d60291d32f6accaa526c74984b073c files/ooo-2.0-homedir.tar.bz2 9966
+SHA256 f5c716bf2bd2b31be84dcdcd2f7d05ca4df560dbbe7f1a4f1ceab645d69600a7 files/ooo-2.0-homedir.tar.bz2 9966
+AUX ooo-bootstrap-decoy.tar.bz2 9966 RMD160 75e687e207d60291d32f6accaa526c74984b073c SHA1 d1495be0eaa1ce1394417d21f3b9db526d17b89e SHA256 f5c716bf2bd2b31be84dcdcd2f7d05ca4df560dbbe7f1a4f1ceab645d69600a7
+MD5 5f0a3f813a9ab90831a938fdfbf0875d files/ooo-bootstrap-decoy.tar.bz2 9966
+RMD160 75e687e207d60291d32f6accaa526c74984b073c files/ooo-bootstrap-decoy.tar.bz2 9966
+SHA256 f5c716bf2bd2b31be84dcdcd2f7d05ca4df560dbbe7f1a4f1ceab645d69600a7 files/ooo-bootstrap-decoy.tar.bz2 9966
+DIST OOo_2.0.3_LinuxIntel_sdk.sh 39845497 RMD160 fec7a01c81540394928036cdd88cba3d0d8ba96b SHA1 9a3b70fcd8b4574b0e586f26be86ea320801fe7f SHA256 b6848815c674ac65b58b49a65a487c801d8ed763dd1f2d82b27f52995b103a13
+DIST oo2-voikko-1.0-bin.tar.bz2 48218 RMD160 b63361dc4475e7e63f265674ac3d4606c515491a SHA1 2735260cb6e4ba4c56a38c65f88e491a72be13e0 SHA256 80c6fa34aafc157a73c7c34f48fdaaea246ba4cac49917e44eaf0f5e4349db14
+DIST oo2-voikko-1.0.tar.gz 53606 RMD160 8ff217f60753b32aff5bd38eb9a9350a1b018926 SHA1 f0a0325314a2027f9759898503904516b88e505d SHA256 c7de5adc6f3f1acebf4e569c6fab81f215cd8ca60121975ba192a050e3f2e5dc
+DIST oo2-voikko-1.1.tar.gz 52682 RMD160 e5138b4143ff451fa69a69275bc280155169553f SHA1 0b538cc9cc75a052e890b0e883194a29528f6575 SHA256 2b70c1099615c67010b0705fb729e1dce506ec624032e9cd45bbecffb679f12b
+DIST oo2-voikko-Linux_x86-0.4.tar.gz 59897 RMD160 1bca11c65c3b5e30b1f62630f1ed6873d6a83cff SHA256 8ee89e263fbe21ddb00c5b955403f6f8d8a0d08081e4336a3acf7ffe0cce6525
+DIST oo2-voikko-Linux_x86_64-0.4.tar.gz 62432 RMD160 bc67e4d92edd82500d715dfb9f087b9aa48f1acf SHA256 57af03db9102e0dde973c7365a781d795b91b703b80dc7325f3332a96703d2c3
+EBUILD oo2-voikko-0.4.ebuild 3137 RMD160 ffb3fff38e8e057462161cbfe4893f655e059e7d SHA1 e2768b988e781b68e30b15751586d43b6c82b1b1 SHA256 70a92503d65b50a4634a6304c86168e55547d92940b1b1a6b817721402adb865
+MD5 09f66abc7c1b12dba687f20e4ef5b268 oo2-voikko-0.4.ebuild 3137
+RMD160 ffb3fff38e8e057462161cbfe4893f655e059e7d oo2-voikko-0.4.ebuild 3137
+SHA256 70a92503d65b50a4634a6304c86168e55547d92940b1b1a6b817721402adb865 oo2-voikko-0.4.ebuild 3137
+EBUILD oo2-voikko-1.0.ebuild 6975 RMD160 cf09802042a2e8a4b21de79596474ebb2e58c6f5 SHA1 617ff0b19795de711b69290e332faf877d6bcc7e SHA256 3336729137fa056e2a88a61efdbd982897eb0ed73168b20e1b388280165b48f2
+MD5 8582dd8799fc14eba7b14ebc0c19e8e7 oo2-voikko-1.0.ebuild 6975
+RMD160 cf09802042a2e8a4b21de79596474ebb2e58c6f5 oo2-voikko-1.0.ebuild 6975
+SHA256 3336729137fa056e2a88a61efdbd982897eb0ed73168b20e1b388280165b48f2 oo2-voikko-1.0.ebuild 6975
+EBUILD oo2-voikko-1.1.ebuild 4676 RMD160 f4b35d2d5971ccdfa8450e4cf86f26d8e8e4b02f SHA1 65a412e03027161fd94675083f1e0201ef1b82c7 SHA256 9b56203c02a69395579f5d1b193a687c15d4a294360d9fea71139ecd0e91e6a5
+MD5 6bd57a180ebeb81ff78d9a8c5a2e8555 oo2-voikko-1.1.ebuild 4676
+RMD160 f4b35d2d5971ccdfa8450e4cf86f26d8e8e4b02f oo2-voikko-1.1.ebuild 4676
+SHA256 9b56203c02a69395579f5d1b193a687c15d4a294360d9fea71139ecd0e91e6a5 oo2-voikko-1.1.ebuild 4676
+MD5 78ba08fe0ea43575ff29545795d326bd files/digest-oo2-voikko-0.4 551
+RMD160 ef5cf72c2446a0ff3f9119818d413eb2e8a1ae7c files/digest-oo2-voikko-0.4 551
+SHA256 0f1ff54301ce4479fe80c87c0bba5495efcaca9582784962fb4d4f0a7d8b7a83 files/digest-oo2-voikko-0.4 551
+MD5 d1285b0bc88949a62e2dadb037174abc files/digest-oo2-voikko-1.0 765
+RMD160 8f6acab60c7b1bb3e30a4a008a26150ff34e94cf files/digest-oo2-voikko-1.0 765
+SHA256 5d3b8c2c9661b0972a81399a206da06e6334491ff1b8db0eecaac926230fe33c files/digest-oo2-voikko-1.0 765
+MD5 67926811dffb31efd8c84c6c20408a90 files/digest-oo2-voikko-1.1 241
+RMD160 d523826df957ee33a09ce13dc1f41beea8a827d1 files/digest-oo2-voikko-1.1 241
+SHA256 079e95f5d837133bbd8f23217e37a2bebdcddd32e3ef5d76437b192520865a68 files/digest-oo2-voikko-1.1 241
diff --git a/trunk/app-office/oo2-voikko/files/digest-oo2-voikko-0.4 b/trunk/app-office/oo2-voikko/files/digest-oo2-voikko-0.4
new file mode 100644
index 0000000..1bdfe28
--- /dev/null
+++ b/trunk/app-office/oo2-voikko/files/digest-oo2-voikko-0.4
@@ -0,0 +1,6 @@
+MD5 9a037936fcdd80d6c08e5837aa649cab oo2-voikko-Linux_x86-0.4.tar.gz 59897
+RMD160 1bca11c65c3b5e30b1f62630f1ed6873d6a83cff oo2-voikko-Linux_x86-0.4.tar.gz 59897
+SHA256 8ee89e263fbe21ddb00c5b955403f6f8d8a0d08081e4336a3acf7ffe0cce6525 oo2-voikko-Linux_x86-0.4.tar.gz 59897
+MD5 a98928fe4a299662f17a25532c1e97a0 oo2-voikko-Linux_x86_64-0.4.tar.gz 62432
+RMD160 bc67e4d92edd82500d715dfb9f087b9aa48f1acf oo2-voikko-Linux_x86_64-0.4.tar.gz 62432
+SHA256 57af03db9102e0dde973c7365a781d795b91b703b80dc7325f3332a96703d2c3 oo2-voikko-Linux_x86_64-0.4.tar.gz 62432
diff --git a/trunk/app-office/oo2-voikko/files/digest-oo2-voikko-1.0 b/trunk/app-office/oo2-voikko/files/digest-oo2-voikko-1.0
new file mode 100644
index 0000000..0eb8eb7
--- /dev/null
+++ b/trunk/app-office/oo2-voikko/files/digest-oo2-voikko-1.0
@@ -0,0 +1,9 @@
+MD5 f35f397dac358a054cd425b2348f258c OOo_2.0.3_LinuxIntel_sdk.sh 39845497
+RMD160 fec7a01c81540394928036cdd88cba3d0d8ba96b OOo_2.0.3_LinuxIntel_sdk.sh 39845497
+SHA256 b6848815c674ac65b58b49a65a487c801d8ed763dd1f2d82b27f52995b103a13 OOo_2.0.3_LinuxIntel_sdk.sh 39845497
+MD5 66e09b62868c2114324e52b52b391b10 oo2-voikko-1.0-bin.tar.bz2 48218
+RMD160 b63361dc4475e7e63f265674ac3d4606c515491a oo2-voikko-1.0-bin.tar.bz2 48218
+SHA256 80c6fa34aafc157a73c7c34f48fdaaea246ba4cac49917e44eaf0f5e4349db14 oo2-voikko-1.0-bin.tar.bz2 48218
+MD5 4b98fdfa46f7df7a26498cd8f0800249 oo2-voikko-1.0.tar.gz 53606
+RMD160 8ff217f60753b32aff5bd38eb9a9350a1b018926 oo2-voikko-1.0.tar.gz 53606
+SHA256 c7de5adc6f3f1acebf4e569c6fab81f215cd8ca60121975ba192a050e3f2e5dc oo2-voikko-1.0.tar.gz 53606
diff --git a/trunk/app-office/oo2-voikko/files/digest-oo2-voikko-1.1 b/trunk/app-office/oo2-voikko/files/digest-oo2-voikko-1.1
new file mode 100644
index 0000000..e0f5918
--- /dev/null
+++ b/trunk/app-office/oo2-voikko/files/digest-oo2-voikko-1.1
@@ -0,0 +1,3 @@
+MD5 3da94ad217ddc2bc33ae93595479c401 oo2-voikko-1.1.tar.gz 52682
+RMD160 e5138b4143ff451fa69a69275bc280155169553f oo2-voikko-1.1.tar.gz 52682
+SHA256 2b70c1099615c67010b0705fb729e1dce506ec624032e9cd45bbecffb679f12b oo2-voikko-1.1.tar.gz 52682
diff --git a/trunk/app-office/oo2-voikko/files/ooo-2.0-homedir.tar.bz2 b/trunk/app-office/oo2-voikko/files/ooo-2.0-homedir.tar.bz2
new file mode 100644
index 0000000..5ca0d5d
--- /dev/null
+++ b/trunk/app-office/oo2-voikko/files/ooo-2.0-homedir.tar.bz2
Binary files differ
diff --git a/trunk/app-office/oo2-voikko/files/ooo-bootstrap-decoy.tar.bz2 b/trunk/app-office/oo2-voikko/files/ooo-bootstrap-decoy.tar.bz2
new file mode 100644
index 0000000..5ca0d5d
--- /dev/null
+++ b/trunk/app-office/oo2-voikko/files/ooo-bootstrap-decoy.tar.bz2
Binary files differ
diff --git a/trunk/app-office/oo2-voikko/oo2-voikko-0.4.ebuild b/trunk/app-office/oo2-voikko/oo2-voikko-0.4.ebuild
new file mode 100644
index 0000000..79cae10
--- /dev/null
+++ b/trunk/app-office/oo2-voikko/oo2-voikko-0.4.ebuild
@@ -0,0 +1,123 @@
+# copied from oo2-voikko.ebuild in
+# http://bugs.gentoo.org/attachment.cgi?id=73027
+# Original ebuild script wasn’t marked GPL?
+
+DESCRIPTION="Voikko—Free Finnish spell checking and hyphenation for OpenOffice"
+HOMEPAGE="http://www.hunspell-fi.org/"
+SRC_URI="
+x86? ( http://www.hunspell-fi.org/files/${PN}-Linux_x86-${PV}.tar.gz )
+amd64? ( http://www.hunspell-fi.org/files/${PN}-Linux_x86_64-${PV}.tar.gz )
+"
+#http://www.hunspell-fi.org/files/${P}.tgz
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="|| ( >=app-office/openoffice-bin-2.0 >=app-office/openoffice-2.0 )
+ app-text/voikko
+ sys-apps/grep
+ sys-apps/sed"
+# ! app-office/oo2-soikko
+RDEPEND="|| ( >=app-office/openoffice-bin-2.0 >=app-office/openoffice-2.0 )
+ app-text/voikko"
+# FIXME:
+if use amd64; then
+ S="${WORKDIR}/${PN}-Linux_x86_64-${PV}"
+else
+ S="${WORKDIR}/${PN}-Linux_x86-${PV}"
+fi
+
+
+pkg_setup() {
+ if pidof soffice.bin >/dev/null; then
+ die "Soikko can't be installed while OpenOffice.org is running."
+ # Or use the force
+ #killall soffice.bin || killall -9 soffice.bin
+ fi
+ if use amd64; then
+ S="${WORKDIR}/${PN}-Linux_x86_64-${PV}"
+ else
+ S="${WORKDIR}/${PN}-Linux_x86-${PV}"
+ fi
+}
+
+src_install() {
+ dodoc ASENNUS.txt
+ insinto /usr/lib/openoffice/share/
+ doins install-oo2-voikko
+}
+
+find_unopkg() {
+ if has_version '>=app-office/openoffice-bin'; then
+ if use amd64 ; then
+ UNOPKG="/usr/lib32/openoffice/program/unopkg"
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg"
+ fi
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg" #verify!
+ fi
+}
+
+pkg_postinst() {
+ find_unopkg
+
+ # select component
+ if use amd64; then
+ COMPONENT="${S}/oo2-voikko-Linux_x86_64-${PV}.uno.pkg"
+ else
+ COMPONENT="${S}/oo2-voikko-Linux_x86-${PV}.uno.pkg"
+ fi
+ PKG=$(basename "${COMPONENT}")
+
+ # verify binary interface
+ if grep -U -q CXXABI_1.3 "$UNOPKG".bin && echo "$COMPONENT" | grep -q gcc3.3
+ then
+ die "g++ ABI mismatch or such"
+ fi
+
+ # Global scope in install-oo2-voikko
+ if [[ -e "${HOME}/.openoffice.org2/.lock" ]] ;
+ then
+ die "lockfile from previous failed installation attempt found in \
+ ${HOME}/.openoffice.org2/.lock, please clean and retry"
+ fi
+ # use normal binary
+ # register()
+ if [[ "${COMPONENT}" == "" ]] ;
+ then
+ die "UNO component not found"
+ fi
+ einfo "Trying to register uno package ${COMPONENT}..."
+ if "${UNOPKG}" add --shared "${COMPONENT}" &>/dev/null ;
+ then
+ einfo "Voikko package (${PKG}) registered succesfully"
+ else
+ die "Couldn't register Voikko package (${PKG})"
+ fi
+
+}
+
+pkg_prerm() {
+ find_unopkg
+ #unregister()
+ UNOPKG_LIST="$(${UNOPKG} list --shared 2> /dev/null)"
+ if [[ $? != 0 ]] ; then
+ die "Couldn't list existing packages"
+ fi
+ PKG=$(echo "${UNOPKG_LIST}" | egrep -m1 "^Name: oo2-voikko-Linux_x86(_64)?-${PV}" | sed -e "s/Name: //")
+ if [ "${PKG}" != "" ]; then
+ einfo "Removing uno package ${PKG}..."
+ if "${UNOPKG}" remove --shared ${PKG} &>/dev/null
+ then
+ einfo "Voikko package (${PKG}) unregistered succesfully"
+ else
+ die "Couldn't uninstall existing Voikko packages"
+ fi
+ else
+ ewarn "Couldn't find existing Voikko packages."
+ ewarn "You may need to unopkg remove them manually."
+ fi
+
+}
diff --git a/trunk/app-office/oo2-voikko/oo2-voikko-1.0.ebuild b/trunk/app-office/oo2-voikko/oo2-voikko-1.0.ebuild
new file mode 100644
index 0000000..7e5bfee
--- /dev/null
+++ b/trunk/app-office/oo2-voikko/oo2-voikko-1.0.ebuild
@@ -0,0 +1,212 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+OO_PATCHLEVEL="OOC680"
+OO_SRC="OOO_2_0_3"
+DESCRIPTION="Voikko—Free Finnish spell checking and hyphenation for OpenOffice"
+HOMEPAGE="http://www.lemi.fi/voikko/"
+IUSE="unobuild"
+SRC_URI="!unobuild? ( http://dev.gentoo.org/~flammie/${P}-bin.tar.bz2 )
+ unobuild? ( http://www.hunspell-fi.org/files/${P}.tar.gz
+ http://mirrors.dotsrc.org/openoffice/stable/2.0.3_sdk/OOo_2.0.3_LinuxIntel_sdk.sh )"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+ app-text/voikko
+ sys-apps/grep
+ sys-apps/sed
+ unobuild? ( app-arch/zip
+ || ( app-arch/rpm2targz ) )"
+# ! app-office/oo2-soikko"
+RDEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+ app-text/voikko"
+
+pkg_setup() {
+ if pidof soffice.bin >/dev/null; then
+ die "Voikko can’t be installed while OpenOffice.org is running."
+ # Or use the force
+ #killall soffice.bin || killall -9 soffice.bin
+ fi
+# if use unobuild ; then
+# if ! built_with_use app-office/openoffice odk ; then
+# ewarn "OpenOffice should be built with USE flag “odk”"
+# ewarn "for building uno package from source to work"
+# fi
+# fi
+}
+
+src_unpack() {
+ if use unobuild ; then
+ mkdir "${WORKDIR}/${OO_SRC}-SDK"
+ # From OOo...sdk.sh:
+ tail --lines=+88 "${DISTDIR}/OOo_2.0.3_LinuxIntel_sdk.sh" | \
+ (cd "${WORKDIR}/${OO_SRC}-SDK"; tar xf -)
+ assert
+ cd "${WORKDIR}/${OO_SRC}-SDK/RPMS"
+ rpm2targz openoffice.org-sdk-2.0.3-?.i586.rpm || \
+ die "Unable to unrpm SDK"
+ tar zxpf openoffice.org-sdk-2.0.3-?.i586.tar.gz || \
+ die "Unable to untar SDK"
+ cd "${WORKDIR}"
+ unpack ${P}.tar.gz
+ else
+ unpack ${P}-bin.tar.bz2
+ fi
+}
+
+src_compile() {
+ if use unobuild ; then
+ # From setsdkenvunix.sh:
+ OO_SDK_NAME=odk
+ OO_SDK_HOME="${WORKDIR}/${OO_SRC}-SDK/RPMS/opt/openoffice.org2.0_sdk/"
+ OFFICE_HOME="${ROOT}/usr/lib/openoffice/"
+ OO_SDK_URE_HOME="${ROOT}/usr/lib/openoffice/"
+ OO_SDK_MAKE_HOME="${ROOT}/usr/bin"
+ OO_SDK_ZIP_HOME="${ROOT}/usr/bin"
+ OO_SDK_CPP_HOME="${ROOT}/usr/bin"
+ # OO_SDK_JAVA_HOME="${ROOT}/opt/sun-jdk..."
+ OO_SDK_OUTPUT_DIR=`pwd`
+ SDK_AUTO_DEPLOYMENT=YES
+ OFFICE_PROGRAM_PATH=${OFFICE_HOME}/program
+ UNO_PATH=${OFFICE_PROGRAM_PATH}
+ OO_SDK_URE_BIN_DIR=${OFFICE_PROGRAM_PATH}
+ OO_SDK_URE_LIB_DIR=${OFFICE_PROGRAM_PATH}
+ OO_SDK_URE_JAVA_DIR=${OFFICE_PROGRAM_PATH}/classes
+ OO_EXAMPLE_OUT=$OO_SDK_OUTPUT_DIR/$OO_SDK_HOME
+ sd_platform=`${OO_SDK_HOME}/config.guess | cut -d"-" -f3,4`
+ #case $sd_platform in
+ # linux-gnu)
+ SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | $OO_SDK_CPP_HOME/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
+ directoryname=linux
+ comid=gcc3
+ pltfrm=gcc
+ soext=so
+ exampleout=LINUXexample.out
+ platform=Linux
+ LD_LIBRARY_PATH=$OO_SDK_HOME/$directoryname/lib:$OO_EXAMPLE_OUT/$exampleout/lib:${OO_SDK_URE_LIB_DIR}:.:$LD_LIBRARY_PATH
+ # esac
+ PATH=$OO_SDK_HOME/$directoryname/bin:$OO_EXAMPLE_OUT/$exampleout/bin:${OO_SDK_URE_BIN_DIR}:.:$PATH
+ CLASSPATH=${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar${OFFICE_PROGRAM_PATH+:${OFFICE_PROGRAM_PATH}/classes/unoil.jar}${CLASSPATH+:${CLASSPATH}}
+ PATH=$OO_SDK_MAKE_HOME:$PATH
+ PATH=$OO_SDK_ZIP_HOME:$PATH
+ PATH=$OO_SDK_CPP_HOME:$PATH
+ PATH=$OO_SDK_JAVA_HOME/bin:$PATH
+ echo " * SDK environment is prepared for ${platform}"
+ echo " *"
+ echo " * SDK = $OO_SDK_HOME"
+ echo " * Office = $OFFICE_HOME"
+ echo " * URE = $OO_SDK_URE_HOME"
+ echo " * Make = $OO_SDK_MAKE_HOME"
+ echo " * Zip = $OO_SDK_ZIP_HOME"
+ echo " * C++ Compiler = $OO_SDK_CPP_HOME"
+ echo " * Java = $OO_SDK_JAVA_HOME"
+ echo " * Special Output directory = $OO_SDK_OUTPUT_DIR"
+ echo " * Auto deployment = $SDK_AUTO_DEPLOYMENT"
+ cd "${WORKDIR}/unopkg"
+ # Variables needed to "export" are used in the *.mk files included
+ OO_SDK_HOME=${OO_SDK_HOME} OFFICE_HOME=${OFFICE_HOME} \
+ OO_SDK_NAME=${OO_SDK_NAME} \
+ OO_SDK_MAKE_HOME=${OO_SDK_MAKE_HOME} \
+ OO_SDK_ZIP_HOME=${OO_SDK_ZIP_HOME} \
+ OO_SDK_CPP_HOME=${OO_SDK_CPP_HOME} \
+ OO_SDK_OUTPUT_DIR=${OO_SDK_OUTPUT_DIR} \
+ SDK_AUTO_DEPLOYMENT=${SDK_AUTO_DEPLOYMENT} \
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH} PATH=${PATH} \
+ OFFICE_PROGRAM_PATH=${OFFICE_PROGRAM_PATH} \
+ SDK_GXX_INCLUDE_PATH=${SDK_GXX_INCLUDE_PATH} \
+ emake || die "make uno package failed"
+ mkdir "${WORKDIR}/${P}"
+ cp build/oo2-voikko-*uno.pkg impl/doc/Linux_*/ASENNUS.txt \
+ linux-installer "${WORKDIR}/${P}"
+ fi
+}
+
+src_install() {
+ dodoc ASENNUS.txt
+ insinto /usr/lib/openoffice/share/
+ doins linux-installer
+ dodir /usr/lib/${P}
+ insinto /usr/lib/${P}
+ if use amd64 ; then
+ doins oo2-voikko-Linux_x86_64-${PV}.uno.pkg
+ else
+ doins oo2-voikko-Linux_x86-${PV}.uno.pkg
+ fi
+}
+
+find_unopkg() {
+ if has_version '>=app-office/openoffice-bin'; then
+ if use amd64 ; then
+ UNOPKG="/usr/lib32/openoffice/program/unopkg"
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg"
+ fi
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg" #verify!
+ fi
+}
+
+pkg_postinst() {
+ # N.B.: uno packages meddle with $HOME, let's fool it
+ HOME="${S}"
+ find_unopkg
+
+ # select component
+ if use amd64; then
+ COMPONENT="${ROOT}/usr/lib/${P}/oo2-voikko-Linux_x86_64-${PV}.uno.pkg"
+ else
+ COMPONENT="${ROOT}/usr/lib/${P}/oo2-voikko-Linux_x86-${PV}.uno.pkg"
+ fi
+ PKG=$(basename "${COMPONENT}")
+
+ # Global scope in install-oo2-voikko
+ if [[ -e "${HOME}/.openoffice.org2/.lock" ]] ;
+ then
+ die "lockfile from previous failed installation attempt found in \
+ ${HOME}/.openoffice.org2/.lock, please clean and retry"
+ fi
+ # register()
+ if [[ "${COMPONENT}" == "" ]] ;
+ then
+ die "UNO component not found"
+ fi
+ einfo "Trying to register uno package ${COMPONENT}..."
+ "${UNOPKG}" add --shared "${COMPONENT}"
+ if [[ $? == 0 ]] ;
+ then
+ einfo "Voikko package (${PKG}) registered succesfully"
+ else
+ die "Couldn't register Voikko package (${PKG})"
+ fi
+ elog "Please note that oo2-voikko is very dependent on ABI compatible "
+ elog "version of OpenOffice.org to exist on system when removing voikko!"
+ elog "Before incompatible update or removal of OpenOffice you must"
+ elog "unmerge oo2-voikko!"
+}
+
+pkg_prerm() {
+ find_unopkg
+ #unregister()
+ UNOPKG_LIST="$(${UNOPKG} list --shared 2> /dev/null)"
+ if [[ $? != 0 ]] ; then
+ die "Couldn't list existing packages"
+ fi
+ PKG=$(echo "${UNOPKG_LIST}" | egrep -m1 "^Name: oo2-voikko-Linux_x86(_64)?-${PV}" | sed -e "s/Name: //")
+ if [ "${PKG}" != "" ]; then
+ einfo "Removing uno package ${PKG}..."
+ if "${UNOPKG}" remove --shared ${PKG} &>/dev/null
+ then
+ einfo "Voikko package (${PKG}) unregistered succesfully"
+ else
+ die "Couldn't uninstall existing Voikko packages"
+ fi
+ else
+ ewarn "Couldn't find existing Voikko packages."
+ ewarn "You may need to unopkg remove them manually."
+ fi
+}
diff --git a/trunk/app-office/oo2-voikko/oo2-voikko-1.1.ebuild b/trunk/app-office/oo2-voikko/oo2-voikko-1.1.ebuild
new file mode 100644
index 0000000..28ee72a
--- /dev/null
+++ b/trunk/app-office/oo2-voikko/oo2-voikko-1.1.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils versionator
+
+OO_PATCHLEVEL="OOC680"
+OO_SRC="OOO_2_0_3"
+DESCRIPTION="Voikko—Free Finnish spell checking and hyphenation for OpenOffice"
+HOMEPAGE="http://www.lemi.fi/voikko/"
+SRC_URI="http://www.hunspell-fi.org/files/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+ app-text/voikko
+ sys-apps/grep
+ sys-apps/sed
+ app-office/openoffice-sdk
+ !app-office/openoffice-voikko"
+# ! app-office/oo2-soikko"
+RDEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+ app-text/voikko"
+
+pkg_setup() {
+ ewarn "oo2-voikko is deprecated in favor of openoffice-voikko"
+ if pidof soffice.bin >/dev/null; then
+ die "Voikko can’t be installed while OpenOffice.org is running."
+ # Or use the force
+ #killall soffice.bin || killall -9 soffice.bin
+ fi
+ if [[ ! -x "${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh" ]] ; then
+ die "Couldn’t find open office SDK settings from \
+ ${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh"
+ fi
+
+ if has_version app-office/openoffice ; then
+ if ! built_with_use app-office/openoffice odk ; then
+ ewarn "OpenOffice should be built with USE flag “odk”"
+ ewarn "for building uno package from source to work"
+ fi
+ fi
+}
+
+src_compile() {
+ source ${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh
+ echo "OO_SDK_HOME=${OO_SDK_HOME}"
+ cd "${WORKDIR}/unopkg"
+ # Variables needed to "export" are used in the *.mk files included
+# OO_SDK_HOME=${OO_SDK_HOME} OFFICE_HOME=${OFFICE_HOME} \
+# OO_SDK_NAME=${OO_SDK_NAME} \
+# OO_SDK_MAKE_HOME=${OO_SDK_MAKE_HOME} \
+# OO_SDK_ZIP_HOME=${OO_SDK_ZIP_HOME} \
+# OO_SDK_CPP_HOME=${OO_SDK_CPP_HOME} \
+# OO_SDK_JAVA_HOME=${OO_SDK_JAVA_HOME} \
+# OO_SDK_OUTPUT_DIR=${OO_SDK_OUTPUT_DIR} \
+# SDK_AUTO_DEPLOYMENT=${SDK_AUTO_DEPLOYMENT} \
+# LD_LIBRARY_PATH=${LD_LIBRARY_PATH} PATH=${PATH} \
+# OFFICE_PROGRAM_PATH=${OFFICE_PROGRAM_PATH} \
+# SDK_GXX_INCLUDE_PATH=${SDK_GXX_INCLUDE_PATH} \
+ emake || die "make uno package failed"
+ mkdir "${S}"
+ cp build/oo2-voikko-*uno.pkg impl/doc/Linux_*/ASENNUS.txt \
+ linux-installer "${S}"
+}
+
+src_install() {
+ cd "${S}"
+ dodoc ASENNUS.txt
+ insinto /usr/lib/openoffice/share/
+ doins linux-installer
+ dodir /usr/lib/${P}
+ insinto /usr/lib/${P}
+ doins oo2-voikko-Linux*-${PV}.uno.pkg
+}
+
+find_unopkg() {
+ if has_version '>=app-office/openoffice-bin'; then
+ if use amd64 ; then
+ UNOPKG="/usr/lib32/openoffice/program/unopkg"
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg"
+ fi
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg" #verify!
+ fi
+}
+
+pkg_postinst() {
+ # N.B.: uno packages meddle with $HOME, let's fool it
+ HOME="${S}"
+ cd "${S}"
+ # Yay, OO.o package installation requires .ooo-2.0 directory from once
+ # started instance of the program. How fun!
+ tar jxf "${FILESDIR}/ooo-bootstrap-decoy.tar.bz2"
+
+ find_unopkg
+
+ # select component
+ if use amd64; then
+ COMPONENT="${ROOT}/usr/lib/${P}/oo2-voikko-Linux_x86_64-${PV}.uno.pkg"
+ else
+ COMPONENT="${ROOT}/usr/lib/${P}/oo2-voikko-Linux_x86-${PV}.uno.pkg"
+ fi
+ PKG=$(basename "${COMPONENT}")
+
+ # Global scope in install-oo2-voikko
+ if [[ -e "${HOME}/.openoffice.org2/.lock" ]] ;
+ then
+ die "lockfile from previous failed installation attempt found in \
+ ${HOME}/.openoffice.org2/.lock, please clean and retry"
+ fi
+ # register()
+ if [[ "${COMPONENT}" == "" ]] ;
+ then
+ die "UNO component not found"
+ fi
+ einfo "Trying to register uno package ${COMPONENT}..."
+ HOME=${HOME} "${UNOPKG}" add --shared "${COMPONENT}"
+ if [[ $? == 0 ]] ;
+ then
+ einfo "Voikko package (${PKG}) registered succesfully"
+ else
+ die "Couldn't register Voikko package (${PKG})"
+ fi
+ elog "Please note that oo2-voikko is very dependent on ABI compatible "
+ elog "version of OpenOffice.org to exist on system when removing voikko!"
+ elog "Before incompatible update or removal of OpenOffice you must"
+ elog "unmerge oo2-voikko!"
+}
+
+pkg_prerm() {
+ find_unopkg
+ #unregister()
+ UNOPKG_LIST="$(${UNOPKG} list --shared 2> /dev/null)"
+ if [[ $? != 0 ]] ; then
+ ewarn "Couldn't list existing packages..."
+ fi
+ PKG=$(echo "${UNOPKG_LIST}" | egrep -m1 "^Name: oo2-voikko-Linux_x86(_64)?-${PV}" | sed -e "s/Name: //")
+ if [ "${PKG}" != "" ]; then
+ einfo "Removing uno package ${PKG}..."
+ if "${UNOPKG}" remove --shared ${PKG} &>/dev/null
+ then
+ einfo "Voikko package (${PKG}) unregistered succesfully"
+ else
+ die "Couldn't uninstall existing Voikko packages"
+ fi
+ else
+ ewarn "Couldn't find existing Voikko packages."
+ ewarn "You may need to unopkg remove them manually."
+ fi
+}
diff --git a/trunk/app-office/openoffice-sdk/Manifest b/trunk/app-office/openoffice-sdk/Manifest
new file mode 100644
index 0000000..e4270f1
--- /dev/null
+++ b/trunk/app-office/openoffice-sdk/Manifest
@@ -0,0 +1,24 @@
+AUX setsdkenv_unix.csh.gentoo 9617 RMD160 2aee7fa2961828fe90e9f47a5909a55e6d2c35d5 SHA1 b451d28cbab3c9b16e955872d0c0db53cc90b920 SHA256 432e5ca94b6f17a0fee2aee0d39e377e1c3cda1bdbda5ad18ffb52694977d2a3
+MD5 85a15e9501b3452caddb21da6ec587a3 files/setsdkenv_unix.csh.gentoo 9617
+RMD160 2aee7fa2961828fe90e9f47a5909a55e6d2c35d5 files/setsdkenv_unix.csh.gentoo 9617
+SHA256 432e5ca94b6f17a0fee2aee0d39e377e1c3cda1bdbda5ad18ffb52694977d2a3 files/setsdkenv_unix.csh.gentoo 9617
+AUX setsdkenv_unix.sh.gentoo 9221 RMD160 c4950444f0a8d4fd681bf8086b2d1ca9b83ebfd5 SHA1 284f6529244841bcc38bc93aebae5e1d67adc4d8 SHA256 8f8db808429c6a628c46c2d46c504176b4500bd630233b8f41679be685aefab2
+MD5 7eb1daa44a793066d81dc539a82f0335 files/setsdkenv_unix.sh.gentoo 9221
+RMD160 c4950444f0a8d4fd681bf8086b2d1ca9b83ebfd5 files/setsdkenv_unix.sh.gentoo 9221
+SHA256 8f8db808429c6a628c46c2d46c504176b4500bd630233b8f41679be685aefab2 files/setsdkenv_unix.sh.gentoo 9221
+DIST OOo-SDK_2.0_linux_install_en-US.sh 40101497 RMD160 0d7a8480d0c377ee79fd91b650eeef36bd1659b8 SHA1 67b409e16b525aa34f8111bca267791e54dac92c SHA256 e1037ceebccad2ba28c3c7354e1f84da441caad7dca75400c0050b9d8bbf4752
+DIST OOo_2.0.3_LinuxIntel_sdk.sh 39845497 RMD160 fec7a01c81540394928036cdd88cba3d0d8ba96b SHA1 9a3b70fcd8b4574b0e586f26be86ea320801fe7f SHA256 b6848815c674ac65b58b49a65a487c801d8ed763dd1f2d82b27f52995b103a13
+EBUILD openoffice-sdk-2.0.3.ebuild 2698 RMD160 7da50b06f392736ea079e3c1ad05630146344237 SHA1 794723f9ffda81d90b99feb285cf9370760a7122 SHA256 3edcfb3ce111933f5b879b82a82a0d93fa8d0f0dad1c3a00bae6e88425b86aa6
+MD5 6ce9f2b771cfc9601eb5eeff60317f8d openoffice-sdk-2.0.3.ebuild 2698
+RMD160 7da50b06f392736ea079e3c1ad05630146344237 openoffice-sdk-2.0.3.ebuild 2698
+SHA256 3edcfb3ce111933f5b879b82a82a0d93fa8d0f0dad1c3a00bae6e88425b86aa6 openoffice-sdk-2.0.3.ebuild 2698
+EBUILD openoffice-sdk-2.0.4.ebuild 2618 RMD160 258e90393cb246980f4db19c89ae68ff020ff1a2 SHA1 5f82afe642c4f41729d0205afd46ce269d1cf522 SHA256 4a49a644ad1926607adcab8a4fe1284b6a5335a8a310f6076e919a7c342ad793
+MD5 c07f58bf4dd6fbfa27e4191185fec90b openoffice-sdk-2.0.4.ebuild 2618
+RMD160 258e90393cb246980f4db19c89ae68ff020ff1a2 openoffice-sdk-2.0.4.ebuild 2618
+SHA256 4a49a644ad1926607adcab8a4fe1284b6a5335a8a310f6076e919a7c342ad793 openoffice-sdk-2.0.4.ebuild 2618
+MD5 9020d216d63b907ba0564a128717d5f7 files/digest-openoffice-sdk-2.0.3 268
+RMD160 de8ae5b94f256bf620e2b1adb75f3eb75d42fb7e files/digest-openoffice-sdk-2.0.3 268
+SHA256 a3b5134b7f6d9b761015d7f9f176d39dae665e2fa0ab9fcb09b873de0d1e15b9 files/digest-openoffice-sdk-2.0.3 268
+MD5 69f107677b4b2deecdbbb0c46adc17d4 files/digest-openoffice-sdk-2.0.4 289
+RMD160 ce89f6da3d9a3df35e91512439439e9f9d93ade7 files/digest-openoffice-sdk-2.0.4 289
+SHA256 4fb7efa55d28a9344da4d363af460548fe3ca5849271516659fb970d234c5d44 files/digest-openoffice-sdk-2.0.4 289
diff --git a/trunk/app-office/openoffice-sdk/files/digest-openoffice-sdk-2.0.3 b/trunk/app-office/openoffice-sdk/files/digest-openoffice-sdk-2.0.3
new file mode 100644
index 0000000..82b8007
--- /dev/null
+++ b/trunk/app-office/openoffice-sdk/files/digest-openoffice-sdk-2.0.3
@@ -0,0 +1,3 @@
+MD5 f35f397dac358a054cd425b2348f258c OOo_2.0.3_LinuxIntel_sdk.sh 39845497
+RMD160 fec7a01c81540394928036cdd88cba3d0d8ba96b OOo_2.0.3_LinuxIntel_sdk.sh 39845497
+SHA256 b6848815c674ac65b58b49a65a487c801d8ed763dd1f2d82b27f52995b103a13 OOo_2.0.3_LinuxIntel_sdk.sh 39845497
diff --git a/trunk/app-office/openoffice-sdk/files/digest-openoffice-sdk-2.0.4 b/trunk/app-office/openoffice-sdk/files/digest-openoffice-sdk-2.0.4
new file mode 100644
index 0000000..ae80502
--- /dev/null
+++ b/trunk/app-office/openoffice-sdk/files/digest-openoffice-sdk-2.0.4
@@ -0,0 +1,3 @@
+MD5 ab1e16c666e7063a2c94c430320c7b2a OOo-SDK_2.0_linux_install_en-US.sh 40101497
+RMD160 0d7a8480d0c377ee79fd91b650eeef36bd1659b8 OOo-SDK_2.0_linux_install_en-US.sh 40101497
+SHA256 e1037ceebccad2ba28c3c7354e1f84da441caad7dca75400c0050b9d8bbf4752 OOo-SDK_2.0_linux_install_en-US.sh 40101497
diff --git a/trunk/app-office/openoffice-sdk/files/setsdkenv_unix.csh.gentoo b/trunk/app-office/openoffice-sdk/files/setsdkenv_unix.csh.gentoo
new file mode 100644
index 0000000..48b2b58
--- /dev/null
+++ b/trunk/app-office/openoffice-sdk/files/setsdkenv_unix.csh.gentoo
@@ -0,0 +1,269 @@
+#! /usr/bin/csh
+
+# This script sets all enviroment variables, which are necessary for building
+# the examples of the Office Development Kit.
+# The Script was developed for the operating systems Solaris and Linux.
+set setscript=`history 1 | sed "s/.*source //"`
+set sdkdir=`dirname ${bla}`
+unset setscript
+
+# The SDK name
+setenv OO_SDK_NAME odk
+
+# Installation directory of the Software Development Kit.
+# Example: setenv OO_SDK_HOME /work/StarOffice_SDK
+setenv OO_SDK_HOME @OO_SDK_HOME@
+
+# Office installation directory.
+# Example: setenv OFFICE_HOME /opt/staroffice
+set OFFICE_HOME=@OFFICE_HOME@
+
+# URE installation directory.
+# Example: setenv OO_SDK_URE_HOME /opt/openoffice.org/ure
+setenv OO_SDK_URE_HOME @OO_SDK_URE_HOME@
+
+# Directory of the make command.
+# Example: setenv OO_SDK_MAKE_HOME /usr/bin
+setenv OO_SDK_MAKE_HOME @OO_SDK_MAKE_HOME@
+
+# Directory of the zip command.
+# Example: setenv OO_SDK_ZIP_HOME /usr/bin
+setenv OO_SDK_ZIP_HOME @OO_SDK_ZIP_HOME@
+
+# Directory of the C++ compiler.
+# Example: setenv OO_SDK_CPP_HOME /usr/bin
+setenv OO_SDK_CPP_HOME @OO_SDK_CPP_HOME@
+
+# Solaris only
+#setenv OO_SDK_CC_55_OR_HIGHER @OO_SDK_CC_55_OR_HIGHER@
+
+# Directory of the Java SDK.
+# Example: setenv OO_SDK_JAVA_HOME "/usr/local/j2sdk1.4.1_01"
+setenv OO_SDK_JAVA_HOME @OO_SDK_JAVA_HOME@
+
+# Special output directory
+# Example: setenv OO_SDK_OUTPUT_DIR "$HOME"
+setenv OO_SDK_OUTPUT_DIR .
+
+# Environment variable to enable auto deployment of example components
+# Example: set SDK_AUTO_DEPLOYMENT=YES
+setenv SDK_AUTO_DEPLOYMENT YES
+
+# Set office program path.
+if ( "${OFFICE_HOME}" != "" ) then
+ setenv OFFICE_PROGRAM_PATH "${OFFICE_HOME}/program"
+endif
+
+# Set UNO path, necessary to ensure that the cpp examples using the
+# new UNO bootstrap mechanism use the configured office installation.
+if ( ${?OFFICE_PROGRAM_PATH} ) then
+ setenv UNO_PATH "${OFFICE_PROGRAM_PATH}"
+endif
+
+if ( "${OO_SDK_URE_HOME}" != "" ) then
+ setenv OO_SDK_URE_BIN_DIR "${OO_SDK_URE_HOME}/bin"
+ setenv OO_SDK_URE_LIB_DIR "${OO_SDK_URE_HOME}/lib"
+ setenv OO_SDK_URE_JAVA_DIR "${OO_SDK_URE_HOME}/share/java"
+else
+ setenv OO_SDK_URE_BIN_DIR "${OFFICE_PROGRAM_PATH}"
+ setenv OO_SDK_URE_LIB_DIR "${OFFICE_PROGRAM_PATH}"
+ setenv OO_SDK_URE_JAVA_DIR "${OFFICE_PROGRAM_PATH}/classes"
+endif
+
+# Set SDK example output directory
+setenv OO_EXAMPLE_OUT ${OO_SDK_HOME}
+if ( $?OO_SDK_OUTPUT_DIR ) then
+ setenv OO_EXAMPLE_OUT ${OO_SDK_OUTPUT_DIR}/${OO_SDK_NAME}
+endif
+
+# check platform and set appropriate variables
+switch (`/usr/share/automake/config.guess | cut -d"-" -f3,4`)
+ case "solaris*":
+ if ( `/usr/share/automake/config.guess | cut -d"-" -f1` == "sparc" ) then
+ set directoryname=solsparc
+ set platform=Solaris Sparc
+ else
+ set directoryname=solintel
+ set platform=Solaris Intel
+ endif
+ set comid=C52
+ set pltfrm=sunpro
+ set soext=so
+ set exampleout=SOLARISexample.out
+
+ # set LD_LIBRARY_PATH
+ if ( $?LD_LIBARY_PATH == 0) then
+ setenv LD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.
+ else
+ setenv LD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${LD_LIBRARY_PATH}
+ endif
+ breaksw
+
+ case "linux-gnu":
+ if ( $?OO_SDK_CPP_HOME == 0) then
+ set sdk_gxx_include_path=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
+ setenv SDK_GXX_INCLUDE_PATH ${sdk_gxx_include_path}
+ endif
+
+ set directoryname=linux
+ set comid=gcc3
+ set pltfrm=gcc
+ set soext=dylib
+ set exampleout=LINUXexample.out
+ set platform=Linux
+
+ # set LD_LIBRARY_PATH
+ if ( $?LD_LIBARY_PATH == 0) then
+ setenv LD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.
+ else
+ setenv LD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${LD_LIBRARY_PATH}
+ endif
+ breaksw
+
+ case "darwin*":
+ if ( $?OO_SDK_CPP_HOME == 0) then
+ set sdk_gxx_include_path=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
+ setenv SDK_GXX_INCLUDE_PATH ${sdk_gxx_include_path}
+ endif
+
+ set directoryname=macosx
+ set comid=gcc3
+ set pltfrm=gcc
+ set soext=so
+ set exampleout=MACOSXexample.out
+ set platform=MacOSX
+
+ # set DYLD_LIBRARY_PATH
+ if ( $?DYLD_LIBRARY_PATH == 0) then
+ setenv DYLD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.
+ else
+ setenv DYLD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${DYLD_LIBRARY_PATH}
+ endif
+ breaksw
+
+ case "freebsd*":
+ if ( $?OO_SDK_CPP_HOME == 0) then
+ set sdk_gxx_include_path=`echo "#include <cstring>" | ${OO_SDK_CPP_HOME}/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
+ setenv SDK_GXX_INCLUDE_PATH ${sdk_gxx_include_path}
+ endif
+
+ set directoryname=freebsd
+ set comid=gcc3
+ set pltfrm=gcc
+ set soext=so
+ set exampleout=FREEBSDexample.out
+ set platform=FreeBSD
+
+ # set LD_LIBRARY_PATH
+ if ( $?LD_LIBARY_PATH == 0) then
+ setenv LD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.
+ else
+ setenv LD_LIBRARY_PATH ${OO_SDK_HOME}/${directoryname}/lib:${OO_EXAMPLE_OUT}/${exampleout}/lib:${OO_SDK_URE_LIB_DIR}:.:${LD_LIBRARY_PATH}
+ endif
+
+ if ( -e "/sbin/sysctl" ) then
+ set OSVERSION=`/sbin/sysctl -n kern.osreldate`
+ else
+ set OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
+ endif
+
+ if ( ${OSVERSION} < 500016 ) then
+ setenv PTHREAD_CFLAGS -D_THREAD_SAFE
+ setenv PTHREAD_LIBS -pthread
+ else if ( ${OSVERSION} < 502102 ) then
+ setenv PTHREAD_CFLAGS -D_THREAD_SAFE
+ setenv PTHREAD_LIBS -lc_r
+ else
+ setenv PTHREAD_LIBS -pthread
+ endif
+ breaksw
+endsw
+
+# set PATH
+if ( $?PATH == 0) then
+ setenv PATH ${OO_SDK_ZIP_HOME}:${OO_SDK_MAKE_HOME}:${OO_SDK_HOME}/${directoryname}/bin:${OO_EXAMPLE_OUT}/${exampleout}:${OO_SDK_URE_BIN_DIR}:.
+else
+ setenv PATH ${OO_SDK_ZIP_HOME}:${OO_SDK_MAKE_HOME}:${OO_SDK_HOME}/${directoryname}/bin:${OO_EXAMPLE_OUT}/${exampleout}:${OO_SDK_URE_BIN_DIR}:.:${PATH}
+endif
+
+# Set CLASSPATH
+if ( ${?OFFICE_PROGRAM_PATH} ) then
+ if ( $[?CLASSPATH} == 0 ) then
+ setenv CLASSPATH "${OFFICE_PROGRAM_PATH}/classes/unoil.jar"
+ else
+ setenv CLASSPATH "${OFFICE_PROGRAM_PATH}/classes/unoil.jar:${CLASSPATH}"
+ endif
+endif
+if ( $?CLASSPATH == 0) then
+ setenv CLASSPATH "${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar"
+else
+ setenv CLASSPATH "${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar:${CLASSPATH}"
+endif
+
+if ( $?OO_SDK_CPP_HOME == 0) then
+ setenv PATH ${OO_SDK_CPP_HOME}:${PATH}
+endif
+
+if ( $?OO_SDK_JAVA_HOME == 0) then
+ setenv PATH ${OO_SDK_JAVA_HOME}:${PATH}
+# setenv UNO_JAVA_JFW_JREHOME `sp2bv $OO_SDK_JAVA_HOME`
+# setenv UNO_JAVA_JFW_ENV_CLASSPATH true
+# setenv UNO_JAVA_JFW_VENDOR_SETTINGS `sp2bv $OFFICE_HOME/share/config/javavendors.xml`
+endif
+
+# For URE, prepare symbolic links for libraries:
+#rm -f "${OO_SDK_HOME}/${directoryname}/lib/libuno_cppu.so" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_cppuhelper${comid}.${soext}" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_sal.${soext}" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_salhelper${comid}.${soext}" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libstlport_${pltfrm}.${soext}"
+#if ( "${OO_SDK_URE_HOME}" != "" ) then
+# mkdir -p "${OO_SDK_HOME}/${directoryname}/lib"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libuno_cppu.${soext}.3" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_cppu.${soext}"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libuno_cppuhelper${comid}.${soext}.3" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_cppuhelper${comid}.${soext}"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libuno_sal.${soext}.3" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_sal.${soext}"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libuno_salhelper${comid}.${soext}.3" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_salhelper${comid}.${soext}"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libstlport_${pltfrm}.${soext}" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libstlport_${pltfrm}.${soext}"
+#endif
+
+echo
+echo " ************************************************************************"
+echo " *"
+echo " * SDK environment is prepared for ${platform}"
+echo " *"
+echo " * SDK = ${OO_SDK_HOME}"
+echo " * Office = ${OFFICE_HOME}"
+echo " * URE = ${OO_SDK_URE_HOME}"
+echo " * Make = ${OO_SDK_MAKE_HOME}"
+echo " * Zip = ${OO_SDK_ZIP_HOME}"
+if ( $?OO_SDK_CPP_HOME == 0) then
+echo " * C++ Compiler = "
+else
+echo " * C++ Compiler = ${OO_SDK_CPP_HOME}"
+endif
+if ( $?OO_SDK_JAVA_HOME == 0) then
+echo " * Java = "
+else
+echo " * Java = ${OO_SDK_JAVA_HOME}"
+endif
+if ( $?OO_SDK_OUTPUT_DIR == 0) then
+echo " * Special Output directory = "
+else
+echo " * Special Output directory = ${OO_SDK_OUTPUT_DIR}"
+endif
+echo " * Auto deployment = ${SDK_AUTO_DEPLOYMENT}"
+echo " *"
+echo " ************************************************************************"
+
+unset sdkdir
+unset directoryname
+unset comid
+unset exampleout
+unset platform
+
+echo "]2;Shell prepared with the SDK environment"
diff --git a/trunk/app-office/openoffice-sdk/files/setsdkenv_unix.sh.gentoo b/trunk/app-office/openoffice-sdk/files/setsdkenv_unix.sh.gentoo
new file mode 100644
index 0000000..b8a0b86
--- /dev/null
+++ b/trunk/app-office/openoffice-sdk/files/setsdkenv_unix.sh.gentoo
@@ -0,0 +1,304 @@
+#! /bin/sh
+
+# This script starts a new shell and sets all enviroment variables, which
+# are necessary for building the examples of the Office Development Kit.
+# The Script was developed for the operating systems Solaris and Linux.
+sdkscript=`echo $0 | grep setsdkenv_unix`
+if [ "$sdkscript" = "" ]
+then
+sdkscript=`history 1 | sed "s/.*\. //"`
+fi
+sdkdir=`dirname $sdkscript`
+
+# The SDK name
+OO_SDK_NAME=odk
+export OO_SDK_NAME
+
+# Installation directory of the Software Development Kit.
+# Example: OO_SDK_HOME=/work/StarOffice_SDK
+OO_SDK_HOME=@OO_SDK_HOME@
+
+# Office installation directory.
+# Example: OFFICE_HOME=/opt/staroffice
+OFFICE_HOME=@OFFICE_HOME@
+
+# URE installation directory.
+# Example: OO_SDK_URE_HOME=/opt/openoffice.org/ure
+#OO_SDK_URE_HOME=
+#export OO_SDK_URE_HOME
+
+# Directory of the make command.
+# Example: OO_SDK_MAKE_HOME=/usr/bin
+OO_SDK_MAKE_HOME=@OO_SDK_MAKE_HOME@
+
+# Directory of the zip command.
+# Example: OO_SDK_ZIP_HOME=/usr/bin
+OO_SDK_ZIP_HOME=@OO_SDK_ZIP_HOME@
+
+# Directory of the C++ compiler.
+# Example: OO_SDK_CPP_HOME=/usr/bin
+OO_SDK_CPP_HOME=@OO_SDK_CPP_HOME@
+
+# Solaris only
+#OO_SDK_CC_55_OR_HIGHER=@OO_SDK_CC_55_OR_HIGHER@
+
+# Directory of the Java SDK.
+# Example: OO_SDK_JAVA_HOME=/usr/local/j2sdk1.4.1_01
+OO_SDK_JAVA_HOME=@OO_SDK_JAVA_HOME@
+
+# Special output directory
+# Example: OO_SDK_OUTPUT_DIR=$HOME
+OO_SDK_OUTPUT_DIR=.
+
+# Environment variable to enable auto deployment of example components
+# Example: SDK_AUTO_DEPLOYMENT=YES
+SDK_AUTO_DEPLOYMENT=YES
+export SDK_AUTO_DEPLOYMENT
+
+# Check installation path for the StarOffice Development Kit.
+if [ -z "$OO_SDK_HOME" ]
+then
+ echo Error: Please insert a correct value for the variable OO_SDK_HOME.
+ exit 0
+fi
+
+export OO_SDK_HOME
+
+# Check installation path for the office.
+if [ -z "${OFFICE_HOME}" ] && [ -z "${OO_SDK_URE_HOME}" ]
+then
+ echo 'Error: Please set either the environment variable OFFICE_HOME or the'
+ echo 'environment variable OO_SDK_URE_HOME.'
+ exit 0
+fi
+
+# Set office program path (only set when using an Office).
+if [ "${OFFICE_HOME}" ]
+then
+ OFFICE_PROGRAM_PATH=${OFFICE_HOME}/program
+ export OFFICE_PROGRAM_PATH
+fi
+
+# Set UNO path, necessary to ensure that the cpp examples using the
+# new UNO bootstrap mechanism use the configured office installation (only set
+# when using an Office).
+if [ "${OFFICE_HOME}" ]
+then
+ UNO_PATH=${OFFICE_PROGRAM_PATH}
+ export UNO_PATH
+fi
+
+if [ "${OO_SDK_URE_HOME}" ]
+then
+ OO_SDK_URE_BIN_DIR=${OO_SDK_URE_HOME}/bin
+ OO_SDK_URE_LIB_DIR=${OO_SDK_URE_HOME}/lib
+ OO_SDK_URE_JAVA_DIR=${OO_SDK_URE_HOME}/share/java
+else
+ OO_SDK_URE_BIN_DIR=${OFFICE_PROGRAM_PATH}
+ OO_SDK_URE_LIB_DIR=${OFFICE_PROGRAM_PATH}
+ OO_SDK_URE_JAVA_DIR=${OFFICE_PROGRAM_PATH}/classes
+fi
+export OO_SDK_URE_BIN_DIR
+export OO_SDK_URE_LIB_DIR
+export OO_SDK_URE_JAVA_DIR
+
+OO_EXAMPLE_OUT=$OO_SDK_HOME
+# Prepare appropriate output directory.
+if [ -n "$OO_SDK_OUTPUT_DIR" ]
+then
+ OO_EXAMPLE_OUT=$OO_SDK_OUTPUT_DIR/$OO_SDK_NAME
+ export OO_SDK_OUTPUT_DIR
+fi
+
+# Get the operating system.
+sd_platform=`/usr/share/automake/config.guess | cut -d"-" -f3,4`
+
+# Set the directory name.
+case $sd_platform in
+ solaris*)
+ sd_proctype=`/usr/share/automake/config.guess | cut -d"-" -f1`
+ if [ "$sd_proctype" = "sparc" ]
+ then
+ directoryname=solsparc
+ platform='Solaris Sparc'
+ else
+ directoryname=solintel
+ platform='Solaris x86'
+ fi
+ comid=C52
+ pltfrm=sunpro
+ soext=so
+ exampleout=SOLARISexample.out
+ LD_LIBRARY_PATH=$OO_SDK_HOME/$directoryname/lib:$OO_EXAMPLE_OUT/$exampleout/lib:${OO_SDK_URE_LIB_DIR}:.:$LD_LIBRARY_PATH
+ export LD_LIBRARY_PATH
+ ;;
+
+ darwin*)
+ if [ -n "$OO_SDK_CPP_HOME" ]
+ then
+ SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | $OO_SDK_CPP_HOME/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
+ export SDK_GXX_INCLUDE_PATH
+ fi
+
+ directoryname=macosx
+ comid=gcc3
+ pltfrm=gcc
+ soext=dylib
+ exampleout=MACOSXexample.out
+ platform=MacOSX
+ DYLD_LIBRARY_PATH=$OO_SDK_HOME/$directoryname/lib:$OO_EXAMPLE_OUT/$exampleout/lib:${OO_SDK_URE_LIB_DIR}:.:$DYLD_LIBRARY_PATH
+ export DYLD_LIBRARY_PATH
+ ;;
+
+ linux-gnu)
+ if [ -n "$OO_SDK_CPP_HOME" ]
+ then
+ SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | $OO_SDK_CPP_HOME/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
+ export SDK_GXX_INCLUDE_PATH
+ fi
+
+ directoryname=linux
+ comid=gcc3
+ pltfrm=gcc
+ soext=so
+ exampleout=LINUXexample.out
+ platform=Linux
+ LD_LIBRARY_PATH=$OO_SDK_HOME/$directoryname/lib:$OO_EXAMPLE_OUT/$exampleout/lib:${OO_SDK_URE_LIB_DIR}:.:$LD_LIBRARY_PATH
+ export LD_LIBRARY_PATH
+ ;;
+
+ freebsd*)
+ if [ -n "$OO_SDK_CPP_HOME" ]
+ then
+ SDK_GXX_INCLUDE_PATH=`echo "#include <cstring>" | $OO_SDK_CPP_HOME/g++ -E -xc++ - | sed -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
+ export SDK_GXX_INCLUDE_PATH
+ fi
+
+ directoryname=freebsd
+ comid=gcc3
+ pltfrm=gcc
+ soext=so
+ exampleout=FREEBSDexample.out
+ platform=FreeBSD
+ LD_LIBRARY_PATH=$OO_SDK_HOME/$directoryname/lib:$OO_EXAMPLE_OUT/$exampleout/lib:${OO_SDK_URE_LIB_DIR}:.:$LD_LIBRARY_PATH
+ export LD_LIBRARY_PATH
+
+ if [ -e "/sbin/sysctl" ]
+ then
+ OSVERSION=`/sbin/sysctl -n kern.osreldate`
+ else
+ OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
+ fi
+ if [ $OSVERSION -lt 500016 ]
+ then
+ PTHREAD_CFLAGS=-D_THREAD_SAFE
+ PTHREAD_LIBS=-pthread
+ export PTHREAD_CFLAGS
+ export PTHREAD_LIBS
+ elif [ $OSVERSION -lt 502102 ]
+ then
+ PTHREAD_CFLAGS=-D_THREAD_SAFE
+ PTHREAD_LIBS=-lc_r
+ export PTHREAD_CFLAGS
+ export PTHREAD_LIBS
+ else
+ PTHREAD_LIBS=-pthread
+ export PTHREAD_LIBS
+ fi
+ ;;
+esac
+
+# Add directory of the SDK tools to the path.
+PATH=$OO_SDK_HOME/$directoryname/bin:$OO_EXAMPLE_OUT/$exampleout/bin:${OO_SDK_URE_BIN_DIR}:.:$PATH
+
+# Set the classpath
+CLASSPATH=${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar${OFFICE_PROGRAM_PATH+:${OFFICE_PROGRAM_PATH}/classes/unoil.jar}${CLASSPATH+:${CLASSPATH}}
+export CLASSPATH
+
+
+# Add directory of the command make to the path, if necessary.
+if [ -n "$OO_SDK_MAKE_HOME" ]
+then
+ PATH=$OO_SDK_MAKE_HOME:$PATH
+ export OO_SDK_MAKE_HOME
+fi
+
+# Add directory of the zip tool to the path, if necessary.
+if [ -n "$OO_SDK_ZIP_HOME" ]
+then
+ PATH=$OO_SDK_ZIP_HOME:$PATH
+ export OO_SDK_ZIP_HOME
+fi
+
+# Add directory of the C++ tools to the path, if necessary.
+if [ -n "$OO_SDK_CPP_HOME" ]
+then
+ PATH=$OO_SDK_CPP_HOME:$PATH
+ export OO_SDK_CPP_HOME
+
+ if [ -n "$OO_SDK_CC_55_OR_HIGHER" ]
+ then
+ export OO_SDK_CC_55_OR_HIGHER
+ fi
+fi
+
+# Add directory of the Java tools to the path, if necessary.
+if [ -n "$OO_SDK_JAVA_HOME" ]
+then
+ PATH=$OO_SDK_JAVA_HOME/bin:$PATH
+# JAVA_HOME=$OO_SDK_JAVA_HOME
+# export JAVA_HOME
+ export OO_SDK_JAVA_HOME
+
+ export PATH
+# UNO_JAVA_JFW_JREHOME=`sp2bv $OO_SDK_JAVA_HOME`
+# UNO_JAVA_JFW_ENV_CLASSPATH=true
+# UNO_JAVA_JFW_VENDOR_SETTINGS=`sp2bv $OFFICE_HOME/share/config/javavendors.xml`
+# export UNO_JAVA_JFW_JREHOME
+# export UNO_JAVA_JFW_ENV_CLASSPATH
+# export UNO_JAVA_JFW_VENDOR_SETTINGS
+fi
+
+export PATH
+
+# For URE, prepare symbolic links for libraries:
+#rm -f "${OO_SDK_HOME}/${directoryname}/lib/libuno_cppu.${soext}" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_cppuhelper${comid}.${soext}" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_sal.${soext}" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_salhelper${comid}.${soext}" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libstlport_${pltfrm}.${soext}"
+#if [ "${OO_SDK_URE_HOME}" ]
+#then
+# mkdir -p "${OO_SDK_HOME}/${directoryname}/lib"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libuno_cppu.${soext}.3" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_cppu.${soext}"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libuno_cppuhelper${comid}.${soext}.3" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_cppuhelper${comid}.${soext}"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libuno_sal.${soext}.3" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_sal.${soext}"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libuno_salhelper${comid}.${soext}.3" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libuno_salhelper${comid}.${soext}"
+# ln -s "${OO_SDK_URE_LIB_DIR}/libstlport_${pltfrm}.${soext}" \
+# "${OO_SDK_HOME}/${directoryname}/lib/libstlport_${pltfrm}.${soext}"
+#fi
+
+# Prepare shell with all necessary environment variables.
+echo
+echo " ************************************************************************"
+echo " *"
+echo " * SDK environment is prepared for ${platform}"
+echo " *"
+echo " * SDK = $OO_SDK_HOME"
+echo " * Office = $OFFICE_HOME"
+echo " * URE = $OO_SDK_URE_HOME"
+echo " * Make = $OO_SDK_MAKE_HOME"
+echo " * Zip = $OO_SDK_ZIP_HOME"
+echo " * C++ Compiler = $OO_SDK_CPP_HOME"
+echo " * Java = $OO_SDK_JAVA_HOME"
+echo " * Special Output directory = $OO_SDK_OUTPUT_DIR"
+echo " * Auto deployment = $SDK_AUTO_DEPLOYMENT"
+echo " *"
+echo " ************************************************************************"
+
+echo "]2;Shell prepared with the SDK environment"
+
diff --git a/trunk/app-office/openoffice-sdk/openoffice-sdk-2.0.3.ebuild b/trunk/app-office/openoffice-sdk/openoffice-sdk-2.0.3.ebuild
new file mode 100644
index 0000000..be2f8fb
--- /dev/null
+++ b/trunk/app-office/openoffice-sdk/openoffice-sdk-2.0.3.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="Software Development Kit addition to OpenOffice.Org"
+HOMEPAGE="http://download.openoffice.org/2.0.3/sdk.html"
+SRC_URI="http://mirrors.dotsrc.org/openoffice/stable/${PV}_sdk/OOo_${PV}_LinuxIntel_sdk.sh"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="java"
+
+DEPEND="|| ( >app-office/openoffice-2 >app-office/openoffice-bin-2 )
+ sys-apps/sed
+ >app-arch/zip-2.3
+ || ( app-arch/rpm2targz )
+ java? ( >dev-java/sun-jdk-1.4.1.01 )
+ "
+RDEPEND="|| ( >app-office/openoffice-2 >app-office/openoffice-bin-2 )
+ >app-arch/zip-2.3
+ "
+
+src_unpack() {
+ mkdir "${S}"
+ cd "${S}"
+ # check line number from sh on update
+ tail --lines=+88 "${DISTDIR}/OOo_${PV}_LinuxIntel_sdk.sh" | tar xf -
+ assert
+ cd RPMS
+ rpm2targz openoffice.org-sdk-${PV}-?.i586.rpm || \
+ die "Unable to unrpm"
+ tar zxpf openoffice.org-sdk-${PV}-?.i586.tar.gz || \
+ die "Unable to untar"
+ cd opt/openoffice.org2.0_sdk
+ OO_SDK_JAVA_HOME=""
+ if has_version dev-java/sun-jdk && use java ; then
+ jdk_version=$(best_version dev-java/sun-jdk)
+ OO_SDK_JAVA_HOME="${ROOT}/opt/sun-jdk-${jdk_version/-r?/}"
+ fi
+ sed -e "s:@OO_SDK_HOME@:${ROOT}/usr/lib/openoffice:g" \
+ -e "s:@OFFICE_HOME@:${ROOT}/usr/lib/openoffice:g" \
+ -e "s:@OO_SDK_ZIP_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_CPP_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_MAKE_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_JAVA_HOME@:${OO_SDK_JAVA_HOME}:g" \
+ -e "s:/usr/share/automake:${ROOT}/usr/share/automake:g" \
+ "${FILESDIR}/setsdkenv_unix.sh.gentoo" > setsdkenv_unix.sh
+ sed -e "s:@OO_SDK_HOME@:${ROOT}/usr/lib/openoffice:g" \
+ -e "s:@OFFICE_HOME@:${ROOT}/usr/lib/openoffice:g" \
+ -e "s:@OO_SDK_ZIP_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_CPP_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_MAKE_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_JAVA_HOME@:${OO_SDK_JAVA_HOME}:g" \
+ -e "s:/usr/share/automake:${ROOT}/usr/share/automake:g" \
+ "${FILESDIR}/setsdkenv_unix.csh.gentoo" > setsdkenv_unix.csh
+}
+
+src_install() {
+ dodir /usr/lib/openoffice
+ insinto /usr/lib/openoffice
+ cd "${S}/RPMS/opt/openoffice.org2.0_sdk/"
+ doins -r classes examples idl linux settings xml include
+ doins config.*
+ dodoc index.html README{,.html}
+ dodir /usr/share/doc/${PF}
+ insinto /usr/share/doc/${PF}
+ doins -r docs
+ insinto /usr/lib/openoffice/program/
+ doins setsdkenv_unix* configure.pl
+ fperms a+x /usr/lib/openoffice/program/setsdkenv_unix.{c,}sh
+ fperms a+x /usr/lib/openoffice/config.*
+ fperms a+x /usr/lib/openoffice/linux/bin/*
+}
+
+src_postinst() {
+ elog "SDK environment variable setup scripts were installed in: "
+ elog " ${ROOT}/usr/lib/openoffice/program"
+}
diff --git a/trunk/app-office/openoffice-sdk/openoffice-sdk-2.0.4.ebuild b/trunk/app-office/openoffice-sdk/openoffice-sdk-2.0.4.ebuild
new file mode 100644
index 0000000..92eb674
--- /dev/null
+++ b/trunk/app-office/openoffice-sdk/openoffice-sdk-2.0.4.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit java-pkg-opt-2
+
+OOI_SCRIPT="OOo-SDK_2.0_linux_install_en-US.sh"
+DESCRIPTION="Software Development Kit addition to OpenOffice.Org"
+HOMEPAGE="http://download.openoffice.org/2.0.3/sdk.html"
+SRC_URI="http://mirrors.dotsrc.org/openoffice/stable/${PV}_sdk/${OOI_SCRIPT}"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="|| ( >app-office/openoffice-2 >app-office/openoffice-bin-2 )
+ sys-apps/sed
+ >app-arch/zip-2.3
+ || ( app-arch/rpm2targz )
+ "
+RDEPEND="|| ( >app-office/openoffice-2 >app-office/openoffice-bin-2 )
+ >app-arch/zip-2.3
+ "
+
+src_unpack() {
+ mkdir "${S}"
+ cd "${S}"
+ # check line number from sh on update
+ tail --lines=+88 "${DISTDIR}/${OOI_SCRIPT}" | tar xf -
+ assert
+ cd RPMS
+ rpm2targz openoffice.org-sdk-${PV}-?.i586.rpm || \
+ die "Unable to unrpm"
+ tar zxpf openoffice.org-sdk-${PV}-?.i586.tar.gz || \
+ die "Unable to untar"
+ cd opt/openoffice.org2.0_sdk
+ sed -e "s:@OO_SDK_HOME@:${ROOT}/usr/lib/openoffice:g" \
+ -e "s:@OFFICE_HOME@:${ROOT}/usr/lib/openoffice:g" \
+ -e "s:@OO_SDK_ZIP_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_CPP_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_MAKE_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_JAVA_HOME@:${JAVA_HOME}:g" \
+ -e "s:/usr/share/automake:${ROOT}/usr/share/automake:g" \
+ "${FILESDIR}/setsdkenv_unix.sh.gentoo" > setsdkenv_unix.sh
+ sed -e "s:@OO_SDK_HOME@:${ROOT}/usr/lib/openoffice:g" \
+ -e "s:@OFFICE_HOME@:${ROOT}/usr/lib/openoffice:g" \
+ -e "s:@OO_SDK_ZIP_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_CPP_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_MAKE_HOME@:${ROOT}/usr/bin:g" \
+ -e "s:@OO_SDK_JAVA_HOME@:${JAVA_HOME}:g" \
+ -e "s:/usr/share/automake:${ROOT}/usr/share/automake:g" \
+ "${FILESDIR}/setsdkenv_unix.csh.gentoo" > setsdkenv_unix.csh
+}
+
+src_install() {
+ # tools, examples & api docs
+ dodir /usr/lib/openoffice
+ insinto /usr/lib/openoffice
+ cd "${S}/RPMS/opt/openoffice.org2.0_sdk/"
+ doins -r classes examples idl linux settings xml include
+ doins config.*
+ for f in config.* linux/bin/* ; do
+ fperms a+x /usr/lib/openoffice/${f} || die "fperms failed"
+ done
+
+ # docs
+ dodoc index.html README{,.html}
+ dodir /usr/share/doc/${PF}
+ insinto /usr/share/doc/${PF}
+ doins -r docs
+
+ # SDK env.
+ insinto /usr/lib/openoffice/program/
+ doins setsdkenv_unix* configure.pl
+ for f in setsdkenv_unix{,.sh,.csh} ; do
+ fperms a+x /usr/lib/openoffice/program/${f} || die "fperms failed"
+ done
+}
+
+src_postinst() {
+ elog "SDK environment variable setup scripts were installed in: "
+ elog " ${ROOT}/usr/lib/openoffice/program"
+}
diff --git a/trunk/app-office/openoffice-voikko/Manifest b/trunk/app-office/openoffice-voikko/Manifest
new file mode 100644
index 0000000..c19cd1c
--- /dev/null
+++ b/trunk/app-office/openoffice-voikko/Manifest
@@ -0,0 +1,31 @@
+AUX ooo-2.0-home.tar.bz2 9966 RMD160 75e687e207d60291d32f6accaa526c74984b073c SHA1 d1495be0eaa1ce1394417d21f3b9db526d17b89e SHA256 f5c716bf2bd2b31be84dcdcd2f7d05ca4df560dbbe7f1a4f1ceab645d69600a7
+MD5 5f0a3f813a9ab90831a938fdfbf0875d files/ooo-2.0-home.tar.bz2 9966
+RMD160 75e687e207d60291d32f6accaa526c74984b073c files/ooo-2.0-home.tar.bz2 9966
+SHA256 f5c716bf2bd2b31be84dcdcd2f7d05ca4df560dbbe7f1a4f1ceab645d69600a7 files/ooo-2.0-home.tar.bz2 9966
+AUX openoffice-voikko-1.1-r1-stlport.patch 400 RMD160 03f7cf433424fd600c84ffc9bc5b1095757abaae SHA1 87b3ce7065150c5749c940dd34fa353f0b2b3f38 SHA256 e460eb62e259737848df90e19b9a7242fe84b692b1dd7513abb95a750b44b481
+MD5 b535ac6b02726b8fe919c02e0b039bb7 files/openoffice-voikko-1.1-r1-stlport.patch 400
+RMD160 03f7cf433424fd600c84ffc9bc5b1095757abaae files/openoffice-voikko-1.1-r1-stlport.patch 400
+SHA256 e460eb62e259737848df90e19b9a7242fe84b692b1dd7513abb95a750b44b481 files/openoffice-voikko-1.1-r1-stlport.patch 400
+DIST oo2-voikko-1.1.tar.gz 52682 RMD160 e5138b4143ff451fa69a69275bc280155169553f SHA1 0b538cc9cc75a052e890b0e883194a29528f6575 SHA256 2b70c1099615c67010b0705fb729e1dce506ec624032e9cd45bbecffb679f12b
+DIST openoffice.org-voikko-1.2.tar.gz 53091 RMD160 8b6043d1ef65a20da6a83afc107f42b805ebfeb5 SHA1 19c487031be89a702d9f6d47ca57ff3609defc2a SHA256 0b6d97e4ad3da2bd5c7388231365dbc71e9c6a8a8c71904ccde447de0aae07c1
+EBUILD openoffice-voikko-1.1-r1.ebuild 4721 RMD160 7abd103479db12c4843df24347af692548c9f343 SHA1 33652fbca4882d59c29972a311e01f64bf34b710 SHA256 dfa2e752da6dea504e75a3581089dfba1f552de89137b152db8b651c4bbd95ad
+MD5 42ab035866af83ed9603878b4637b201 openoffice-voikko-1.1-r1.ebuild 4721
+RMD160 7abd103479db12c4843df24347af692548c9f343 openoffice-voikko-1.1-r1.ebuild 4721
+SHA256 dfa2e752da6dea504e75a3581089dfba1f552de89137b152db8b651c4bbd95ad openoffice-voikko-1.1-r1.ebuild 4721
+EBUILD openoffice-voikko-1.2.ebuild 4509 RMD160 16148fb3af4aa15ca7d55565fddd3a47f41b4574 SHA1 49f0fa09eca998ab5b2eded88c481f7325c65b6d SHA256 641beed992e1dd13e7b4de58372291c37dd8f8ec7229d9bc328b9a003aa80465
+MD5 95e5eb56358d3d0975c80623174d80ba openoffice-voikko-1.2.ebuild 4509
+RMD160 16148fb3af4aa15ca7d55565fddd3a47f41b4574 openoffice-voikko-1.2.ebuild 4509
+SHA256 641beed992e1dd13e7b4de58372291c37dd8f8ec7229d9bc328b9a003aa80465 openoffice-voikko-1.2.ebuild 4509
+EBUILD openoffice-voikko-9999.ebuild 4681 RMD160 4bc67ee30edb5983e5733587e78ab11fc4c0e51b SHA1 017dbc437dde110599f474f189c725556a4d590b SHA256 86f5558312c6648a4e2cffb745a4998a08d124fe80196c53ac75c9eec0dad28c
+MD5 f0cb2663bd0e8ae4b9ec457d52d242a8 openoffice-voikko-9999.ebuild 4681
+RMD160 4bc67ee30edb5983e5733587e78ab11fc4c0e51b openoffice-voikko-9999.ebuild 4681
+SHA256 86f5558312c6648a4e2cffb745a4998a08d124fe80196c53ac75c9eec0dad28c openoffice-voikko-9999.ebuild 4681
+MD5 67926811dffb31efd8c84c6c20408a90 files/digest-openoffice-voikko-1.1-r1 241
+RMD160 d523826df957ee33a09ce13dc1f41beea8a827d1 files/digest-openoffice-voikko-1.1-r1 241
+SHA256 079e95f5d837133bbd8f23217e37a2bebdcddd32e3ef5d76437b192520865a68 files/digest-openoffice-voikko-1.1-r1 241
+MD5 cb14a32dd8fec164c1f1fc20b911fc2a files/digest-openoffice-voikko-1.2 274
+RMD160 6fd637df0b25786e6d6f180be7a2d99016f0f917 files/digest-openoffice-voikko-1.2 274
+SHA256 00bdba7ead53314543d801675f2199e91bd1fc8ade696588064a491b8ce7d3f2 files/digest-openoffice-voikko-1.2 274
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-openoffice-voikko-9999 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-openoffice-voikko-9999 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-openoffice-voikko-9999 1
diff --git a/trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-1.1-r1 b/trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-1.1-r1
new file mode 100644
index 0000000..e0f5918
--- /dev/null
+++ b/trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-1.1-r1
@@ -0,0 +1,3 @@
+MD5 3da94ad217ddc2bc33ae93595479c401 oo2-voikko-1.1.tar.gz 52682
+RMD160 e5138b4143ff451fa69a69275bc280155169553f oo2-voikko-1.1.tar.gz 52682
+SHA256 2b70c1099615c67010b0705fb729e1dce506ec624032e9cd45bbecffb679f12b oo2-voikko-1.1.tar.gz 52682
diff --git a/trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-1.2 b/trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-1.2
new file mode 100644
index 0000000..6719b6b
--- /dev/null
+++ b/trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-1.2
@@ -0,0 +1,3 @@
+MD5 c3e92e028cbb84327cbf40e84004d9e1 openoffice.org-voikko-1.2.tar.gz 53091
+RMD160 8b6043d1ef65a20da6a83afc107f42b805ebfeb5 openoffice.org-voikko-1.2.tar.gz 53091
+SHA256 0b6d97e4ad3da2bd5c7388231365dbc71e9c6a8a8c71904ccde447de0aae07c1 openoffice.org-voikko-1.2.tar.gz 53091
diff --git a/trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-9999 b/trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-9999
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/trunk/app-office/openoffice-voikko/files/digest-openoffice-voikko-9999
@@ -0,0 +1 @@
+
diff --git a/trunk/app-office/openoffice-voikko/files/ooo-2.0-home.tar.bz2 b/trunk/app-office/openoffice-voikko/files/ooo-2.0-home.tar.bz2
new file mode 100644
index 0000000..5ca0d5d
--- /dev/null
+++ b/trunk/app-office/openoffice-voikko/files/ooo-2.0-home.tar.bz2
Binary files differ
diff --git a/trunk/app-office/openoffice-voikko/files/openoffice-voikko-1.1-r1-stlport.patch b/trunk/app-office/openoffice-voikko/files/openoffice-voikko-1.1-r1-stlport.patch
new file mode 100644
index 0000000..7e09091
--- /dev/null
+++ b/trunk/app-office/openoffice-voikko/files/openoffice-voikko-1.1-r1-stlport.patch
@@ -0,0 +1,11 @@
+--- trunk/unopkg/Makefile (revision 483)
++++ trunk/unopkg/Makefile (working copy)
+@@ -142,7 +142,7 @@
+ $(LF_SLO) : $(LF_SLOFILES)
+ -$(MKDIR) $(subst /,$(PS),$(@D))
+ $(LINK) $(COMP_LINK_FLAGS) $(LINK_LIBS) -o $@ $^ \
+- $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STLPORTLIB)
++ $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB)
+ endif
+
+ $(LF_OUTDIR)/pkg/META-INF/manifest.xml :
diff --git a/trunk/app-office/openoffice-voikko/openoffice-voikko-1.1-r1.ebuild b/trunk/app-office/openoffice-voikko/openoffice-voikko-1.1-r1.ebuild
new file mode 100644
index 0000000..f41ce97
--- /dev/null
+++ b/trunk/app-office/openoffice-voikko/openoffice-voikko-1.1-r1.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils versionator
+
+DESCRIPTION="Voikko—Free Finnish spell checking and hyphenation for OpenOffice"
+HOMEPAGE="http://www.lemi.fi/voikko/"
+#SRC_URI="http://www.hunspell-fi.org/files/${P}.tar.gz"
+SRC_URI="http://www.hunspell-fi.org/files/oo2-voikko-1.1.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+ app-text/voikko
+ sys-apps/grep
+ sys-apps/sed
+ app-office/openoffice-sdk
+ !app-office/oo2-voikko"
+# ! app-office/oo2-soikko"
+RDEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+ app-text/voikko"
+
+#UNONAME=${PN/office-voikko/office.org-voikko}
+UNONAME=oo2-voikko
+
+pkg_setup() {
+ if pidof soffice.bin >/dev/null; then
+ die "Voikko can’t be installed while OpenOffice.org is running."
+ # Or use the force
+ #killall soffice.bin || killall -9 soffice.bin
+ fi
+ if [[ ! -x "${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh" ]] ; then
+ die "Couldn’t find open office SDK settings from \
+ ${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh"
+ fi
+
+ if has_version app-office/openoffice ; then
+ if ! built_with_use app-office/openoffice odk ; then
+ ewarn "OpenOffice should be built with USE flag “odk”"
+ ewarn "for building uno package from source to work"
+ fi
+ fi
+}
+
+src_compile() {
+ source ${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh
+ echo "OO_SDK_HOME=${OO_SDK_HOME}"
+ cd "${WORKDIR}/unopkg"
+ sed -i s/\\\$\(STLPORTLIB\)//g Makefile
+ # Variables needed to "export" are used in the *.mk files included
+# OO_SDK_HOME=${OO_SDK_HOME} OFFICE_HOME=${OFFICE_HOME} \
+# OO_SDK_NAME=${OO_SDK_NAME} \
+# OO_SDK_MAKE_HOME=${OO_SDK_MAKE_HOME} \
+# OO_SDK_ZIP_HOME=${OO_SDK_ZIP_HOME} \
+# OO_SDK_CPP_HOME=${OO_SDK_CPP_HOME} \
+# OO_SDK_JAVA_HOME=${OO_SDK_JAVA_HOME} \
+# OO_SDK_OUTPUT_DIR=${OO_SDK_OUTPUT_DIR} \
+# SDK_AUTO_DEPLOYMENT=${SDK_AUTO_DEPLOYMENT} \
+# LD_LIBRARY_PATH=${LD_LIBRARY_PATH} PATH=${PATH} \
+# OFFICE_PROGRAM_PATH=${OFFICE_PROGRAM_PATH} \
+# SDK_GXX_INCLUDE_PATH=${SDK_GXX_INCLUDE_PATH} \
+ emake || die "make uno package failed"
+ mkdir "${S}"
+ cp build/${UNONAME}-*uno.pkg impl/doc/Linux_*/ASENNUS.txt \
+ linux-installer "${S}"
+}
+
+src_install() {
+ cd "${S}"
+ dodoc ASENNUS.txt
+ insinto /usr/lib/openoffice/share/
+ doins linux-installer
+ dodir /usr/lib/${P}
+ insinto /usr/lib/${P}
+ doins oo2-voikko-Linux*-${PV}.uno.pkg
+}
+
+find_unopkg() {
+ if has_version '>=app-office/openoffice-bin'; then
+ if use amd64 ; then
+ UNOPKG="/usr/lib32/openoffice/program/unopkg"
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg"
+ fi
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg" #verify!
+ fi
+}
+
+pkg_postinst() {
+ # N.B.: uno packages meddle with $HOME, let's fool it
+ HOME="${S}"
+ cd "${S}"
+ # Yay, OO.o package installation requires .ooo-2.0 directory from once
+ # started instance of the program. How fun!
+ tar jxf "${FILESDIR}/ooo-2.0-home.tar.bz2"
+
+ find_unopkg
+
+ # select component
+ if use amd64; then
+ COMPONENT="${ROOT}/usr/lib/${P}/${UNONAME}-Linux_x86_64-${PV}.uno.pkg"
+ else
+ COMPONENT="${ROOT}/usr/lib/${P}/${UNONAME}-Linux_x86-${PV}.uno.pkg"
+ fi
+ PKG=$(basename "${COMPONENT}")
+
+ # Global scope in install-oo2-voikko
+ if [[ -e "${HOME}/.openoffice.org2/.lock" ]] ;
+ then
+ die "lockfile from previous failed installation attempt found in \
+ ${HOME}/.openoffice.org2/.lock, please clean and retry"
+ fi
+ # register()
+ if [[ "${COMPONENT}" == "" ]] ;
+ then
+ die "UNO component not found"
+ fi
+ einfo "Trying to register uno package ${COMPONENT}..."
+ HOME=${HOME} "${UNOPKG}" add --shared "${COMPONENT}"
+ if [[ $? == 0 ]] ;
+ then
+ einfo "Voikko package (${PKG}) registered succesfully"
+ else
+ die "Couldn't register ${PN} package (${PKG})"
+ fi
+ elog "Please note that ${PN} is very dependent on ABI compatible "
+ elog "version of OpenOffice.org to exist on system when removing voikko!"
+ elog "Before incompatible update or removal of OpenOffice you must"
+ elog "unmerge ${PN}!"
+}
+
+pkg_prerm() {
+ find_unopkg
+ #unregister()
+ UNOPKG_LIST="$(${UNOPKG} list --shared 2> /dev/null)"
+ if [[ $? != 0 ]] ; then
+ ewarn "Couldn't list existing packages..."
+ fi
+ PKG=$(echo "${UNOPKG_LIST}" | egrep -m1 "^Name: ${UNONAME}-Linux_x86(_64)?-${PV}" | sed -e "s/Name: //")
+ if [ "${PKG}" != "" ]; then
+ einfo "Removing uno package ${PKG}..."
+ if "${UNOPKG}" remove --shared ${PKG} &>/dev/null
+ then
+ einfo "${PN} package (${PKG}) unregistered succesfully"
+ else
+ die "Couldn't uninstall existing ${PN} packages"
+ fi
+ else
+ ewarn "Couldn't find existing ${PN} packages."
+ ewarn "You may need to \`unopkg remove\` them manually."
+ fi
+}
+
diff --git a/trunk/app-office/openoffice-voikko/openoffice-voikko-1.2.ebuild b/trunk/app-office/openoffice-voikko/openoffice-voikko-1.2.ebuild
new file mode 100644
index 0000000..951baac
--- /dev/null
+++ b/trunk/app-office/openoffice-voikko/openoffice-voikko-1.2.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils versionator multilib
+
+MY_P="${P/office-voikko/office.org-voikko}"
+MY_PN="${PN/office-voikko/office.org-voikko}"
+
+DESCRIPTION="Voikko—Free Finnish spell checking and hyphenation for OpenOffice"
+HOMEPAGE="http://voikko.sf.net/"
+SRC_URI="mirror://sourceforge/voikko/${MY_P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+#DEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+DEPEND=">=app-office/openoffice-2
+ app-text/voikko
+ sys-apps/grep
+ sys-apps/sed
+ app-office/openoffice-sdk
+ !app-office/oo2-voikko"
+# ! app-office/oo2-soikko"
+#RDEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+RDEPEND=">=app-office/openoffice-2
+ app-text/voikko"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ # This check originates from soikko times I think...
+ # Also, pidof belongs to sysvinit, dep?
+ if pidof soffice.bin >/dev/null; then
+ die "${PN} can’t be installed while OpenOffice.org is running."
+ # Or use the force
+ #killall soffice.bin || killall -9 soffice.bin
+ fi
+ # We need OpenOffice SDK initialisation sh script executable
+ if [[ ! -x "${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh" ]] ; then
+ die "Couldn’t find open office SDK settings from \
+ ${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh"
+ fi
+
+ # Open Office must be installed with SDK
+ if has_version app-office/openoffice ; then
+ if ! built_with_use app-office/openoffice odk ; then
+ ewarn "OpenOffice should be built with USE flag “odk”"
+ ewarn "for building uno package from source to work"
+ fi
+ fi
+}
+
+src_compile() {
+ einfo "Searching OpenOffice.org SDK environment..."
+ source ${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh
+ einfo "SDK set to: OO_SDK_HOME=${OO_SDK_HOME}"
+ emake || die "make uno package failed"
+}
+
+src_install() {
+ dodoc impl/doc/Linux_*/ASENNUS.txt
+ insinto /usr/lib/openoffice/share/
+ newins linux-installer ${PN}-installer
+ dodir /usr/lib/${P}
+ insinto /usr/lib/${P}
+ doins build/${MY_PN}-Linux*-${PV}.uno.pkg
+}
+
+find_unopkg() {
+ UNOPKG="${ROOT}/usr/$(get_libdir)/openoffice/program/unopkg"
+# if has_version '>=app-office/openoffice-bin'; then
+# if use amd64 ; then
+# UNOPKG="/usr/lib32/openoffice/program/unopkg"
+# else
+# UNOPKG="/usr/lib/openoffice/program/unopkg"
+# fi
+# else
+# UNOPKG="/usr/lib/openoffice/program/unopkg" #verify!
+# fi
+}
+
+# FIXME: installation of an unopkg is troublesome, move to src_install when
+# OO.o supports it somehow sanely
+pkg_postinst() {
+ # N.B.: uno packages meddle with $HOME, let's fool it
+ HOME="${S}"
+ cd "${S}"
+ # Yay, OO.o package installation requires .ooo-2.0 directory from once
+ # started instance of the program. How fun!
+ tar jxf "${FILESDIR}/ooo-2.0-home.tar.bz2"
+
+ find_unopkg
+
+ # select component
+ if use amd64; then
+ COMPONENT="${ROOT}/usr/lib/${P}/${MY_PN}-Linux_x86_64-${PV}.uno.pkg"
+ else
+ COMPONENT="${ROOT}/usr/lib/${P}/${MY_PN}-Linux_x86-${PV}.uno.pkg"
+ fi
+ PKG=$(basename "${COMPONENT}")
+
+ # Global scope in install-oo2-voikko
+ if [[ -e "${HOME}/.openoffice.org2/.lock" ]] ;
+ then
+ die "lockfile from previous failed installation attempt found in \
+ ${HOME}/.openoffice.org2/.lock, please clean and retry"
+ fi
+ # register()
+ if [[ "${COMPONENT}" == "" ]] ;
+ then
+ die "UNO component not found"
+ fi
+ einfo "Trying to register uno package ${COMPONENT}..."
+ HOME=${HOME} "${UNOPKG}" add --shared "${COMPONENT}"
+ if [[ $? == 0 ]] ;
+ then
+ einfo "Voikko package (${PKG}) registered succesfully"
+ else
+ die "Couldn’t register ${PN} package (${PKG})"
+ fi
+ elog "Please note that ${PN} is very dependent on ABI compatible "
+ elog "version of OpenOffice.org to exist on system when removing voikko!"
+ elog "Before incompatible update or removal of OpenOffice you must"
+ elog "unmerge ${PN}!"
+}
+
+pkg_prerm() {
+ find_unopkg
+ #unregister()
+ UNOPKG_LIST="$(${UNOPKG} list --shared 2> /dev/null)"
+ if [[ $? != 0 ]] ; then
+ ewarn "Couldn’t list existing packages..."
+ fi
+ PKG=$(echo "${UNOPKG_LIST}" | egrep -m1 "^Name: ${UNONAME}-Linux_x86(_64)?-${PV}" | sed -e "s/Name: //")
+ if [ "${PKG}" != "" ]; then
+ einfo "Removing uno package ${PKG}..."
+ if "${UNOPKG}" remove --shared ${PKG} &>/dev/null
+ then
+ einfo "${PN} package (${PKG}) unregistered succesfully"
+ else
+ die "Couldn’t uninstall existing ${PN} packages"
+ fi
+ else
+ ewarn "Couldn’t find existing ${PN} packages."
+ ewarn "You may need to \`unopkg remove\` them manually."
+ fi
+}
+
diff --git a/trunk/app-office/openoffice-voikko/openoffice-voikko-9999.ebuild b/trunk/app-office/openoffice-voikko/openoffice-voikko-9999.ebuild
new file mode 100644
index 0000000..6f59189
--- /dev/null
+++ b/trunk/app-office/openoffice-voikko/openoffice-voikko-9999.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils versionator subversion
+
+DESCRIPTION="Voikko—Free Finnish spell checking and hyphenation for OpenOffice"
+HOMEPAGE="http://www.lemi.fi/voikko/"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="-x86" # Live SVN not for public consumption
+ESVN_REPO_URI="https://svn.sourceforge.net/svnroot/voikko/trunk/openoffice.org-voikko"
+
+DEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+ app-text/voikko
+ sys-apps/grep
+ sys-apps/sed
+ app-office/openoffice-sdk
+ !app-office/oo2-voikko"
+# ! app-office/oo2-soikko"
+RDEPEND="|| ( >=app-office/openoffice-2 >=app-office/openoffice-bin-2 )
+ app-text/voikko"
+
+UNONAME=${PN/office-voikko/office.org-voikko}
+
+pkg_setup() {
+ if pidof soffice.bin >/dev/null; then
+ die "${PN} can’t be installed while OpenOffice.org is running."
+ # Or use the force
+ #killall soffice.bin || killall -9 soffice.bin
+ fi
+ if [[ ! -x "${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh" ]] ; then
+ die "Couldn’t find open office SDK settings from \
+ ${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh"
+ fi
+
+ if has_version app-office/openoffice ; then
+ if ! built_with_use app-office/openoffice odk ; then
+ ewarn "OpenOffice should be built with USE flag “odk”"
+ ewarn "for building uno package from source to work"
+ fi
+ fi
+}
+
+src_compile() {
+ source ${ROOT}/usr/lib/openoffice/program/setsdkenv_unix.sh
+ echo "OO_SDK_HOME=${OO_SDK_HOME}"
+ cd "${WORKDIR}/unopkg"
+ # Variables needed to "export" are used in the *.mk files included
+# OO_SDK_HOME=${OO_SDK_HOME} OFFICE_HOME=${OFFICE_HOME} \
+# OO_SDK_NAME=${OO_SDK_NAME} \
+# OO_SDK_MAKE_HOME=${OO_SDK_MAKE_HOME} \
+# OO_SDK_ZIP_HOME=${OO_SDK_ZIP_HOME} \
+# OO_SDK_CPP_HOME=${OO_SDK_CPP_HOME} \
+# OO_SDK_JAVA_HOME=${OO_SDK_JAVA_HOME} \
+# OO_SDK_OUTPUT_DIR=${OO_SDK_OUTPUT_DIR} \
+# SDK_AUTO_DEPLOYMENT=${SDK_AUTO_DEPLOYMENT} \
+# LD_LIBRARY_PATH=${LD_LIBRARY_PATH} PATH=${PATH} \
+# OFFICE_PROGRAM_PATH=${OFFICE_PROGRAM_PATH} \
+# SDK_GXX_INCLUDE_PATH=${SDK_GXX_INCLUDE_PATH} \
+ emake || die "make uno package failed"
+ mkdir "${S}"
+ cp build/${UNONAME}-*uno.pkg impl/doc/Linux_*/ASENNUS.txt \
+ linux-installer "${S}"
+}
+
+src_install() {
+ cd "${S}"
+ dodoc ASENNUS.txt
+ insinto /usr/lib/openoffice/share/
+ doins linux-installer
+ dodir /usr/lib/${P}
+ insinto /usr/lib/${P}
+ doins oo2-voikko-Linux*-${PV}.uno.pkg
+}
+
+find_unopkg() {
+ if has_version '>=app-office/openoffice-bin'; then
+ if use amd64 ; then
+ UNOPKG="/usr/lib32/openoffice/program/unopkg"
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg"
+ fi
+ else
+ UNOPKG="/usr/lib/openoffice/program/unopkg" #verify!
+ fi
+}
+
+pkg_postinst() {
+ # N.B.: uno packages meddle with $HOME, let's fool it
+ HOME="${S}"
+ cd "${S}"
+ # Yay, OO.o package installation requires .ooo-2.0 directory from once
+ # started instance of the program. How fun!
+ tar jxf "${FILESDIR}/ooo-bootstrap-decoy.tar.bz2"
+
+ find_unopkg
+
+ # select component
+ if use amd64; then
+ COMPONENT="${ROOT}/usr/lib/${P}/${UNONAME}-Linux_x86_64-${PV}.uno.pkg"
+ else
+ COMPONENT="${ROOT}/usr/lib/${P}/${UNONAME}-Linux_x86-${PV}.uno.pkg"
+ fi
+ PKG=$(basename "${COMPONENT}")
+
+ # Global scope in install-oo2-voikko
+ if [[ -e "${HOME}/.openoffice.org2/.lock" ]] ;
+ then
+ die "lockfile from previous failed installation attempt found in \
+ ${HOME}/.openoffice.org2/.lock, please clean and retry"
+ fi
+ # register()
+ if [[ "${COMPONENT}" == "" ]] ;
+ then
+ die "UNO component not found"
+ fi
+ einfo "Trying to register uno package ${COMPONENT}..."
+ HOME=${HOME} "${UNOPKG}" add --shared "${COMPONENT}"
+ if [[ $? == 0 ]] ;
+ then
+ einfo "Voikko package (${PKG}) registered succesfully"
+ else
+ die "Couldn't register ${PN} package (${PKG})"
+ fi
+ elog "Please note that ${PN} is very dependent on ABI compatible "
+ elog "version of OpenOffice.org to exist on system when removing voikko!"
+ elog "Before incompatible update or removal of OpenOffice you must"
+ elog "unmerge ${PN}!"
+}
+
+pkg_prerm() {
+ find_unopkg
+ #unregister()
+ UNOPKG_LIST="$(${UNOPKG} list --shared 2> /dev/null)"
+ if [[ $? != 0 ]] ; then
+ ewarn "Couldn't list existing packages..."
+ fi
+ PKG=$(echo "${UNOPKG_LIST}" | egrep -m1 "^Name: ${UNONAME}-Linux_x86(_64)?-${PV}" | sed -e "s/Name: //")
+ if [ "${PKG}" != "" ]; then
+ einfo "Removing uno package ${PKG}..."
+ if "${UNOPKG}" remove --shared ${PKG} &>/dev/null
+ then
+ einfo "${PN} package (${PKG}) unregistered succesfully"
+ else
+ die "Couldn't uninstall existing ${PN} packages"
+ fi
+ else
+ ewarn "Couldn't find existing ${PN} packages."
+ ewarn "You may need to \`unopkg remove\` them manually."
+ fi
+}
+