Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2014 15:13:34 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r355857 - head/math/algotutor
Message-ID:  <201405301513.s4UFDY2U013805@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Fri May 30 15:13:33 2014
New Revision: 355857
URL: http://svnweb.freebsd.org/changeset/ports/355857
QAT: https://qat.redports.org/buildarchive/r355857/

Log:
  Stage support.

Modified:
  head/math/algotutor/Makefile
  head/math/algotutor/pkg-plist

Modified: head/math/algotutor/Makefile
==============================================================================
--- head/math/algotutor/Makefile	Fri May 30 15:10:34 2014	(r355856)
+++ head/math/algotutor/Makefile	Fri May 30 15:13:33 2014	(r355857)
@@ -16,7 +16,7 @@ RUN_DEPENDS:=	${BUILD_DEPENDS}
 USE_PERL5=	build
 NO_BUILD=	yes
 
-MAN1=		algotutor.1 gen_at_graph.1
+MANPAGES=	algotutor.1 gen_at_graph.1
 BINFILES=	algotutor gen_at_graph
 LIBFILES=	BST.pm Board.pm Collection.pm Configurable.pm DCEdge.pm \
 		Edge.pm Graph.pm Heap.pm Line.pm PQueue.pm RBTree.pm \
@@ -26,27 +26,26 @@ LIBFILES=	BST.pm Board.pm Collection.pm 
 USES=		shebangfix perl5
 SHEBANG_FILES=	algotutor
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's,!!SITE_PERL!!,${SITE_PERL},' \
 		-e 's|!!PREFIX!!|${PREFIX}|g' \
 			${WRKSRC}/algotutor
 
 do-install:
-	${MKDIR} ${SITE_PERL}/algotutor
-	${MKDIR} ${PREFIX}/share/algotutor
-	${CP} -R ${WRKSRC}/data ${PREFIX}/share/algotutor
-	${CP} -R ${WRKSRC}/cgeom ${SITE_PERL}/algotutor
-	${CP} -R ${WRKSRC}/dp ${SITE_PERL}/algotutor
-	${CP} -R ${WRKSRC}/graph ${SITE_PERL}/algotutor
-.for file in ${MAN1}
-	${INSTALL_MAN} ${WRKSRC}/doc/${file} ${PREFIX}/man/man1
+	${MKDIR} ${STAGEDIR}${SITE_PERL}/algotutor
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/algotutor
+	${CP} -R ${WRKSRC}/data ${STAGEDIR}${PREFIX}/share/algotutor
+	${CP} -R ${WRKSRC}/cgeom ${STAGEDIR}${SITE_PERL}/algotutor
+	${CP} -R ${WRKSRC}/dp ${STAGEDIR}${SITE_PERL}/algotutor
+	${CP} -R ${WRKSRC}/graph ${STAGEDIR}${SITE_PERL}/algotutor
+.for file in ${MANPAGES}
+	${INSTALL_MAN} ${WRKSRC}/doc/${file} ${STAGEDIR}${PREFIX}/man/man1
 .endfor
 .for file in ${BINFILES}
-	${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
 .endfor
 .for file in ${LIBFILES}
-	${INSTALL_DATA} ${WRKSRC}/${file} ${SITE_PERL}/algotutor
+	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${SITE_PERL}/algotutor
 .endfor
 
 .include <bsd.port.mk>

Modified: head/math/algotutor/pkg-plist
==============================================================================
--- head/math/algotutor/pkg-plist	Fri May 30 15:10:34 2014	(r355856)
+++ head/math/algotutor/pkg-plist	Fri May 30 15:13:33 2014	(r355857)
@@ -28,6 +28,8 @@ bin/gen_at_graph
 %%SITE_PERL%%/algotutor/graph/flwa
 %%SITE_PERL%%/algotutor/graph/pfs
 %%SITE_PERL%%/algotutor/utilalgo
+man/man1/algotutor.1.gz
+man/man1/gen_at_graph.1.gz
 share/algotutor/data/countries.gr
 share/algotutor/data/lv.gr
 share/algotutor/data/pts1.gr



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