From owner-svn-ports-head@freebsd.org Wed Apr 27 20:19:17 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 93C59B1E4D4; Wed, 27 Apr 2016 20:19:17 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3ACE31C20; Wed, 27 Apr 2016 20:19:17 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3RKJG12098539; Wed, 27 Apr 2016 20:19:16 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3RKJG2e098536; Wed, 27 Apr 2016 20:19:16 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201604272019.u3RKJG2e098536@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Wed, 27 Apr 2016 20:19:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414131 - in head/Mk: . Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2016 20:19:17 -0000 Author: swills Date: Wed Apr 27 20:19:16 2016 New Revision: 414131 URL: https://svnweb.freebsd.org/changeset/ports/414131 Log: Improve gem.mk * Check for valid args to USES=gem * Make autoplist default, allowing it to be specified (which is a no-op), or turned off * Add sanity checks for USE_RUBYGEMS RUBYGEM_AUTOPLIST Requested by: mat Discussed with: mat Modified: head/Mk/Uses/gem.mk head/Mk/bsd.sanity.mk Modified: head/Mk/Uses/gem.mk ============================================================================== --- head/Mk/Uses/gem.mk Wed Apr 27 20:05:11 2016 (r414130) +++ head/Mk/Uses/gem.mk Wed Apr 27 20:19:16 2016 (r414131) @@ -12,6 +12,15 @@ _INCLUDE_USES_GEM_MK= yes +_valid_ARGS= autoplist noautoplist + +# Sanity check +.for arg in ${gem_ARGS} +. if empty(_valid_ARGS:M${arg}) +IGNORE= Incorrect 'USES+= gem:${gem_ARGS}' usage: argument [${arg}] is not recognized +. endif +.endfor + BUILD_DEPENDS+= ${RUBYGEMBIN}:devel/ruby-gems RUN_DEPENDS+= ${RUBYGEMBIN}:devel/ruby-gems @@ -122,7 +131,7 @@ do-install: .endif .endif -.if ${gem_ARGS} == "autoplist" +.if empty(gem_ARGS:Mnoautoplist) _USES_install+= 820:gem-autoplist gem-autoplist: @${ECHO} ${GEM_SPEC} >> ${TMPPLIST} @@ -136,8 +145,6 @@ gem-autoplist: ${FIND} -ds ${STAGEDIR}${PREFIX}/${EXT_DIR} -type f -print | ${SED} -E -e \ 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST} ; \ fi -.else -IGNORE= Incorrect 'USES+=gem:${gem_ARGS}' expecting 'USES+=gem[:autoplist]' .endif .endif Modified: head/Mk/bsd.sanity.mk ============================================================================== --- head/Mk/bsd.sanity.mk Wed Apr 27 20:05:11 2016 (r414130) +++ head/Mk/bsd.sanity.mk Wed Apr 27 20:19:16 2016 (r414131) @@ -161,6 +161,14 @@ DEV_ERROR+= "WANT_SDL is no longer suppo DEV_ERROR+= "USE_RC_SUBR=yes has not been supported for a long time, remove it." .endif +.if defined(USE_RUBYGEMS) && !defined(RUBYGEM_AUTOPLIST) +DEV_ERROR+= "USE_RUBYGEMS is no longer supported, please use USES=gem:noautoplist" +.endif + +.if defined(RUBYGEM_AUTOPLIST) +DEV_ERROR+= "RUBYGEM_AUTOPLIST is no longer supported, please use USES=gem" +.endif + SANITY_UNSUPPORTED= USE_OPENAL USE_FAM USE_MAKESELF USE_ZIP USE_LHA USE_CMAKE \ USE_READLINE USE_ICONV PERL_CONFIGURE PERL_MODBUILD \ USE_PERL5_BUILD USE_PERL5_RUN USE_DISPLAY USE_FUSE \