Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149467814
D34789.1790214819.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34789.1790214819.diff
View Options
Index: devel/py-installer/Makefile
===================================================================
--- devel/py-installer/Makefile
+++ devel/py-installer/Makefile
@@ -2,6 +2,7 @@
PORTNAME= installer
PORTVERSION= 0.5.1
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,9 +13,26 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= python:3.7+
-USE_PYTHON= autoplist concurrent distutils
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>0:devel/py-flit-core@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= allflavors concurrent flavors
NO_ARCH= yes
+do-build:
+ cd ${BUILD_WRKSRC} && ${PYTHON_CMD} -m flit_core.wheel
+
+do-install:
+ @(${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR})
+ ${SETENV} PYTHONPATH=${BUILD_WRKSRC}/src ${PYTHON_CMD} -m installer \
+ -d ${STAGEDIR} --no-compile-bytecode \
+ ${BUILD_WRKSRC}/dist/${PORTNAME}-${PORTVERSION}-*.whl
+
+post-install:
+ # autoplist
+ ${SED} -e 's|^|${PYTHONPREFIX_SITELIBDIR:S;^${PREFIX}/;;}/|' -e 's|\,.*$$||' \
+ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}-${PORTVERSION}.dist-info/RECORD | \
+ ${SORT} > ${TMPPLIST}
+
.include <bsd.port.mk>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 24, 1:53 AM (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29887035
Default Alt Text
D34789.1790214819.diff (1 KB)
Attached To
Mode
D34789: devel/py-installer: convert to PEP-517 build and packaging
Attached
Detach File
Event Timeline
Log In to Comment