initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

88
abiword/PKGBUILD Normal file
View File

@@ -0,0 +1,88 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=abiword
pkgver=3.0.6
_debver=$pkgver
_debrel=1
pkgrel=2
pkgdesc="Efficient, featureful, free and libre word processor with collaboration"
arch=('i686' 'x86_64')
license=('GPL-2')
depends=('fribidi' 'wv' 'goffice' 'librsvg-legacy' 'enchant' 'desktop-file-utils' 'libical'
'gtk-update-icon-cache' 'loudmouth' 'link-grammar' 'gtkmathview' 'aiksaurus' 'libxslt' 'libgsf' 'libots')
makedepends=('pkgconfig' 'boost' 'gobject-introspection' 'python-pygobject' 'autoconf-archive' 'quilt')
options=('!makeflags')
source=("${pkgname}-${pkgver}.tar.xz::https://deb.debian.org/debian/pool/main/a/abiword/abiword_${pkgver}~dfsg.orig.tar.xz"
"https://deb.debian.org/debian/pool/main/a/abiword/abiword_${_debver}~dfsg-${_debrel}.debian.tar.xz"
"aiksaurus-plugin.m4"
"command-plugin.m4"
"python-override.patch"
"boost-asio.patch"
"liberation-fonts.patch")
sha512sums=('eb7769073ed50b420354bfb16bfa49a381b8d5737139917fe0466502d6b2713140dab4b6a846ce875da3e04b2ed9045f271986f71877607048bfd4de8ec374b3'
'171fb6ae9034e622e2138fbb5cd7b4919aa6d224da220735419ad5ecc1bad373e7bc024f37ccf0dcf19fe46718896d269628f253a1bbe70fda37670e5b33ee3f'
'6e28e62c837e62857d8b81a659440ca8f72f958e61c1d0cd59818f171fc7a175ded2423f07d742bdd4a6913c5571dfcec0e8d62b5a0ea8ec905cda55bf2601c3'
'0c9df93e3ee7253493d6b4d08711a7dbcc37a5fcfd40780a83d81d7d29f39fa32b28eaf16c0025edf34cef1538e594548b8b2b64ba9b0c2165a60ebb9e29dc4d'
'0d766ab53257cc9a0638bf137d1834e584ffe2f305115da4e91a6aaffa86fcd14c34b42667987250cf80f118679b5d6bc7ea92b08ea7be85007ef3498444ea1e'
'ab6e19f66433549644d1c1aae9beb93de038240a0089d38235de78dc8932ade27a2f73383448d07a8683e4c5ef85b954584b16cfbba405e61c698a991f348579'
'c89d0059a215a996e6df81284201012072fdbdc472c11e52bbc5208e35148a6d3f99b46a7e0e0a403c67c5b99540ec88a274f9e1dc82e2f87d6c1e417dc2a01c')
prepare() {
mv "AbiWord-release-$pkgver" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
# Doesn't apply
rm -v debian/patches/enchant2.patch
quilt push -av
fi
# fix python override code to work with Python 3.x
patch -Np1 -i ${srcdir}/python-override.patch
# replace nonfree fonts support to liberation fonts
patch -Np1 -i ${srcdir}/liberation-fonts.patch
# install missing m4 file
install -m644 ${srcdir}/aiksaurus-plugin.m4 plugins/aiksaurus/plugin.m4
install -m644 ${srcdir}/command-plugin.m4 plugins/command/plugin.m4
# generate m4 file for configure
find plugins -name plugin.m4 | xargs cat > plugin-configure.m4
./autogen-common.sh
libtoolize --force
autoreconf -fi
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr \
--enable-shared \
--disable-static \
--enable-clipart \
--enable-templates \
--enable-plugins="aiksaurus bmp collab docbook \
epub freetranslation garble gdict gimp goffice grammar \
hrtext iscii kword loadbindings mathview mht \
opendocument openwriter openxml opml ots paint \
passepartout pdf presentation s5 urldict wml xslfo" \
--enable-introspection
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}

View File

