Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jan 2014 23:33:18 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341476 - head/devel/cxxtest
Message-ID:  <201401272333.s0RNXIo2063318@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Jan 27 23:33:18 2014
New Revision: 341476
URL: http://svnweb.freebsd.org/changeset/ports/341476
QAT: https://qat.redports.org/buildarchive/r341476/

Log:
  Support stage
  Add a DOCS option
  Fix shebangs

Modified:
  head/devel/cxxtest/Makefile

Modified: head/devel/cxxtest/Makefile
==============================================================================
--- head/devel/cxxtest/Makefile	Mon Jan 27 23:30:12 2014	(r341475)
+++ head/devel/cxxtest/Makefile	Mon Jan 27 23:33:18 2014	(r341476)
@@ -9,31 +9,29 @@ MASTER_SITES=	SF
 MAINTAINER=	drewish@katherinehouse.com
 COMMENT=	Simple and powerful JUnit/CppUnit/xUnit-like framework for C++
 
+OPTIONS_DEFINE=	DOCS
+
 WRKSRC=		${WRKDIR}/${PORTNAME}
 NO_BUILD=	yes
-USES=		perl5
+USES=		gmake perl5 shebangfix
 USE_PERL5=	run
-USE_GMAKE=	yes
+SHEBANG_FILES=	cxxtestgen.pl cxxtestgen.py
 
 DOCS=		README TODO docs/*.html docs/*.png
 EXAMPLES=	sample/*.cpp sample/*.h sample/*.tpl sample/Construct \
 		sample/Makefile.unix sample/gui/GreenYellowRed.h
 
-NO_STAGE=	yes
 do-install:
 # scripts
-	@${MKDIR} ${PREFIX}/include/cxxtest
-	${INSTALL_DATA} ${WRKSRC}/cxxtest/* ${PREFIX}/include/cxxtest/
-	${INSTALL_SCRIPT} ${WRKSRC}/cxxtestgen.pl ${PREFIX}/bin/
-	${INSTALL_SCRIPT} ${WRKSRC}/cxxtestgen.py ${PREFIX}/bin/
+	@${MKDIR} ${STAGEDIR}${PREFIX}/include/cxxtest
+	${INSTALL_DATA} ${WRKSRC}/cxxtest/* ${STAGEDIR}${PREFIX}/include/cxxtest/
+	${INSTALL_SCRIPT} ${WRKSRC}/cxxtestgen.pl ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_SCRIPT} ${WRKSRC}/cxxtestgen.py ${STAGEDIR}${PREFIX}/bin/
 # docs and examples (minus the win ddk stuff)
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
-	@${ECHO_MSG} "* Documentation has been installed in ${DOCSDIR}"
-.endif
-	@${MKDIR} ${EXAMPLESDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+	@@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
 	@${ECHO_MSG} "* Samples have been installed in ${EXAMPLESDIR}"
 	@${ECHO_MSG} "* The CxxTest scripts have been installed into ${PREFIX}/bin/."
 	@${ECHO_MSG} "* The include files are in ${PREFIX}/include/cxxtest/"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401272333.s0RNXIo2063318>