svn commit: r437195 - head/Mk

Mathieu Arnold mat at FreeBSD.org
Wed Mar 29 13:11:19 UTC 2017


Author: mat
Date: Wed Mar 29 13:11:18 2017
New Revision: 437195
URL: https://svnweb.freebsd.org/changeset/ports/437195

Log:
  Fix using GH_SUBDIR for the default distfile when the path had a single
  directory.
  
  Sponsored by:	Absolight

Modified:
  head/Mk/bsd.sites.mk   (contents, props changed)

Modified: head/Mk/bsd.sites.mk
==============================================================================
--- head/Mk/bsd.sites.mk	Wed Mar 29 12:57:31 2017	(r437194)
+++ head/Mk/bsd.sites.mk	Wed Mar 29 13:11:18 2017	(r437195)
@@ -542,7 +542,7 @@ _SITES_extract:=	690:post-extract-gh-DEF
 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)


More information about the svn-ports-all mailing list