1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add py-jaraco.functools2 2.0 (copied from py-jaraco.functools)

- Add PORTSCOUT
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-02-14 19:48:10 +00:00
parent 2fed2aeddf
commit e62e429c6d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=526138
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,49 @@
# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$
PORTNAME= jaraco.functools
PORTVERSION= 2.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 2
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Additional functools for Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=1.15.0:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jaraco>=0:devel/py-jaraco@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
POST_PLIST= trim-jaraco-namespace
PORTSCOUT= limit:^2\.
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3000
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.functools_lru_cache>=1.0.3:devel/py-backports.functools_lru_cache@${PY_FLAVOR}
.endif
.if ${PYTHON_REL} >= 3400
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}more-itertools>=2.7:devel/py-more-itertools@${PY_FLAVOR}
.else
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}more-itertools5>=2.7:devel/py-more-itertools5@${PY_FLAVOR}
.endif
post-install:
@${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/jaraco/__init__.py*
-@${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/jaraco/__pycache__/__init__.*
-@${RMDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/jaraco/__pycache__
trim-jaraco-namespace:
@${REINPLACE_CMD} '/jaraco\/__init__\./d; /jaraco\/__pycache__\/__init__\./d' ${TMPPLIST}
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1546456795
SHA256 (jaraco.functools-2.0.tar.gz) = 35ba944f52b1a7beee8843a5aa6752d1d5b79893eeb7770ea98be6b637bf9345
SIZE (jaraco.functools-2.0.tar.gz) = 14340

View File

@ -0,0 +1,3 @@
Additional functools in the spirit of stdlib's functools.
WWW: https://github.com/jaraco/jaraco.functools