Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master binary grimoire by Bor Kraljič (977b2962358315a495682ab12e7733162b17c42a)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Bor Kraljič <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master binary grimoire by Bor Kraljič (977b2962358315a495682ab12e7733162b17c42a)
  • Date: Thu, 27 Jan 2011 07:35:07 -0600

GIT changes to master binary grimoire by Bor Kraljič <pyrobor AT ver.si>:

ChangeLog | 4 +++
bin-editors/libreoffice-bin-lang/BUILD | 1
bin-editors/libreoffice-bin-lang/CONFIGURE | 37
+++++++++++++++++++++++++++++
bin-editors/libreoffice-bin-lang/DEPENDS | 1
bin-editors/libreoffice-bin-lang/DETAILS | 15 +++++++++++
bin-editors/libreoffice-bin-lang/HISTORY | 2 +
bin-editors/libreoffice-bin-lang/INSTALL | 7 +++++
bin-editors/libreoffice-bin-lang/PRE_BUILD | 25 +++++++++++++++++++
bin-editors/libreoffice-bin/BUILD | 1
bin-editors/libreoffice-bin/CONFLICTS | 4 +++
bin-editors/libreoffice-bin/DEPENDS | 6 ++++
bin-editors/libreoffice-bin/DETAILS | 30 +++++++++++++++++++++++
bin-editors/libreoffice-bin/FINAL | 1
bin-editors/libreoffice-bin/HISTORY | 2 +
bin-editors/libreoffice-bin/INSTALL | 34 ++++++++++++++++++++++++++
bin-editors/libreoffice-bin/PRE_BUILD | 30 +++++++++++++++++++++++
bin-editors/libreoffice-bin/UNATTEND_SAFE | 0
17 files changed, 200 insertions(+)

New commits:
commit 977b2962358315a495682ab12e7733162b17c42a
Author: Bor Kraljič <pyrobor AT ver.si>
Commit: Bor Kraljič <pyrobor AT ver.si>

bin-editors/libreoffice-bin-lang: added, language support for
libreoffice-bin

commit ce5ac2365eb282f10d276996a97b2f377127bd8d
Author: Bor Kraljič <pyrobor AT ver.si>
Commit: Bor Kraljič <pyrobor AT ver.si>

bin-editors/libreoffice-bin: added binary version of LibreOffice

diff --git a/ChangeLog b/ChangeLog
index 2eba150..946e8e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-27 Bor Kraljič <pyrobor AT ver.si>
+ * bin-editors/libreoffice-bin: added binary version of LibreOffice
+ * bin-editors/libreoffice-bin-lang: added, language support for
libreoffice-bin
+
2010-04-26 Eric Sandall <sandalle AT sourcemage.org>
* bin-games/gametable: Added a shared whiteboard client

