From owner-svn-ports-all@FreeBSD.ORG Sat Feb 14 08:01:21 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 58C101C2; Sat, 14 Feb 2015 08:01:21 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39A74F8A; Sat, 14 Feb 2015 08:01:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1E81LTp003198; Sat, 14 Feb 2015 08:01:21 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1E81KDm003191; Sat, 14 Feb 2015 08:01:20 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201502140801.t1E81KDm003191@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Sat, 14 Feb 2015 08:01:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378951 - in head/sysutils: . py-shutilwhich X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2015 08:01:21 -0000 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 +# $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 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