diff options
author | jhale <jhale@FreeBSD.org> | 2016-11-08 23:51:11 +0800 |
---|---|---|
committer | jhale <jhale@FreeBSD.org> | 2016-11-08 23:51:11 +0800 |
commit | 13697a0792595e69d0bdb45ec36b8dc9e49c9d92 (patch) | |
tree | 4a5edd97a8766740abf33827820c915c734ce569 /math/rpcalc/Makefile | |
parent | b84121c4de8b240dd6d1c59fa8d0719949a73cf2 (diff) | |
download | freebsd-ports-gnome-13697a0792595e69d0bdb45ec36b8dc9e49c9d92.tar.gz freebsd-ports-gnome-13697a0792595e69d0bdb45ec36b8dc9e49c9d92.tar.zst freebsd-ports-gnome-13697a0792595e69d0bdb45ec36b8dc9e49c9d92.zip |
Update to 0.7.1
Convert to USES=pyqt
Add NO_ARCH
Fix plist for Python 3.5
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> |