summaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorFlorian Franzmann2019-10-04 23:52:21 +0200
committerFlorian Franzmann2019-10-05 18:29:10 +0200
commitde5c1f73374c46da56036202bd328760bafd4a9c (patch)
tree593f3d8d250538239d45029e89547bfdcc247dda /science
parentad43d230ce046647b441dfa7902f7dcf3320d191 (diff)
science/units: fix installation path of currency.units
Diffstat (limited to 'science')
-rwxr-xr-xscience/units/BUILD2
-rwxr-xr-xscience/units/DEPENDS3
-rw-r--r--science/units/HISTORY5
-rwxr-xr-xscience/units/PRE_BUILD5
4 files changed, 15 insertions, 0 deletions
diff --git a/science/units/BUILD b/science/units/BUILD
new file mode 100755
index 0000000000..aed2255835
--- /dev/null
+++ b/science/units/BUILD
@@ -0,0 +1,2 @@
+OPTS="--sharedstatedir=$INSTALL_ROOT/var/state" &&
+default_build
diff --git a/science/units/DEPENDS b/science/units/DEPENDS
new file mode 100755
index 0000000000..7a1d89c970
--- /dev/null
+++ b/science/units/DEPENDS
@@ -0,0 +1,3 @@
+depends gcc &&
+depends python &&
+depends requests
diff --git a/science/units/HISTORY b/science/units/HISTORY
index ff670d9e72..1f25a5b5b4 100644
--- a/science/units/HISTORY
+++ b/science/units/HISTORY
@@ -1,3 +1,8 @@
+2019-10-04 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
+ * PRE_BUILD, BUILD: install currency.units to /var/state instead of
+ /usr/com
+ * DEPENDS: add dependencies on gcc, python and requests
+
2019-06-02 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
* DETAILS: version 2.19
diff --git a/science/units/PRE_BUILD b/science/units/PRE_BUILD
new file mode 100755
index 0000000000..cbe002a147
--- /dev/null
+++ b/science/units/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+sedit "/^outfile/s|'.*'|'/var/state/units/currency.units'|g" units_cur &&
+sedit "s|#!/usr/bin/python|#!/usr/bin/python3|" units_cur