aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--finance/Makefile1
-rw-r--r--finance/py-ta-lib/Makefile29
-rw-r--r--finance/py-ta-lib/distinfo3
-rw-r--r--finance/py-ta-lib/pkg-descr6
4 files changed, 39 insertions, 0 deletions
diff --git a/finance/Makefile b/finance/Makefile
index add576b70806..e60f70f8682b 100644
--- a/finance/Makefile
+++ b/finance/Makefile
@@ -96,6 +96,7 @@
SUBDIR += py-bitcoin
SUBDIR += py-python-obelisk
SUBDIR += py-stripe
+ SUBDIR += py-ta-lib
SUBDIR += py-vatnumber
SUBDIR += py-ystockquote
SUBDIR += qhacc
diff --git a/finance/py-ta-lib/Makefile b/finance/py-ta-lib/Makefile
new file mode 100644
index 000000000000..8027e2bed739
--- /dev/null
+++ b/finance/py-ta-lib/Makefile
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME= ta-lib
+DISTVERSIONPREFIX= TA_Lib-
+DISTVERSION= 0.4.16
+CATEGORIES= finance python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= m.tsatsenko@gmail.com
+COMMENT= Python wrapper for ta-lib (tools for market analysis)
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYNUMPY}
+LIB_DEPENDS= libta_lib.so:devel/ta-lib
+RUN_DEPENDS= ${PYNUMPY}
+
+MAKE_ENV= TA_INCLUDE_PATH="${LOCALBASE}/include"
+
+USES= python
+USE_GITHUB= yes
+GH_ACCOUNT= mrjbq7
+USE_PYTHON= distutils cython autoplist
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/talib/_ta_lib.so
+
+.include <bsd.port.mk>
diff --git a/finance/py-ta-lib/distinfo b/finance/py-ta-lib/distinfo
new file mode 100644
index 000000000000..25271a722eab
--- /dev/null
+++ b/finance/py-ta-lib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1519271769
+SHA256 (mrjbq7-ta-lib-TA_Lib-0.4.16_GH0.tar.gz) = 1aeda4c421214640e9cf115085cb31e84d316f289f8cf5d47410a5cb4406636f
+SIZE (mrjbq7-ta-lib-TA_Lib-0.4.16_GH0.tar.gz) = 822860
diff --git a/finance/py-ta-lib/pkg-descr b/finance/py-ta-lib/pkg-descr
new file mode 100644
index 000000000000..ff176f029fd3
--- /dev/null
+++ b/finance/py-ta-lib/pkg-descr
@@ -0,0 +1,6 @@
+py-ta-lib is a Python wrapper for TA-LIB (a marketing analysis library)
+based on Cython.
+
+It is intended to perform marketing analysis in Python programs.
+
+WWW: https://mrjbq7.github.io/ta-lib/