Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=4d18fe1d761cb2f4e6dc18d55f588440c0026f24
commit 4d18fe1d761cb2f4e6dc18d55f588440c0026f24 Author: Miklos Vajna <[email protected]> Date: Sat Jan 11 15:41:19 2014 +0100 liborcus-0.5.1-3-x86_64 - also set liborcus-parser link against boost_system diff --git a/source/lib/liborcus/FrugalBuild b/source/lib/liborcus/FrugalBuild index cd57b4c..91ac881 100644 --- a/source/lib/liborcus/FrugalBuild +++ b/source/lib/liborcus/FrugalBuild @@ -3,7 +3,7 @@ pkgname=liborcus pkgver=0.5.1 -pkgrel=2 +pkgrel=3 pkgdesc="Standalone file import filter library for spreadsheet documents" url="http://gitorious.org/orcus" depends=('zlib' 'libboost>=1.50.0') @@ -11,29 +11,18 @@ makedepends=('mdds>=0.6.1-2' 'boost>=1.50.0') groups=('lib') archs=('i686' 'x86_64') up2date="Flasttar http://gitorious.org/orcus/pages/Download" -source=(http://kohei.us/files/orcus/src/liborcus-$pkgver.tar.bz2) -sha1sums=('9303d513e4b63a1d6e4bce7cfeb13635e568b466') +source=(http://kohei.us/files/orcus/src/liborcus-$pkgver.tar.bz2 \ + fix-boost-system.diff \ + use-ac-config-headers.patch) +sha1sums=('9303d513e4b63a1d6e4bce7cfeb13635e568b466' \ + 'e2fb6f1c3d09555eb881cd45d1b41391eba4e305' \ + 'bc6edcef45e020a68cf2a237f9b80d5db2693a72') build() { - Fcd - # fix build of orcus-zip-dump - sed -i -e 's/orcus_zip_dump_LDADD = /& $(BOOST_SYSTEM_LIB) /' \ - src/Makefile.in - # TODO: upstream the changes - sed -i \ - -e 's/[a-z_]*_test_LDADD = /& $(BOOST_SYSTEM_LIB) /' \ - -e 's/parser_test_[a-z_]*_LDADD = /& $(BOOST_SYSTEM_LIB) /' \ - -e 's/liborcus_test_xml_structure_tree_LDADD = /& $(BOOST_SYSTEM_LIB) /' \ - src/liborcus/Makefile.in src/parser/Makefile.in - - # TODO spreadsheet-model requires ixion - Fconf --disable-debug --disable-silent-rules --disable-static \ - --disable-werror --with-pic \ - --disable-spreadsheet-model - - make || return 1 - + Fpatchall + Fautoreconf + Fmake --disable-debug --disable-static --disable-werror --disable-spreadsheet-model Fmakeinstall } diff --git a/source/lib/liborcus/fix-boost-system.diff b/source/lib/liborcus/fix-boost-system.diff new file mode 100644 index 0000000..f857778 --- /dev/null +++ b/source/lib/liborcus/fix-boost-system.diff @@ -0,0 +1,27 @@ +Subject: hack to get orcus/autotools build against boost 1.53 +From: Bjoern Michaelsen <[email protected]> +Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55435 +Forwarded: https://bugs.freedesktop.org/attachment.cgi?id=80565&action=edit +-- +--- liborcus-0.5.1.orig/src/Makefile.am ++++ liborcus-0.5.1/src/Makefile.am +@@ -39,6 +39,8 @@ orcus_xml_dump_LDADD = \ + liborcus/liborcus-@[email protected] + + orcus_xml_dump_CPPFLAGS = -I$(top_builddir)/lib/liborcus/liborcus.la $(COMMON_CPPFLAGS) ++orcus_xml_dump_LDFLAGS = -lboost_system ++ + + # orcus-test-common + +--- liborcus-0.5.1.orig/src/parser/Makefile.am ++++ liborcus-0.5.1/src/parser/Makefile.am +@@ -18,7 +18,7 @@ liborcus_parser_@ORCUS_API_VERSION@_la_S + zip_archive.cpp \ + zip_archive_stream.cpp + +-liborcus_parser_@ORCUS_API_VERSION@_la_LDFLAGS = -no-undefined ++liborcus_parser_@ORCUS_API_VERSION@_la_LDFLAGS = -no-undefined -lboost_system + liborcus_parser_@ORCUS_API_VERSION@_la_LIBADD = \ + $(ZLIB_LIBS) + diff --git a/source/lib/liborcus/use-ac-config-headers.patch b/source/lib/liborcus/use-ac-config-headers.patch new file mode 100644 index 0000000..1b9bae6 --- /dev/null +++ b/source/lib/liborcus/use-ac-config-headers.patch @@ -0,0 +1,25 @@ +From 6d6aeb7d11057b5df774f1425bb49837f13c80c2 Mon Sep 17 00:00:00 2001 +From: Tomas Chvatal <[email protected]> +Date: Wed, 24 Apr 2013 11:16:23 -0400 +Subject: [PATCH] Better to use AC_CONFIG_HEADERS here. + +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 505c9dc..de6aaeb 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -22,7 +22,7 @@ m4_define([orcus_api_version], [orcus_major_version.orcus_minor_api_version]) + # ============= + AC_INIT([liborcus],[orcus_version]) + AC_CONFIG_MACRO_DIR([m4]) +-AM_CONFIG_HEADER([config.h]) ++AC_CONFIG_HEADERS([config.h]) + AM_INIT_AUTOMAKE([1.11 foreign dist-bzip2 dist-xz]) + AM_SILENT_RULES([yes]) + AC_LANG([C++]) +-- +1.8.4 + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
