svn commit: r378951 - in head/sysutils: . py-shutilwhich

Kubilay Kocak koobs at FreeBSD.org
Sat Feb 14 08:01:21 UTC 2015


Author: koobs
Date: Sat Feb 14 08:01:19 2015
New Revision: 378951
URL: https://svnweb.freebsd.org/changeset/ports/378951
QAT: https://qat.redports.org/buildarchive/r378951/

Log:
  [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

Added:
  head/sysutils/py-shutilwhich/
  head/sysutils/py-shutilwhich/Makefile   (contents, props changed)
  head/sysutils/py-shutilwhich/distinfo   (contents, props changed)
  head/sysutils/py-shutilwhich/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Sat Feb 14 07:23:47 2015	(r378950)
+++ head/sysutils/Makefile	Sat Feb 14 08:01:19 2015	(r378951)
@@ -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

Added: head/sysutils/py-shutilwhich/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-shutilwhich/Makefile	Sat Feb 14 08:01:19 2015	(r378951)
@@ -0,0 +1,18 @@
+# Created by: Kubilay Kocak <koobs at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	shutilwhich
+PORTVERSION=	1.0.1
+CATEGORIES=	sysutils python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	koobs at FreeBSD.org
+COMMENT=	shutil.which for those not using Python 3.3
+
+LICENSE=	PSFL
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+.include <bsd.port.mk>

Added: head/sysutils/py-shutilwhich/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-shutilwhich/distinfo	Sat Feb 14 08:01:19 2015	(r378951)
@@ -0,0 +1,2 @@
+SHA256 (shutilwhich-1.0.1.tar.gz) = 698b144c49d10730500ba6bd1446bb0c45c4bb01b005f24c6cc1c1e6567de037
+SIZE (shutilwhich-1.0.1.tar.gz) = 2099

Added: head/sysutils/py-shutilwhich/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-shutilwhich/pkg-descr	Sat Feb 14 08:01:19 2015	(r378951)
@@ -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


More information about the svn-ports-head mailing list