aboutsummaryrefslogtreecommitdiff
path: root/math/convertall/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-03-16 21:05:52 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-03-16 21:05:52 +0000
commit4b027cce3addedb93f70053778d52a486dff0d0e (patch)
tree094c0045a7839b329a679366bf9be93552ca8037 /math/convertall/Makefile
parentd7baf95607cb3d4ebee6eebce9dd3a5c1e30595a (diff)
downloadports-4b027cce3addedb93f70053778d52a486dff0d0e.tar.gz
ports-4b027cce3addedb93f70053778d52a486dff0d0e.zip
Notes
Diffstat (limited to 'math/convertall/Makefile')
-rw-r--r--math/convertall/Makefile30
1 files changed, 22 insertions, 8 deletions
diff --git a/math/convertall/Makefile b/math/convertall/Makefile
index 0d1cbfe3dfb1..42cf4d7c8da2 100644
--- a/math/convertall/Makefile
+++ b/math/convertall/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= convertall
-PORTVERSION= 0.3.1
+PORTVERSION= 0.3.2
CATEGORIES= math
MASTER_SITES= http://bellz.org/convertall/
@@ -17,17 +17,31 @@ BUILD_DEPENDS= pyuic:${PORTSDIR}/x11-toolkits/py-qt
RUN_DEPENDS= pyuic:${PORTSDIR}/x11-toolkits/py-qt
WRKSRC= ${WRKDIR}/ConvertAll
+
USE_PYTHON= 2.4+
-USE_X_PREFIX= yes
-NO_BUILD= yes
-PORTDOCS= README.html INSTALL LICENSE
post-patch:
-.if defined(NOPORTDOCS)
- @${REINPLACE_CMD} -e 's|doc||' ${WRKSRC}/install.py
-.endif
+ @cd ${WRKSRC}/source && ${REINPLACE_CMD} -e \
+ "/^dataFilePath/s|None|\'${DATADIR}\'|g ; \
+ /^helpFilePath/s|None|\'${DOCSDIR}\'|g" convertall.py
+
+do-build:
+ @${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/convertall.sh
+ @${ECHO_CMD} 'exec ${PYTHON_CMD} ${PYTHON_SITELIBDIR}/convertall/convertall.py $$*' >> ${WRKDIR}/convertall.sh
do-install:
- (cd ${WRKSRC};${PYTHON_CMD} ${WRKSRC}/install.py -p ${PREFIX})
+ ${INSTALL_SCRIPT} ${WRKDIR}/convertall.sh ${PREFIX}/bin/convertall
+ @${MKDIR} ${PYTHON_SITELIBDIR}/convertall
+ ${INSTALL_DATA} ${WRKSRC}/source/*.py ${PYTHON_SITELIBDIR}/convertall
+ @${CHMOD} ${BINMODE} ${PYTHON_SITELIBDIR}/convertall/convertall.py
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PYTHON_SITELIBDIR}/convertall
+ @${MKDIR} ${PREFIX}/share/icons
+ ${INSTALL_DATA} ${WRKSRC}/icons/*.png ${PREFIX}/share/icons
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/data/*.dat ${DATADIR}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
+.endif
.include <bsd.port.mk>