freebsd-ports/math/rpcalc/Makefile
Jason E. Hale 44d5d419b5 Update to 0.8.1
Now uses PyQt 5.x
2018-02-16 15:12:39 +00:00

39 lines
918 B
Makefile

# Created by: Edwin Groothuis <edwin@mavetju.org>
# $FreeBSD$
PORTNAME= rpcalc
PORTVERSION= 0.8.1
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= jhale@FreeBSD.org
COMMENT= Simple RPN calculator
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/doc/LICENSE
USES= pyqt:5 python:3.4+ shebangfix
USE_PYQT= core gui widgets sip
SHEBANG_FILES= source/rpcalc.py
CONFIGURE_ARGS= -p ${PREFIX} -d ${DOCSDIR} -i ${DATADIR}/icons -b ${STAGEDIR}
NO_ARCH= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/rpCalc
DESKTOP_ENTRIES="rpCalc" \
"RPN Calculator" \
"${DATADIR}/icons/calc_lg.png" \
"${PORTNAME}" \
"Qt;Utility;Calculator;" \
false
do-install:
(cd ${WRKSRC} && ${PYTHON_CMD} install.py ${CONFIGURE_ARGS})
(cd ${STAGEDIR}${PREFIX} && \
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-d ${DATADIR} -f ${DATADIR_REL})
(cd ${STAGEDIR}${DOCSDIR} && ${RM} INSTALL LICENSE)
.include <bsd.port.mk>