Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2013 23:01:07 +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: r336122 - head/devel/devtodo
Message-ID:  <201312102301.rBAN17cB063359@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Dec 10 23:01:07 2013
New Revision: 336122
URL: http://svnweb.freebsd.org/changeset/ports/336122

Log:
  Support stage
  Respect EXAMPLES

Modified:
  head/devel/devtodo/Makefile
  head/devel/devtodo/pkg-plist

Modified: head/devel/devtodo/Makefile
==============================================================================
--- head/devel/devtodo/Makefile	Tue Dec 10 22:54:55 2013	(r336121)
+++ head/devel/devtodo/Makefile	Tue Dec 10 23:01:07 2013	(r336122)
@@ -14,25 +14,21 @@ CONFLICTS=	tdl-[0-9]* todo-[0-9]*
 
 GNU_CONFIGURE=	yes
 
+OPTIONS_DEFINE=	EXAMPLES
+
 # Note: without this define util/regex.c doesn't compile due to redeclaration
 # of malloc and realloc functions. Adding this define was the simplest
 # (although not elegant) solution.
 CFLAGS+=	-DSTDC_HEADERS
 
-MAN1=	devtodo.1
-MLINKS=	devtodo.1 tda.1 devtodo.1 tdd.1 devtodo.1 tde.1 devtodo.1 tdl.1 \
-	devtodo.1 tdr.1 devtodo.1 todo.1
-MANCOMPRESSED=	no
-
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's/^\ttest -f.*todorc.*\n//' ${WRKSRC}/doc/Makefile.in
 
 post-install:
-	@${MKDIR} ${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 .for file in scripts.sh scripts.tcsh todorc.example
-	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${EXAMPLESDIR}
 .endfor
-	${INSTALL_DATA} ${WRKSRC}/doc/todorc.example ${PREFIX}/etc/todorc.sample
+	${INSTALL_DATA} ${WRKSRC}/doc/todorc.example ${STAGEDIR}${PREFIX}/etc/todorc.sample
 
 .include <bsd.port.mk>

Modified: head/devel/devtodo/pkg-plist
==============================================================================
--- head/devel/devtodo/pkg-plist	Tue Dec 10 22:54:55 2013	(r336121)
+++ head/devel/devtodo/pkg-plist	Tue Dec 10 23:01:07 2013	(r336122)
@@ -5,9 +5,16 @@ bin/tde
 bin/tdl
 bin/tdr
 bin/todo
-@unexec if cmp -s %D/etc/todorc %D/etc/todorc.sample; then rm -f %D/etc/todorc; fi
 etc/todorc.sample
-%%EXAMPLESDIR%%/scripts.sh
-%%EXAMPLESDIR%%/scripts.tcsh
-%%EXAMPLESDIR%%/todorc.example
-@dirrm %%EXAMPLESDIR%%
+@unexec if cmp -s %D/etc/todorc %D/etc/todorc.sample; then rm -f %D/etc/todorc; fi
+man/man1/devtodo.1.gz
+man/man1/tda.1.gz
+man/man1/tdd.1.gz
+man/man1/tde.1.gz
+man/man1/tdl.1.gz
+man/man1/tdr.1.gz
+man/man1/todo.1.gz
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts.tcsh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/todorc.example
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%



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