From owner-svn-ports-all@FreeBSD.ORG Fri Jun 6 13:38:32 2014 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1A1721F; Fri, 6 Jun 2014 13:38:32 +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 AE78321BF; Fri, 6 Jun 2014 13:38:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s56DcWEg041158; Fri, 6 Jun 2014 13:38:32 GMT (envelope-from marino@svn.freebsd.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s56DcW4R041157; Fri, 6 Jun 2014 13:38:32 GMT (envelope-from marino@svn.freebsd.org) Message-Id: <201406061338.s56DcW4R041157@svn.freebsd.org> From: John Marino Date: Fri, 6 Jun 2014 13:38:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r356787 - head/www/templatelite 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 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: Fri, 06 Jun 2014 13:38:32 -0000 Author: marino Date: Fri Jun 6 13:38:32 2014 New Revision: 356787 URL: http://svnweb.freebsd.org/changeset/ports/356787 QAT: https://qat.redports.org/buildarchive/r356787/ Log: www/templatelite: Stage support and cleanup The suggested patch was technically correct, but it was putting lipstick on a pig. The install target was pretty ugly. Let's clean this up a bit without homegrown copytrees, then pet portlint. Also, get rid of NOPORTDOCS in favor of standard options. Sorry, not of the original patch is left. PR: ports/190683 Submitted by: joe@thrallingpenguin.com Reworked by: marino Modified: head/www/templatelite/Makefile Modified: head/www/templatelite/Makefile ============================================================================== --- head/www/templatelite/Makefile Fri Jun 6 13:31:56 2014 (r356786) +++ head/www/templatelite/Makefile Fri Jun 6 13:38:32 2014 (r356787) @@ -8,24 +8,24 @@ MASTER_SITES= SF/${PORTNAME}/Template%20 DISTNAME= template_lite_${PORTVERSION} MAINTAINER= ports@FreeBSD.org -COMMENT= A smaller, faster alternative to the Smarty template engine +COMMENT= Smaller, faster alternative to the Smarty template engine NO_BUILD= yes USE_PHP= pcre WANT_PHP_WEB= yes -WRKSRC= ${WRKDIR}/template_lite +WRKSRC= ${WRKDIR}/template_lite SUB_FILES= pkg-message -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + +.include + do-install: - @${MKDIR} ${DATADIR} - @cd ${WRKSRC}/src && ${FIND} * | ${TAR} cTf - - | ${TAR} xUCf ${DATADIR} - -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC}/docs && ${FIND} * | ${TAR} cTf - - | ${TAR} xUCf ${DOCSDIR} - + @${MKDIR} ${STAGEDIR}${DATADIR} + @cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} .endif -post-install: - @${CAT} ${PKGMESSAGE} - .include