summaryrefslogtreecommitdiff
path: root/Mk/bsd.sites.mk
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2017-03-29 13:11:18 +0000
committerMathieu Arnold <mat@FreeBSD.org>2017-03-29 13:11:18 +0000
commit74aa14f85c617d66c337d4db49480391ef4ab5e7 (patch)
tree80746b79b571280c682b47a0e18549e43388d549 /Mk/bsd.sites.mk
parentwww/py-rollbar: update to 0.13.11 (diff)
Fix using GH_SUBDIR for the default distfile when the path had a single
directory. Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=437195
Diffstat (limited to 'Mk/bsd.sites.mk')
-rw-r--r--Mk/bsd.sites.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk
index 079dd9235ac4..7ab7d76eed6f 100644
--- a/Mk/bsd.sites.mk
+++ b/Mk/bsd.sites.mk
@@ -542,7 +542,7 @@ _SITES_extract:= 690:post-extract-gh-DEFAULT
post-extract-gh-DEFAULT:
@${RMDIR} ${WRKSRC}/${GH_SUBDIR_DEFAULT} 2>/dev/null || :
@${MKDIR} ${WRKSRC}/${GH_SUBDIR_DEFAULT:H} 2>/dev/null || :
- @${LN} -s ${GH_SUBDIR_DEFAULT:C/[^\/]//g:C/\//..\//g} ${WRKSRC}/${GH_SUBDIR_DEFAULT}
+ @${LN} -s ${GH_SUBDIR_DEFAULT:C/[^\/]//g:C/\//..\//g:S/^$/./} ${WRKSRC}/${GH_SUBDIR_DEFAULT}
. endif
# If there are non default groups
. if !empty(_GITHUB_GROUPS:NDEFAULT)