summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <slackbuilds@jaxartes.net>2020-03-27 16:14:38 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-03-28 13:20:32 +0700
commit2016aff93ed40d0dfce8cb25098dd754bacc604d (patch)
tree2815a9d4cf797b55c9501a3f396b44f4857c47af
parentc3de6d231b284edc74c7fc6148b58d88f10f7fe4 (diff)
downloadslackbuilds-2016aff93ed40d0dfce8cb25098dd754bacc604d.tar.gz
libraries/stfl: Support builds on current.
Signed-off-by: Benjamin Trigona-Harany <slackbuilds@jaxartes.net> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/stfl/python-support.patch2
-rw-r--r--libraries/stfl/stfl.info2
2 files changed, 2 insertions, 2 deletions
diff --git a/libraries/stfl/python-support.patch b/libraries/stfl/python-support.patch
index 514d93af25..b11c7be0bf 100644
--- a/libraries/stfl/python-support.patch
+++ b/libraries/stfl/python-support.patch
@@ -82,7 +82,7 @@ diff -Nur stfl-0.24/python3/Makefile.snippet stfl-0.24-py3/python3/Makefile.snip
- cp python/stfl.py $(DESTDIR)$(PYTHON_SITEARCH)/
+python3/_stfl.so python3/stfl.py python3/stfl.pyc: libstfl.a stfl.h python3/stfl.i swig/*.i
+ cd python3 && swig -python -threads stfl.i
-+ gcc -shared -pthread -fPIC python3/stfl_wrap.c -I/usr/include/python$(PYTHON3_VERSION)m \
++ gcc -shared -pthread -fPIC python3/stfl_wrap.c -I$(shell python3 -c "from distutils.sysconfig import get_python_inc ; print(get_python_inc())") \
+ -I. libstfl.a -lncursesw -o python3/_stfl.so
+ cd python3 && python3 -c 'import stfl'
+
diff --git a/libraries/stfl/stfl.info b/libraries/stfl/stfl.info
index 985a61d06c..cf801281de 100644
--- a/libraries/stfl/stfl.info
+++ b/libraries/stfl/stfl.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://www.clifford.at/stfl/stfl-0.24.tar.gz"
MD5SUM="98c764ccc8f13ed05ea22559d7116b96"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3"
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="slackbuilds@jaxartes.net"