Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2012 09:18:52 +0000 (UTC)
From:      Sofian Brabez <sbz@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305194 - head/lang/python
Message-ID:  <201210030918.q939IqVV099501@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbz
Date: Wed Oct  3 09:18:51 2012
New Revision: 305194
URL: http://svn.freebsd.org/changeset/ports/305194

Log:
  - Add pkgng support

Modified:
  head/lang/python/Makefile

Modified: head/lang/python/Makefile
==============================================================================
--- head/lang/python/Makefile	Wed Oct  3 08:40:48 2012	(r305193)
+++ head/lang/python/Makefile	Wed Oct  3 09:18:51 2012	(r305194)
@@ -30,6 +30,14 @@ PORTUPGRADE_CMD=	${LOCALBASE}/sbin/portu
 PORTUPGRADE_CMD=	${LOCALBASE}/sbin/portmaster
 .endif
 
+.if defined(WITH_PKGNG)
+PKG_LIST=	${PKG_BIN} query -a '%n-%v'
+PKG_LIST_FILES=	${PKG_INFO} -l
+.else
+PKG_LIST=	${PKG_INFO} -Ea
+PKG_LIST_FILES=	${PKG_INFO} -L
+.endif
+
 upgrade-site-packages:
 	@if [ ! -x ${PORTUPGRADE_CMD} ]; then \
 		${ECHO_MSG} "Please install ports-mgmt/portupgrade."; \
@@ -41,8 +49,8 @@ upgrade-site-packages:
 		GREP_ARGS="$${GREP_ARGS} -e lib/python$$ver"; \
 	done; \
 	UPD=""; \
-	for pkg in `${PKG_INFO} -Ea`; do \
-		${PKG_INFO} -L $${pkg} | ${GREP} $${GREP_ARGS} && \
+	for pkg in `${PKG_LIST}`; do \
+		${PKG_LIST_FILES} $${pkg} | ${GREP} $${GREP_ARGS} && \
 			UPD="$${UPD} $${pkg}"; \
 	done; \
 	if [ "$${UPD}" ]; then \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210030918.q939IqVV099501>