diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-12-10 23:01:07 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-12-10 23:01:07 +0000 |
commit | 129c0046131a4e6ff505c256c16fdaa817049000 (patch) | |
tree | b6009f216eb568419176ac8329337a84c48190bb /devel/devtodo | |
parent | b3b08ebad23e5834760c631972b6a09cba7457c6 (diff) |
Support stage
Respect EXAMPLES
Notes
Notes:
svn path=/head/; revision=336122
Diffstat (limited to 'devel/devtodo')
-rw-r--r-- | devel/devtodo/Makefile | 14 | ||||
-rw-r--r-- | devel/devtodo/pkg-plist | 17 |
2 files changed, 17 insertions, 14 deletions
diff --git a/devel/devtodo/Makefile b/devel/devtodo/Makefile index d83cbf4c83f5..079a2037e904 100644 --- a/devel/devtodo/Makefile +++ b/devel/devtodo/Makefile @@ -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> diff --git a/devel/devtodo/pkg-plist b/devel/devtodo/pkg-plist index d0b2f506b481..b00a2d77d934 100644 --- a/devel/devtodo/pkg-plist +++ b/devel/devtodo/pkg-plist @@ -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%% |