summaryrefslogtreecommitdiff
path: root/lang/python27
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-02-08 12:23:24 +0000
committerwiz <wiz@pkgsrc.org>2013-02-08 12:23:24 +0000
commitb98e3a8ca2bf021976a69a804107d4b2f9f71893 (patch)
tree7c3d7d15719f354c1dbd77612fbe921696a72d11 /lang/python27
parent63324855385ee278e28f6b6accebd37437ecc242 (diff)
downloadpkgsrc-b98e3a8ca2bf021976a69a804107d4b2f9f71893.tar.gz
When using destdir, the clean stage isn't privileged.
Diffstat (limited to 'lang/python27')
-rw-r--r--lang/python27/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index 25c2366804a..0d8ee1f878e 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2013/02/06 23:22:38 jperkin Exp $
+# $NetBSD: Makefile,v 1.22 2013/02/08 12:23:24 wiz Exp $
.include "dist.mk"
@@ -54,7 +54,9 @@ PLIST_SRC+= ${.CURDIR}/../../lang/python27/PLIST.${OPSYS}
PLIST_SRC+= ${.CURDIR}/../../lang/python27/PLIST.common_end
.if ${OPSYS} == "NetBSD"
+.if !defined(USE_DESTDIR) || empty(USE_DESTDIR:M[Yy][Ee][Ss])
PRIVILEGED_STAGES+= clean
+.endif
# XXX work around a botched autoconf check which ignores libintl
CONFIGURE_ENV+= ac_cv_func_bind_textdomain_codeset=yes
.endif