1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/devel/dulwich/Makefile
William Grzybowski c56465530f devel/dulwich: allow staging
- Allow staging
- Add EXAMPLES option
- Use python auto plist

PR:		ports/182746
Submitted by:	Marco Bröder <marco.broeder gmx.eu> (maintainer)
2013-10-14 12:04:42 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Marco Broeder <marco.broeder@gmx.eu>
# $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 <bsd.port.options.mk>
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 <bsd.port.mk>