Date: Tue, 19 Nov 2013 00:28:02 +0000 (UTC) From: Rene Ladan <rene@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334278 - head/lang/nbc Message-ID: <201311190028.rAJ0S2e0033534@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rene Date: Tue Nov 19 00:28:02 2013 New Revision: 334278 URL: http://svnweb.freebsd.org/changeset/ports/334278 Log: Assorted cleanups: - Convert to USES=dos2unix - Tighten COMMENT - Use option helpers - Remove unnecessary checks for DOCS option (because port is staged) - Align assignments Modified: head/lang/nbc/Makefile Modified: head/lang/nbc/Makefile ============================================================================== --- head/lang/nbc/Makefile Tue Nov 19 00:16:49 2013 (r334277) +++ head/lang/nbc/Makefile Tue Nov 19 00:28:02 2013 (r334278) @@ -13,37 +13,28 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}.sr EXTRACT_SUFX= .tgz MAINTAINER= rene@FreeBSD.org -COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product +COMMENT= Programming language for the LEGO MINDSTORMS NXT MAKE_JOBS_UNSAFE= yes MAKEFILE= nbcunix.mak +WRKSRC= ${WRKDIR}/NXT -OPTIONS_DEFINE= DOCS ROBOCTL - -ROBOCTL_DESC= Include roboctl to communicate with the NXT - -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS ROBOCTL +ROBOCTL_DESC= Include roboctl to communicate with the NXT -.if ${PORT_OPTIONS:MROBOCTL} -RUN_DEPENDS= legoctl:${PORTSDIR}/devel/roboctl -.endif +ROBOCTL_RUN_DEPENDS= legoctl:${PORTSDIR}/devel/roboctl -USES= gmake -USE_DOS2UNIX= yes +USES= dos2unix gmake USE_FPC= fcl-base fcl-image -WRKSRC= ${WRKDIR}/NXT - PLIST_FILES= bin/nbc \ include/nbc/NXCDefs.h \ include/nbc/NBCCommon.h \ include/nbc/NXTDefs.h PLIST_DIRS= include/nbc -.if ${PORT_OPTIONS:MDOCS} PORTDOCS= Changelog \ Readme -.endif post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${MAKEFILE} @@ -53,10 +44,9 @@ do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/include/nbc ${INSTALL_PROGRAM} ${WRKSRC}/nbc ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/nbc -.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/doc/Changelog ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/doc/Readme ${STAGEDIR}${DOCSDIR} -.endif +.for f in ${PORDOCS} + ${INSTALL_DATA} ${WRKDIR}/doc/${f} ${STAGEDIR}${DOCSDIR} +.endfor .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311190028.rAJ0S2e0033534>