diff options
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/pyfa/Makefile | 53 | ||||
-rw-r--r-- | games/pyfa/distinfo | 2 | ||||
-rw-r--r-- | games/pyfa/pkg-descr | 8 |
4 files changed, 64 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 4fcf4ffcc17a..11bfc3664c54 100644 --- a/games/Makefile +++ b/games/Makefile @@ -772,6 +772,7 @@ SUBDIR += pycadia SUBDIR += pyching SUBDIR += pydance + SUBDIR += pyfa SUBDIR += pykawari SUBDIR += pysolfc SUBDIR += pyspacewar diff --git a/games/pyfa/Makefile b/games/pyfa/Makefile new file mode 100644 index 000000000000..f97b7a467e14 --- /dev/null +++ b/games/pyfa/Makefile @@ -0,0 +1,53 @@ +# Created by: Andrey Fesenko <andrey@bsdnir.info> +# $FreeBSD$ + +PORTNAME= pyfa +PORTVERSION= 1.11.0 +DISTVERSIONPREFIX= v +CATEGORIES= games python + +MAINTAINER= andrey@bsdnir.info +COMMENT= Fitting tool for EVE Online + +LICENSE= GPLv3 # or later +LICENSE_FILE= ${WRKSRC}/gpl.txt + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil \ + ${PYTHON_PKGNAMEPREFIX}sqlalchemy>0:${PORTSDIR}/databases/py-sqlalchemy + +USE_GITHUB= yes +GH_ACCOUNT= DarkFenX + +USES= python:2 dos2unix +DOS2UNIX_GLOB= *.py +WRKSRC= ${WRKDIR}/Pyfa-${PORTVERSION} + +PLIST_FILES= bin/pyfa +PORTDATA= * + +USE_WX= 2.8 +WX_COMPS= python:run +WX_UNICODE= yes + +OPTIONS_DEFINE= DPSGRAPHING +DPSGRAPHING_DESC= DPS graphing (requires NumPy and matplotlib) +OPTIONS_DEFAULT= DPSGRAPHING + +DPSGRAPHING_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>0:${PORTSDIR}/math/py-matplotlib \ + ${PYTHON_PKGNAMEPREFIX}numpy>0:${PORTSDIR}/math/py-numpy \ + ${PYTHON_PKGNAMEPREFIX}more-itertools>0:${PORTSDIR}/devel/py-more-itertools + +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> diff --git a/games/pyfa/distinfo b/games/pyfa/distinfo new file mode 100644 index 000000000000..688a377113a2 --- /dev/null +++ b/games/pyfa/distinfo @@ -0,0 +1,2 @@ +SHA256 (DarkFenX-pyfa-v1.11.0_GH0.tar.gz) = d2c0c4e71604a2fe7dd2557a598a3d7d5abd2cc73a9497a0ce76158e1499adca +SIZE (DarkFenX-pyfa-v1.11.0_GH0.tar.gz) = 5846954 diff --git a/games/pyfa/pkg-descr b/games/pyfa/pkg-descr new file mode 100644 index 000000000000..f82622719b19 --- /dev/null +++ b/games/pyfa/pkg-descr @@ -0,0 +1,8 @@ +Pyfa is a cross-platform desktop fitting application for EVE online +that can be used natively on any platform where python and wxwidgets +are available. + +It provides many advanced features such as graphs and full calculations +of any possible combination of modules, fits, etc. + +WWW: https://github.com/DarkFenX/Pyfa |