From owner-svn-ports-head@freebsd.org Tue Apr 5 15:56:56 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 8FCDBB03F0A; Tue, 5 Apr 2016 15:56:56 +0000 (UTC) (envelope-from amdmi3@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 4865B1334; Tue, 5 Apr 2016 15:56:56 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u35FutXU053955; Tue, 5 Apr 2016 15:56:55 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u35FutrM053954; Tue, 5 Apr 2016 15:56:55 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201604051556.u35FutrM053954@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Tue, 5 Apr 2016 15:56:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r412567 - head/lang/hla 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: Tue, 05 Apr 2016 15:56:56 -0000 Author: amdmi3 Date: Tue Apr 5 15:56:55 2016 New Revision: 412567 URL: https://svnweb.freebsd.org/changeset/ports/412567 Log: - Switch to options helpers - Fix wrkdir permissions Modified: head/lang/hla/Makefile Modified: head/lang/hla/Makefile ============================================================================== --- head/lang/hla/Makefile Tue Apr 5 15:56:52 2016 (r412566) +++ head/lang/hla/Makefile Tue Apr 5 15:56:55 2016 (r412567) @@ -37,17 +37,18 @@ post-extract: ${MKDIR} ${WRKDIR}/stdlib && \ ${TAR} -zxf ${_DISTDIR}/bsd.${PORTNAME}.tar.gz -C ${WRKDIR}/stdlib ${CP} ${_DISTDIR}/lex.yy.c ${WRKSRC} -.if ${PORT_OPTIONS:MTEST} + ${FIND} ${WRKDIR} -type d -exec ${CHMOD} 755 {} \; + +post-extract-TEST-on: ${CP} ${_DISTDIR}/hello.hla ${WRKSRC} -.endif -.if ${PORT_OPTIONS:MDOCS} + +post-extract-DOCS-on: (${MKDIR} ${WRKDIR}/HLAstdlib && \ ${UNZIP_CMD} -q ${_DISTDIR}/HLAstdlib_html${EXTRACT_SUFX} -d ${WRKDIR}/HLAstdlib \ ) (${MKDIR} ${WRKDIR}/HLAReference && \ ${UNZIP_CMD} -q ${_DISTDIR}/HLARef_html${EXTRACT_SUFX} -d ${WRKDIR}/HLAReference \ ) -.endif post-patch: @${REINPLACE_CMD} -e '/flex/d; s|gcc|${CC}|; s|-O2|${CFLAGS}|; \ @@ -64,13 +65,12 @@ do-install: @${CHMOD} 755 ${WRKDIR}/stdlib/hla/include/include # broken archive (cd ${WRKDIR}/stdlib/hla/include/include && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/hla) -post-install: -.if ${PORT_OPTIONS:MDOCS} +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/Reference ${STAGEDIR}${DOCSDIR}/stdlib (cd ${WRKDIR}/HLAReference && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/Reference) (cd ${WRKDIR}/HLAstdlib && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/stdlib) -.endif -.if ${PORT_OPTIONS:MTEST} + +do-test-TEST-on: @${ECHO_MSG} "" @${ECHO_MSG} "Testing HLA installation..." @( \ @@ -78,6 +78,5 @@ post-install: PATH=${PATH}:${STAGEDIR}${PREFIX}/bin ${WRKSRC}/hla ${WRKSRC}/hello.hla && \ ${WRKSRC}/hello \ ) -.endif .include