aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2015-02-14 08:01:19 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2015-02-14 08:01:19 +0000
commitdc252dfc90a074234717a26ff7fa3130095bc4f1 (patch)
treeee2474940af0808160f023068827258c2649fe8f /sysutils
parentc6b291932783ac5ff7cb667efbdebcc2c1f0b18a (diff)
downloadports-dc252dfc90a074234717a26ff7fa3130095bc4f1.tar.gz
ports-dc252dfc90a074234717a26ff7fa3130095bc4f1.zip
Notes
Diffstat (limited to 'sysutils')
-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