1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/math/convertall/Makefile
Jason E. Hale 9ab6e45abc Update to 0.6.1
Convert to USES=pyqt
Add NO_ARCH
Fix plist for Python 3.5
2016-11-08 15:47:49 +00:00

58 lines
1.3 KiB
Makefile

# Created by: Michael Johnson <ahze@ahze.net>
# $FreeBSD$
PORTNAME= convertall
PORTVERSION= 0.6.1
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= jhale@FreeBSD.org
COMMENT= Another unit converter
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}/ConvertAll
DESKTOP_ENTRIES="ConvertAll" \
"Unit Converter" \
"${DATADIR}/icons/${PORTNAME}.svg" \
"${PORTNAME}" \
"Qt;Utility;Calculator;" \
false
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_CONFIGURE_OFF= -s
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 ${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}
.endif
.include <bsd.port.post.mk>