mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
New port: devel/py-backports.shutil_which
This package packports Python 3's shutil.which. Layout copied from kai@'s py-backports.os Usage: try: from shutil import which except ImportError: from backports.shutil_which import which WWW: https://github.com/minrk/backports.shutil_which Used in an attempt to enable multimedia/streamlink on py27, because sysutils/py-shutilwhich uses an incompatible layout.
This commit is contained in:
parent
2fb1dcd59b
commit
4921883aa7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533131
@ -4199,6 +4199,7 @@
|
||||
SUBDIR += py-backports.functools_lru_cache
|
||||
SUBDIR += py-backports.os
|
||||
SUBDIR += py-backports.shutil_get_terminal_size
|
||||
SUBDIR += py-backports.shutil_which
|
||||
SUBDIR += py-backports.tempfile
|
||||
SUBDIR += py-backports.weakref
|
||||
SUBDIR += py-backports_abc
|
||||
|
32
devel/py-backports.shutil_which/Makefile
Normal file
32
devel/py-backports.shutil_which/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= backports.shutil_which
|
||||
DISTVERSION= 3.5.2
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= mandree@FreeBSD.org
|
||||
COMMENT= Backport of shutil.which from Python 3.3
|
||||
|
||||
LICENSE= PSFL
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports>=0:devel/py-backports@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${PY_FLAVOR}
|
||||
|
||||
USES= python:2.7
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
POST_PLIST= trim-backports-namespace
|
||||
|
||||
post-install:
|
||||
@${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/backports/__init__.py*
|
||||
|
||||
trim-backports-namespace:
|
||||
@${REINPLACE_CMD} '/backports\/__init__.py*/d' ${TMPPLIST}
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/py-backports.shutil_which/distinfo
Normal file
3
devel/py-backports.shutil_which/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1587988818
|
||||
SHA256 (backports.shutil_which-3.5.2.tar.gz) = fe39f567cbe4fad89e8ac4dbeb23f87ef80f7fe8e829669d0221ecdb0437c133
|
||||
SIZE (backports.shutil_which-3.5.2.tar.gz) = 3190
|
8
devel/py-backports.shutil_which/pkg-descr
Normal file
8
devel/py-backports.shutil_which/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
This package packports Python 3's shutil.which. Usage:
|
||||
|
||||
try:
|
||||
from shutil import which
|
||||
except ImportError:
|
||||
from backports.shutil_which import which
|
||||
|
||||
WWW: https://github.com/minrk/backports.shutil_which
|
Loading…
Reference in New Issue
Block a user