diff --git a/bin-editors/libreoffice-bin-lang/BUILD
b/bin-editors/libreoffice-bin-lang/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/bin-editors/libreoffice-bin-lang/BUILD
@@ -0,0 +1 @@
+true
diff --git a/bin-editors/libreoffice-bin-lang/CONFIGURE
b/bin-editors/libreoffice-bin-lang/CONFIGURE
new file mode 100755
index 0000000..499590b
--- /dev/null
+++ b/bin-editors/libreoffice-bin-lang/CONFIGURE
@@ -0,0 +1,37 @@
+source $GRIMOIRE/config_query_multi.function &&
+
+local CFG=$SPELL_CONFIG
+
+get_libolanguages() {
+ local i LANGUAGE LANGUAGES &&
+ rm -f $CFG &&
+ touch $CFG &&
+
+list_remove LIBO_LANG vi || true &&
+
+config_query_multi LIBO_LANG "please specify the desired languages" \
+fr nl sl &&
+
+# should perhaps use SOURCE_IGNORE=unversioned instead of MD5[0]="IGNORE"
+ local i=1 &&
+ for LANGUAGE in $LIBO_LANG; do
+ if [[ $i == 1 ]]; then
+ echo
SOURCE=LibO_\${VERSION}_Linux_${SMGL_COMPAT_ARCHS[1]/_/-}_langpack-rpm_$LANGUAGE.tar.gz
>> $CFG &&
+ echo SOURCE_URL[0]=\$SITE/${SMGL_COMPAT_ARCHS[1]}/\$SOURCE
>> $CFG
+ else
+ echo
SOURCE$i=LibO_\${VERSION}_Linux_${SMGL_COMPAT_ARCHS[1]/_/-}_langpack-rpm_$LANGUAGE.tar.gz
>> $CFG &&
+ echo SOURCE${i}_URL[0]=\$SITE/${SMGL_COMPAT_ARCHS[1]}/\$SOURCE$i
>> $CFG
+ fi &&
+ echo MD5[$[$i-1]]="IGNORE" >> $CFG &&
+ i=$[$i+1]
+ done
+}
+
+if [[ -z $LIBO_LANG ]] || query "Reconfigure?" n
+then
+ get_libolanguages
+else
+ message "${MESSAGE_COLOR}Using existing config${DEFAULT_COLOR}"
+fi &&
+
+. $CFG
diff --git a/bin-editors/libreoffice-bin-lang/DEPENDS
b/bin-editors/libreoffice-bin-lang/DEPENDS
new file mode 100755
index 0000000..d5cdd6a
--- /dev/null
+++ b/bin-editors/libreoffice-bin-lang/DEPENDS
@@ -0,0 +1 @@
+depends libreoffice-bin
diff --git a/bin-editors/libreoffice-bin-lang/DETAILS
b/bin-editors/libreoffice-bin-lang/DETAILS
new file mode 100755
index 0000000..a023919
--- /dev/null
+++ b/bin-editors/libreoffice-bin-lang/DETAILS
@@ -0,0 +1,15 @@
+# the remaining details of this spell are provided by CONFIGURE
+ SPELL=libreoffice-bin-lang
+ VERSION=3.3.0
+
SITE="http://download.documentfoundation.org/libreoffice/stable/$VERSION/rpm/";
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL
+source $SPELL_CONFIG
+ LIBO_ARCH="${SMGL_COMPAT_ARCHS[1]}"
+ LICENSE[0]=LGPL
+ WEB_SITE=http://www.libreoffice.org/
+ ENTERED=20081124
+ ARCHIVE="off"
+ SHORT="languagepacks for libreoffice"
+cat << EOF
+Various languagepacks for libreoffice
+EOF
diff --git a/bin-editors/libreoffice-bin-lang/HISTORY
b/bin-editors/libreoffice-bin-lang/HISTORY
new file mode 100644
index 0000000..e0ddd85
--- /dev/null
+++ b/bin-editors/libreoffice-bin-lang/HISTORY
@@ -0,0 +1,2 @@
+2011-01-27 Bor Kraljič <pyrobor AT ver.si>
+ * all: spell created
diff --git a/bin-editors/libreoffice-bin-lang/INSTALL
b/bin-editors/libreoffice-bin-lang/INSTALL
new file mode 100755
index 0000000..5029c22
--- /dev/null
+++ b/bin-editors/libreoffice-bin-lang/INSTALL
@@ -0,0 +1,7 @@
+INSTALLDIR=$INSTALL_ROOT/opt &&
+mkdir -pv $INSTALLDIR/ &&
+local SS &&
+for SS in $LIBO_LANG; do
+ cd $SOURCE_DIRECTORY/LibO*$SS*/RPMS &&
+ cp -Rv opt/* $INSTALLDIR
+done
diff --git a/bin-editors/libreoffice-bin-lang/PRE_BUILD
b/bin-editors/libreoffice-bin-lang/PRE_BUILD
new file mode 100755
index 0000000..5c9db3c
--- /dev/null
+++ b/bin-editors/libreoffice-bin-lang/PRE_BUILD
@@ -0,0 +1,25 @@
+. $SPELL_CONFIG &&
+
+mk_source_dir $SOURCE_DIRECTORY &&
+cd $SOURCE_DIRECTORY &&
+
+# unpack all source files
+local i SS &&
+i=1 &&
+for SS in $LIBO_LANG; do
+ if [[ $i == 1 ]];then
+ unpack_file
+ else
+ unpack_file $i
+ fi &&
+ # silently unpack RPMS for each language
+ cd LibO*$SS*/RPMS &&
+ for FILE in *.${LIBO_ARCH}.rpm
+ do
+ FILE="${FILE%.$LIBO_ARCH.rpm}" &&
+ rpm2tar $FILE.${LIBO_ARCH}.rpm &&
+ tar xvf $FILE.${LIBO_ARCH}.tar
+ done &&
+ cd $SOURCE_DIRECTORY &&
+ i=$[$i+1]
+done
diff --git a/bin-editors/libreoffice-bin/BUILD
b/bin-editors/libreoffice-bin/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/bin-editors/libreoffice-bin/BUILD
@@ -0,0 +1 @@
+true
diff --git a/bin-editors/libreoffice-bin/CONFLICTS
b/bin-editors/libreoffice-bin/CONFLICTS
new file mode 100755
index 0000000..85dd8b3
--- /dev/null
+++ b/bin-editors/libreoffice-bin/CONFLICTS
@@ -0,0 +1,4 @@
+conflicts openoffice &&
+conflicts openoffice-bin &&
+conflicts openoffice2-bin &&
+conflicts openoffice3-bin
diff --git a/bin-editors/libreoffice-bin/DEPENDS
b/bin-editors/libreoffice-bin/DEPENDS
new file mode 100755
index 0000000..15e7336
--- /dev/null
+++ b/bin-editors/libreoffice-bin/DEPENDS
@@ -0,0 +1,6 @@
+depends gmp &&
+depends rpm2targz &&
+depends freetype2 &&
+depends zlib &&
+depends OPENGL &&
+optional_depends JAVA '' '' 'scripting support'
diff --git a/bin-editors/libreoffice-bin/DETAILS
b/bin-editors/libreoffice-bin/DETAILS
new file mode 100755
index 0000000..bf23842
--- /dev/null
+++ b/bin-editors/libreoffice-bin/DETAILS
@@ -0,0 +1,30 @@
+ SPELL=libreoffice-bin
+ SPELLX=libreoffice
+if [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" ]]; then
+ VERSION=3.3.0
+ BUILD_VERSION=6
+ SOURCE=LibO_${VERSION}_Linux_x86-64_install-rpm_en-US.tar.gz
+
SOURCE_HASH=sha512:ecae8a02893d0cb7580ee281c456e104e702abcf9a75212b8fa65dc7a5bd4c237a6e817c40c27827ada915d628c4d5497c28fdb52e09e017150980b2c45f0fa9
+ LIBO_ARCH="x86_64"
+else
+ VERSION=3.3.0
+ BUILD_VERSION=6
+ SOURCE=LibO_${VERSION}_Linux_x86_install-rpm_en-US.tar.gz
+
SOURCE_HASH=sha512:6f9e8d017d80d31cf4c4d61354068a043f513d7395286902df2ee1660bcf7c1290086626ba07da28b566b58c002da80400a072d38cfb7af69fb8b5970f394d8c
+ LIBO_ARCH="x86"
+fi
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL
+
SOURCE_URL[0]=http://download.documentfoundation.org/${SPELLX}/stable/${VERSION}/rpm/${SMGL_COMPAT_ARCHS[1]}/$SOURCE
+ LICENSE[0]=LGPL
+ WEB_SITE=http://www.libreoffice.org/
+ ENTERED=20110127
+ ARCHIVE="off"
+ TMPFS="off"
+ SHORT="The binary version of libreoffice"
+cat << EOF
+LibreOffice is the free power-packed Open Source personal productivity suite
+for Windows, Macintosh and Linux, that gives you six feature-rich
applications
+for all your document production and data processing needs: Writer, Calc,
+Impress, Draw, Math and Base. Support and documentation is free from our
large,
+dedicated community of users, contributors and developers.
+EOF
diff --git a/bin-editors/libreoffice-bin/FINAL
b/bin-editors/libreoffice-bin/FINAL
new file mode 100755
index 0000000..d3cca52
--- /dev/null
+++ b/bin-editors/libreoffice-bin/FINAL
@@ -0,0 +1 @@
+message "You can install extra languagepacks by installing
libreoffice-bin-lang."
diff --git a/bin-editors/libreoffice-bin/HISTORY
b/bin-editors/libreoffice-bin/HISTORY
new file mode 100644
index 0000000..e0ddd85
--- /dev/null
+++ b/bin-editors/libreoffice-bin/HISTORY
@@ -0,0 +1,2 @@
+2011-01-27 Bor Kraljič <pyrobor AT ver.si>
+ * all: spell created
diff --git a/bin-editors/libreoffice-bin/INSTALL
b/bin-editors/libreoffice-bin/INSTALL
new file mode 100755
index 0000000..f5e10e9
--- /dev/null
+++ b/bin-editors/libreoffice-bin/INSTALL
@@ -0,0 +1,34 @@
+INSTALLDIR=$INSTALL_ROOT/opt &&
+mkdir -pv $INSTALLDIR/ &&
+mkdir -pv ${INSTALL_ROOT}/usr/share/icons &&
+
+#
+# Not all tarballs are created equal
+#
+#if [[ "$OO2_LOCALE" == "nb" ||
+# "$OO2_LOCALE" == "nn" ]]; then
+# cd $SOURCE_DIRECTORY/RPMS
+#elif [[ "$OO2_LOCALE" == "ru" ||
+# "$OO2_LOCALE" == "tr" ]]; then
+# cd $SOURCE_DIRECTORY/$OO2_LOCALE/RPMS
+#else
+ #
+ # Extracted root directories don't have the same names between localized
+ # versions, so use * wildcard although I don't find that very elegant
+ #
+ cd $SOURCE_DIRECTORY/LibO*/RPMS
+#fi &&
+
+cp -Rv opt/* $INSTALLDIR &&
+cp -Rv usr/bin/* $INSTALL_ROOT/usr/bin &&
+cp -Rv usr/share/mime/* $INSTALL_ROOT/usr/share/mime &&
+cp -Rv usr/share/icons/* $INSTALL_ROOT/usr/share/icons &&
+cp -Rv usr/share/applications/* $INSTALL_ROOT/usr/share/applications &&
+
+# create bin links for executables.
+for LINK in "sbase" "scalc" "sdraw" "simpress" "smath" "soffice"
"swriter" "spadmin"
+do
+ message "${MESSAGE_COLOR}Creating link for $LINK${DEFAULT_COLOR}"
&&
+ rm -f ${INSTALL_ROOT}/usr/bin/$LINK
&&
+ ln -s $TRACK_ROOT/opt/libreoffice/program/$LINK /usr/bin/$LINK
+done
diff --git a/bin-editors/libreoffice-bin/PRE_BUILD
b/bin-editors/libreoffice-bin/PRE_BUILD
new file mode 100755
index 0000000..e6bd9cc
--- /dev/null
+++ b/bin-editors/libreoffice-bin/PRE_BUILD
@@ -0,0 +1,30 @@
+mk_source_dir $SOURCE_DIRECTORY &&
+cd $SOURCE_DIRECTORY &&
+unpack_file '' &&
+
+#
+# Extracted root directories don't have the same names between localized
+# versions, so use * wildcard although I don't find that very elegant
+#
+cd LibO*/RPMS
+
+for FILE in *.${LIBO_ARCH}.rpm
+do
+ FILE="${FILE%.$LIBO_ARCH.rpm}"
+ PART=$(sed 's/LibO-\([^-]*\)-.*$/\1/;' <<< $FILE)
+ message "${MESSAGE_COLOR}Extracting $PART ${DEFAULT_COLOR}" &&
+
+ rpm2tar $FILE.${LIBO_ARCH}.rpm &&
+ tar xvf $FILE.${LIBO_ARCH}.tar
+done &&
+
+message "${MESSAGE_COLOR}Extracting icons ${DEFAULT_COLOR}" &&
+if [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" ]]; then
+
+FILENAME="libreoffice${VERSION%.*}-freedesktop-menus-${VERSION%.*}-6"
+else
+
+FILENAME="libreoffice${VERSION%.*}-freedesktop-menus-${VERSION%.*}-6"
+fi &&
+rpm2tar desktop-integration/${FILENAME}.noarch.rpm &&
+tar xvf ${FILENAME}.noarch.tar
diff --git a/bin-editors/libreoffice-bin/UNATTEND_SAFE
b/bin-editors/libreoffice-bin/UNATTEND_SAFE
new file mode 100755
index 0000000..e69de29



  • [SM-Commit] GIT changes to master binary grimoire by Bor Kraljič (977b2962358315a495682ab12e7733162b17c42a), Bor Kraljič, 01/27/2011

Archive powered by MHonArc 2.6.24.

Top of Page