abiword: enable gobject-introspection
This commit is contained in:
parent
6517d978cd
commit
9bc34e1fd6
3 changed files with 52 additions and 6 deletions
srcpkgs/abiword
29
srcpkgs/abiword/patches/libxml-2.12.patch
Normal file
29
srcpkgs/abiword/patches/libxml-2.12.patch
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
From 2a06be6a10a0718f8a3d8e00c317f5042c99a467 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Tojnar <jtojnar@gmail.com>
|
||||||
|
Date: Mon, 11 Dec 2023 01:55:53 +0100
|
||||||
|
Subject: [PATCH] Fix build with libxml2 2.12
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
libxml 2.12.0 restructured headers so that xmlFree is no longer in the scope.
|
||||||
|
Let’s add the correct include.
|
||||||
|
---
|
||||||
|
src/af/util/xp/ut_stringbuf.cpp | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/af/util/xp/ut_stringbuf.cpp b/src/af/util/xp/ut_stringbuf.cpp
|
||||||
|
index f1e8d9078..88488ad67 100644
|
||||||
|
--- a/src/af/util/xp/ut_stringbuf.cpp
|
||||||
|
+++ b/src/af/util/xp/ut_stringbuf.cpp
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include <libxml/uri.h>
|
||||||
|
+#include <libxml/xmlmemory.h>
|
||||||
|
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/src/af/xap/xp/xap_Dialog.cpp 2021-07-03 17:46:07.000000000 +0200
|
--- a/src/af/xap/xp/xap_Dialog.cpp
|
||||||
+++ - 2023-02-23 13:21:03.557255506 +0100
|
+++ b/src/af/xap/xp/xap_Dialog.cpp
|
||||||
@@ -267,7 +267,7 @@
|
@@ -267,7 +267,7 @@ XAP_Dialog_Modeless::BuildWindowName(cha
|
||||||
// This function constructs and returns the window name of a modeless dialog by
|
// This function constructs and returns the window name of a modeless dialog by
|
||||||
// concatenating the active frame with the dialog name
|
// concatenating the active frame with the dialog name
|
||||||
|
|
||||||
|
@ -9,3 +9,15 @@
|
||||||
UT_UTF8String wn = UT_UTF8String(pDialogName);
|
UT_UTF8String wn = UT_UTF8String(pDialogName);
|
||||||
|
|
||||||
XAP_Frame* pFrame = getActiveFrame();
|
XAP_Frame* pFrame = getActiveFrame();
|
||||||
|
--- a/src/af/util/xp/t/ut_locale.t.cpp
|
||||||
|
+++ b/src/af/util/xp/t/ut_locale.t.cpp
|
||||||
|
@@ -29,6 +29,9 @@
|
||||||
|
TFTEST_MAIN("UT_LocaleTransactor")
|
||||||
|
{
|
||||||
|
char msg[128];
|
||||||
|
+#ifndef __GLIBC__
|
||||||
|
+ return;
|
||||||
|
+#endif
|
||||||
|
if (setlocale(LC_ALL, "fr_FR") == NULL)
|
||||||
|
{
|
||||||
|
printf("Test skipped, fr_FR locale is unknown on this system\n");
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
# Template file for 'abiword'
|
# Template file for 'abiword'
|
||||||
pkgname=abiword
|
pkgname=abiword
|
||||||
version=3.0.5
|
version=3.0.5
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-plugins --enable-clipart --enable-templates"
|
build_helper=gir
|
||||||
hostmakedepends="automake libtool flex pkg-config"
|
configure_args="--enable-plugins --enable-clipart --enable-templates
|
||||||
|
--enable-introspection"
|
||||||
|
hostmakedepends="automake libtool flex pkg-config gobject-introspection"
|
||||||
makedepends="libjpeg-turbo-devel libpng-devel fribidi-devel libgsf-devel
|
makedepends="libjpeg-turbo-devel libpng-devel fribidi-devel libgsf-devel
|
||||||
enchant2-devel librsvg-devel wv-devel boost-devel libxslt-devel
|
enchant2-devel librsvg-devel wv-devel boost-devel libxslt-devel
|
||||||
libwmf-devel $(vopt_if champlain libchamplain-devel) redland-devel libical-devel
|
libwmf-devel $(vopt_if champlain libchamplain-devel) redland-devel libical-devel
|
||||||
|
@ -16,6 +18,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="http://www.abisource.com/"
|
homepage="http://www.abisource.com/"
|
||||||
distfiles="${homepage}/downloads/${pkgname}/${version}/source/${pkgname}-${version}.tar.gz"
|
distfiles="${homepage}/downloads/${pkgname}/${version}/source/${pkgname}-${version}.tar.gz"
|
||||||
|
distfiles="https://sources.voidlinux.org/abiword-${version}/abiword-${version}.tar.gz"
|
||||||
checksum=1257247e9970508d6d1456d3e330cd1909c4b42b25e0f0a1bc32526d6f3a21b4
|
checksum=1257247e9970508d6d1456d3e330cd1909c4b42b25e0f0a1bc32526d6f3a21b4
|
||||||
|
|
||||||
build_options="goffice champlain"
|
build_options="goffice champlain"
|
||||||
|
@ -27,6 +30,7 @@ libabiword_package() {
|
||||||
short_desc+=" - Runtime library"
|
short_desc+=" - Runtime library"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/*.so*"
|
vmove "usr/lib/*.so*"
|
||||||
|
vmove "usr/lib/girepository*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
abiword-devel_package() {
|
abiword-devel_package() {
|
||||||
|
@ -36,5 +40,6 @@ abiword-devel_package() {
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove "usr/share/gir*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue