diff options
Diffstat (limited to 'devel/kodos/Makefile')
-rw-r--r-- | devel/kodos/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/devel/kodos/Makefile b/devel/kodos/Makefile new file mode 100644 index 000000000000..ba61e5bbbed5 --- /dev/null +++ b/devel/kodos/Makefile @@ -0,0 +1,41 @@ +# ex:ts=8 +# +# Ports collection makefile for: kodos +# Date created: Jun 8, 2004 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= kodos +PORTVERSION= 2.4.2 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= ports@FreeBSD.org +COMMENT= The Python Regular Expression Debugger + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/qt.so:${PORTSDIR}/x11-toolkits/py-qt + +USE_REINPLACE= yes +USE_PYTHON= 1.5+ +USE_PYDISTUTILS= yes + +PLIST_FILES= bin/kodos ${PYTHON_SITELIBDIR:S,^${PREFIX}/,,}/kodos.pth + +post-patch: + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/setup.py + +post-install: + @${MV} -f ${PREFIX}/bin/kodos.py ${PREFIX}/bin/kodos + @${FIND} ${PYTHON_SITELIBDIR}/kodos ! -type d | \ + ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} + @${FIND} ${PYTHON_SITELIBDIR}/kodos -type d | ${SORT} -r | \ + ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} + @${FIND} ${DATADIR} ! -type d | \ + ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} + @${FIND} ${DATADIR} -type d | ${SORT} -r | \ + ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} + +.include <bsd.port.mk> |