summaryrefslogtreecommitdiff
path: root/devel/vitables/Makefile
blob: ad73295373d468e9bd421f8075e7ecc240c8fb38 (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
42
# $FreeBSD$

PORTNAME=	vitables
DISTVERSIONPREFIX=	v
DISTVERSION=	3.0.0-55
DISTVERSIONSUFFIX=	-gb064ad7
PORTREVISION=	4
CATEGORIES=	devel science python

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Viewer and editor of files in both PyTables format and HDF5 format

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

RUN_DEPENDS=	${PYNUMPY} \
		${PYTHON_PKGNAMEPREFIX}QtPy>=1.2.1:devel/py-QtPy@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}numexpr>=2.0:math/py-numexpr@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}tables>=3.0:devel/py-tables@${PY_FLAVOR}

USES=		dos2unix python pyqt:5
DOS2UNIX_FILES=	setup.py
USE_GITHUB=	yes
GH_ACCOUNT=	uvemas
GH_PROJECT=	ViTables
USE_PYTHON=	distutils cython noflavors autoplist
USE_PYQT=	core_run gui_run sip_run widgets_run
NO_ARCH=	yes

PLIST_FILES=	${PYTHON_SITELIBDIR}/${PORTNAME}.sh

post-patch:
	@${REINPLACE_CMD} "s|version=read('VERSION')|version='${DISTVERSION}'|" ${WRKSRC}/setup.py

post-install:
	@${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}.sh
	@(echo "#!/bin/sh"; \
	  echo "LD_PRELOAD=${PREFIX}/lib/gcc${GCC_DEFAULT}/libgcc_s.so ${PYTHON_SITELIBDIR}/${PORTNAME}.sh \"\$$@\"" \
	) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	@${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>