summaryrefslogtreecommitdiff
path: root/repo/libixion
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/libixion
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
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
+}
+