svn commit: r455642 - head/Mk

Mathieu Arnold mat at FreeBSD.org
Wed Dec 6 11:55:16 UTC 2017


Author: mat
Date: Wed Dec  6 11:55:15 2017
New Revision: 455642
URL: https://svnweb.freebsd.org/changeset/ports/455642

Log:
  Add a warning to try and prevent people from mis-using USE_GITHUB.
  
  Sponsored by:	Absolight

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

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Wed Dec  6 09:57:32 2017	(r455641)
+++ head/Mk/bsd.port.mk	Wed Dec  6 11:55:15 2017	(r455642)
@@ -1666,6 +1666,9 @@ CONFIGURE_ENV+=		PATH=${PATH}
 .endif
 
 .if !defined(IGNORE_MASTER_SITE_GITHUB) && defined(USE_GITHUB) && empty(USE_GITHUB:Mnodefault)
+.if defined(WRKSRC)
+DEV_WARNING+=	"You are using USE_GITHUB and WRKSRC is set which is wrong.  Set GH_PROJECT correctly, or set WRKSRC_SUBDIR instead."
+.endif
 WRKSRC?=		${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME_EXTRACT}
 .endif
 # If the distname is not extracting into a specific subdirectory, have the


More information about the svn-ports-head mailing list