mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
8271365a60
seems quite a few crept in. Pointy hat to: fluffy, mm, romain Sponsored by: Absolight
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# Created by: Andrey Fesenko <andrey@bsdnir.info>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pyfa
|
|
PORTVERSION= 1.19.1
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= games python
|
|
|
|
MAINTAINER= andrey@bsdnir.info
|
|
COMMENT= Fitting tool for EVE Online
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil \
|
|
${PYTHON_PKGNAMEPREFIX}sqlalchemy07>=0.6:databases/py-sqlalchemy07 \
|
|
${PYTHON_PKGNAMEPREFIX}requests>=2.3.0:www/py-requests
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= pyfa-org
|
|
|
|
USES= python:2 dos2unix
|
|
DOS2UNIX_GLOB= *.py
|
|
NO_ARCH= yes
|
|
WRKSRC= ${WRKDIR}/Pyfa-${PORTVERSION}
|
|
|
|
PLIST_FILES= bin/pyfa
|
|
PORTDATA= *
|
|
|
|
USE_WX= 2.8 3.0
|
|
WX_COMPS= wx:run python:run
|
|
|
|
OPTIONS_DEFINE= DPSGRAPHING
|
|
DPSGRAPHING_DESC= DPS graphing (requires NumPy and matplotlib)
|
|
|
|
DPSGRAPHING_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.5.0:math/py-matplotlib \
|
|
${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy \
|
|
${PYTHON_PKGNAMEPREFIX}more-itertools>0: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>
|