summaryrefslogtreecommitdiff
path: root/finance/py-fecon235/Makefile
blob: 851897fea002eb4099d2c2bfe11b539234ae8af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $NetBSD: Makefile,v 1.1 2017/09/14 16:15:45 minskim Exp $

GITHUB_PROJECT=	fecon235
GITHUB_TAG=	v5.17.0722
DISTNAME=	${GITHUB_TAG}
PKGNAME=	${PYPKGPREFIX}-${GITHUB_PROJECT}-${DISTNAME:S/v//}
CATEGORIES=	finance
MASTER_SITES=	${MASTER_SITE_GITHUB:=rsvp/}
DIST_SUBDIR=	${GITHUB_PROJECT}

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	https://github.com/rsvp/fecon235/
COMMENT=	Computational tools for financial economics
LICENSE=	modified-bsd

DEPENDS+=	${PYPKGPREFIX}-matplotlib:../../graphics/py-matplotlib
DEPENDS+=	${PYPKGPREFIX}-numpy:../../math/py-numpy
DEPENDS+=	${PYPKGPREFIX}-pandas>0.18:../../math/py-pandas
DEPENDS+=	${PYPKGPREFIX}-pandas-datareader:../../math/py-pandas-datareader
DEPENDS+=	${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy
DEPENDS+=	${PYPKGPREFIX}-statsmodels-[0-9]*:../../math/py-statsmodels
DEPENDS+=	${PYPKGPREFIX}-sympy-[0-9]*:../../math/py-sympy

NO_BUILD=	yes
PY_PATCHPLIST=	yes

INSTALLATION_DIRS+=	${PYSITELIB}/fecon235/lib share/doc/fecon235

.include "../../lang/python/extension.mk"

do-install:
	${INSTALL_DATA} ${WRKSRC}/fecon235.py \
		${DESTDIR}${PREFIX}/${PYSITELIB}/fecon235/
	${INSTALL_DATA} ${WRKSRC}/lib/* \
		${DESTDIR}${PREFIX}/${PYSITELIB}/fecon235/lib/
	cd ${WRKSRC} && \
	for f in CHANGELOG.md README.md LICENSE.md docs/*.ipynb nb/*; do \
		${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/doc/fecon235/; \
	done

.include "../../mk/bsd.pkg.mk"