Skip to content

Commit

Permalink
*: get py-zipp via versioned_dependencies.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Mar 12, 2020
1 parent 749c59d commit 95ac452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions devel/py-importlib-metadata/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2020/02/10 18:29:38 adam Exp $
# $NetBSD: Makefile,v 1.17 2020/03/12 07:35:22 wiz Exp $

DISTNAME= importlib_metadata-1.5.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
Expand All @@ -11,7 +11,6 @@ COMMENT= Read metadata from Python packages
LICENSE= apache-2.0

BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
DEPENDS+= ${PYPKGPREFIX}-zipp>=0.5:../../archivers/py-zipp
TEST_DEPENDS+= ${PYPKGPREFIX}-fakefs-[0-9]*:../../devel/py-fakefs
TEST_DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
.include "../../lang/python/pyversion.mk"
Expand All @@ -24,10 +23,13 @@ DEPENDS+= ${PYPKGPREFIX}-pathlib2-[0-9]*:../../devel/py-pathlib2
TEST_DEPENDS+= ${PYPKGPREFIX}-importlib-resources-[0-9]*:../../devel/py-importlib-resources
.endif

PYTHON_VERSIONED_DEPENDENCIES+= zipp

USE_LANGUAGES= # none

post-extract:
${FIND} ${WRKSRC} -type f -exec ${CHMOD} go-w {} +

.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"
5 changes: 3 additions & 2 deletions devel/py-importlib-resources/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2020/03/03 06:01:00 adam Exp $
# $NetBSD: Makefile,v 1.4 2020/03/12 07:35:23 wiz Exp $

DISTNAME= importlib_resources-1.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
Expand All @@ -19,7 +19,8 @@ DEPENDS+= ${PYPKGPREFIX}-singledispatch-[0-9]*:../../devel/py-singledispatch
DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
.endif
.if ${_PYTHON_VERSION} < 38
DEPENDS+= ${PYPKGPREFIX}-zipp>=0.4:../../archivers/py-zipp
PYTHON_VERSIONED_DEPENDENCIES+= zipp
.include "../../lang/python/versioned_dependencies.mk"
.endif

USE_LANGUAGES= # none
Expand Down

0 comments on commit 95ac452

Please sign in to comment.