2013-09-20 20:55:04 +00:00
|
|
|
# Created by: Edwin Groothuis <edwin@mavetju.org>
|
2010-01-31 10:28:11 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rpcalc
|
2014-08-29 22:31:57 +00:00
|
|
|
PORTVERSION= 0.7.0
|
2014-09-10 20:50:31 +00:00
|
|
|
PORTREVISION= 1
|
2010-01-31 10:28:11 +00:00
|
|
|
CATEGORIES= math
|
2014-08-29 22:31:57 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
|
2010-01-31 10:28:11 +00:00
|
|
|
|
2014-08-29 22:31:57 +00:00
|
|
|
MAINTAINER= jhale@FreeBSD.org
|
2010-01-31 10:28:11 +00:00
|
|
|
COMMENT= Simple RPN calculator
|
|
|
|
|
2014-08-29 22:31:57 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/doc/LICENSE
|
2010-01-31 10:28:11 +00:00
|
|
|
|
2014-08-29 22:31:57 +00:00
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-gui>=0:${PORTSDIR}/x11-toolkits/py-qt4-gui
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-gui>=0:${PORTSDIR}/x11-toolkits/py-qt4-gui
|
|
|
|
|
|
|
|
USES= python:3.2+
|
2010-01-31 10:28:11 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2014-08-29 22:31:57 +00:00
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="rpCalc" \
|
|
|
|
"" \
|
|
|
|
"${PREFIX}/share/icons/${PORTNAME}/calc_lg.png" \
|
|
|
|
"${PORTNAME}" \
|
|
|
|
"Qt;Utility;Calculator;" \
|
|
|
|
"false"
|
|
|
|
|
|
|
|
PLIST_SUB= PYTHON_SUFFIX="${PYTHON_SUFFIX}"
|
|
|
|
WRKSRC= ${WRKDIR}/rpCalc
|
2010-01-31 10:28:11 +00:00
|
|
|
|
|
|
|
do-install:
|
2014-08-29 22:31:57 +00:00
|
|
|
(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 ${STAGEDIR}${PREFIX} && \
|
|
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
|
|
|
-d ${DATADIR} -f ${DATADIR_REL})
|
2010-01-31 10:28:11 +00:00
|
|
|
|
2014-09-13 23:39:20 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(PACKAGE_BUILDING) && ${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>
|