summaryrefslogtreecommitdiff
path: root/repo/liborcus
diff options
context:
space:
mode:
Diffstat (limited to 'repo/liborcus')
-rw-r--r--repo/liborcus/fix-include.patch10
-rw-r--r--repo/liborcus/liborcus.xibuild36
2 files changed, 46 insertions, 0 deletions
diff --git a/repo/liborcus/fix-include.patch b/repo/liborcus/fix-include.patch
new file mode 100644
index 0000000..407ef03
--- /dev/null
+++ b/repo/liborcus/fix-include.patch
@@ -0,0 +1,10 @@
+--- a/include/orcus/global.hpp
++++ b/include/orcus/global.hpp
+@@ -11,6 +11,7 @@
+ #include "types.hpp"
+ #include "env.hpp"
+
++#include <limits>
+ #include <memory>
+ #include <functional>
+
diff --git a/repo/liborcus/liborcus.xibuild b/repo/liborcus/liborcus.xibuild
new file mode 100644
index 0000000..7c43ca0
--- /dev/null
+++ b/repo/liborcus/liborcus.xibuild
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+NAME="liborcus"
+DESC="Library for processing spreadsheet documents"
+
+MAKEDEPS="boost mdds libixion zlib"
+
+PKG_VER=0.16.1
+SOURCE="https://kohei.us/files/orcus/src/liborcus-$PKG_VER.tar.xz"
+
+ADDITIONAL="
+fix-include.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-python
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+