summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2015-07-25 14:23:58 +0000
committerbsiegert <bsiegert@pkgsrc.org>2015-07-25 14:23:58 +0000
commit7e60daed62983ff78300a83777f1d7e0875da5fc (patch)
tree2e677f24d110fde7e0f54bd9932e5918042d4417 /net
parentda4ab54e1ffb08d6fb242b149055efe15cab6654 (diff)
downloadpkgsrc-7e60daed62983ff78300a83777f1d7e0875da5fc.tar.gz
Fix build on NetBSD, PR pkg/49909.
It turns out that [^a]* matches all files not beginning with a on Darwin and all files beginning with a on NetBSD. Work around this by crafting a for loop with a case expression.
Diffstat (limited to 'net')
-rw-r--r--net/gcloud-golang-metadata/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/net/gcloud-golang-metadata/Makefile b/net/gcloud-golang-metadata/Makefile
index a6e180b8e85..f7a6c2c420d 100644
--- a/net/gcloud-golang-metadata/Makefile
+++ b/net/gcloud-golang-metadata/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2015/05/11 13:02:21 bsiegert Exp $
+# $NetBSD: Makefile,v 1.2 2015/07/25 14:23:58 bsiegert Exp $
#
DISTNAME= gcloud-golang
@@ -19,7 +19,13 @@ GO_DIST_BASE= ${DISTNAME}-${GITHUB_TAG}*
# Remove all code except compute/metadata and internal
pre-patch:
- ${RM} -fr ${WRKSRC}/[^ci]* ${WRKSRC}/cloud*go
+ for i in ${WRKSRC}/*; do \
+ case $$i in \
+ c*|i*) ;; \
+ default) ${RM} -fr $$i ;; \
+ esac; \
+ done
+ ${RM} -fr ${WRKSRC}/cloud*go
${RM} -fr ${WRKSRC}/internal/datastore
${RM} -fr ${WRKSRC}/internal/testutil