summaryrefslogtreecommitdiffstats
path: root/meta-gnome
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-11-21 14:15:59 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2011-11-21 14:15:59 +0100
commitdea4a2dce2d247dcc9f6233e195b8497039f8547 (patch)
tree763db055c198558c0c3e068d4ce18d669c42e50a /meta-gnome
parent71b8c3b946b84ce4217d9c9dbec44611d9e1c1a3 (diff)
downloadmeta-openembedded-dea4a2dce2d247dcc9f6233e195b8497039f8547.tar.gz
abiword: update to 2.8.6
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-gnome')
-rw-r--r--meta-gnome/recipes-gnome/abiword/abiword-2.5/fix.double.install.patch34
-rw-r--r--meta-gnome/recipes-gnome/abiword/abiword-embedded_2.5.2.bb12
-rw-r--r--meta-gnome/recipes-gnome/abiword/abiword/abiword-cxx-for-ld-fix.patch12
-rwxr-xr-xmeta-gnome/recipes-gnome/abiword/abiword/autogen-common.sh28
-rwxr-xr-xmeta-gnome/recipes-gnome/abiword/abiword/cdump.pl32
-rw-r--r--meta-gnome/recipes-gnome/abiword/abiword/nodolt.patch12
-rw-r--r--meta-gnome/recipes-gnome/abiword/abiword_2.5.2.bb5
-rw-r--r--meta-gnome/recipes-gnome/abiword/abiword_2.8.6.bb59
8 files changed, 143 insertions, 51 deletions
diff --git a/meta-gnome/recipes-gnome/abiword/abiword-2.5/fix.double.install.patch b/meta-gnome/recipes-gnome/abiword/abiword-2.5/fix.double.install.patch
deleted file mode 100644
index 67db139b8..000000000
--- a/meta-gnome/recipes-gnome/abiword/abiword-2.5/fix.double.install.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1Upstream-Status: Pending
2
3Without this patch it fails with:
4| make[6]: Entering directory `/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/abiword-2.5.2-r2/abiword-2.5.2/src/wp/ap/unix'
5| make[6]: Nothing to be done for `install-exec-am'.
6| test -z "/usr/share/abiword-2.5/glade" || /bin/mkdir -p "/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/abiword-2.5.2-r2/image/usr/share/abiword-2.5/glade"
7| /usr/bin/install -c -m 644 ap_UnixDialog_Break.glade ap_UnixDialog_Field.glade ap_UnixDialog_FormatTOC.glade ap_UnixDialog_FormatFootnotes.glade ap_UnixDialog_FormatTable.glade ap_UnixDialog_FormatFrame.gla
8de ap_UnixDialog_Goto.glade ap_UnixDialog_InsertTable.glade ap_UnixDialog_Insert_DateTime.glade ap_UnixDialog_MailMerge.glade ap_UnixDialog_MetaData.glade ap_UnixDialog_Options.glade ap_UnixDialog_HdrFtr.glade
9 ap_UnixDialog_Options_ColorSel.glade ap_UnixDialog_PageNumbers.glade ap_UnixDialog_PageSetup.glade ap_UnixDialog_Replace.glade ap_UnixDialog_New.glade ap_UnixDialog_Styles.glade ap_UnixDialog_Stylist.glade ap
10 _UnixDialog_Stylist_modal.glade ap_UnixDialog_Tab.glade ap_UnixDialog_WordCount.glade ap_UnixDialog_Latex.glade ap_UnixDialog_Options.glade ap_UnixDialog_HdrFtr.glade '/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-
11 linux-gnueabi/abiword-2.5.2-r2/image/usr/share/abiword-2.5/glade'
12 | /usr/bin/install: will not overwrite just-created `/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/abiword-2.5.2-r2/image/usr/share/abiword-2.5/glade/ap_UnixDialog_Options.glade' with `ap_UnixDialog_O
13 ptions.glade'
14 | /usr/bin/install: will not overwrite just-created `/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/abiword-2.5.2-r2/image/usr/share/abiword-2.5/glade/ap_UnixDialog_HdrFtr.glade' with `ap_UnixDialog_Hd
15 rFtr.glade'
16 | make[6]: *** [install-gladeDATA] Error 1
17 | make[6]: Leaving directory `/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/abiword-2.5.2-r2/abiword-2.5.2/src/wp/ap/unix'
18
19Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
20
21diff -uNr abiword-2.5.2.orig/src/wp/ap/unix/GNUmakefile.am abiword-2.5.2/src/wp/ap/unix/GNUmakefile.am
22--- abiword-2.5.2.orig/src/wp/ap/unix/GNUmakefile.am 2007-06-04 17:17:01.000000000 +0200
23+++ abiword-2.5.2/src/wp/ap/unix/GNUmakefile.am 2011-10-18 00:48:05.247378444 +0200
24@@ -69,9 +69,7 @@
25 ap_UnixDialog_Stylist_modal.glade \
26 ap_UnixDialog_Tab.glade \
27 ap_UnixDialog_WordCount.glade \
28- ap_UnixDialog_Latex.glade \
29- ap_UnixDialog_Options.glade \
30- ap_UnixDialog_HdrFtr.glade
31+ ap_UnixDialog_Latex.glade
32
33 if ENABLE_SPELL
34 spellsrc= ap_UnixDialog_Spell.cpp
diff --git a/meta-gnome/recipes-gnome/abiword/abiword-embedded_2.5.2.bb b/meta-gnome/recipes-gnome/abiword/abiword-embedded_2.5.2.bb
deleted file mode 100644
index edb55dd7a..000000000
--- a/meta-gnome/recipes-gnome/abiword/abiword-embedded_2.5.2.bb
+++ /dev/null
@@ -1,12 +0,0 @@
1require abiword-2.5.inc
2FILESEXTRAPATHS_prepend := "${THISDIR}/abiword-${SHRT_VER}:"
3PR = "r2"
4
5EXTRA_OECONF += "--enable-embedded"
6
7S = "${WORKDIR}/abiword-${PV}"
8
9RCONFLICTS = "abiword"
10RPROVIDES += "abiword"
11
12
diff --git a/meta-gnome/recipes-gnome/abiword/abiword/abiword-cxx-for-ld-fix.patch b/meta-gnome/recipes-gnome/abiword/abiword/abiword-cxx-for-ld-fix.patch
new file mode 100644
index 000000000..e49b1e92e
--- /dev/null
+++ b/meta-gnome/recipes-gnome/abiword/abiword/abiword-cxx-for-ld-fix.patch
@@ -0,0 +1,12 @@
1libstc++ isn't in staging anymore, so we must use g++ for linking
2
3--- /tmp/configure.ac 2008-03-31 11:39:13.130631737 +0200
4+++ abiword-plugins-2.6.0/configure.ac 2008-03-31 11:39:22.754586487 +0200
5@@ -14,6 +14,7 @@
6 AC_PROG_INSTALL
7 AC_PROG_LN_S
8 AC_PROG_MAKE_SET
9+AC_LANG_CPLUSPLUS
10
11 AM_INIT_AUTOMAKE
12
diff --git a/meta-gnome/recipes-gnome/abiword/abiword/autogen-common.sh b/meta-gnome/recipes-gnome/abiword/abiword/autogen-common.sh
new file mode 100755
index 000000000..c1f10e1a4
--- /dev/null
+++ b/meta-gnome/recipes-gnome/abiword/abiword/autogen-common.sh
@@ -0,0 +1,28 @@
1#!/bin/sh
2
3# find plugins Makefile templates
4find plugins -name Makefile.am | sed 's|.am$||g' > plugin-makefiles.m4
5
6# create plugin list
7(cd plugins && find . -maxdepth 1 -type d | grep -v '^\.$' | grep -v '\./\.' | sed 's|\./||g' | xargs echo) > plugin-list.m4
8
9# create conditionals for builtin plugins
10(for plugin in `cat plugin-list.m4`; do
11 u=`echo $plugin | tr '[:lower:]' '[:upper:]'`
12 echo 'AM_CONDITIONAL(['$u'_BUILTIN], test "$enable_'$plugin'_builtin" == "yes")'
13done) > plugin-builtin.m4
14
15# create plugin configuration
16find plugins -name plugin.m4 | xargs cat > plugin-configure.m4
17#to debug if plugin configuration code misbehaves (instead of the above line):
18#rm plugin-configure.m4
19#for f in $(find plugins -name plugin.m4); do
20# echo "AC_MSG_RESULT([plugin: $f])" >> plugin-configure.m4
21# cat $f >> plugin-configure.m4
22#done
23
24# find extra m4 files provided by plugins and symlink them
25for f in ` find ./plugins -name '*.m4' | grep -v 'plugin\.m4'`; do
26 ln -sf $f
27done
28
diff --git a/meta-gnome/recipes-gnome/abiword/abiword/cdump.pl b/meta-gnome/recipes-gnome/abiword/abiword/cdump.pl
new file mode 100755
index 000000000..76f9c8841
--- /dev/null
+++ b/meta-gnome/recipes-gnome/abiword/abiword/cdump.pl
@@ -0,0 +1,32 @@
1#!/usr/bin/perl
2
3# This script replace the cdump tool we used to build the ap_wp_Splash.cpp
4# Because the cdump tool has to be run as a part of building the AW package,
5# it breaks cross-compilation. A perl script seemed like a generic solution
6
7
8if ($#ARGV != 1 )
9{
10 print "Usage: $0 datafile arrayname $#ARGV $ARGV[0] $ARGV[1]\n";
11 exit(-1);
12}
13
14open FROM, "<$ARGV[0]" or die "Could not open file $ARGV[0]";
15binmode FROM;
16
17print "unsigned char $ARGV[1] [] = {\n";
18
19while ($len = read(FROM, $buf, 16))
20{
21 foreach(split(//,$buf))
22 {
23 printf("0x%02x,", ord($_));
24 }
25
26 print "\n";
27}
28
29
30printf "};\nunsigned long $ARGV[1]_sizeof = sizeof($ARGV[1]);\n";
31
32close FROM; \ No newline at end of file
diff --git a/meta-gnome/recipes-gnome/abiword/abiword/nodolt.patch b/meta-gnome/recipes-gnome/abiword/abiword/nodolt.patch
new file mode 100644
index 000000000..154672080
--- /dev/null
+++ b/meta-gnome/recipes-gnome/abiword/abiword/nodolt.patch
@@ -0,0 +1,12 @@
1Index: abiword-2.8.1/configure.in
2===================================================================
3--- abiword-2.8.1.orig/configure.in
4+++ abiword-2.8.1/configure.in
5@@ -132,7 +132,6 @@ AC_PROG_INSTALL
6 #AC_DISABLE_STATIC
7 AC_LIBTOOL_WIN32_DLL
8 AC_PROG_LIBTOOL
9-DOLT
10 AC_PROG_LN_S
11
12 AC_MSG_CHECKING([for platform and toolkit])
diff --git a/meta-gnome/recipes-gnome/abiword/abiword_2.5.2.bb b/meta-gnome/recipes-gnome/abiword/abiword_2.5.2.bb
deleted file mode 100644
index 91e05d3c9..000000000
--- a/meta-gnome/recipes-gnome/abiword/abiword_2.5.2.bb
+++ /dev/null
@@ -1,5 +0,0 @@
1require abiword-2.5.inc
2FILESEXTRAPATHS_prepend := "${THISDIR}/abiword-${SHRT_VER}:"
3PR = "r3"
4
5RCONFLICTS_${PN} = "abiword-embedded"
diff --git a/meta-gnome/recipes-gnome/abiword/abiword_2.8.6.bb b/meta-gnome/recipes-gnome/abiword/abiword_2.8.6.bb
new file mode 100644
index 000000000..1746769d3
--- /dev/null
+++ b/meta-gnome/recipes-gnome/abiword/abiword_2.8.6.bb
@@ -0,0 +1,59 @@
1require abiword-2.5.inc
2DEPENDS += " loudmouth libwmf-native gtkmathview asio"
3RCONFLICTS_${PN} = "abiword-embedded"
4
5SRC_URI = "http://www.abisource.com/downloads/abiword/${PV}/source/abiword-${PV}.tar.gz;name=abiword \
6 file://autogen-common.sh \
7 file://nodolt.patch"
8
9LIC_FILES_CHKSUM = "file://COPYING;md5=ecd3ac329fca77e2d0e412bec38e1c20"
10
11SRC_URI[abiword.md5sum] = "f883b0a7f26229a9c66fd6a1a94381aa"
12SRC_URI[abiword.sha256sum] = "d99089a63a6cfc1a6a4a026be9278028d47d224088d24b1853acb67e95683a15"
13
14
15EXTRA_OECONF = " --disable-static \
16 --enable-plugins \
17 --without-gnomevfs \
18 --enable-collab-backend-xmpp \
19 --enable-collab-backend-tcp \
20 --enable-collab-backend-service \
21 --with-libwmf-config=${STAGING_DIR} \
22"
23
24do_configure() {
25 install -m 0755 ${WORKDIR}/autogen-common.sh ${S}/autogen-common.sh
26 cd ${S}
27 ./autogen-common.sh
28 autotools_do_configure
29}
30
31FILES_${PN} += "${libdir}/libabiword-*.so ${datadir}/mime-info ${datadir}/abiword-${SHRT_VER}/certs ${datadir}/abiword-${SHRT_VER}/ui ${datadir}/abiword-${SHRT_VER}/xsl* ${datadir}/abiword-${SHRT_VER}/mime-info ${datadir}/abiword-${SHRT_VER}/Pr*.xml"
32FILES_abiword-strings += "${datadir}/abiword-${SHRT_VER}/strings"
33FILES_abiword-systemprofiles += "${datadir}/abiword-${SHRT_VER}/system.profile*"
34
35PACKAGES_DYNAMIC = "abiword-meta abiword-plugin-*"
36
37python populate_packages_prepend () {
38 abiword_libdir = bb.data.expand('${libdir}/abiword-2.8/plugins', d)
39 do_split_packages(d, abiword_libdir, '(.*)\.so$', 'abiword-plugin-%s', 'Abiword plugin for %s', extra_depends='')
40
41 metapkg = "abiword-meta"
42 bb.data.setVar('ALLOW_EMPTY_' + metapkg, "1", d)
43 bb.data.setVar('FILES_' + metapkg, "", d)
44 blacklist = [ 'abiword-plugins-dbg', 'abiword-plugins', 'abiword-plugins-doc', 'abiword-plugins-dev', 'abiword-plugins-locale' ]
45 metapkg_rdepends = []
46 packages = bb.data.getVar('PACKAGES', d, 1).split()
47 for pkg in packages[1:]:
48 if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count("-dev") and not pkg.count("-dbg") and not pkg.count("static") and not pkg.count("locale") and not pkg.count("abiword-doc"):
49 print "Modifying ", pkg
50 metapkg_rdepends.append(pkg)
51 bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d)
52 bb.data.setVar('DESCRIPTION_' + metapkg, 'abiword-plugin meta package', d)
53 packages.append(metapkg)
54 bb.data.setVar('PACKAGES', ' '.join(packages), d)
55}
56
57FILES_${PN}-dev += "${libdir}/abiword-${SHRT_VER}/plugins/*.la"
58FILES_${PN}-dbg += "${libdir}/abiword-${SHRT_VER}/plugins/.debug"
59FILES_${PN}-doc += "${datadir}/abiword-*/readme*"