aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkoobs <koobs@FreeBSD.org>2015-02-14 16:01:19 +0800
committerkoobs <koobs@FreeBSD.org>2015-02-14 16:01:19 +0800
commitf0609f75ea87485eb36dc1ecb946be7958dbf854 (patch)
treeee2474940af0808160f023068827258c2649fe8f
parentc682de5b4cec9f73585aee3153f01d7e7a107196 (diff)
downloadfreebsd-ports-gnome-f0609f75ea87485eb36dc1ecb946be7958dbf854.tar.gz
freebsd-ports-gnome-f0609f75ea87485eb36dc1ecb946be7958dbf854.tar.zst
freebsd-ports-gnome-f0609f75ea87485eb36dc1ecb946be7958dbf854.zip
[NEW] sysutils/shutilwhich: shutil.which for those not using Python 3.3
A copy & paste backport of Python 3.3's shutil.which function. Import like this: import shutilwhichh. This will monkeypatch shutil if there is no shutil.which method, otherwise leave it alone. WWW: https://github.com/mbr/shutilwhich
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/py-shutilwhich/Makefile18
-rw-r--r--sysutils/py-shutilwhich/distinfo2
-rw-r--r--sysutils/py-shutilwhich/pkg-descr8
4 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 8179590cc115..478466cc106f 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -757,6 +757,7 @@
SUBDIR += py-ranger
SUBDIR += py-salt
SUBDIR += py-salt-api
+ SUBDIR += py-shutilwhich
SUBDIR += py-stdiff
SUBDIR += py-supervisor
SUBDIR += py-zdaemon
diff --git a/sysutils/py-shutilwhich/Makefile b/sysutils/py-shutilwhich/Makefile
new file mode 100644
index 000000000000..69d56d84cb0b
--- /dev/null
+++ b/sysutils/py-shutilwhich/Makefile
@@ -0,0 +1,18 @@
+# Created by: Kubilay Kocak <koobs@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= shutilwhich
+PORTVERSION= 1.0.1
+CATEGORIES= sysutils python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= koobs@FreeBSD.org
+COMMENT= shutil.which for those not using Python 3.3
+
+LICENSE= PSFL
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/sysutils/py-shutilwhich/distinfo b/sysutils/py-shutilwhich/distinfo
new file mode 100644
index 000000000000..d8d7d9bc5caa
--- /dev/null
+++ b/sysutils/py-shutilwhich/distinfo
@@ -0,0 +1,2 @@
+SHA256 (shutilwhich-1.0.1.tar.gz) = 698b144c49d10730500ba6bd1446bb0c45c4bb01b005f24c6cc1c1e6567de037
+SIZE (shutilwhich-1.0.1.tar.gz) = 2099
diff --git a/sysutils/py-shutilwhich/pkg-descr b/sysutils/py-shutilwhich/pkg-descr
new file mode 100644
index 000000000000..db05fa927063
--- /dev/null
+++ b/sysutils/py-shutilwhich/pkg-descr
@@ -0,0 +1,8 @@
+A copy & paste backport of Python 3.3's shutil.which function.
+
+Import like this: import shutilwhichh.
+
+This will monkeypatch shutil if there is no shutil.which method, otherwise
+leave it alone.
+
+WWW: https://github.com/mbr/shutilwhich