diff options
Diffstat (limited to 'math/rpcalc/Makefile')
-rw-r--r-- | math/rpcalc/Makefile | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/math/rpcalc/Makefile b/math/rpcalc/Makefile index 92f62687fc06..f4c4ba47c3ad 100644 --- a/math/rpcalc/Makefile +++ b/math/rpcalc/Makefile @@ -2,48 +2,51 @@ # $FreeBSD$ PORTNAME= rpcalc -PORTVERSION= 0.7.0 -PORTREVISION= 1 +PORTVERSION= 0.7.1 CATEGORIES= math MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} MAINTAINER= jhale@FreeBSD.org COMMENT= Simple RPN calculator -LICENSE= GPLv2 +LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/doc/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-gui>=0:x11-toolkits/py-qt4-gui -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-gui>=0:x11-toolkits/py-qt4-gui - -USES= python:3.3+ +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 -INSTALLS_ICONS= yes +WRKSRC= ${WRKDIR}/rpCalc DESKTOP_ENTRIES="rpCalc" \ - "" \ - "${PREFIX}/share/icons/${PORTNAME}/calc_lg.png" \ + "RPN Calculator" \ + "${DATADIR}/icons/calc_lg.png" \ "${PORTNAME}" \ "Qt;Utility;Calculator;" \ - "false" - -PLIST_SUB= PYTHON_SUFFIX="${PYTHON_SUFFIX}" -WRKSRC= ${WRKDIR}/rpCalc + false do-install: - (cd ${WRKSRC} && ${PYTHON_CMD} install.py -p ${PREFIX} -b ${STAGEDIR}) - (cd ${STAGEDIR}${PREFIX} && \ - ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ - -d ${DATADIR} -f ${DATADIR_REL}) + (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 ${PYTHON_REL} < 3500 +PYOEXTENSION= pyo +.else +PYOEXTENSION= opt-1.pyc +.endif + +PLIST_SUB+= PYTHON_SUFFIX="${PYTHON_SUFFIX}" \ + PYOEXTENSION="${PYOEXTENSION}" + .if defined(PACKAGE_BUILDING) && ${PYTHON_VER} != ${PYTHON_DEFAULT} -IGNORE= you have python ${PYTHON_DEFAULT} set as the default, and this needs ${PYTHON_VER} +IGNORE= you have python ${PYTHON_DEFAULT} set as the default, and this needs ${PYTHON_VER} .endif .include <bsd.port.post.mk> |