Merge pull request #258 from namso-01/master

libreoffice
This commit is contained in:
Ertuğrul Erata
2015-08-17 22:51:35 +03:00
14 changed files with 3984 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
<PISI>
<Name>office.libreoffice</Name>
</PISI>
+73
View File
@@ -0,0 +1,73 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
shelltools.export("LC_ALL", "C")
pixmaps = "/usr/share/pixmaps/"
LoVersion = "%s" % get.srcVERSION()
OurWorkDir = "%s/libreoffice-%s" % (get.workDIR(), LoVersion)
def setup():
shelltools.chmod("%s/bin/unpack-sources" % OurWorkDir)
shelltools.export("LO_PREFIX", "/usr")
shelltools.export("PYTHON", "python2.7")
shelltools.cd(OurWorkDir)
shelltools.touch("autogen.lastrun")
shelltools.system('sed -e "/distro-install-file-lists/d" -i Makefile.in')
shelltools.system('sed -e "/ustrbuf/a #include <algorithm>" \
-i svl/source/misc/gridprinter.cxx')
shelltools.system('./autogen.sh \
--prefix=/usr \
--sysconfdir=/etc \
--with-vendor=PisiLinux \
--with-lang="ALL" \
--with-help \
--with-myspell-dicts \
--with-alloc=system \
--without-java \
--without-system-dicts \
--disable-gconf \
--disable-postgresql-sdbc \
--enable-release-build=yes \
--enable-python=system \
--with-system-boost \
--with-system-curl \
--with-system-cairo \
--with-system-expat \
--with-system-harfbuzz \
--with-system-icu \
--with-system-jpeg \
--with-system-lcms2 \
--with-system-libpng \
--with-system-libxml \
--with-system-mesa-headers \
--with-system-nss \
--with-system-openssl \
--with-system-poppler \
--with-system-zlib \
--disable-odk \
--enable-ext-wiki-publisher \
--enable-ext-nlpsolver \
--with-parallelism=%s' % (get.makeJOBS().replace("-j","")))
def build():
autotools.make("build-nocheck")
def install():
autotools.rawInstall("DESTDIR=%s distro-pack-install" % get.installDIR())
pisitools.remove("gid_Module*")
pisitools.insinto("/usr/share/appdata/", "sysui/desktop/appstream-appdata/libreoffice-*.xml")
for pix in ["libreoffice-base.png", "libreoffice-calc.png", "libreoffice-draw.png", "libreoffice-impress.png", "libreoffice-main.png", "libreoffice-math.png", "libreoffice-startcenter.png", "libreoffice-writer.png"]:
pisitools.dosym("/usr/share/icons/hicolor/32x32/apps/%s" % pix, "/usr/share/pixmaps/%s" %pix)
Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

