# New ports collection makefile for: py-funcparserlib # Date created: 2011-08-02 # Whom: TAKATSU Tomonari # # $FreeBSD$ # PORTNAME= funcparserlib PORTVERSION= 0.3.5 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= tota@FreeBSD.org COMMENT= Recurisve descent parsing library based on functional combinators LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USE_PYTHON= yes USE_PYDISTUTILS= yes DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME} EXAMPLESDIR= ${PREFIX}/share/examples/${UNIQUENAME} PORTDOCS= README PORTEXAMPLES= * post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${INSTALL_WRKSRC}/${PORTDOCS} ${DOCSDIR} .endif .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} @(cd ${INSTALL_WRKSRC}/examples; ${COPYTREE_SHARE} . ${EXAMPLESDIR}) .endif x-generate-plist: ${FIND} ${PYTHON_SITELIBDIR}/${PORTNAME} -type f | ${SORT} | \ ${SED} -e 's,${PYTHON_SITELIBDIR},%%PYTHON_SITELIBDIR%%,' > pkg-plist.new ${FIND} ${PYTHON_SITELIBDIR}/${PORTNAME} -type d -depth | ${SORT} -r | \ ${SED} -e 's,${PYTHON_SITELIBDIR},@dirrm %%PYTHON_SITELIBDIR%%,' >> pkg-plist.new .include