1d86d24911
Because we are going to remove python 3.2 from the ports tree With hat: python
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# Created by: Michael Johnson <ahze@ahze.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= convertall
|
|
PORTVERSION= 0.6.0
|
|
CATEGORIES= math
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= jhale@FreeBSD.org
|
|
COMMENT= Another unit converter
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/doc/LICENSE
|
|
|
|
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.3+
|
|
|
|
CONFIGURE_ARGS= -p ${PREFIX} -d ${DOCSDIR} -i ${DATADIR}/icons -b ${STAGEDIR}
|
|
NO_BUILD= yes
|
|
|
|
PLIST_SUB= PYTHON_SUFFIX="${PYTHON_SUFFIX}"
|
|
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})
|
|
|
|
post-install:
|
|
(cd ${STAGEDIR}${DOCSDIR} && ${RM} INSTALL LICENSE)
|
|
|
|
.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>
|