2015-05-15 22:27:42 +02:00
|
|
|
# Created by: Andrey Fesenko <andrey@bsdnir.info>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pyfa
|
2016-05-28 16:40:32 +02:00
|
|
|
PORTVERSION= 1.19.1
|
2016-12-27 12:56:53 +01:00
|
|
|
PORTREVISION= 1
|
2015-05-15 22:27:42 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
|
|
|
CATEGORIES= games python
|
|
|
|
|
|
|
|
MAINTAINER= andrey@bsdnir.info
|
|
|
|
COMMENT= Fitting tool for EVE Online
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv3+
|
2015-12-22 16:17:46 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2015-05-15 22:27:42 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil \
|
2016-12-27 12:56:53 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=0.6:databases/py-sqlalchemy10 \
|
2016-04-01 16:00:51 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}requests>=2.3.0:www/py-requests
|
2015-05-15 22:27:42 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2016-05-28 16:40:32 +02:00
|
|
|
GH_ACCOUNT= pyfa-org
|
2015-05-15 22:27:42 +02:00
|
|
|
|
|
|
|
USES= python:2 dos2unix
|
|
|
|
DOS2UNIX_GLOB= *.py
|
2015-12-22 16:17:46 +01:00
|
|
|
NO_ARCH= yes
|
2015-05-15 22:27:42 +02:00
|
|
|
WRKSRC= ${WRKDIR}/Pyfa-${PORTVERSION}
|
|
|
|
|
|
|
|
PLIST_FILES= bin/pyfa
|
|
|
|
PORTDATA= *
|
|
|
|
|
2015-12-22 16:17:46 +01:00
|
|
|
USE_WX= 2.8 3.0
|
|
|
|
WX_COMPS= wx:run python:run
|
2015-05-15 22:27:42 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DPSGRAPHING
|
2016-05-28 16:40:32 +02:00
|
|
|
DPSGRAPHING_DESC= DPS graphing (requires NumPy and matplotlib)
|
2015-05-15 22:27:42 +02:00
|
|
|
|
2016-06-09 04:50:02 +02:00
|
|
|
DPSGRAPHING_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.5.0:math/py-matplotlib \
|
2016-04-01 16:00:51 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}more-itertools>0:devel/py-more-itertools
|
2015-05-15 22:27:42 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${PYTHON_CMD} -m compileall ${WRKSRC}
|
|
|
|
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${PRINTF} "#!/bin/sh\nexec ${PYTHON_CMD} ${DATADIR}/pyfa.py\n" \
|
|
|
|
> ${WRKDIR}/pyfa.sh
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/pyfa.sh ${STAGEDIR}${PREFIX}/bin/pyfa
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|