From owner-svn-ports-head@FreeBSD.ORG Sat May 9 13:46:10 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 666DE481; Sat, 9 May 2015 13:46:10 +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 54B951838; Sat, 9 May 2015 13:46:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t49DkAWA002256; Sat, 9 May 2015 13:46:10 GMT (envelope-from olgeni@FreeBSD.org) Received: (from olgeni@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t49Dk9u9002250; Sat, 9 May 2015 13:46:09 GMT (envelope-from olgeni@FreeBSD.org) Message-Id: <201505091346.t49Dk9u9002250@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: olgeni set sender to olgeni@FreeBSD.org using -f From: Jimmy Olgeni Date: Sat, 9 May 2015 13:46:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385891 - head/www/mochiweb 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.20 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: Sat, 09 May 2015 13:46:10 -0000 Author: olgeni Date: Sat May 9 13:46:09 2015 New Revision: 385891 URL: https://svnweb.freebsd.org/changeset/ports/385891 Log: Upgrade to version 2.12.2. - Simplify RUN_DEPENDS. - Add support for DOCS and EXAMPLES. - Use pkg-plist for the docs (remove PORTDOCS). - Use PORTNAME in install code. Modified: head/www/mochiweb/Makefile head/www/mochiweb/distinfo head/www/mochiweb/pkg-plist Modified: head/www/mochiweb/Makefile ============================================================================== --- head/www/mochiweb/Makefile Sat May 9 13:20:54 2015 (r385890) +++ head/www/mochiweb/Makefile Sat May 9 13:46:09 2015 (r385891) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= mochiweb -PORTVERSION= 2.10.0 +PORTVERSION= 2.12.2 DISTVERSIONPREFIX= v CATEGORIES= www devel @@ -10,8 +10,8 @@ COMMENT= Erlang library for building lig LICENSE= MIT -BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang -RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang +BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang +RUN_DEPENDS:= ${BUILD_DEPENDS} CONFLICTS= mochiweb-basho-[0-9]* @@ -20,21 +20,25 @@ PLIST_SUB= VERSION="${PORTVERSION}" USE_GITHUB= yes GH_ACCOUNT= mochi -PORTDOCS= * +.include do-install: +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} for FILE in CHANGES.md README; do \ ${INSTALL_DATA} ${WRKSRC}/$${FILE} ${STAGEDIR}${DOCSDIR}; \ done +.endif +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR} - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION} - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/ebin - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/include - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/src - ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/ebin - ${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/include - ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/mochiweb-${PORTVERSION}/src +.endif + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION} + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src + ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin + ${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include + ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src .include Modified: head/www/mochiweb/distinfo ============================================================================== --- head/www/mochiweb/distinfo Sat May 9 13:20:54 2015 (r385890) +++ head/www/mochiweb/distinfo Sat May 9 13:46:09 2015 (r385891) @@ -1,2 +1,2 @@ -SHA256 (mochi-mochiweb-v2.10.0_GH0.tar.gz) = e830a767a8e4b575d9da46ffc8bdfe1b5f4493353082280c4a1a692588499307 -SIZE (mochi-mochiweb-v2.10.0_GH0.tar.gz) = 278224 +SHA256 (mochi-mochiweb-v2.12.2_GH0.tar.gz) = 73369f5a2e0d5477632a3d1fa44c674f2dfc98908f86bfd6bd77b266bdb88684 +SIZE (mochi-mochiweb-v2.12.2_GH0.tar.gz) = 284186 Modified: head/www/mochiweb/pkg-plist ============================================================================== --- head/www/mochiweb/pkg-plist Sat May 9 13:20:54 2015 (r385890) +++ head/www/mochiweb/pkg-plist Sat May 9 13:46:09 2015 (r385891) @@ -67,6 +67,8 @@ lib/erlang/lib/mochiweb-%%VERSION%%/src/ lib/erlang/lib/mochiweb-%%VERSION%%/src/mochiweb_util.erl lib/erlang/lib/mochiweb-%%VERSION%%/src/mochiweb_websocket.erl lib/erlang/lib/mochiweb-%%VERSION%%/src/reloader.erl +%%PORTDOCS%%%%DOCSDIR%%/CHANGES.md +%%PORTDOCS%%%%DOCSDIR%%/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/hmac_api/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/hmac_api/hmac_api.hrl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/hmac_api/hmac_api_client.erl