@@ -0,0 +1,72 @@
From 01d128557726134b5da9e9b951e60286eac311a8 Mon Sep 17 00:00:00 2001
From: Luboš Luňák <l.lunak@collabora.com>
Date: Tue, 25 Mar 2014 12:20:16 +0100
Subject: [PATCH] prevent KDE/Qt from interfering with the session manager
I occassionally get lockups in IceProcessMessages() called from QtCore,
I'm actually not exactly sure why, as theoretically two connections
from one app shouldn't be a problem, but since LO does its own
session handling, there's no need to the KDE/Qt code to be involved,
so prevent it from connecting to the session manager altogether.
Change-Id: Iebe20d4cb5403e5fea8bd5d8c1f69b62d1c2907b
(cherry picked from commit 71f2aff7a56cef4e133abad3c2e447c76c5ee1fe)
---
diff --git a/vcl/unx/kde4/KDEXLib.cxx b/vcl/unx/kde4/KDEXLib.cxx
index 820d39a..e4900a7 100644
--- a/vcl/unx/kde4/KDEXLib.cxx
+++ b/vcl/unx/kde4/KDEXLib.cxx
@@ -166,8 +166,23 @@
KCmdLineArgs::init( m_nFakeCmdLineArgs, m_pAppCmdLineArgs, kAboutData );
+ // LO does its own session management, so prevent KDE/Qt from interfering
+ // (QApplication::disableSessionManagement(false) wouldn't quite do,
+ // since that still actually connects to the session manager, it just
+ // won't save the application data on session shutdown).
+ char* session_manager = NULL;
+ if( getenv( "SESSION_MANAGER" ) != NULL )
+ {
+ session_manager = strdup( getenv( "SESSION_MANAGER" ));
+ unsetenv( "SESSION_MANAGER" );
+ }
m_pApplication = new VCLKDEApplication();
- kapp->disableSessionManagement();
+ if( session_manager != NULL )
+ {
+ setenv( "SESSION_MANAGER", session_manager, 1 );
+ free( session_manager );
+ }
+
KApplication::setQuitOnLastWindowClosed(false);
#if KDE_HAVE_GLIB
diff --git a/vcl/unx/kde4/VCLKDEApplication.hxx b/vcl/unx/kde4/VCLKDEApplication.hxx
index 412ee34..4ce0b2c 100644
--- a/vcl/unx/kde4/VCLKDEApplication.hxx
+++ b/vcl/unx/kde4/VCLKDEApplication.hxx
@@ -21,22 +21,14 @@
#define Region QtXRegion
-#include <QSessionManager>
-
#include <kapplication.h>
#undef Region
-/* #i59042# override KApplications method for session management
- * since it will interfere badly with our own.
- */
class VCLKDEApplication : public KApplication
{
public:
VCLKDEApplication();
-
- virtual void commitData(QSessionManager&) {};
-
virtual bool x11EventFilter(XEvent* event);
};
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,73 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>libreoffice</Name>
<Summary xml:lang="tr">LibreOffice Türkçe ofis yazılımı</Summary>
<Description xml:lang="tr">LibreOffice, pek çok farklı işletim sisteminde çalışabilen açık kaynak kodlu bir yazılım projesidir. LibreOffice, kelime işlemci, hesap tablosu, sunum ve çizim programları, formül düzenleyici gibi temel masaüstü ofis uygulamalarını içerir ve alışılmış ofis programlarının özelliklerini sunar. Microsoft Office dosyaları da dahil olmak üzere bilinen ofis dosya formatlarıyla uyumlu çalışır.</Description>
</Source>
<Package>
<Name>libreoffice-common</Name>
<Summary xml:lang="en">common files for LibreOffice - a productivity suite that is compatible with other major office suites</Summary>
</Package>
<Package>
<Name>libreoffice-base</Name>
<Summary xml:lang="en">Database front-end for LibreOffice</Summary>
</Package>
<Package>
<Name>libreoffice-calc</Name>
<Summary xml:lang="en">Spreadsheet application for LibreOffice.</Summary>
</Package>
<Package>
<Name>libreoffice-draw</Name>
<Summary xml:lang="en">Drawing Application for LibreOffice.</Summary>
</Package>
<Package>
<Name>libreoffice-gnome</Name>
<Summary xml:lang="en">Plug-in for LibreOffice that enables integration into the Gnome and other gtk desktop environment.</Summary>
</Package>
<Package>
<Name>libreoffice-impress</Name>
<Summary xml:lang="en">Presentation Application for LibreOffice.</Summary>
</Package>
<Package>
<Name>libreoffice-kde</Name>
<Summary xml:lang="en">Plug-in for LibreOffice that enables integration into the KDE4 desktop environment.</Summary>
</Package>
<Package>
<Name>libreoffice-math</Name>
<Summary xml:lang="en">Equation Editor Application for LibreOffice.</Summary>
</Package>
<Package>
<Name>libreoffice-postgresql</Name>
<Summary xml:lang="en">A PostgreSQL connector for the database front-end for LibreOffice</Summary>
</Package>
<Package>
<Name>libreoffice-rhino</Name>
<Summary xml:lang="en">JavaScript support for LibreOffice</Summary>
</Package>
<Package>
<Name>libreoffice-sdk</Name>
<Summary xml:lang="en">Software Development Kit for LibreOffice.</Summary>
</Package>
<Package>
<Name>libreoffice-sdk-doc</Name>
<Summary xml:lang="en">Software Development Kit documentation for LibreOffice</Summary>
</Package>
<Package>
<Name>libreoffice-writer</Name>
<Summary xml:lang="en">Word Processor Application for LibreOffice.</Summary>
</Package>
</PISI>
@@ -0,0 +1,25 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import perlmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "%s-%s" % (get.srcNAME()[5:], get.srcVERSION())
def setup():
perlmodules.configure()
def build():
perlmodules.make()
def check():
perlmodules.make("test")
def install():
perlmodules.install()
pisitools.dodoc("Changes")
@@ -0,0 +1,72 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>perl-Archive-Zip</Name>
<Homepage>http://search.cpan.org/dist/Archive-Zip</Homepage>
<Packager>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>Artistic</License>
<IsA>library</IsA>
<IsA>app:console</IsA>
<Summary>Perl interface to ZIP archive files</Summary>
<Description>The Archive::Zip module allows a Perl program to create, manipulate, read, and write Zip archive files. This module uses the Compress::Zlib library to read and write the compressed streams inside the files.</Description>
<Archive sha1sum="7040ec3c5e82d05c0b45a5f0d36b4d0489e7e8c0" type="targz">http://www.cpan.org/authors/id/P/PH/PHRED/Archive-Zip-1.49.tar.gz</Archive>
<BuildDependencies>
<Dependency>perl</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>perl-Archive-Zip</Name>
<RuntimeDependencies>
<Dependency>perl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/perl5</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="executable">/usr/bin</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2015-08-15</Date>
<Version>1.49</Version>
<Comment>Version bump.</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-09-10</Date>
<Version>1.38</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-05-24</Date>
<Version>1.37</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-11-21</Date>
<Version>1.33</Version>
<Comment>Version Bump</Comment>
<Name>Richard de Bruin</Name>
<Email>richdb@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-09-06</Date>
<Version>1.31_04</Version>
<Comment>First release</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,9 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>perl-Archive-Zip</Name>
<Summary xml:lang="tr">ZIP arşivlerine erişim için Perl modülü</Summary>
<Description xml:lang="tr">Bu modül, Perl programlarının Zip arşiv dosyalarını oluşturmasını, düzenlemesini ve okumasını sağlar. Dosyaların içindeki akımları okumak ve yazmak için Compress:Zlib kütüphanesini kullanır.</Description>
<Description xml:lang="es">El módulo Archive::Zip permite a programas Perl la creación, manipulación, lectura y escritura de archivos comprimidos ZIP. Este módulo utiliza la librería Compress::Zlib para leer y escribir los flujos (streams) comprimidos dentro de los archivos.</Description>
</Source>
</PISI>
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def build():
shelltools.system("sed -i 's|lib64|lib|' config/Makefile.linux")
shelltools.system("sed -i '/^.PHONY: .*\.pc$/d' Makefile")
if get.buildTYPE() == "emul32":
pisitools.dosed("config/Makefile.linux", "LD = cc", "LD = gcc -m32")
autotools.make('CC="%s -m32" CXXFLAGS="%s"' % (get.CC(), get.CXXFLAGS()))
return
else:
autotools.make('CC=%s CXXFLAGS="%s"' % (get.CC(), get.CXXFLAGS()))
return
def install():
if get.buildTYPE() == "emul32":
autotools.rawInstall("GLEW_DEST=%s/usr/ \
INCDIR=%s/emul32 \
BINDIR=%s/emul32 \
LIBDIR=%s/usr/lib32" % (get.installDIR() , get.installDIR(), get.installDIR(), get.installDIR()))
pisitools.remove("/usr/lib32/libGLEW.a")
pisitools.dosed("%s/usr/lib32/pkgconfig/glew.pc" % get.installDIR(), "/usr/lib", "/usr/lib32")
return
autotools.rawInstall("GLEW_DEST=%s/usr/ \
INCDIR=%s/usr/include/GL \
BINDIR=%s/usr/bin/ \
LIBDIR=%s/usr/lib" % (get.installDIR() , get.installDIR(), get.installDIR(), get.installDIR()))
pisitools.dohtml("doc/*")
pisitools.dodoc("README.txt", "doc/*.txt")
@@ -0,0 +1,13 @@
Index: glew-1.5.8/Makefile
===================================================================
--- glew-1.5.8.orig/Makefile
+++ glew-1.5.8/Makefile
@@ -172,7 +172,7 @@ bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.
install.all: install install.mx install.bin
-install: install.include install.lib install.pkgconfig
+install: install.include install.lib install.pkgconfig install.bin
install.mx: install.include install.lib.mx install.pkgconfig.mx
+142
View File
@@ -0,0 +1,142 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>glew</Name>
<Homepage>http://glew.sourceforge.net</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<License>GLX</License>
<License>SGI-B</License>
<License>GPLv2</License>
<IsA>app:console</IsA>
<IsA>library</IsA>
<Summary>OpenGL Extension Wrangler Library</Summary>
<Description>OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file.</Description>
<Archive sha1sum="070dfb61dbb7cd0915517decf467264756469a94" type="targz">mirrors://sourceforge/glew/1.12.0/glew-1.12.0.tgz</Archive>
<BuildDependencies>
<Dependency>mesa-glu-devel</Dependency>
</BuildDependencies>
<Patches>
<!--Dont change order of patch, otherwise "add_bin_target" cannot be applied-->
<Patch level="1">add_bin_target.patch</Patch>
</Patches>
</Source>
<Package>
<Name>glew</Name>
<RuntimeDependencies>
<Dependency>mesa</Dependency>
<Dependency>libX11</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="executable">/usr/bin</Path>
</Files>
</Package>
<Package>
<Name>glew-devel</Name>
<Summary>Development files for glew</Summary>
<RuntimeDependencies>
<Dependency>mesa-glu-devel</Dependency>
<Dependency release="current">glew</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include/GL</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib32/pkgconfig</Path>
</Files>
</Package>
<Package>
<Name>glew-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for glew</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>mesa-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency>mesa-32bit</Dependency>
<Dependency>glibc-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
<Dependency release="current">glew</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<History>
<Update release="9">
<Date>2015-08-15</Date>
<Version>1.12.0</Version>
<Comment>Version bump.</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="8">
<Date>2015-01-27</Date>
<Version>1.10.0</Version>
<Comment>Release bump + Dep Fixed</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="7">
<Date>2014-05-16</Date>
<Version>1.10.0</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2014-03-07</Date>
<Version>1.10.0</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2013-11-06</Date>
<Version>1.9.0</Version>
<Comment>Fix deps.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-10-08</Date>
<Version>1.9.0</Version>
<Comment>Rebuild.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-08-25</Date>
<Version>1.9.0</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-07-30</Date>
<Version>1.9.0</Version>
<Comment>Rebuild</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-30</Date>
<Version>1.9.0</Version>
<Comment>First release</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
</History>
</PISI>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>glew</Name>
<Summary xml:lang="tr">OpenGL Extension Wrangler Library (GLEW) çok platform destekli, C/C++ genişleme kitaplığı</Summary>
<Description xml:lang="tr">OpenGL Extension Wrangler Library (GLEW) çok platform destekli, C/C++ genişleme kitaplığıdır.</Description>
</Source>
<Package>
<Name>glew-devel</Name>
<Summary xml:lang="tr">glew için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>glew-32bit</Name>
<Summary xml:lang="tr">glew için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI>