Lines 1-5
Link Here
|
1 |
PORTNAME= dulwich |
1 |
PORTNAME= dulwich |
2 |
PORTVERSION= 0.21.2 |
2 |
DISTVERSION= 0.21.7 |
3 |
CATEGORIES= devel python |
3 |
CATEGORIES= devel python |
4 |
MASTER_SITES= PYPI |
4 |
MASTER_SITES= PYPI |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 12-30
LICENSE= APACHE20 GPLv2+
Link Here
|
12 |
LICENSE_COMB= dual |
12 |
LICENSE_COMB= dual |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
|
14 |
|
|
|
15 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} |
17 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urllib3>=1.25:net/py-urllib3@${PY_FLAVOR} |
18 |
|
15 |
USES= cpe python |
19 |
USES= cpe python |
|
|
20 |
CPE_VENDOR= dulwich_project |
21 |
USE_PYTHON= autoplist concurrent pep517 |
16 |
|
22 |
|
17 |
PORTDOCS= AUTHORS NEWS README.rst TODO conclusion.txt encoding.txt \ |
23 |
PORTDOCS= AUTHORS NEWS README.rst TODO conclusion.txt encoding.txt \ |
18 |
file-format.txt index.txt introduction.txt object-store.txt \ |
24 |
file-format.txt index.txt introduction.txt object-store.txt \ |
19 |
performance.txt porcelain.txt protocol.txt remote.txt repo.txt tag.txt |
25 |
performance.txt porcelain.txt protocol.txt remote.txt repo.txt tag.txt |
20 |
PORTEXAMPLES= clone.py config.py diff.py latest_change.py |
26 |
PORTEXAMPLES= clone.py config.py diff.py latest_change.py |
21 |
|
27 |
|
22 |
CPE_VENDOR= dulwich_project |
28 |
OPTIONS_DEFINE= DOCS EXAMPLES FASTIMPORT PARAMIKO TEST |
23 |
USE_PYTHON= distutils autoplist concurrent |
29 |
OPTIONS_DEFAULT=TEST |
|
|
30 |
|
31 |
FASTIMPORT_DESC= Enable fastimport support |
32 |
PARAMIKO_DESC= Enable paramiko SSH2 protocol support |
24 |
|
33 |
|
25 |
OPTIONS_DEFINE= DOCS EXAMPLES TESTS |
34 |
FASTIMPORT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fastimport>=0:devel/py-fastimport@${PY_FLAVOR} |
26 |
OPTIONS_DEFAULT= TESTS |
35 |
PARAMIKO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}paramiko>=0:security/py-paramiko@${PY_FLAVOR} |
27 |
TESTS_DESC= Install tests and test data |
|
|
28 |
|
36 |
|
29 |
.include <bsd.port.options.mk> |
37 |
.include <bsd.port.options.mk> |
30 |
|
38 |
|
Lines 33-51
post-patch:
Link Here
|
33 |
${WRKSRC}/Makefile |
41 |
${WRKSRC}/Makefile |
34 |
${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \ |
42 |
${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \ |
35 |
${WRKSRC}/setup.py ${WRKSRC}/examples/*.py |
43 |
${WRKSRC}/setup.py ${WRKSRC}/examples/*.py |
36 |
.if ! ${PORT_OPTIONS:MTESTS} |
44 |
|
|
|
45 |
post-patch-TEST-off: |
37 |
${REINPLACE_CMD} -e '/tests/d' \ |
46 |
${REINPLACE_CMD} -e '/tests/d' \ |
38 |
${WRKSRC}/dulwich.egg-info/SOURCES.txt \ |
47 |
${WRKSRC}/dulwich.egg-info/SOURCES.txt \ |
39 |
${WRKSRC}/MANIFEST.in |
48 |
${WRKSRC}/MANIFEST.in |
40 |
${REINPLACE_CMD} -e "/packages=/s|'dulwich\.tests[^']*',||g" \ |
49 |
${REINPLACE_CMD} -e "/packages=/s|'dulwich\.tests[^']*',||g" \ |
41 |
${WRKSRC}/setup.py |
50 |
${WRKSRC}/setup.py |
42 |
.endif |
|
|
43 |
|
51 |
|
44 |
post-install: |
52 |
post-install: |
45 |
@${STRIP_CMD} ${STAGEDIR}/${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/*.so |
53 |
@${STRIP_CMD} ${STAGEDIR}/${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/*.so |
|
|
54 |
|
55 |
post-install-DOCS-on: |
46 |
${CP} ${WRKSRC}/docs/*.txt ${WRKSRC}/docs/tutorial/*.txt ${WRKSRC}/ |
56 |
${CP} ${WRKSRC}/docs/*.txt ${WRKSRC}/docs/tutorial/*.txt ${WRKSRC}/ |
47 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
57 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
48 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/) |
58 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/) |
|
|
59 |
|
60 |
post-install-EXAMPLES-on: |
49 |
${CP} ${WRKSRC}/examples/*.py ${WRKSRC}/ |
61 |
${CP} ${WRKSRC}/examples/*.py ${WRKSRC}/ |
50 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
62 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
51 |
(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTEXAMPLES} \ |
63 |
(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTEXAMPLES} \ |