1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00

It seems sometime, GH_SUBDIR is only medium rare, on the other hand,

GH_SUBDIR_DEFAULT always is fully baked.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2016-12-05 15:32:36 +00:00
parent d5f1652d5d
commit d7f189b504
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427902

View File

@ -554,9 +554,9 @@ DISTFILES+= ${DISTNAME}${_GITHUB_EXTRACT_SUFX}
. if !empty(GH_SUBDIR)
_SITES_extract:= 690:post-extract-gh-DEFAULT
post-extract-gh-DEFAULT:
@${RMDIR} ${WRKSRC}/${GH_SUBDIR} 2>/dev/null || :
@${MKDIR} ${WRKSRC}/${GH_SUBDIR:H} 2>/dev/null || :
@${LN} -s ${GH_SUBDIR:C/[^\/]//g:C/\//..\//g} ${WRKSRC}/${GH_SUBDIR}
@${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}
. endif
# If there are non default groups
. if !empty(_GITHUB_GROUPS:NDEFAULT)