# Created by: Marco Broeder # $FreeBSD$ PORTNAME= dulwich PORTVERSION= 0.9.1 CATEGORIES= devel python MASTER_SITES= http://www.samba.org/~jelmer/${PORTNAME}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= marco.broeder@gmx.eu COMMENT= Pure-Python implementation of the Git file formats and protocols LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual PORTDOCS= NEWS README introduction.txt object-store.txt protocol.txt \ remote.txt repo.txt tag.txt PORTEXAMPLES= clone.py diff.py USE_PYTHON= 2 USE_PYDISTUTILS=yes PYDISTUTILS_AUTOPLIST= yes OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_DEFAULT=DOCS EXAMPLES .include post-patch: ${REINPLACE_CMD} -e 's|PYTHON = python|PYTHON = ${PYTHON_CMD}|g' \ ${WRKSRC}/Makefile ${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \ ${WRKSRC}/setup.py ${WRKSRC}/examples/*.py post-install: .if ${PORT_OPTIONS:MDOCS} ${CP} ${WRKSRC}/docs/*.txt ${WRKSRC}/docs/tutorial/*.txt ${WRKSRC}/ @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/) .endif .if ${PORT_OPTIONS:MEXAMPLES} ${CP} ${WRKSRC}/examples/*.py ${WRKSRC}/ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTEXAMPLES} \ ${STAGEDIR}${EXAMPLESDIR}/) .endif .include