@@ -0,0 +1,46 @@
aiksaurus_pkgs="aiksaurus-1.0"
aiksaurus_gtk_pkgs="aiksaurusgtk3-1.0"
aiksaurus_deps="no"
if test "$enable_aiksaurus" != ""; then
PKG_CHECK_EXISTS([ $aiksaurus_pkgs ],
[
aiksaurus_deps="yes"
], [
test "$enable_aiksaurus" = "auto" && AC_MSG_WARN([aiksaurus plugin: dependencies not satisfied - $aiksaurus_pkgs])
])
fi
if test "$enable_aiksaurus" = "yes" || \
test "$aiksaurus_deps" = "yes"; then
use_builtin_aiksaurus_gtk="no"
if test "$TOOLKIT" = "gtk"; then
PKG_CHECK_EXISTS([ $aiksaurus_gtk_pkgs ],
[
aiksaurus_pkgs="$aiksaurus_pkgs $aiksaurus_gtk_pkgs"
], [use_builtin_aiksaurus_gtk="yes"])
fi
if test "$enable_aiksaurus_builtin" = "yes"; then
AC_MSG_ERROR([aiksaurus plugin: static linking not supported])
fi
PKG_CHECK_MODULES(AIKSAURUS,[ $aiksaurus_pkgs ])
test "$enable_aiksaurus" = "auto" && PLUGINS="$PLUGINS aiksaurus"
AIKSAURUS_CFLAGS="$AIKSAURUS_CFLAGS "'${PLUGIN_CFLAGS}'
AIKSAURUS_LIBS="$AIKSAURUS_LIBS "'${PLUGIN_LIBS}'
fi
AM_CONDITIONAL([WITH_BUILTIN_AIKSAURUS_GTK],[ test "x$use_builtin_aiksaurus_gtk" = "xyes" ])
AC_SUBST([AIKSAURUS_CFLAGS])
AC_SUBST([AIKSAURUS_LIBS])

164
abiword/boost-asio.patch Normal file
View File

