mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Update to 1.0.0
- This version works with python 3 - Use shebangfix instead of REINPLACE - Convert to STAGEDIR
This commit is contained in:
parent
2a59eb0a57
commit
fe525125e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331050
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= python-registry
|
||||
PORTVERSION= 0.2.7
|
||||
PORTVERSION= 1.0.0
|
||||
CATEGORIES= security devel python
|
||||
MASTER_SITES= GH \
|
||||
LOCAL/antoine
|
||||
@ -16,31 +16,32 @@ LICENSE= AL2
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= williballenthin
|
||||
GH_TAGNAME= v${PORTVERSION}
|
||||
GH_COMMIT= ca12109
|
||||
GH_COMMIT= 1d16db8
|
||||
|
||||
USE_PYTHON= -2.7
|
||||
USES= shebangfix
|
||||
SHEBANG_FILES= samples/*.py
|
||||
python_OLD_CMD= .*
|
||||
python_CMD= ${PYTHON_CMD}
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
PYTHON_PY3K_PLIST_HACK= yes
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's|0.2.6|${PORTVERSION}|' ${WRKSRC}/Registry/__init__.py
|
||||
${REINPLACE_CMD} '1s|.*|#!${PYTHON_CMD}|' ${WRKSRC}/samples/*.py
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.txt ${WRKSRC}/documentation/* ${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/CHANGELOG.TXT ${WRKSRC}/CONTRIBUTORS.TXT ${WRKSRC}/README.txt \
|
||||
${WRKSRC}/documentation/* ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/samples/*.py ${EXAMPLESDIR}
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/samples/*.py ${STAGEDIR}${EXAMPLESDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (python-registry-0.2.7.tar.gz) = c5f17f05970b6901b54536b255b2a4f4d962a1cc64aadba8279266a9bec66e59
|
||||
SIZE (python-registry-0.2.7.tar.gz) = 136060
|
||||
SHA256 (python-registry-1.0.0.tar.gz) = 6924ba21b92928bc7b6f25e17ce6ad46c82e7a0d6b60506ca6a8a2c380adef5d
|
||||
SIZE (python-registry-1.0.0.tar.gz) = 136542
|
||||
|
Loading…
Reference in New Issue
Block a user