1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/math/rpcalc/Makefile
Bryan Drewery f3af3367aa Allow these ports to build with PACKAGE_BUILDING_FLAVORS set.
Poudriere in particulr did not properly handle DEPENDS_ARGS which
made these ports not properly install dependencies.  That bug
is being addressed along with adding FLAVORS support to it.

With hat:	portmgr
MFH:		2017Q2
2017-06-04 21:49:48 +00:00

45 lines
1.1 KiB
Makefile

# Created by: Edwin Groothuis <edwin@mavetju.org>
# $FreeBSD$
PORTNAME= rpcalc
PORTVERSION= 0.7.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:4 python:3.3+
USE_PYQT= core gui
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.pre.mk>
.if defined(PACKAGE_BUILDING) && !defined(PACKAGE_BUILDING_FLAVORS) && \
${PYTHON_VER} != ${PYTHON_DEFAULT}
IGNORE= you have python ${PYTHON_DEFAULT} set as the default, and this needs ${PYTHON_VER}
.endif
.include <bsd.port.post.mk>