summaryrefslogtreecommitdiff
path: root/repo/libixion
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libixion')
-rw-r--r--repo/libixion/fix.patch11
-rw-r--r--repo/libixion/libixion.xibuild36
2 files changed, 47 insertions, 0 deletions
diff --git a/repo/libixion/fix.patch b/repo/libixion/fix.patch
new file mode 100644
index 0000000..8b4b363
--- /dev/null
+++ b/repo/libixion/fix.patch
@@ -0,0 +1,11 @@
+--- a/src/libixion/model_context.cpp
++++ b/src/libixion/model_context.cpp
+@@ -17,7 +17,7 @@
+
+ namespace ixion {
+
+-model_context::input_cell::input_cell(nullptr_t) : type(celltype_t::empty) {}
++model_context::input_cell::input_cell(std::nullptr_t p) : type(celltype_t::empty) {}
+ model_context::input_cell::input_cell(bool b) : type(celltype_t::boolean)
+ {
+ value.boolean = b;
diff --git a/repo/libixion/libixion.xibuild b/repo/libixion/libixion.xibuild
new file mode 100644
index 0000000..7f38a07
--- /dev/null
+++ b/repo/libixion/libixion.xibuild
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+NAME="libixion"
+DESC="A general purpose formula parser & interpreter"
+
+MAKEDEPS=" boost mdds"
+
+PKG_VER=0.16.1
+SOURCE="https://kohei.us/files/ixion/src/libixion-$PKG_VER.tar.xz"
+
+ADDITIONAL="
+fix.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
+}
+