From owner-svn-ports-all@FreeBSD.ORG Tue Mar 10 04:45:49 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A4025328; Tue, 10 Mar 2015 04:45:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 830B4AE1; Tue, 10 Mar 2015 04:45:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2A4jnlh073660; Tue, 10 Mar 2015 04:45:49 GMT (envelope-from mi@FreeBSD.org) Received: (from mi@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2A4jmOt073658; Tue, 10 Mar 2015 04:45:48 GMT (envelope-from mi@FreeBSD.org) Message-Id: <201503100445.t2A4jmOt073658@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: mi set sender to mi@FreeBSD.org using -f From: Mikhail Teterin Date: Tue, 10 Mar 2015 04:45:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r380890 - head/devel/lua-gettext X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2015 04:45:49 -0000 Author: mi Date: Tue Mar 10 04:45:48 2015 New Revision: 380890 URL: https://svnweb.freebsd.org/changeset/ports/380890 QAT: https://qat.redports.org/buildarchive/r380890/ Log: When downloading (from GitHub), use the commit-ID instead of "master" -- in case these files are ever updated. Instead of versioning the two distfiles themselves, use a versioned DIST_SUBDIR. Compile the code straight from ${_DISTDIR} without copying any files around after download. Modified: head/devel/lua-gettext/Makefile head/devel/lua-gettext/distinfo Modified: head/devel/lua-gettext/Makefile ============================================================================== --- head/devel/lua-gettext/Makefile Tue Mar 10 03:50:03 2015 (r380889) +++ head/devel/lua-gettext/Makefile Tue Mar 10 04:45:48 2015 (r380890) @@ -5,9 +5,10 @@ PORTNAME= gettext PORTVERSION= 1.5 PORTREVISION= 2 CATEGORIES= devel -MASTER_SITES= https://raw.githubusercontent.com/nuclewall/bsdinstaller/master/src/lib/lua/gettext/ +MASTER_SITES= https://raw.githubusercontent.com/nuclewall/bsdinstaller/${GH_COMMIT}/src/lib/lua/gettext/ PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} -DISTFILES= lua_gettext.c?rev=${CVER} gettext.lua?rev=${LVER} +DISTFILES= lua_gettext.c gettext.lua +DIST_SUBDIR= lua-${PORTNAME}-${GH_COMMIT} MAINTAINER= ports@FreeBSD.org COMMENT= Gettext binding for Lua 5 @@ -16,20 +17,20 @@ USES= gettext lua:51 CVER= 1.15 LVER= ${PORTVERSION} +GH_COMMIT= 8323bb9 PLIST_FILES= %%LUA_MODSHAREDIR%%/gettext.lua \ %%LUA_MODLIBDIR%%/lgettext.so +MAKEFILE= ${FILESDIR}/Makefile +MAKE_ENV+= VPATH=${_DISTDIR} +NO_WRKSUBDIR= yes do-extract: - ${MKDIR} ${WRKSRC} -.for file in ${DISTFILES} - ${CP} ${DISTDIR}/${file} ${WRKSRC}/${file:C/\?.*$//} -.endfor - ${CP} ${FILESDIR}/Makefile ${WRKSRC} + # Bulding straight from ${_DISTDIR} do-install: @${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR} - ${INSTALL_DATA} ${WRKSRC}/gettext.lua ${STAGEDIR}${LUA_MODSHAREDIR} + ${INSTALL_DATA} ${_DISTDIR}/gettext.lua ${STAGEDIR}${LUA_MODSHAREDIR} @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} ${INSTALL_PROGRAM} ${WRKSRC}/lgettext.so ${STAGEDIR}${LUA_MODLIBDIR} Modified: head/devel/lua-gettext/distinfo ============================================================================== --- head/devel/lua-gettext/distinfo Tue Mar 10 03:50:03 2015 (r380889) +++ head/devel/lua-gettext/distinfo Tue Mar 10 04:45:48 2015 (r380890) @@ -1,4 +1,4 @@ -SHA256 (lua_gettext.c?rev=1.15) = c3ba6db0e0220f2789d06099ce28372b5a30234ffee78caf5fa47efdf274baaf -SIZE (lua_gettext.c?rev=1.15) = 1429 -SHA256 (gettext.lua?rev=1.5) = a861d10a6aba7d0949c0851fff4d42a494bfaffbcc93a163ec85cecb38309fe3 -SIZE (gettext.lua?rev=1.5) = 315 +SHA256 (lua-gettext-8323bb9/lua_gettext.c) = c3ba6db0e0220f2789d06099ce28372b5a30234ffee78caf5fa47efdf274baaf +SIZE (lua-gettext-8323bb9/lua_gettext.c) = 1429 +SHA256 (lua-gettext-8323bb9/gettext.lua) = a861d10a6aba7d0949c0851fff4d42a494bfaffbcc93a163ec85cecb38309fe3 +SIZE (lua-gettext-8323bb9/gettext.lua) = 315