diff options
author | mat <mat@FreeBSD.org> | 2017-12-06 19:55:15 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2017-12-06 19:55:15 +0800 |
commit | 1ddd586a5c0f2687444be59ef3414a4cc58ed1d4 (patch) | |
tree | e3a8d5c8daf8323b0f635935e8ede7267cf2335b | |
parent | d38c1cb33b5276ff3100704847ffa0bddab04989 (diff) | |
download | freebsd-ports-gnome-1ddd586a5c0f2687444be59ef3414a4cc58ed1d4.tar.gz freebsd-ports-gnome-1ddd586a5c0f2687444be59ef3414a4cc58ed1d4.tar.zst freebsd-ports-gnome-1ddd586a5c0f2687444be59ef3414a4cc58ed1d4.zip |
Add a warning to try and prevent people from mis-using USE_GITHUB.
Sponsored by: Absolight
-rw-r--r-- | Mk/bsd.port.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index bd81aa8f92c0..1eb738f9055b 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -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 |