@@ -0,0 +1,164 @@
From de5dc5fd94a5fe321791d44e88d209a4972264ba Mon Sep 17 00:00:00 2001
From: Hubert Figuiere <hub@figuiere.net>
Date: Sun, 5 Feb 2017 02:52:37 +0000
Subject: [PATCH] Bug 13839 - Detect boost::asio
Patch by Adam Majer <amajer@suse.de>
git-svn-id: svn+ssh://svn.abisource.com/svnroot/abiword/trunk@35397 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
---
.../collab/backends/service/xp/AsyncWorker.h | 7 ++++++-
.../backends/service/xp/RealmConnection.h | 6 +++++-
.../collab/backends/service/xp/RealmProtocol.h | 6 +++++-
.../collab/backends/service/xp/tls_tunnel.h | 6 +++++-
.../collab/backends/tcp/xp/IOServerHandler.h | 6 +++++-
plugins/collab/plugin.m4 | 18 +++++++++++-------
6 files changed, 37 insertions(+), 12 deletions(-)
diff --git a/plugins/collab/backends/service/xp/AsyncWorker.h b/plugins/collab/backends/service/xp/AsyncWorker.h
index ab0437c29f..2e527f9254 100644
--- a/plugins/collab/backends/service/xp/AsyncWorker.h
+++ b/plugins/collab/backends/service/xp/AsyncWorker.h
@@ -19,7 +19,12 @@
#ifndef __ASYNC_WORKER__
#define __ASYNC_WORKER__
-#include <asio.hpp>
+#if defined(HAVE_BOOST_ASIO_HPP)
+# include <boost/asio.hpp>
+#else
+# include <asio.hpp>
+#endif
+
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
diff --git a/plugins/collab/backends/service/xp/RealmConnection.h b/plugins/collab/backends/service/xp/RealmConnection.h
index 7dc715548c..214b12316b 100644
--- a/plugins/collab/backends/service/xp/RealmConnection.h
+++ b/plugins/collab/backends/service/xp/RealmConnection.h
@@ -21,7 +21,11 @@
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
-#include <asio.hpp>
+#if defined(HAVE_BOOST_ASIO_HPP)
+# include <boost/asio.hpp>
+#else
+# include <asio.hpp>
+#endif
#include <vector>
#include <string>
#include "ut_types.h"
diff --git a/plugins/collab/backends/service/xp/RealmProtocol.h b/plugins/collab/backends/service/xp/RealmProtocol.h
index 772ad891dd..03fa536dea 100644
--- a/plugins/collab/backends/service/xp/RealmProtocol.h
+++ b/plugins/collab/backends/service/xp/RealmProtocol.h
@@ -9,7 +9,11 @@
#include <stdint.h>
#endif
#include <boost/shared_ptr.hpp>
-#include <asio.hpp>
+#if defined(HAVE_BOOST_ASIO_HPP)
+# include <boost/asio.hpp>
+#else
+# include <asio.hpp>
+#endif
namespace realm {
diff --git a/plugins/collab/backends/service/xp/tls_tunnel.h b/plugins/collab/backends/service/xp/tls_tunnel.h
index ea07151c70..a78f7815c3 100644
--- a/plugins/collab/backends/service/xp/tls_tunnel.h
+++ b/plugins/collab/backends/service/xp/tls_tunnel.h
@@ -33,7 +33,11 @@
#include <boost/function.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/enable_shared_from_this.hpp>
-#include <asio.hpp>
+#if defined(HAVE_BOOST_ASIO_HPP)
+# include <boost/asio.hpp>
+#else
+# include <asio.hpp>
+#endif
#include <string>
#include <vector>
#ifdef _MSC_VER
diff --git a/plugins/collab/backends/tcp/xp/IOServerHandler.h b/plugins/collab/backends/tcp/xp/IOServerHandler.h
index 7a561f4a1c..8a2b931319 100644
--- a/plugins/collab/backends/tcp/xp/IOServerHandler.h
+++ b/plugins/collab/backends/tcp/xp/IOServerHandler.h
@@ -23,7 +23,11 @@
#include <boost/bind.hpp>
#include <boost/function.hpp>
-#include <asio.hpp>
+#if defined(HAVE_BOOST_ASIO_HPP)
+# include <boost/asio.hpp>
+#else
+# include <asio.hpp>
+#endif
#include <sync/xp/Synchronizer.h>
#include "Session.h"
diff --git a/plugins/collab/plugin.m4 b/plugins/collab/plugin.m4
index 98028b99ff..7cfe3a1388 100644
--- a/plugins/collab/plugin.m4
+++ b/plugins/collab/plugin.m4
@@ -70,20 +70,22 @@ AC_ARG_ENABLE([collab-backend-tcp],
enable_collab_backend_tcp=$enableval
if test "$enable_collab_backend_tcp" != "no"; then
AC_LANG_PUSH(C++)
- AC_CHECK_HEADERS([asio.hpp], [],
+ AC_CHECK_HEADERS([asio.hpp], [],
+ [AC_CHECK_HEADERS([boost/asio.hpp], [AC_DEFINE([HAVE_BOOST_ASIO_HPP])],
[
AC_MSG_ERROR([collab plugin: asio is required for the collab plugin TCP backend, see http://think-async.com/])
- ])
+ ])])
AC_LANG_POP
collab_deps="yes"
fi
], [
AC_LANG_PUSH(C++)
- AC_CHECK_HEADERS([asio.hpp],
+ AC_CHECK_HEADERS([asio.hpp],
+ [AC_CHECK_HEADERS([boost/asio.hpp], [AC_DEFINE([HAVE_BOOST_ASIO_HPP])],
[
enable_collab_backend_tcp="yes"
collab_deps="yes"
- ])
+ ])])
AC_LANG_POP
])
AC_MSG_CHECKING([for collab tcp backend])
@@ -112,10 +114,11 @@ AC_ARG_ENABLE([collab-backend-service],
enable_collab_backend_service=$enableval
if test "$enable_collab_backend_service" != "no"; then
AC_LANG_PUSH(C++)
- AC_CHECK_HEADERS([asio.hpp], [],
+ AC_CHECK_HEADERS([asio.hpp], [],
+ [AC_CHECK_HEADERS([boost/asio.hpp], [AC_DEFINE([HAVE_BOOST_ASIO_HPP])],
[
AC_MSG_ERROR([collab plugin: asio is required for the the abicollab.net backend, see http://think-async.com/])
- ])
+ ])])
AC_LANG_POP
PKG_CHECK_EXISTS([ $collab_service_req ], [], [
AC_MSG_ERROR([collab plugin: missing dependencies])
@@ -125,13 +128,14 @@ AC_ARG_ENABLE([collab-backend-service],
], [
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS([asio.hpp],
+ [AC_CHECK_HEADERS([boost/asio.hpp], [AC_DEFINE([HAVE_BOOST_ASIO_HPP])],
[
PKG_CHECK_EXISTS([ $collab_service_req ], [
enable_collab_backend_service="yes"
collab_deps="yes"
], [
enable_collab_backend_service="no"
- ])
+ ])])
], [
enable_collab_backend_service="no"
])

47
abiword/command-plugin.m4 Normal file
View File

@@ -0,0 +1,47 @@
command_deps="no"
if test "$enable_command" != ""; then
if test "$TOOLKIT" != "gtk"; then
command_deps="no"
AC_MSG_WARN([command plugin: only supported on UNIX/gtk platforms])
else
# stolen from the original plugin.m4 in abiword-plugins
AC_CHECK_HEADER(readline/readline.h,[
AC_CHECK_HEADER(readline/history.h,[
AC_CHECK_LIB(readline,readline,[
command_deps="yes"
],[ AC_CHECK_LIB(readline,rl_initialize,[
command_deps="yes"
],,)
],)
])
])
fi
fi
if test "$enable_command" = "yes" || \
test "$command_deps" = "yes"; then
if test "$enable_command_builtin" = "yes"; then
AC_MSG_ERROR([command plugin: static linking not supported])
fi
AC_MSG_CHECKING([command plugin: for readline and friends])
if test "$command_deps" != "yes"; then
AC_MSG_ERROR([no])
else
AC_MSG_RESULT([yes])
COMMAND_LIBS="-lreadline -lhistory $COMMAND_LIBS"
fi
test "$enable_command" = "auto" && PLUGINS="$PLUGINS command"
COMMAND_CFLAGS="$COMMAND_CFLAGS "'${PLUGIN_CFLAGS}'
COMMAND_LIBS="$COMMAND_LIBS "'${PLUGIN_LIBS}'
fi
AC_SUBST([COMMAND_CFLAGS])
AC_SUBST([COMMAND_LIBS])

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,31 @@
From 51787d61993cb3981c18e4cf174fc229734fba1e Mon Sep 17 00:00:00 2001
From: Jean Brefort <jean.brefort@normalesup.org>
Date: Sun, 6 Dec 2015 11:04:10 +0000
Subject: [PATCH] Update python override code. Fixes #13745 and #13746, thanks
to David Gutteridge.
git-svn-id: svn+ssh://svn.abisource.com/svnroot/abiword/trunk@35171 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
---
src/gi-overrides/Abi.py | 2 ++
src/gi-overrides/Makefile.am | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gi-overrides/Abi.py b/src/gi-overrides/Abi.py
index 666fd61..e3b61b9 100644
--- a/src/gi-overrides/Abi.py
+++ b/src/gi-overrides/Abi.py
@@ -1,4 +1,6 @@
import sys
+import gi
+gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from ..overrides import override
from ..importer import modules
diff --git a/src/gi-overrides/Makefile.am b/src/gi-overrides/Makefile.am
index 7fe3913..60f306d 100644
--- a/src/gi-overrides/Makefile.am
+++ b/src/gi-overrides/Makefile.am
@@ -1,2 +1,2 @@
-overridesdir = `python -c "import gi; print gi._overridesdir"`
+overridesdir = `python -c "import gi; print(gi._overridesdir)"`
overrides_PYTHON = Abi.py