1
0
forked from ports/contrib

libreoffice: initial commit, version 6.3.0.4

This commit is contained in:
Tim Biermann 2019-08-11 11:14:08 +02:00
parent 588b95e1d8
commit 4f492156bb
Signed by: tb
GPG Key ID: 42F8B4E30B673606
5 changed files with 9778 additions and 0 deletions

9636
libreoffice/.footprint Normal file

File diff suppressed because it is too large Load Diff

9
libreoffice/.signature Normal file
View File

@ -0,0 +1,9 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3xQ13XimjQRx7otgz7cDnly0gAHv6CFeqmXFMfHMUZLwrmMxWmRLAV6KvgsvsvuKm2n0zcQlaHi6Kwe/g8iH2QM=
SHA256 (Pkgfile) = 78c28826710a93586c8efa0f3855d627b3a5b876fe103f2317af47c96ea6ae4d
SHA256 (.footprint) = 2e6bbd97b7bef2d1d5254ce95990280f95ad03849b3ea754fbab32ad9ff4a666
SHA256 (libreoffice-6.3.0.4.tar.xz) = 87830107b17fbf6c3831c8e6bf738e7d21fa7826debb88e4948d80caf2a7aed7
SHA256 (libreoffice-dictionaries-6.3.0.4.tar.xz) = 9f80f6339fc546b9b12a511d77480fc7c04d848fa31b8cdfd0e4004091818a7b
SHA256 (185d60944ea767075d27247c3162b3bc-unowinreg.dll) = eafde646a7dbe46d20c291685b0beac2382174d78d66ee990e229a1bf6e6cec6
SHA256 (0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz) = 983941d31ee8d366085cadf28db75eb1f5cb03ba1e5853b98f12f7f51c63b776
SHA256 (makefile.in.patch) = 50d2f5bac605f6fdbcb3234113949971b998875e832e1ae09b2498afe27f0f10

96
libreoffice/Pkgfile Normal file
View File

@ -0,0 +1,96 @@
# Description: LibreOffice is a powerful office suite
# URL: https://www.libreoffice.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: clucene coin-or-mp fakeroot fontforge gpgme graphite2 gtk3 harfbuzz-icu hyphen libabw libcdr libcmis libe-book libepubgen libetonyek libexttextcat libfreehand libmspub libmwaw libmythes libnumbertext libodfgen liborcus libpagemaker libqxp libstaroffice libtommath libvisio libwpg libwps libzmf lpsolve mysql neon paper python3-lxml redland sane unzip xmlsec zip
# Optional: cups gst-plugins-base kio qt5 valgrind vlc
name=libreoffice
version=6.3.0.4
release=1
source=(
https://downloadarchive.documentfoundation.org/libreoffice/old/$version/src/$name-$version.tar.xz
https://downloadarchive.documentfoundation.org/libreoffice/old/$version/src/$name-dictionaries-$version.tar.xz
https://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll
https://dev-www.libreoffice.org/src/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
makefile.in.patch
)
unpack_source() {
for file in ${source[@]}; do
case ${file##*/} in
libreoffice-*.tar.xz)
bsdtar -p -o -C $SRC -xf $(get_filename $file) ;;
185d60944ea767075d27247c3162b3bc-unowinreg.dll)
mkdir $SRC/tarballs || true
cp $(get_filename $file) $SRC/tarballs ;;
0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz)
mkdir $SRC/tarballs || true
cp $(get_filename $file) $SRC/tarballs ;;
*)
cp $(get_filename $file) $SRC ;;
esac
done
}
build() {
cd $name-$version
patch -Np0 -i ../makefile.in.patch
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# determine configure options based on installed packages on the system
[[ -e /usr/lib/cups ]] && PKGMK_LIBREOFFICE+=" --enable-cups" || PKGMK_LIBREOFFICE+=" --disable-cups"
[[ -e /usr/lib/pkgconfig/gstreamer-plugins-base-1.0.pc ]] && PKGMK_LIBREOFFICE+=" --enable-gstreamer-1-0" || PKGMK_LIBREOFFICE+=" --disable-gstreamer-1-0"
[[ -e /usr/lib/pkgconfig/Qt5Core.pc ]] && PKGMK_LIBREOFFICE+=" --enable-qt5" || PKGMK_LIBREOFFICE+=" --disable-qt5"
[[ -e /usr/share/kf5/ ]] && PKGMK_LIBREOFFICE+=" --enable-kde5 --enable-gtk3-kde5"
[[ -e /usr/share/vlc ]] && PKGMK_LIBREOFFICE+=" --enable-vlc" || PKGMK_LIBREOFFICE+=" --disable-vlc" # experimental vlc av backend
[[ -e /usr/lib/pkgconfig/valgrind.pc ]] && PKGMK_LIBREOFFICE+=" --with-valgrind"
local build_date=$(date +%Y%m%d)
./autogen.sh $PKGMK_LIBREOFFICE \
--with-parallelism=${JOBS-1} \
--prefix=/usr \
--with-external-tar="$SRC/tarballs" \
--enable-{build-opensymbol,dbus,firebird-sdbc=no,gtk3,introspection=yes,release-build,odk,openssl,python=system} \
--with-{lang="",package-format=archive,myspell-dicts,parallelism} \
--with-build-version="$name-$version" \
--with-extra-buildid="$(crux | awk '{ print $1 " " $3 }') ${build_date}" \
--with-package-version="$version" \
--with-system-{headers,libs} \
--with-external-dict-dir=/usr/share/hunspell \
--with-external-hyph-dir=/usr/share/hypen \
--with-external-thes-dir=/usr/share/mythes \
--without-{doxygen,fonts,gssapi,help,helppack-integration,java,system-firebird} \
--disable-{avahi,build-unowinreg,dconf,dependency-tracking,extension-update,fetch-external} \
--disable-{firebird-sdbc,gstreamer-0-10,gtk,postgresql-sdbc,report-builder,sdremote-bluetooth,werror}
touch {sources.ver,src.downloaded}
echo "lo_sources_ver=${version}" > sources.ver
make build-nocheck
pushd workdir/installation/LibreOffice/archive/install/en-US
tar xf *.tar.gz
popd
make DESTDIR=$PKG distro-pack-install
install -dm755 $PKG/usr/etc/libreoffice
install -m644 $PKG/usr/lib/libreoffice/program/{bootstraprc,sofficerc} \
$PKG/usr/etc/libreoffice/
install -m644 $PKG/usr/lib/libreoffice/share/psprint/psprint.conf \
$PKG/usr/etc/libreoffice/
# install dummy links to make them found by lo
cd $PKG/usr/lib/libreoffice/program/
ln -vsrf $PKG/usr/etc/libreoffice/{bootstraprc,sofficerc} .
# cleanup
rm -r $PKG/usr/share/libreoffice/sdk
rm -r $PKG/usr/lib/libreoffice/sdk
rm -r $PKG/usr/share/doc
find $PKG -iname "*readme*" -exec rm -fr '{}' \+
}

