From b088b5dd0e9ba6e3c7e407a15c0fb371b372f403 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Fri, 19 Mar 2021 14:32:13 +0000 Subject: Add the same WRKSRC warning for USE_GITLAB than for USE_GITHUB. --- Mk/bsd.port.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Mk') diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 29860cf45a26..657cc7438f65 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1700,12 +1700,15 @@ CONFIGURE_ENV+= PATH=${PATH} .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, set WRKSRC_SUBDIR or remove WRKSRC entirely." +DEV_WARNING+= "You are using USE_GITHUB and WRKSRC is set which is wrong. Set GH_PROJECT correctly or set WRKSRC_SUBDIR and remove WRKSRC entirely." .endif WRKSRC?= ${WRKDIR}/${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT} .endif .if !default(IGNORE_MASTER_SITE_GITLAB) && defined(USE_GITLAB) && empty(USE_GITLAB:Mnodefault) +.if defined(WRKSRC) +DEV_WARNING+= "You are using USE_GITLAB and WRKSRC is set which is wrong. Set GL_PROJECT, GL_ACCOUNT correctly, and/or set WRKSRC_SUBDIR and remove WRKSRC entirely." +.endif WRKSRC?= ${WRKDIR}/${GL_PROJECT}-${GL_COMMIT}-${GL_COMMIT} .endif -- cgit v1.2.3