mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
libreoffice: don't download stuff during build
* --disable-dependency-tracking should speed things up a little. * Enable logging. * Initial logic for galleries and translations packages. * Use correct Haiku settings paths.
This commit is contained in:
@@ -17,11 +17,15 @@ and Open Source office suite on the market:
|
||||
HOMEPAGE="https://www.libreoffice.org/"
|
||||
COPYRIGHT="2000-2018 LibreOffice contributors"
|
||||
LICENSE="MPL v2.0"
|
||||
REVISION="13"
|
||||
REVISION="14"
|
||||
COMMIT="1c56d5fec2ddd9f68aaaf21e9dbe287db893c092"
|
||||
SOURCE_URI="https://github.com/LibreOffice/core/archive/$COMMIT.tar.gz"
|
||||
CHECKSUM_SHA256="8ead56edb57384bf6f18331566a6d52a04d97bfd9e52e139925b8f6224d84b20"
|
||||
SOURCE_DIR="core-$COMMIT"
|
||||
#COMMIT_2="54cc0de67b3c948411cef3a0405c8992d80f34f3"
|
||||
#SOURCE_URI_2="https://github.com/LibreOffice/translations/archive/$COMMIT_2.tar.gz"
|
||||
#CHECKSUM_SHA256_2="5677ff6b362240e1741559b86057aeecda88030940f0d2dcb201d518c7f945c9"
|
||||
#SOURCE_DIR_2="translations-$COMMIT_2"
|
||||
PATCHES="libreoffice-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="libreoffice.rdef.in"
|
||||
|
||||
@@ -123,6 +127,20 @@ REQUIRES="
|
||||
lib:libzmf_0.0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
#PROVIDES_galleries="
|
||||
# libreoffice${secondaryArchSuffix}_galleries = $portVersion
|
||||
# "
|
||||
#REQUIRES_galleries="
|
||||
# libreoffice$secondaryArchSuffix == $portVersion base
|
||||
#"
|
||||
#
|
||||
#PROVIDES_lang="
|
||||
# libreoffice${secondaryArchSuffix}_lang = $portVersion
|
||||
# "
|
||||
#REQUIRES_lang="
|
||||
# libreoffice$secondaryArchSuffix == $portVersion base
|
||||
#"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
glm${secondaryArchSuffix}_devel
|
||||
@@ -196,6 +214,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:bison
|
||||
cmd:find
|
||||
cmd:flex
|
||||
cmd:fontforge$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:genbrk
|
||||
cmd:genccode
|
||||
@@ -220,15 +239,23 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
# TODO: enable commented out stuff when there is a "stable" release
|
||||
# currently there are too many things in flux to waste space
|
||||
|
||||
# rename $sourceDir to something shorter, otherwise build fails with
|
||||
# execv: Argument too big /sources/core/sw/Library_sw.mk:20
|
||||
cd .. ; mv $sourceDir core
|
||||
ln -s core core-$COMMIT; cd core
|
||||
|
||||
#rm -rf translations
|
||||
#ln -s $sourceDir2 translations
|
||||
|
||||
pkgconfig_libdir="`finddir B_SYSTEM_DIRECTORY`/$relativeDevelopLibDir/pkgconfig"
|
||||
pkgconfig_datadir="`finddir B_SYSTEM_DIRECTORY`/$relativeDataDir/pkgconfig"
|
||||
export PKG_CONFIG_LIBDIR="$pkgconfig_libdir:$pkgconfig_datadir"
|
||||
|
||||
#--enable-symbols \
|
||||
#--with-lang=ALL
|
||||
runConfigure ./autogen.sh \
|
||||
--with-distro=LibreOfficeHaiku \
|
||||
--enable-kde5 \
|
||||
@@ -236,6 +263,8 @@ BUILD()
|
||||
--enable-release-build \
|
||||
--enable-readonly-installset \
|
||||
--enable-python=no \
|
||||
--enable-build-opensymbol \
|
||||
--enable-sal-log \
|
||||
\
|
||||
--disable-ccache \
|
||||
--disable-cups \
|
||||
@@ -246,7 +275,10 @@ BUILD()
|
||||
--disable-randr \
|
||||
--disable-sdremote \
|
||||
--disable-fetch-external \
|
||||
--disable-dependency-tracking \
|
||||
\
|
||||
--with-galleries=no \
|
||||
--with-fonts=no \
|
||||
--with-vendor="HaikuPorts" \
|
||||
--with-system-boost \
|
||||
--with-boost-libdir=`finddir B_SYSTEM_DIRECTORY`/$relativeDevelopLibDir \
|
||||
@@ -313,13 +345,38 @@ BUILD()
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/LibreOffice
|
||||
cp -r ../core/instdir/* $appsDir/LibreOffice
|
||||
cd $appsDir/LibreOffice/program
|
||||
mv soffice.bin LibreOffice
|
||||
appDir=$appsDir/LibreOffice
|
||||
mkdir -p $appDir
|
||||
cp -r ../core/instdir/* $appDir
|
||||
mv $appDir/program/soffice.bin $appDir/program/LibreOffice
|
||||
|
||||
# make sure we do not copy default profile
|
||||
rm -rf ../user
|
||||
rm -rf $appDir/user
|
||||
|
||||
rm -rf $appDir/share/xdg
|
||||
|
||||
# packageEntries galleries \
|
||||
# $appDir/share/gallery $appDir/presets/gallery
|
||||
#
|
||||
# langs=`ls $appDir/program/resource`
|
||||
# declare -a files
|
||||
# declare -a filesToPackage
|
||||
# for lang in $langs; do
|
||||
# files=("${files[@]}" "$appDir/program/resource/$lang")
|
||||
# files=("${files[@]}" "$appDir/share/autotext/$lang")
|
||||
# files=("${files[@]}" "$appDir/share/autocorr/$lang")
|
||||
# files=("${files[@]}" "$appDir/share/registry/res/registry_$lang.xcd")
|
||||
# files=("${files[@]}" "$appDir/share/registry/res/fcfg_langpack_$lang.xcd")
|
||||
# files=("${files[@]}" "$appDir/share/registry/Langpack_$lang.xcd")
|
||||
# files=("${files[@]}" "$appDir/readme/README_$lang")
|
||||
# for f in $files; do
|
||||
# if [ -f $f ]; then
|
||||
# filesToPackage=("${filesToPackage[@]}" "$f")
|
||||
# fi
|
||||
# done
|
||||
# done
|
||||
#
|
||||
# packageEntries lang ${filesToPackage[@]}
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.LibreOffice"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
@@ -336,6 +393,6 @@ INSTALL()
|
||||
$sourceDir/../core/libreoffice.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/../core/libreoffice.rdef \
|
||||
$appsDir/LibreOffice/program/LibreOffice
|
||||
addAppDeskbarSymlink $appsDir/LibreOffice/program/LibreOffice
|
||||
$appDir/program/LibreOffice
|
||||
addAppDeskbarSymlink $appDir/program/LibreOffice
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user