2
libreoffice/README Normal file
View File

@ -0,0 +1,2 @@
If you have harfbuzz and harfbuzz-icu installed (`prt-get isinst harfbuzz harfbuzz-icu`) already, you need to rebuild it with graphite2 support
* prt-get depinst graphite2 && prt-get update -fr harfbuzz harfbuzz-icu

View File

@ -0,0 +1,35 @@
--- Makefile.in 2018-12-20 01:19:41.000000000 +0100
+++ Makefile.in.new 2019-01-18 22:09:35.713586518 +0100
@@ -9,7 +9,7 @@
gb_Top_MODULE_CHECK_TARGETS := slowcheck unitcheck subsequentcheck perfcheck uicheck screenshot
-.PHONY : all check-if-root bootstrap gbuild build build-non-l10n-only build-l10n-only check clean clean-build clean-host test-install distclean distro-pack-install docs download etags fetch get-submodules id install install-gdb-printers install-strip tags debugrun help showmodules translations packageinfo internal.clean $(gb_Top_MODULE_CHECK_TARGETS)
+.PHONY : all bootstrap gbuild build build-non-l10n-only build-l10n-only check clean clean-build clean-host test-install distclean distro-pack-install docs download etags fetch get-submodules id install install-gdb-printers install-strip tags debugrun help showmodules translations packageinfo internal.clean $(gb_Top_MODULE_CHECK_TARGETS)
MAKECMDGOALS?=all
build_goal:=$(if $(filter build check,$(MAKECMDGOALS)),all)\
@@ -59,14 +59,6 @@
all: build
-check-if-root:
- @if test ! `uname` = 'Haiku' -a `id -u` = 0 && ! grep -q 'lxc\|docker' /proc/self/cgroup; then \
- echo; \
- echo 'Building LibreOffice as root is a very bad idea, use a regular user.'; \
- echo; \
- exit 1; \
- fi
-
gb_Side ?= host
include $(BUILDDIR)/config_$(gb_Side).mk
@@ -272,7 +264,7 @@
#
# Bootstrap
#
-bootstrap: check-if-root compilerplugins
+bootstrap: compilerplugins
#
# Build